1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: frameworks/proto_logging/stats/atoms/framework/framework_extension_atoms.proto
3
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_frameworks_2fproto_5flogging_2fstats_2fatoms_2fframework_2fframework_5fextension_5fatoms_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_frameworks_2fproto_5flogging_2fstats_2fatoms_2fframework_2fframework_5fextension_5fatoms_2eproto
6
7 #include <cstdint>
8 #include <limits>
9 #include <string>
10
11 #include <google/protobuf/port_def.inc>
12 #if PROTOBUF_VERSION < 3021000
13 #error This file was generated by a newer version of protoc which is
14 #error incompatible with your Protocol Buffer headers. Please update
15 #error your headers.
16 #endif
17 #if 3021012 < PROTOBUF_MIN_PROTOC_VERSION
18 #error This file was generated by an older version of protoc which is
19 #error incompatible with your Protocol Buffer headers. Please
20 #error regenerate this file with a newer version of protoc.
21 #endif
22
23 #include <google/protobuf/port_undef.inc>
24 #include <google/protobuf/io/coded_stream.h>
25 #include <google/protobuf/arena.h>
26 #include <google/protobuf/arenastring.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/metadata_lite.h>
29 #include <google/protobuf/generated_message_reflection.h>
30 #include <google/protobuf/message.h>
31 #include <google/protobuf/repeated_field.h> // IWYU pragma: export
32 #include <google/protobuf/extension_set.h> // IWYU pragma: export
33 #include <google/protobuf/generated_enum_reflection.h>
34 #include <google/protobuf/unknown_field_set.h>
35 #include "frameworks/proto_logging/stats/atoms.pb.h"
36 #include "frameworks/proto_logging/stats/atom_field_options.pb.h"
37 #include "frameworks/proto_logging/stats/enums/hardware/biometrics/enums.pb.h"
38 #include "frameworks/proto_logging/stats/enums/app_shared/app_enums.pb.h"
39 #include "frameworks/proto_logging/stats/enums/app_shared/app_op_enums.pb.h"
40 #include "frameworks/proto_logging/stats/enums/framework/compat/enums.pb.h"
41 #include "frameworks/proto_logging/stats/enums/os/enums.pb.h"
42 // @@protoc_insertion_point(includes)
43 #include <google/protobuf/port_def.inc>
44 #define PROTOBUF_INTERNAL_EXPORT_frameworks_2fproto_5flogging_2fstats_2fatoms_2fframework_2fframework_5fextension_5fatoms_2eproto
45 PROTOBUF_NAMESPACE_OPEN
46 namespace internal {
47 class AnyMetadata;
48 } // namespace internal
49 PROTOBUF_NAMESPACE_CLOSE
50
51 // Internal implementation detail -- do not use these members.
52 struct TableStruct_frameworks_2fproto_5flogging_2fstats_2fatoms_2fframework_2fframework_5fextension_5fatoms_2eproto {
53 static const ::uint32_t offsets[];
54 };
55 extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fframework_2fframework_5fextension_5fatoms_2eproto;
56 namespace android {
57 namespace os {
58 namespace statsd {
59 namespace framework {
60 class AppOpAccessTracked;
61 struct AppOpAccessTrackedDefaultTypeInternal;
62 extern AppOpAccessTrackedDefaultTypeInternal _AppOpAccessTracked_default_instance_;
63 class AppOpNoteOpOrCheckOpBinderApiCalled;
64 struct AppOpNoteOpOrCheckOpBinderApiCalledDefaultTypeInternal;
65 extern AppOpNoteOpOrCheckOpBinderApiCalledDefaultTypeInternal _AppOpNoteOpOrCheckOpBinderApiCalled_default_instance_;
66 class AppRestrictionStateChanged;
67 struct AppRestrictionStateChangedDefaultTypeInternal;
68 extern AppRestrictionStateChangedDefaultTypeInternal _AppRestrictionStateChanged_default_instance_;
69 class BalAllowed;
70 struct BalAllowedDefaultTypeInternal;
71 extern BalAllowedDefaultTypeInternal _BalAllowed_default_instance_;
72 class BatteryUsageStatsPerUid;
73 struct BatteryUsageStatsPerUidDefaultTypeInternal;
74 extern BatteryUsageStatsPerUidDefaultTypeInternal _BatteryUsageStatsPerUid_default_instance_;
75 class BiometricFRRNotification;
76 struct BiometricFRRNotificationDefaultTypeInternal;
77 extern BiometricFRRNotificationDefaultTypeInternal _BiometricFRRNotification_default_instance_;
78 class CachedAppsHighWaterMark;
79 struct CachedAppsHighWaterMarkDefaultTypeInternal;
80 extern CachedAppsHighWaterMarkDefaultTypeInternal _CachedAppsHighWaterMark_default_instance_;
81 class CameraStatusForCompatibilityChanged;
82 struct CameraStatusForCompatibilityChangedDefaultTypeInternal;
83 extern CameraStatusForCompatibilityChangedDefaultTypeInternal _CameraStatusForCompatibilityChanged_default_instance_;
84 class ContentOrFileUriEventReported;
85 struct ContentOrFileUriEventReportedDefaultTypeInternal;
86 extern ContentOrFileUriEventReportedDefaultTypeInternal _ContentOrFileUriEventReported_default_instance_;
87 class DeviceIdleTempAllowlistUpdated;
88 struct DeviceIdleTempAllowlistUpdatedDefaultTypeInternal;
89 extern DeviceIdleTempAllowlistUpdatedDefaultTypeInternal _DeviceIdleTempAllowlistUpdated_default_instance_;
90 class DeviceOrientationChanged;
91 struct DeviceOrientationChangedDefaultTypeInternal;
92 extern DeviceOrientationChangedDefaultTypeInternal _DeviceOrientationChanged_default_instance_;
93 class ExcessiveBinderProxyCountReported;
94 struct ExcessiveBinderProxyCountReportedDefaultTypeInternal;
95 extern ExcessiveBinderProxyCountReportedDefaultTypeInternal _ExcessiveBinderProxyCountReported_default_instance_;
96 class FrameworkWakelockInfo;
97 struct FrameworkWakelockInfoDefaultTypeInternal;
98 extern FrameworkWakelockInfoDefaultTypeInternal _FrameworkWakelockInfo_default_instance_;
99 class FullScreenIntentLaunched;
100 struct FullScreenIntentLaunchedDefaultTypeInternal;
101 extern FullScreenIntentLaunchedDefaultTypeInternal _FullScreenIntentLaunched_default_instance_;
102 class InTaskActivityStarted;
103 struct InTaskActivityStartedDefaultTypeInternal;
104 extern InTaskActivityStartedDefaultTypeInternal _InTaskActivityStarted_default_instance_;
105 class IntentCreatorTokenAdded;
106 struct IntentCreatorTokenAddedDefaultTypeInternal;
107 extern IntentCreatorTokenAddedDefaultTypeInternal _IntentCreatorTokenAdded_default_instance_;
108 class JankFrameCountByWidgetReported;
109 struct JankFrameCountByWidgetReportedDefaultTypeInternal;
110 extern JankFrameCountByWidgetReportedDefaultTypeInternal _JankFrameCountByWidgetReported_default_instance_;
111 class MediaProjectionStateChanged;
112 struct MediaProjectionStateChangedDefaultTypeInternal;
113 extern MediaProjectionStateChangedDefaultTypeInternal _MediaProjectionStateChanged_default_instance_;
114 class MediaProjectionTargetChanged;
115 struct MediaProjectionTargetChangedDefaultTypeInternal;
116 extern MediaProjectionTargetChangedDefaultTypeInternal _MediaProjectionTargetChanged_default_instance_;
117 class MobileBytesTransferByProcState;
118 struct MobileBytesTransferByProcStateDefaultTypeInternal;
119 extern MobileBytesTransferByProcStateDefaultTypeInternal _MobileBytesTransferByProcState_default_instance_;
120 class NotificationChannelClassification;
121 struct NotificationChannelClassificationDefaultTypeInternal;
122 extern NotificationChannelClassificationDefaultTypeInternal _NotificationChannelClassification_default_instance_;
123 class PostGCMemorySnapshot;
124 struct PostGCMemorySnapshotDefaultTypeInternal;
125 extern PostGCMemorySnapshotDefaultTypeInternal _PostGCMemorySnapshot_default_instance_;
126 class PowerSaveTempAllowlistChanged;
127 struct PowerSaveTempAllowlistChangedDefaultTypeInternal;
128 extern PowerSaveTempAllowlistChangedDefaultTypeInternal _PowerSaveTempAllowlistChanged_default_instance_;
129 class ProxyBytesTransferByFgBg;
130 struct ProxyBytesTransferByFgBgDefaultTypeInternal;
131 extern ProxyBytesTransferByFgBgDefaultTypeInternal _ProxyBytesTransferByFgBg_default_instance_;
132 class SensitiveContentAppProtection;
133 struct SensitiveContentAppProtectionDefaultTypeInternal;
134 extern SensitiveContentAppProtectionDefaultTypeInternal _SensitiveContentAppProtection_default_instance_;
135 class SensitiveContentMediaProjectionSession;
136 struct SensitiveContentMediaProjectionSessionDefaultTypeInternal;
137 extern SensitiveContentMediaProjectionSessionDefaultTypeInternal _SensitiveContentMediaProjectionSession_default_instance_;
138 class SensitiveNotificationAppProtectionApplied;
139 struct SensitiveNotificationAppProtectionAppliedDefaultTypeInternal;
140 extern SensitiveNotificationAppProtectionAppliedDefaultTypeInternal _SensitiveNotificationAppProtectionApplied_default_instance_;
141 class SensitiveNotificationAppProtectionSession;
142 struct SensitiveNotificationAppProtectionSessionDefaultTypeInternal;
143 extern SensitiveNotificationAppProtectionSessionDefaultTypeInternal _SensitiveNotificationAppProtectionSession_default_instance_;
144 class SensitiveNotificationRedaction;
145 struct SensitiveNotificationRedactionDefaultTypeInternal;
146 extern SensitiveNotificationRedactionDefaultTypeInternal _SensitiveNotificationRedaction_default_instance_;
147 class StylusPredictionMetricsReported;
148 struct StylusPredictionMetricsReportedDefaultTypeInternal;
149 extern StylusPredictionMetricsReportedDefaultTypeInternal _StylusPredictionMetricsReported_default_instance_;
150 class UserRiskEventReported;
151 struct UserRiskEventReportedDefaultTypeInternal;
152 extern UserRiskEventReportedDefaultTypeInternal _UserRiskEventReported_default_instance_;
153 } // namespace framework
154 } // namespace statsd
155 } // namespace os
156 } // namespace android
157 PROTOBUF_NAMESPACE_OPEN
158 template<> ::android::os::statsd::framework::AppOpAccessTracked* Arena::CreateMaybeMessage<::android::os::statsd::framework::AppOpAccessTracked>(Arena*);
159 template<> ::android::os::statsd::framework::AppOpNoteOpOrCheckOpBinderApiCalled* Arena::CreateMaybeMessage<::android::os::statsd::framework::AppOpNoteOpOrCheckOpBinderApiCalled>(Arena*);
160 template<> ::android::os::statsd::framework::AppRestrictionStateChanged* Arena::CreateMaybeMessage<::android::os::statsd::framework::AppRestrictionStateChanged>(Arena*);
161 template<> ::android::os::statsd::framework::BalAllowed* Arena::CreateMaybeMessage<::android::os::statsd::framework::BalAllowed>(Arena*);
162 template<> ::android::os::statsd::framework::BatteryUsageStatsPerUid* Arena::CreateMaybeMessage<::android::os::statsd::framework::BatteryUsageStatsPerUid>(Arena*);
163 template<> ::android::os::statsd::framework::BiometricFRRNotification* Arena::CreateMaybeMessage<::android::os::statsd::framework::BiometricFRRNotification>(Arena*);
164 template<> ::android::os::statsd::framework::CachedAppsHighWaterMark* Arena::CreateMaybeMessage<::android::os::statsd::framework::CachedAppsHighWaterMark>(Arena*);
165 template<> ::android::os::statsd::framework::CameraStatusForCompatibilityChanged* Arena::CreateMaybeMessage<::android::os::statsd::framework::CameraStatusForCompatibilityChanged>(Arena*);
166 template<> ::android::os::statsd::framework::ContentOrFileUriEventReported* Arena::CreateMaybeMessage<::android::os::statsd::framework::ContentOrFileUriEventReported>(Arena*);
167 template<> ::android::os::statsd::framework::DeviceIdleTempAllowlistUpdated* Arena::CreateMaybeMessage<::android::os::statsd::framework::DeviceIdleTempAllowlistUpdated>(Arena*);
168 template<> ::android::os::statsd::framework::DeviceOrientationChanged* Arena::CreateMaybeMessage<::android::os::statsd::framework::DeviceOrientationChanged>(Arena*);
169 template<> ::android::os::statsd::framework::ExcessiveBinderProxyCountReported* Arena::CreateMaybeMessage<::android::os::statsd::framework::ExcessiveBinderProxyCountReported>(Arena*);
170 template<> ::android::os::statsd::framework::FrameworkWakelockInfo* Arena::CreateMaybeMessage<::android::os::statsd::framework::FrameworkWakelockInfo>(Arena*);
171 template<> ::android::os::statsd::framework::FullScreenIntentLaunched* Arena::CreateMaybeMessage<::android::os::statsd::framework::FullScreenIntentLaunched>(Arena*);
172 template<> ::android::os::statsd::framework::InTaskActivityStarted* Arena::CreateMaybeMessage<::android::os::statsd::framework::InTaskActivityStarted>(Arena*);
173 template<> ::android::os::statsd::framework::IntentCreatorTokenAdded* Arena::CreateMaybeMessage<::android::os::statsd::framework::IntentCreatorTokenAdded>(Arena*);
174 template<> ::android::os::statsd::framework::JankFrameCountByWidgetReported* Arena::CreateMaybeMessage<::android::os::statsd::framework::JankFrameCountByWidgetReported>(Arena*);
175 template<> ::android::os::statsd::framework::MediaProjectionStateChanged* Arena::CreateMaybeMessage<::android::os::statsd::framework::MediaProjectionStateChanged>(Arena*);
176 template<> ::android::os::statsd::framework::MediaProjectionTargetChanged* Arena::CreateMaybeMessage<::android::os::statsd::framework::MediaProjectionTargetChanged>(Arena*);
177 template<> ::android::os::statsd::framework::MobileBytesTransferByProcState* Arena::CreateMaybeMessage<::android::os::statsd::framework::MobileBytesTransferByProcState>(Arena*);
178 template<> ::android::os::statsd::framework::NotificationChannelClassification* Arena::CreateMaybeMessage<::android::os::statsd::framework::NotificationChannelClassification>(Arena*);
179 template<> ::android::os::statsd::framework::PostGCMemorySnapshot* Arena::CreateMaybeMessage<::android::os::statsd::framework::PostGCMemorySnapshot>(Arena*);
180 template<> ::android::os::statsd::framework::PowerSaveTempAllowlistChanged* Arena::CreateMaybeMessage<::android::os::statsd::framework::PowerSaveTempAllowlistChanged>(Arena*);
181 template<> ::android::os::statsd::framework::ProxyBytesTransferByFgBg* Arena::CreateMaybeMessage<::android::os::statsd::framework::ProxyBytesTransferByFgBg>(Arena*);
182 template<> ::android::os::statsd::framework::SensitiveContentAppProtection* Arena::CreateMaybeMessage<::android::os::statsd::framework::SensitiveContentAppProtection>(Arena*);
183 template<> ::android::os::statsd::framework::SensitiveContentMediaProjectionSession* Arena::CreateMaybeMessage<::android::os::statsd::framework::SensitiveContentMediaProjectionSession>(Arena*);
184 template<> ::android::os::statsd::framework::SensitiveNotificationAppProtectionApplied* Arena::CreateMaybeMessage<::android::os::statsd::framework::SensitiveNotificationAppProtectionApplied>(Arena*);
185 template<> ::android::os::statsd::framework::SensitiveNotificationAppProtectionSession* Arena::CreateMaybeMessage<::android::os::statsd::framework::SensitiveNotificationAppProtectionSession>(Arena*);
186 template<> ::android::os::statsd::framework::SensitiveNotificationRedaction* Arena::CreateMaybeMessage<::android::os::statsd::framework::SensitiveNotificationRedaction>(Arena*);
187 template<> ::android::os::statsd::framework::StylusPredictionMetricsReported* Arena::CreateMaybeMessage<::android::os::statsd::framework::StylusPredictionMetricsReported>(Arena*);
188 template<> ::android::os::statsd::framework::UserRiskEventReported* Arena::CreateMaybeMessage<::android::os::statsd::framework::UserRiskEventReported>(Arena*);
189 PROTOBUF_NAMESPACE_CLOSE
190 namespace android {
191 namespace os {
192 namespace statsd {
193 namespace framework {
194
195 enum BalAllowed_Status : int {
196 BalAllowed_Status_BAL_STATUS_UNKNOWN = 0,
197 BalAllowed_Status_BAL_ALLOW_DEFAULT = 1,
198 BalAllowed_Status_BAL_ALLOW_ALLOWLISTED_UID = 2,
199 BalAllowed_Status_BAL_ALLOW_ALLOWLISTED_COMPONENT = 3,
200 BalAllowed_Status_BAL_ALLOW_VISIBLE_WINDOW = 4,
201 BalAllowed_Status_BAL_ALLOW_PENDING_INTENT = 5,
202 BalAllowed_Status_BAL_ALLOW_BAL_PERMISSION = 6,
203 BalAllowed_Status_BAL_ALLOW_SAW_PERMISSION = 7,
204 BalAllowed_Status_BAL_ALLOW_GRACE_PERIOD = 8,
205 BalAllowed_Status_BAL_ALLOW_FOREGROUND = 9,
206 BalAllowed_Status_BAL_ALLOW_SDK_SANDBOX = 10,
207 BalAllowed_Status_BAL_ALLOW_NON_APP_VISIBLE_WINDOW = 11,
208 BalAllowed_Status_BAL_ALLOW_TOKEN = 12,
209 BalAllowed_Status_BAL_ALLOW_BOUND_BY_FOREGROUND = 13,
210 BalAllowed_Status_BAL_BLOCKED = 127
211 };
212 bool BalAllowed_Status_IsValid(int value);
213 constexpr BalAllowed_Status BalAllowed_Status_Status_MIN = BalAllowed_Status_BAL_STATUS_UNKNOWN;
214 constexpr BalAllowed_Status BalAllowed_Status_Status_MAX = BalAllowed_Status_BAL_BLOCKED;
215 constexpr int BalAllowed_Status_Status_ARRAYSIZE = BalAllowed_Status_Status_MAX + 1;
216
217 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* BalAllowed_Status_descriptor();
218 template<typename T>
BalAllowed_Status_Name(T enum_t_value)219 inline const std::string& BalAllowed_Status_Name(T enum_t_value) {
220 static_assert(::std::is_same<T, BalAllowed_Status>::value ||
221 ::std::is_integral<T>::value,
222 "Incorrect type passed to function BalAllowed_Status_Name.");
223 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
224 BalAllowed_Status_descriptor(), enum_t_value);
225 }
BalAllowed_Status_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,BalAllowed_Status * value)226 inline bool BalAllowed_Status_Parse(
227 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, BalAllowed_Status* value) {
228 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<BalAllowed_Status>(
229 BalAllowed_Status_descriptor(), name, value);
230 }
231 enum InTaskActivityStarted_TransitionType : int {
232 InTaskActivityStarted_TransitionType_UNKNOWN = 0,
233 InTaskActivityStarted_TransitionType_WARM = 1,
234 InTaskActivityStarted_TransitionType_HOT = 2,
235 InTaskActivityStarted_TransitionType_COLD = 3,
236 InTaskActivityStarted_TransitionType_RELAUNCH = 4
237 };
238 bool InTaskActivityStarted_TransitionType_IsValid(int value);
239 constexpr InTaskActivityStarted_TransitionType InTaskActivityStarted_TransitionType_TransitionType_MIN = InTaskActivityStarted_TransitionType_UNKNOWN;
240 constexpr InTaskActivityStarted_TransitionType InTaskActivityStarted_TransitionType_TransitionType_MAX = InTaskActivityStarted_TransitionType_RELAUNCH;
241 constexpr int InTaskActivityStarted_TransitionType_TransitionType_ARRAYSIZE = InTaskActivityStarted_TransitionType_TransitionType_MAX + 1;
242
243 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* InTaskActivityStarted_TransitionType_descriptor();
244 template<typename T>
InTaskActivityStarted_TransitionType_Name(T enum_t_value)245 inline const std::string& InTaskActivityStarted_TransitionType_Name(T enum_t_value) {
246 static_assert(::std::is_same<T, InTaskActivityStarted_TransitionType>::value ||
247 ::std::is_integral<T>::value,
248 "Incorrect type passed to function InTaskActivityStarted_TransitionType_Name.");
249 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
250 InTaskActivityStarted_TransitionType_descriptor(), enum_t_value);
251 }
InTaskActivityStarted_TransitionType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,InTaskActivityStarted_TransitionType * value)252 inline bool InTaskActivityStarted_TransitionType_Parse(
253 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, InTaskActivityStarted_TransitionType* value) {
254 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<InTaskActivityStarted_TransitionType>(
255 InTaskActivityStarted_TransitionType_descriptor(), name, value);
256 }
257 enum DeviceOrientationChanged_Orientation : int {
258 DeviceOrientationChanged_Orientation_UNDEFINED = 0,
259 DeviceOrientationChanged_Orientation_PORTRAIT = 1,
260 DeviceOrientationChanged_Orientation_LANDSCAPE = 2
261 };
262 bool DeviceOrientationChanged_Orientation_IsValid(int value);
263 constexpr DeviceOrientationChanged_Orientation DeviceOrientationChanged_Orientation_Orientation_MIN = DeviceOrientationChanged_Orientation_UNDEFINED;
264 constexpr DeviceOrientationChanged_Orientation DeviceOrientationChanged_Orientation_Orientation_MAX = DeviceOrientationChanged_Orientation_LANDSCAPE;
265 constexpr int DeviceOrientationChanged_Orientation_Orientation_ARRAYSIZE = DeviceOrientationChanged_Orientation_Orientation_MAX + 1;
266
267 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* DeviceOrientationChanged_Orientation_descriptor();
268 template<typename T>
DeviceOrientationChanged_Orientation_Name(T enum_t_value)269 inline const std::string& DeviceOrientationChanged_Orientation_Name(T enum_t_value) {
270 static_assert(::std::is_same<T, DeviceOrientationChanged_Orientation>::value ||
271 ::std::is_integral<T>::value,
272 "Incorrect type passed to function DeviceOrientationChanged_Orientation_Name.");
273 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
274 DeviceOrientationChanged_Orientation_descriptor(), enum_t_value);
275 }
DeviceOrientationChanged_Orientation_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,DeviceOrientationChanged_Orientation * value)276 inline bool DeviceOrientationChanged_Orientation_Parse(
277 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, DeviceOrientationChanged_Orientation* value) {
278 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<DeviceOrientationChanged_Orientation>(
279 DeviceOrientationChanged_Orientation_descriptor(), name, value);
280 }
281 enum UserRiskEventReported_EventType : int {
282 UserRiskEventReported_EventType_UNKNOWN = 0,
283 UserRiskEventReported_EventType_A11Y_CONSENT_DIALOG_SHOWN = 1,
284 UserRiskEventReported_EventType_A11Y_GRANTED = 2,
285 UserRiskEventReported_EventType_A11Y_DENIED = 3,
286 UserRiskEventReported_EventType_A11Y_APP_UNINSTALLED = 4,
287 UserRiskEventReported_EventType_MEDIA_PROJECTION_CONSENT_DIALOG_SHOWN = 5,
288 UserRiskEventReported_EventType_MEDIA_PROJECTION_GRANTED = 6,
289 UserRiskEventReported_EventType_MEDIA_PROJECTION_DENIED = 7,
290 UserRiskEventReported_EventType_MEDIA_PROJECTION_STARTED = 8,
291 UserRiskEventReported_EventType_ACTIVE_CALL_STARTED = 9,
292 UserRiskEventReported_EventType_ACTIVE_CALL_CHANGED = 10,
293 UserRiskEventReported_EventType_ACTIVE_CALL_ENDED = 11
294 };
295 bool UserRiskEventReported_EventType_IsValid(int value);
296 constexpr UserRiskEventReported_EventType UserRiskEventReported_EventType_EventType_MIN = UserRiskEventReported_EventType_UNKNOWN;
297 constexpr UserRiskEventReported_EventType UserRiskEventReported_EventType_EventType_MAX = UserRiskEventReported_EventType_ACTIVE_CALL_ENDED;
298 constexpr int UserRiskEventReported_EventType_EventType_ARRAYSIZE = UserRiskEventReported_EventType_EventType_MAX + 1;
299
300 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* UserRiskEventReported_EventType_descriptor();
301 template<typename T>
UserRiskEventReported_EventType_Name(T enum_t_value)302 inline const std::string& UserRiskEventReported_EventType_Name(T enum_t_value) {
303 static_assert(::std::is_same<T, UserRiskEventReported_EventType>::value ||
304 ::std::is_integral<T>::value,
305 "Incorrect type passed to function UserRiskEventReported_EventType_Name.");
306 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
307 UserRiskEventReported_EventType_descriptor(), enum_t_value);
308 }
UserRiskEventReported_EventType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,UserRiskEventReported_EventType * value)309 inline bool UserRiskEventReported_EventType_Parse(
310 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, UserRiskEventReported_EventType* value) {
311 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<UserRiskEventReported_EventType>(
312 UserRiskEventReported_EventType_descriptor(), name, value);
313 }
314 enum UserRiskEventReported_CallDirection : int {
315 UserRiskEventReported_CallDirection_UNKNOWN_DIRECTION = 0,
316 UserRiskEventReported_CallDirection_INCOMING = 1,
317 UserRiskEventReported_CallDirection_OUTGOING = 2
318 };
319 bool UserRiskEventReported_CallDirection_IsValid(int value);
320 constexpr UserRiskEventReported_CallDirection UserRiskEventReported_CallDirection_CallDirection_MIN = UserRiskEventReported_CallDirection_UNKNOWN_DIRECTION;
321 constexpr UserRiskEventReported_CallDirection UserRiskEventReported_CallDirection_CallDirection_MAX = UserRiskEventReported_CallDirection_OUTGOING;
322 constexpr int UserRiskEventReported_CallDirection_CallDirection_ARRAYSIZE = UserRiskEventReported_CallDirection_CallDirection_MAX + 1;
323
324 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* UserRiskEventReported_CallDirection_descriptor();
325 template<typename T>
UserRiskEventReported_CallDirection_Name(T enum_t_value)326 inline const std::string& UserRiskEventReported_CallDirection_Name(T enum_t_value) {
327 static_assert(::std::is_same<T, UserRiskEventReported_CallDirection>::value ||
328 ::std::is_integral<T>::value,
329 "Incorrect type passed to function UserRiskEventReported_CallDirection_Name.");
330 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
331 UserRiskEventReported_CallDirection_descriptor(), enum_t_value);
332 }
UserRiskEventReported_CallDirection_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,UserRiskEventReported_CallDirection * value)333 inline bool UserRiskEventReported_CallDirection_Parse(
334 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, UserRiskEventReported_CallDirection* value) {
335 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<UserRiskEventReported_CallDirection>(
336 UserRiskEventReported_CallDirection_descriptor(), name, value);
337 }
338 enum UserRiskEventReported_NumberVerificationStatus : int {
339 UserRiskEventReported_NumberVerificationStatus_UNKNOWN_STATUS = 0,
340 UserRiskEventReported_NumberVerificationStatus_NOT_VERIFIED = 1,
341 UserRiskEventReported_NumberVerificationStatus_PASSED = 2,
342 UserRiskEventReported_NumberVerificationStatus_FAILED = 3
343 };
344 bool UserRiskEventReported_NumberVerificationStatus_IsValid(int value);
345 constexpr UserRiskEventReported_NumberVerificationStatus UserRiskEventReported_NumberVerificationStatus_NumberVerificationStatus_MIN = UserRiskEventReported_NumberVerificationStatus_UNKNOWN_STATUS;
346 constexpr UserRiskEventReported_NumberVerificationStatus UserRiskEventReported_NumberVerificationStatus_NumberVerificationStatus_MAX = UserRiskEventReported_NumberVerificationStatus_FAILED;
347 constexpr int UserRiskEventReported_NumberVerificationStatus_NumberVerificationStatus_ARRAYSIZE = UserRiskEventReported_NumberVerificationStatus_NumberVerificationStatus_MAX + 1;
348
349 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* UserRiskEventReported_NumberVerificationStatus_descriptor();
350 template<typename T>
UserRiskEventReported_NumberVerificationStatus_Name(T enum_t_value)351 inline const std::string& UserRiskEventReported_NumberVerificationStatus_Name(T enum_t_value) {
352 static_assert(::std::is_same<T, UserRiskEventReported_NumberVerificationStatus>::value ||
353 ::std::is_integral<T>::value,
354 "Incorrect type passed to function UserRiskEventReported_NumberVerificationStatus_Name.");
355 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
356 UserRiskEventReported_NumberVerificationStatus_descriptor(), enum_t_value);
357 }
UserRiskEventReported_NumberVerificationStatus_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,UserRiskEventReported_NumberVerificationStatus * value)358 inline bool UserRiskEventReported_NumberVerificationStatus_Parse(
359 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, UserRiskEventReported_NumberVerificationStatus* value) {
360 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<UserRiskEventReported_NumberVerificationStatus>(
361 UserRiskEventReported_NumberVerificationStatus_descriptor(), name, value);
362 }
363 enum MediaProjectionStateChanged_MediaProjectionState : int {
364 MediaProjectionStateChanged_MediaProjectionState_MEDIA_PROJECTION_STATE_UNKNOWN = 0,
365 MediaProjectionStateChanged_MediaProjectionState_MEDIA_PROJECTION_STATE_INITIATED = 1,
366 MediaProjectionStateChanged_MediaProjectionState_MEDIA_PROJECTION_STATE_PERMISSION_REQUEST_DISPLAYED = 2,
367 MediaProjectionStateChanged_MediaProjectionState_MEDIA_PROJECTION_STATE_APP_SELECTOR_DISPLAYED = 3,
368 MediaProjectionStateChanged_MediaProjectionState_MEDIA_PROJECTION_STATE_CAPTURING_IN_PROGRESS = 4,
369 MediaProjectionStateChanged_MediaProjectionState_MEDIA_PROJECTION_STATE_CAPTURING_PAUSED = 5,
370 MediaProjectionStateChanged_MediaProjectionState_MEDIA_PROJECTION_STATE_CAPTURING_IN_PROGRESS_RESUMED = 6,
371 MediaProjectionStateChanged_MediaProjectionState_MEDIA_PROJECTION_STATE_STOPPED = 7,
372 MediaProjectionStateChanged_MediaProjectionState_MEDIA_PROJECTION_STATE_CANCELLED = 8
373 };
374 bool MediaProjectionStateChanged_MediaProjectionState_IsValid(int value);
375 constexpr MediaProjectionStateChanged_MediaProjectionState MediaProjectionStateChanged_MediaProjectionState_MediaProjectionState_MIN = MediaProjectionStateChanged_MediaProjectionState_MEDIA_PROJECTION_STATE_UNKNOWN;
376 constexpr MediaProjectionStateChanged_MediaProjectionState MediaProjectionStateChanged_MediaProjectionState_MediaProjectionState_MAX = MediaProjectionStateChanged_MediaProjectionState_MEDIA_PROJECTION_STATE_CANCELLED;
377 constexpr int MediaProjectionStateChanged_MediaProjectionState_MediaProjectionState_ARRAYSIZE = MediaProjectionStateChanged_MediaProjectionState_MediaProjectionState_MAX + 1;
378
379 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* MediaProjectionStateChanged_MediaProjectionState_descriptor();
380 template<typename T>
MediaProjectionStateChanged_MediaProjectionState_Name(T enum_t_value)381 inline const std::string& MediaProjectionStateChanged_MediaProjectionState_Name(T enum_t_value) {
382 static_assert(::std::is_same<T, MediaProjectionStateChanged_MediaProjectionState>::value ||
383 ::std::is_integral<T>::value,
384 "Incorrect type passed to function MediaProjectionStateChanged_MediaProjectionState_Name.");
385 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
386 MediaProjectionStateChanged_MediaProjectionState_descriptor(), enum_t_value);
387 }
MediaProjectionStateChanged_MediaProjectionState_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,MediaProjectionStateChanged_MediaProjectionState * value)388 inline bool MediaProjectionStateChanged_MediaProjectionState_Parse(
389 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, MediaProjectionStateChanged_MediaProjectionState* value) {
390 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<MediaProjectionStateChanged_MediaProjectionState>(
391 MediaProjectionStateChanged_MediaProjectionState_descriptor(), name, value);
392 }
393 enum MediaProjectionStateChanged_SessionCreationSource : int {
394 MediaProjectionStateChanged_SessionCreationSource_CREATION_SOURCE_UNKNOWN = 0,
395 MediaProjectionStateChanged_SessionCreationSource_CREATION_SOURCE_APP = 1,
396 MediaProjectionStateChanged_SessionCreationSource_CREATION_SOURCE_SYSTEM_UI_SCREEN_RECORDER = 2,
397 MediaProjectionStateChanged_SessionCreationSource_CREATION_SOURCE_CAST = 3
398 };
399 bool MediaProjectionStateChanged_SessionCreationSource_IsValid(int value);
400 constexpr MediaProjectionStateChanged_SessionCreationSource MediaProjectionStateChanged_SessionCreationSource_SessionCreationSource_MIN = MediaProjectionStateChanged_SessionCreationSource_CREATION_SOURCE_UNKNOWN;
401 constexpr MediaProjectionStateChanged_SessionCreationSource MediaProjectionStateChanged_SessionCreationSource_SessionCreationSource_MAX = MediaProjectionStateChanged_SessionCreationSource_CREATION_SOURCE_CAST;
402 constexpr int MediaProjectionStateChanged_SessionCreationSource_SessionCreationSource_ARRAYSIZE = MediaProjectionStateChanged_SessionCreationSource_SessionCreationSource_MAX + 1;
403
404 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* MediaProjectionStateChanged_SessionCreationSource_descriptor();
405 template<typename T>
MediaProjectionStateChanged_SessionCreationSource_Name(T enum_t_value)406 inline const std::string& MediaProjectionStateChanged_SessionCreationSource_Name(T enum_t_value) {
407 static_assert(::std::is_same<T, MediaProjectionStateChanged_SessionCreationSource>::value ||
408 ::std::is_integral<T>::value,
409 "Incorrect type passed to function MediaProjectionStateChanged_SessionCreationSource_Name.");
410 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
411 MediaProjectionStateChanged_SessionCreationSource_descriptor(), enum_t_value);
412 }
MediaProjectionStateChanged_SessionCreationSource_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,MediaProjectionStateChanged_SessionCreationSource * value)413 inline bool MediaProjectionStateChanged_SessionCreationSource_Parse(
414 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, MediaProjectionStateChanged_SessionCreationSource* value) {
415 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<MediaProjectionStateChanged_SessionCreationSource>(
416 MediaProjectionStateChanged_SessionCreationSource_descriptor(), name, value);
417 }
418 enum MediaProjectionStateChanged_SessionStopSource : int {
419 MediaProjectionStateChanged_SessionStopSource_STOP_SOURCE_UNKNOWN = 0,
420 MediaProjectionStateChanged_SessionStopSource_STOP_SOURCE_HOST_APP_STOP = 1,
421 MediaProjectionStateChanged_SessionStopSource_STOP_SOURCE_TASK_APP_CLOSE = 2,
422 MediaProjectionStateChanged_SessionStopSource_STOP_SOURCE_DEVICE_LOCK = 3,
423 MediaProjectionStateChanged_SessionStopSource_STOP_SOURCE_STATUS_BAR_CHIP_STOP = 4,
424 MediaProjectionStateChanged_SessionStopSource_STOP_SOURCE_QS_TILE = 5,
425 MediaProjectionStateChanged_SessionStopSource_STOP_SOURCE_USER_SWITCH = 6,
426 MediaProjectionStateChanged_SessionStopSource_STOP_SOURCE_FOREGROUND_SERVICE_CHANGE = 7,
427 MediaProjectionStateChanged_SessionStopSource_STOP_SOURCE_NEW_PROJECTION = 8,
428 MediaProjectionStateChanged_SessionStopSource_STOP_SOURCE_NEW_MEDIA_ROUTE = 9,
429 MediaProjectionStateChanged_SessionStopSource_STOP_SOURCE_ERROR = 10
430 };
431 bool MediaProjectionStateChanged_SessionStopSource_IsValid(int value);
432 constexpr MediaProjectionStateChanged_SessionStopSource MediaProjectionStateChanged_SessionStopSource_SessionStopSource_MIN = MediaProjectionStateChanged_SessionStopSource_STOP_SOURCE_UNKNOWN;
433 constexpr MediaProjectionStateChanged_SessionStopSource MediaProjectionStateChanged_SessionStopSource_SessionStopSource_MAX = MediaProjectionStateChanged_SessionStopSource_STOP_SOURCE_ERROR;
434 constexpr int MediaProjectionStateChanged_SessionStopSource_SessionStopSource_ARRAYSIZE = MediaProjectionStateChanged_SessionStopSource_SessionStopSource_MAX + 1;
435
436 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* MediaProjectionStateChanged_SessionStopSource_descriptor();
437 template<typename T>
MediaProjectionStateChanged_SessionStopSource_Name(T enum_t_value)438 inline const std::string& MediaProjectionStateChanged_SessionStopSource_Name(T enum_t_value) {
439 static_assert(::std::is_same<T, MediaProjectionStateChanged_SessionStopSource>::value ||
440 ::std::is_integral<T>::value,
441 "Incorrect type passed to function MediaProjectionStateChanged_SessionStopSource_Name.");
442 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
443 MediaProjectionStateChanged_SessionStopSource_descriptor(), enum_t_value);
444 }
MediaProjectionStateChanged_SessionStopSource_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,MediaProjectionStateChanged_SessionStopSource * value)445 inline bool MediaProjectionStateChanged_SessionStopSource_Parse(
446 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, MediaProjectionStateChanged_SessionStopSource* value) {
447 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<MediaProjectionStateChanged_SessionStopSource>(
448 MediaProjectionStateChanged_SessionStopSource_descriptor(), name, value);
449 }
450 enum MediaProjectionTargetChanged_TargetChangeType : int {
451 MediaProjectionTargetChanged_TargetChangeType_TARGET_CHANGE_TYPE_UNKNOWN = 0,
452 MediaProjectionTargetChanged_TargetChangeType_TARGET_CHANGE_WINDOWING_MODE = 1,
453 MediaProjectionTargetChanged_TargetChangeType_TARGET_CHANGE_POSITION = 2,
454 MediaProjectionTargetChanged_TargetChangeType_TARGET_CHANGE_BOUNDS = 3
455 };
456 bool MediaProjectionTargetChanged_TargetChangeType_IsValid(int value);
457 constexpr MediaProjectionTargetChanged_TargetChangeType MediaProjectionTargetChanged_TargetChangeType_TargetChangeType_MIN = MediaProjectionTargetChanged_TargetChangeType_TARGET_CHANGE_TYPE_UNKNOWN;
458 constexpr MediaProjectionTargetChanged_TargetChangeType MediaProjectionTargetChanged_TargetChangeType_TargetChangeType_MAX = MediaProjectionTargetChanged_TargetChangeType_TARGET_CHANGE_BOUNDS;
459 constexpr int MediaProjectionTargetChanged_TargetChangeType_TargetChangeType_ARRAYSIZE = MediaProjectionTargetChanged_TargetChangeType_TargetChangeType_MAX + 1;
460
461 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* MediaProjectionTargetChanged_TargetChangeType_descriptor();
462 template<typename T>
MediaProjectionTargetChanged_TargetChangeType_Name(T enum_t_value)463 inline const std::string& MediaProjectionTargetChanged_TargetChangeType_Name(T enum_t_value) {
464 static_assert(::std::is_same<T, MediaProjectionTargetChanged_TargetChangeType>::value ||
465 ::std::is_integral<T>::value,
466 "Incorrect type passed to function MediaProjectionTargetChanged_TargetChangeType_Name.");
467 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
468 MediaProjectionTargetChanged_TargetChangeType_descriptor(), enum_t_value);
469 }
MediaProjectionTargetChanged_TargetChangeType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,MediaProjectionTargetChanged_TargetChangeType * value)470 inline bool MediaProjectionTargetChanged_TargetChangeType_Parse(
471 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, MediaProjectionTargetChanged_TargetChangeType* value) {
472 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<MediaProjectionTargetChanged_TargetChangeType>(
473 MediaProjectionTargetChanged_TargetChangeType_descriptor(), name, value);
474 }
475 enum MediaProjectionTargetChanged_TargetType : int {
476 MediaProjectionTargetChanged_TargetType_TARGET_TYPE_UNKNOWN = 0,
477 MediaProjectionTargetChanged_TargetType_TARGET_TYPE_DISPLAY = 1,
478 MediaProjectionTargetChanged_TargetType_TARGET_TYPE_APP_TASK = 2
479 };
480 bool MediaProjectionTargetChanged_TargetType_IsValid(int value);
481 constexpr MediaProjectionTargetChanged_TargetType MediaProjectionTargetChanged_TargetType_TargetType_MIN = MediaProjectionTargetChanged_TargetType_TARGET_TYPE_UNKNOWN;
482 constexpr MediaProjectionTargetChanged_TargetType MediaProjectionTargetChanged_TargetType_TargetType_MAX = MediaProjectionTargetChanged_TargetType_TARGET_TYPE_APP_TASK;
483 constexpr int MediaProjectionTargetChanged_TargetType_TargetType_ARRAYSIZE = MediaProjectionTargetChanged_TargetType_TargetType_MAX + 1;
484
485 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* MediaProjectionTargetChanged_TargetType_descriptor();
486 template<typename T>
MediaProjectionTargetChanged_TargetType_Name(T enum_t_value)487 inline const std::string& MediaProjectionTargetChanged_TargetType_Name(T enum_t_value) {
488 static_assert(::std::is_same<T, MediaProjectionTargetChanged_TargetType>::value ||
489 ::std::is_integral<T>::value,
490 "Incorrect type passed to function MediaProjectionTargetChanged_TargetType_Name.");
491 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
492 MediaProjectionTargetChanged_TargetType_descriptor(), enum_t_value);
493 }
MediaProjectionTargetChanged_TargetType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,MediaProjectionTargetChanged_TargetType * value)494 inline bool MediaProjectionTargetChanged_TargetType_Parse(
495 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, MediaProjectionTargetChanged_TargetType* value) {
496 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<MediaProjectionTargetChanged_TargetType>(
497 MediaProjectionTargetChanged_TargetType_descriptor(), name, value);
498 }
499 enum MediaProjectionTargetChanged_WindowingMode : int {
500 MediaProjectionTargetChanged_WindowingMode_WINDOWING_MODE_UNKNOWN = 0,
501 MediaProjectionTargetChanged_WindowingMode_WINDOWING_MODE_HIDDEN = 1,
502 MediaProjectionTargetChanged_WindowingMode_WINDOWING_MODE_FULLSCREEN = 2,
503 MediaProjectionTargetChanged_WindowingMode_WINDOWING_MODE_SPLIT_SCREEN = 3,
504 MediaProjectionTargetChanged_WindowingMode_WINDOWING_MODE_FREEFORM = 4
505 };
506 bool MediaProjectionTargetChanged_WindowingMode_IsValid(int value);
507 constexpr MediaProjectionTargetChanged_WindowingMode MediaProjectionTargetChanged_WindowingMode_WindowingMode_MIN = MediaProjectionTargetChanged_WindowingMode_WINDOWING_MODE_UNKNOWN;
508 constexpr MediaProjectionTargetChanged_WindowingMode MediaProjectionTargetChanged_WindowingMode_WindowingMode_MAX = MediaProjectionTargetChanged_WindowingMode_WINDOWING_MODE_FREEFORM;
509 constexpr int MediaProjectionTargetChanged_WindowingMode_WindowingMode_ARRAYSIZE = MediaProjectionTargetChanged_WindowingMode_WindowingMode_MAX + 1;
510
511 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* MediaProjectionTargetChanged_WindowingMode_descriptor();
512 template<typename T>
MediaProjectionTargetChanged_WindowingMode_Name(T enum_t_value)513 inline const std::string& MediaProjectionTargetChanged_WindowingMode_Name(T enum_t_value) {
514 static_assert(::std::is_same<T, MediaProjectionTargetChanged_WindowingMode>::value ||
515 ::std::is_integral<T>::value,
516 "Incorrect type passed to function MediaProjectionTargetChanged_WindowingMode_Name.");
517 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
518 MediaProjectionTargetChanged_WindowingMode_descriptor(), enum_t_value);
519 }
MediaProjectionTargetChanged_WindowingMode_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,MediaProjectionTargetChanged_WindowingMode * value)520 inline bool MediaProjectionTargetChanged_WindowingMode_Parse(
521 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, MediaProjectionTargetChanged_WindowingMode* value) {
522 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<MediaProjectionTargetChanged_WindowingMode>(
523 MediaProjectionTargetChanged_WindowingMode_descriptor(), name, value);
524 }
525 enum SensitiveContentMediaProjectionSession_State : int {
526 SensitiveContentMediaProjectionSession_State_UNDEFINED_STATE = 0,
527 SensitiveContentMediaProjectionSession_State_START = 1,
528 SensitiveContentMediaProjectionSession_State_STOP = 2
529 };
530 bool SensitiveContentMediaProjectionSession_State_IsValid(int value);
531 constexpr SensitiveContentMediaProjectionSession_State SensitiveContentMediaProjectionSession_State_State_MIN = SensitiveContentMediaProjectionSession_State_UNDEFINED_STATE;
532 constexpr SensitiveContentMediaProjectionSession_State SensitiveContentMediaProjectionSession_State_State_MAX = SensitiveContentMediaProjectionSession_State_STOP;
533 constexpr int SensitiveContentMediaProjectionSession_State_State_ARRAYSIZE = SensitiveContentMediaProjectionSession_State_State_MAX + 1;
534
535 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* SensitiveContentMediaProjectionSession_State_descriptor();
536 template<typename T>
SensitiveContentMediaProjectionSession_State_Name(T enum_t_value)537 inline const std::string& SensitiveContentMediaProjectionSession_State_Name(T enum_t_value) {
538 static_assert(::std::is_same<T, SensitiveContentMediaProjectionSession_State>::value ||
539 ::std::is_integral<T>::value,
540 "Incorrect type passed to function SensitiveContentMediaProjectionSession_State_Name.");
541 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
542 SensitiveContentMediaProjectionSession_State_descriptor(), enum_t_value);
543 }
SensitiveContentMediaProjectionSession_State_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,SensitiveContentMediaProjectionSession_State * value)544 inline bool SensitiveContentMediaProjectionSession_State_Parse(
545 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SensitiveContentMediaProjectionSession_State* value) {
546 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<SensitiveContentMediaProjectionSession_State>(
547 SensitiveContentMediaProjectionSession_State_descriptor(), name, value);
548 }
549 enum SensitiveContentMediaProjectionSession_LoggingSource : int {
550 SensitiveContentMediaProjectionSession_LoggingSource_UNDEFINED_SOURCE = 0,
551 SensitiveContentMediaProjectionSession_LoggingSource_SYS_UI = 1,
552 SensitiveContentMediaProjectionSession_LoggingSource_FRAMEWORKS = 2
553 };
554 bool SensitiveContentMediaProjectionSession_LoggingSource_IsValid(int value);
555 constexpr SensitiveContentMediaProjectionSession_LoggingSource SensitiveContentMediaProjectionSession_LoggingSource_LoggingSource_MIN = SensitiveContentMediaProjectionSession_LoggingSource_UNDEFINED_SOURCE;
556 constexpr SensitiveContentMediaProjectionSession_LoggingSource SensitiveContentMediaProjectionSession_LoggingSource_LoggingSource_MAX = SensitiveContentMediaProjectionSession_LoggingSource_FRAMEWORKS;
557 constexpr int SensitiveContentMediaProjectionSession_LoggingSource_LoggingSource_ARRAYSIZE = SensitiveContentMediaProjectionSession_LoggingSource_LoggingSource_MAX + 1;
558
559 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* SensitiveContentMediaProjectionSession_LoggingSource_descriptor();
560 template<typename T>
SensitiveContentMediaProjectionSession_LoggingSource_Name(T enum_t_value)561 inline const std::string& SensitiveContentMediaProjectionSession_LoggingSource_Name(T enum_t_value) {
562 static_assert(::std::is_same<T, SensitiveContentMediaProjectionSession_LoggingSource>::value ||
563 ::std::is_integral<T>::value,
564 "Incorrect type passed to function SensitiveContentMediaProjectionSession_LoggingSource_Name.");
565 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
566 SensitiveContentMediaProjectionSession_LoggingSource_descriptor(), enum_t_value);
567 }
SensitiveContentMediaProjectionSession_LoggingSource_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,SensitiveContentMediaProjectionSession_LoggingSource * value)568 inline bool SensitiveContentMediaProjectionSession_LoggingSource_Parse(
569 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SensitiveContentMediaProjectionSession_LoggingSource* value) {
570 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<SensitiveContentMediaProjectionSession_LoggingSource>(
571 SensitiveContentMediaProjectionSession_LoggingSource_descriptor(), name, value);
572 }
573 enum SensitiveContentAppProtection_State : int {
574 SensitiveContentAppProtection_State_UNKNOWN = 0,
575 SensitiveContentAppProtection_State_BLOCKED = 1,
576 SensitiveContentAppProtection_State_UNBLOCKED = 2
577 };
578 bool SensitiveContentAppProtection_State_IsValid(int value);
579 constexpr SensitiveContentAppProtection_State SensitiveContentAppProtection_State_State_MIN = SensitiveContentAppProtection_State_UNKNOWN;
580 constexpr SensitiveContentAppProtection_State SensitiveContentAppProtection_State_State_MAX = SensitiveContentAppProtection_State_UNBLOCKED;
581 constexpr int SensitiveContentAppProtection_State_State_ARRAYSIZE = SensitiveContentAppProtection_State_State_MAX + 1;
582
583 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* SensitiveContentAppProtection_State_descriptor();
584 template<typename T>
SensitiveContentAppProtection_State_Name(T enum_t_value)585 inline const std::string& SensitiveContentAppProtection_State_Name(T enum_t_value) {
586 static_assert(::std::is_same<T, SensitiveContentAppProtection_State>::value ||
587 ::std::is_integral<T>::value,
588 "Incorrect type passed to function SensitiveContentAppProtection_State_Name.");
589 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
590 SensitiveContentAppProtection_State_descriptor(), enum_t_value);
591 }
SensitiveContentAppProtection_State_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,SensitiveContentAppProtection_State * value)592 inline bool SensitiveContentAppProtection_State_Parse(
593 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SensitiveContentAppProtection_State* value) {
594 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<SensitiveContentAppProtection_State>(
595 SensitiveContentAppProtection_State_descriptor(), name, value);
596 }
597 enum AppRestrictionStateChanged_RestrictionType : int {
598 AppRestrictionStateChanged_RestrictionType_TYPE_UNKNOWN = 0,
599 AppRestrictionStateChanged_RestrictionType_TYPE_UNRESTRICTED = 1,
600 AppRestrictionStateChanged_RestrictionType_TYPE_EXEMPTED = 2,
601 AppRestrictionStateChanged_RestrictionType_TYPE_ADAPTIVE = 3,
602 AppRestrictionStateChanged_RestrictionType_TYPE_RESTRICTED_BUCKET = 4,
603 AppRestrictionStateChanged_RestrictionType_TYPE_BACKGROUND_RESTRICTED = 5,
604 AppRestrictionStateChanged_RestrictionType_TYPE_FORCE_STOPPED = 6,
605 AppRestrictionStateChanged_RestrictionType_TYPE_USER_LAUNCH_ONLY = 7,
606 AppRestrictionStateChanged_RestrictionType_TYPE_CUSTOM = 8
607 };
608 bool AppRestrictionStateChanged_RestrictionType_IsValid(int value);
609 constexpr AppRestrictionStateChanged_RestrictionType AppRestrictionStateChanged_RestrictionType_RestrictionType_MIN = AppRestrictionStateChanged_RestrictionType_TYPE_UNKNOWN;
610 constexpr AppRestrictionStateChanged_RestrictionType AppRestrictionStateChanged_RestrictionType_RestrictionType_MAX = AppRestrictionStateChanged_RestrictionType_TYPE_CUSTOM;
611 constexpr int AppRestrictionStateChanged_RestrictionType_RestrictionType_ARRAYSIZE = AppRestrictionStateChanged_RestrictionType_RestrictionType_MAX + 1;
612
613 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* AppRestrictionStateChanged_RestrictionType_descriptor();
614 template<typename T>
AppRestrictionStateChanged_RestrictionType_Name(T enum_t_value)615 inline const std::string& AppRestrictionStateChanged_RestrictionType_Name(T enum_t_value) {
616 static_assert(::std::is_same<T, AppRestrictionStateChanged_RestrictionType>::value ||
617 ::std::is_integral<T>::value,
618 "Incorrect type passed to function AppRestrictionStateChanged_RestrictionType_Name.");
619 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
620 AppRestrictionStateChanged_RestrictionType_descriptor(), enum_t_value);
621 }
AppRestrictionStateChanged_RestrictionType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,AppRestrictionStateChanged_RestrictionType * value)622 inline bool AppRestrictionStateChanged_RestrictionType_Parse(
623 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, AppRestrictionStateChanged_RestrictionType* value) {
624 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<AppRestrictionStateChanged_RestrictionType>(
625 AppRestrictionStateChanged_RestrictionType_descriptor(), name, value);
626 }
627 enum AppRestrictionStateChanged_RestrictionChangeReason : int {
628 AppRestrictionStateChanged_RestrictionChangeReason_REASON_UNKNOWN = 0,
629 AppRestrictionStateChanged_RestrictionChangeReason_REASON_DEFAULT = 1,
630 AppRestrictionStateChanged_RestrictionChangeReason_REASON_DORMANT = 2,
631 AppRestrictionStateChanged_RestrictionChangeReason_REASON_USAGE = 3,
632 AppRestrictionStateChanged_RestrictionChangeReason_REASON_USER = 4,
633 AppRestrictionStateChanged_RestrictionChangeReason_REASON_SYSTEM_HEALTH = 6,
634 AppRestrictionStateChanged_RestrictionChangeReason_REASON_POLICY = 7,
635 AppRestrictionStateChanged_RestrictionChangeReason_REASON_OTHER = 8
636 };
637 bool AppRestrictionStateChanged_RestrictionChangeReason_IsValid(int value);
638 constexpr AppRestrictionStateChanged_RestrictionChangeReason AppRestrictionStateChanged_RestrictionChangeReason_RestrictionChangeReason_MIN = AppRestrictionStateChanged_RestrictionChangeReason_REASON_UNKNOWN;
639 constexpr AppRestrictionStateChanged_RestrictionChangeReason AppRestrictionStateChanged_RestrictionChangeReason_RestrictionChangeReason_MAX = AppRestrictionStateChanged_RestrictionChangeReason_REASON_OTHER;
640 constexpr int AppRestrictionStateChanged_RestrictionChangeReason_RestrictionChangeReason_ARRAYSIZE = AppRestrictionStateChanged_RestrictionChangeReason_RestrictionChangeReason_MAX + 1;
641
642 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* AppRestrictionStateChanged_RestrictionChangeReason_descriptor();
643 template<typename T>
AppRestrictionStateChanged_RestrictionChangeReason_Name(T enum_t_value)644 inline const std::string& AppRestrictionStateChanged_RestrictionChangeReason_Name(T enum_t_value) {
645 static_assert(::std::is_same<T, AppRestrictionStateChanged_RestrictionChangeReason>::value ||
646 ::std::is_integral<T>::value,
647 "Incorrect type passed to function AppRestrictionStateChanged_RestrictionChangeReason_Name.");
648 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
649 AppRestrictionStateChanged_RestrictionChangeReason_descriptor(), enum_t_value);
650 }
AppRestrictionStateChanged_RestrictionChangeReason_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,AppRestrictionStateChanged_RestrictionChangeReason * value)651 inline bool AppRestrictionStateChanged_RestrictionChangeReason_Parse(
652 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, AppRestrictionStateChanged_RestrictionChangeReason* value) {
653 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<AppRestrictionStateChanged_RestrictionChangeReason>(
654 AppRestrictionStateChanged_RestrictionChangeReason_descriptor(), name, value);
655 }
656 enum AppRestrictionStateChanged_RestrictionChangeSource : int {
657 AppRestrictionStateChanged_RestrictionChangeSource_SOURCE_UNKNOWN = 0,
658 AppRestrictionStateChanged_RestrictionChangeSource_SOURCE_USER = 1,
659 AppRestrictionStateChanged_RestrictionChangeSource_SOURCE_USER_NUDGED = 2,
660 AppRestrictionStateChanged_RestrictionChangeSource_SOURCE_SYSTEM = 3,
661 AppRestrictionStateChanged_RestrictionChangeSource_SOURCE_COMMAND_LINE = 4,
662 AppRestrictionStateChanged_RestrictionChangeSource_SOURCE_REMOTE_TRIGGER = 5
663 };
664 bool AppRestrictionStateChanged_RestrictionChangeSource_IsValid(int value);
665 constexpr AppRestrictionStateChanged_RestrictionChangeSource AppRestrictionStateChanged_RestrictionChangeSource_RestrictionChangeSource_MIN = AppRestrictionStateChanged_RestrictionChangeSource_SOURCE_UNKNOWN;
666 constexpr AppRestrictionStateChanged_RestrictionChangeSource AppRestrictionStateChanged_RestrictionChangeSource_RestrictionChangeSource_MAX = AppRestrictionStateChanged_RestrictionChangeSource_SOURCE_REMOTE_TRIGGER;
667 constexpr int AppRestrictionStateChanged_RestrictionChangeSource_RestrictionChangeSource_ARRAYSIZE = AppRestrictionStateChanged_RestrictionChangeSource_RestrictionChangeSource_MAX + 1;
668
669 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* AppRestrictionStateChanged_RestrictionChangeSource_descriptor();
670 template<typename T>
AppRestrictionStateChanged_RestrictionChangeSource_Name(T enum_t_value)671 inline const std::string& AppRestrictionStateChanged_RestrictionChangeSource_Name(T enum_t_value) {
672 static_assert(::std::is_same<T, AppRestrictionStateChanged_RestrictionChangeSource>::value ||
673 ::std::is_integral<T>::value,
674 "Incorrect type passed to function AppRestrictionStateChanged_RestrictionChangeSource_Name.");
675 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
676 AppRestrictionStateChanged_RestrictionChangeSource_descriptor(), enum_t_value);
677 }
AppRestrictionStateChanged_RestrictionChangeSource_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,AppRestrictionStateChanged_RestrictionChangeSource * value)678 inline bool AppRestrictionStateChanged_RestrictionChangeSource_Parse(
679 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, AppRestrictionStateChanged_RestrictionChangeSource* value) {
680 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<AppRestrictionStateChanged_RestrictionChangeSource>(
681 AppRestrictionStateChanged_RestrictionChangeSource_descriptor(), name, value);
682 }
683 enum BatteryUsageStatsPerUid_ProcessState : int {
684 BatteryUsageStatsPerUid_ProcessState_UNSPECIFIED = 0,
685 BatteryUsageStatsPerUid_ProcessState_FOREGROUND = 1,
686 BatteryUsageStatsPerUid_ProcessState_BACKGROUND = 2,
687 BatteryUsageStatsPerUid_ProcessState_FOREGROUND_SERVICE = 3,
688 BatteryUsageStatsPerUid_ProcessState_CACHED = 4
689 };
690 bool BatteryUsageStatsPerUid_ProcessState_IsValid(int value);
691 constexpr BatteryUsageStatsPerUid_ProcessState BatteryUsageStatsPerUid_ProcessState_ProcessState_MIN = BatteryUsageStatsPerUid_ProcessState_UNSPECIFIED;
692 constexpr BatteryUsageStatsPerUid_ProcessState BatteryUsageStatsPerUid_ProcessState_ProcessState_MAX = BatteryUsageStatsPerUid_ProcessState_CACHED;
693 constexpr int BatteryUsageStatsPerUid_ProcessState_ProcessState_ARRAYSIZE = BatteryUsageStatsPerUid_ProcessState_ProcessState_MAX + 1;
694
695 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* BatteryUsageStatsPerUid_ProcessState_descriptor();
696 template<typename T>
BatteryUsageStatsPerUid_ProcessState_Name(T enum_t_value)697 inline const std::string& BatteryUsageStatsPerUid_ProcessState_Name(T enum_t_value) {
698 static_assert(::std::is_same<T, BatteryUsageStatsPerUid_ProcessState>::value ||
699 ::std::is_integral<T>::value,
700 "Incorrect type passed to function BatteryUsageStatsPerUid_ProcessState_Name.");
701 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
702 BatteryUsageStatsPerUid_ProcessState_descriptor(), enum_t_value);
703 }
BatteryUsageStatsPerUid_ProcessState_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,BatteryUsageStatsPerUid_ProcessState * value)704 inline bool BatteryUsageStatsPerUid_ProcessState_Parse(
705 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, BatteryUsageStatsPerUid_ProcessState* value) {
706 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<BatteryUsageStatsPerUid_ProcessState>(
707 BatteryUsageStatsPerUid_ProcessState_descriptor(), name, value);
708 }
709 enum AppOpAccessTracked_AccessType : int {
710 AppOpAccessTracked_AccessType_UNKNOWN = 0,
711 AppOpAccessTracked_AccessType_NOTE_OP = 1,
712 AppOpAccessTracked_AccessType_START_OP = 2,
713 AppOpAccessTracked_AccessType_FINISH_OP = 3,
714 AppOpAccessTracked_AccessType_PAUSE_OP = 4,
715 AppOpAccessTracked_AccessType_RESUME_OP = 5
716 };
717 bool AppOpAccessTracked_AccessType_IsValid(int value);
718 constexpr AppOpAccessTracked_AccessType AppOpAccessTracked_AccessType_AccessType_MIN = AppOpAccessTracked_AccessType_UNKNOWN;
719 constexpr AppOpAccessTracked_AccessType AppOpAccessTracked_AccessType_AccessType_MAX = AppOpAccessTracked_AccessType_RESUME_OP;
720 constexpr int AppOpAccessTracked_AccessType_AccessType_ARRAYSIZE = AppOpAccessTracked_AccessType_AccessType_MAX + 1;
721
722 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* AppOpAccessTracked_AccessType_descriptor();
723 template<typename T>
AppOpAccessTracked_AccessType_Name(T enum_t_value)724 inline const std::string& AppOpAccessTracked_AccessType_Name(T enum_t_value) {
725 static_assert(::std::is_same<T, AppOpAccessTracked_AccessType>::value ||
726 ::std::is_integral<T>::value,
727 "Incorrect type passed to function AppOpAccessTracked_AccessType_Name.");
728 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
729 AppOpAccessTracked_AccessType_descriptor(), enum_t_value);
730 }
AppOpAccessTracked_AccessType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,AppOpAccessTracked_AccessType * value)731 inline bool AppOpAccessTracked_AccessType_Parse(
732 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, AppOpAccessTracked_AccessType* value) {
733 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<AppOpAccessTracked_AccessType>(
734 AppOpAccessTracked_AccessType_descriptor(), name, value);
735 }
736 enum AppOpNoteOpOrCheckOpBinderApiCalled_BinderApi : int {
737 AppOpNoteOpOrCheckOpBinderApiCalled_BinderApi_UNKNOWN = 0,
738 AppOpNoteOpOrCheckOpBinderApiCalled_BinderApi_CHECK_OPERATION = 1,
739 AppOpNoteOpOrCheckOpBinderApiCalled_BinderApi_NOTE_OPERATION = 2,
740 AppOpNoteOpOrCheckOpBinderApiCalled_BinderApi_NOTE_PROXY_OPERATION = 3
741 };
742 bool AppOpNoteOpOrCheckOpBinderApiCalled_BinderApi_IsValid(int value);
743 constexpr AppOpNoteOpOrCheckOpBinderApiCalled_BinderApi AppOpNoteOpOrCheckOpBinderApiCalled_BinderApi_BinderApi_MIN = AppOpNoteOpOrCheckOpBinderApiCalled_BinderApi_UNKNOWN;
744 constexpr AppOpNoteOpOrCheckOpBinderApiCalled_BinderApi AppOpNoteOpOrCheckOpBinderApiCalled_BinderApi_BinderApi_MAX = AppOpNoteOpOrCheckOpBinderApiCalled_BinderApi_NOTE_PROXY_OPERATION;
745 constexpr int AppOpNoteOpOrCheckOpBinderApiCalled_BinderApi_BinderApi_ARRAYSIZE = AppOpNoteOpOrCheckOpBinderApiCalled_BinderApi_BinderApi_MAX + 1;
746
747 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* AppOpNoteOpOrCheckOpBinderApiCalled_BinderApi_descriptor();
748 template<typename T>
AppOpNoteOpOrCheckOpBinderApiCalled_BinderApi_Name(T enum_t_value)749 inline const std::string& AppOpNoteOpOrCheckOpBinderApiCalled_BinderApi_Name(T enum_t_value) {
750 static_assert(::std::is_same<T, AppOpNoteOpOrCheckOpBinderApiCalled_BinderApi>::value ||
751 ::std::is_integral<T>::value,
752 "Incorrect type passed to function AppOpNoteOpOrCheckOpBinderApiCalled_BinderApi_Name.");
753 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
754 AppOpNoteOpOrCheckOpBinderApiCalled_BinderApi_descriptor(), enum_t_value);
755 }
AppOpNoteOpOrCheckOpBinderApiCalled_BinderApi_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,AppOpNoteOpOrCheckOpBinderApiCalled_BinderApi * value)756 inline bool AppOpNoteOpOrCheckOpBinderApiCalled_BinderApi_Parse(
757 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, AppOpNoteOpOrCheckOpBinderApiCalled_BinderApi* value) {
758 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<AppOpNoteOpOrCheckOpBinderApiCalled_BinderApi>(
759 AppOpNoteOpOrCheckOpBinderApiCalled_BinderApi_descriptor(), name, value);
760 }
761 enum ContentOrFileUriEventReported_EventType : int {
762 ContentOrFileUriEventReported_EventType_UNKNOWN = 0,
763 ContentOrFileUriEventReported_EventType_CONTENT_URI_WITHOUT_CALLER_READ_PERMISSION = 1,
764 ContentOrFileUriEventReported_EventType_FILE_URI_IN_CONTENT_RESOLVER = 2,
765 ContentOrFileUriEventReported_EventType_NON_CONTENT_URI_IN_ICON = 3,
766 ContentOrFileUriEventReported_EventType_NON_CONTENT_URI_IN_NOTIFICATION_RECORD = 4,
767 ContentOrFileUriEventReported_EventType_NON_CONTENT_URI_IN_MEDIA_DATA_MANAGER = 5
768 };
769 bool ContentOrFileUriEventReported_EventType_IsValid(int value);
770 constexpr ContentOrFileUriEventReported_EventType ContentOrFileUriEventReported_EventType_EventType_MIN = ContentOrFileUriEventReported_EventType_UNKNOWN;
771 constexpr ContentOrFileUriEventReported_EventType ContentOrFileUriEventReported_EventType_EventType_MAX = ContentOrFileUriEventReported_EventType_NON_CONTENT_URI_IN_MEDIA_DATA_MANAGER;
772 constexpr int ContentOrFileUriEventReported_EventType_EventType_ARRAYSIZE = ContentOrFileUriEventReported_EventType_EventType_MAX + 1;
773
774 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ContentOrFileUriEventReported_EventType_descriptor();
775 template<typename T>
ContentOrFileUriEventReported_EventType_Name(T enum_t_value)776 inline const std::string& ContentOrFileUriEventReported_EventType_Name(T enum_t_value) {
777 static_assert(::std::is_same<T, ContentOrFileUriEventReported_EventType>::value ||
778 ::std::is_integral<T>::value,
779 "Incorrect type passed to function ContentOrFileUriEventReported_EventType_Name.");
780 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
781 ContentOrFileUriEventReported_EventType_descriptor(), enum_t_value);
782 }
ContentOrFileUriEventReported_EventType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,ContentOrFileUriEventReported_EventType * value)783 inline bool ContentOrFileUriEventReported_EventType_Parse(
784 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ContentOrFileUriEventReported_EventType* value) {
785 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<ContentOrFileUriEventReported_EventType>(
786 ContentOrFileUriEventReported_EventType_descriptor(), name, value);
787 }
788 enum JankFrameCountByWidgetReported_WidgetCategory : int {
789 JankFrameCountByWidgetReported_WidgetCategory_WIDGET_CATEGORY_UNSPECIFIED = 0,
790 JankFrameCountByWidgetReported_WidgetCategory_SCROLL = 1,
791 JankFrameCountByWidgetReported_WidgetCategory_ANIMATION = 2,
792 JankFrameCountByWidgetReported_WidgetCategory_MEDIA = 3,
793 JankFrameCountByWidgetReported_WidgetCategory_NAVIGATION = 4,
794 JankFrameCountByWidgetReported_WidgetCategory_KEYBOARD = 5,
795 JankFrameCountByWidgetReported_WidgetCategory_PREDICTIVE_BACK = 6,
796 JankFrameCountByWidgetReported_WidgetCategory_OTHER = 7
797 };
798 bool JankFrameCountByWidgetReported_WidgetCategory_IsValid(int value);
799 constexpr JankFrameCountByWidgetReported_WidgetCategory JankFrameCountByWidgetReported_WidgetCategory_WidgetCategory_MIN = JankFrameCountByWidgetReported_WidgetCategory_WIDGET_CATEGORY_UNSPECIFIED;
800 constexpr JankFrameCountByWidgetReported_WidgetCategory JankFrameCountByWidgetReported_WidgetCategory_WidgetCategory_MAX = JankFrameCountByWidgetReported_WidgetCategory_OTHER;
801 constexpr int JankFrameCountByWidgetReported_WidgetCategory_WidgetCategory_ARRAYSIZE = JankFrameCountByWidgetReported_WidgetCategory_WidgetCategory_MAX + 1;
802
803 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* JankFrameCountByWidgetReported_WidgetCategory_descriptor();
804 template<typename T>
JankFrameCountByWidgetReported_WidgetCategory_Name(T enum_t_value)805 inline const std::string& JankFrameCountByWidgetReported_WidgetCategory_Name(T enum_t_value) {
806 static_assert(::std::is_same<T, JankFrameCountByWidgetReported_WidgetCategory>::value ||
807 ::std::is_integral<T>::value,
808 "Incorrect type passed to function JankFrameCountByWidgetReported_WidgetCategory_Name.");
809 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
810 JankFrameCountByWidgetReported_WidgetCategory_descriptor(), enum_t_value);
811 }
JankFrameCountByWidgetReported_WidgetCategory_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,JankFrameCountByWidgetReported_WidgetCategory * value)812 inline bool JankFrameCountByWidgetReported_WidgetCategory_Parse(
813 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, JankFrameCountByWidgetReported_WidgetCategory* value) {
814 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<JankFrameCountByWidgetReported_WidgetCategory>(
815 JankFrameCountByWidgetReported_WidgetCategory_descriptor(), name, value);
816 }
817 enum JankFrameCountByWidgetReported_WidgetState : int {
818 JankFrameCountByWidgetReported_WidgetState_WIDGET_STATE_UNSPECIFIED = 0,
819 JankFrameCountByWidgetReported_WidgetState_NONE = 1,
820 JankFrameCountByWidgetReported_WidgetState_SCROLLING = 2,
821 JankFrameCountByWidgetReported_WidgetState_FLINGING = 3,
822 JankFrameCountByWidgetReported_WidgetState_SWIPING = 4,
823 JankFrameCountByWidgetReported_WidgetState_DRAGGING = 5,
824 JankFrameCountByWidgetReported_WidgetState_ZOOMING = 6,
825 JankFrameCountByWidgetReported_WidgetState_ANIMATING = 7,
826 JankFrameCountByWidgetReported_WidgetState_PLAYBACK = 8,
827 JankFrameCountByWidgetReported_WidgetState_TAPPING = 9
828 };
829 bool JankFrameCountByWidgetReported_WidgetState_IsValid(int value);
830 constexpr JankFrameCountByWidgetReported_WidgetState JankFrameCountByWidgetReported_WidgetState_WidgetState_MIN = JankFrameCountByWidgetReported_WidgetState_WIDGET_STATE_UNSPECIFIED;
831 constexpr JankFrameCountByWidgetReported_WidgetState JankFrameCountByWidgetReported_WidgetState_WidgetState_MAX = JankFrameCountByWidgetReported_WidgetState_TAPPING;
832 constexpr int JankFrameCountByWidgetReported_WidgetState_WidgetState_ARRAYSIZE = JankFrameCountByWidgetReported_WidgetState_WidgetState_MAX + 1;
833
834 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* JankFrameCountByWidgetReported_WidgetState_descriptor();
835 template<typename T>
JankFrameCountByWidgetReported_WidgetState_Name(T enum_t_value)836 inline const std::string& JankFrameCountByWidgetReported_WidgetState_Name(T enum_t_value) {
837 static_assert(::std::is_same<T, JankFrameCountByWidgetReported_WidgetState>::value ||
838 ::std::is_integral<T>::value,
839 "Incorrect type passed to function JankFrameCountByWidgetReported_WidgetState_Name.");
840 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
841 JankFrameCountByWidgetReported_WidgetState_descriptor(), enum_t_value);
842 }
JankFrameCountByWidgetReported_WidgetState_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,JankFrameCountByWidgetReported_WidgetState * value)843 inline bool JankFrameCountByWidgetReported_WidgetState_Parse(
844 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, JankFrameCountByWidgetReported_WidgetState* value) {
845 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<JankFrameCountByWidgetReported_WidgetState>(
846 JankFrameCountByWidgetReported_WidgetState_descriptor(), name, value);
847 }
848 // ===================================================================
849
850 class FullScreenIntentLaunched final :
851 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:android.os.statsd.framework.FullScreenIntentLaunched) */ {
852 public:
FullScreenIntentLaunched()853 inline FullScreenIntentLaunched() : FullScreenIntentLaunched(nullptr) {}
854 ~FullScreenIntentLaunched() override;
855 explicit PROTOBUF_CONSTEXPR FullScreenIntentLaunched(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
856
857 FullScreenIntentLaunched(const FullScreenIntentLaunched& from);
FullScreenIntentLaunched(FullScreenIntentLaunched && from)858 FullScreenIntentLaunched(FullScreenIntentLaunched&& from) noexcept
859 : FullScreenIntentLaunched() {
860 *this = ::std::move(from);
861 }
862
863 inline FullScreenIntentLaunched& operator=(const FullScreenIntentLaunched& from) {
864 if (this == &from) return *this;
865 CopyFrom(from);
866 return *this;
867 }
868 inline FullScreenIntentLaunched& operator=(FullScreenIntentLaunched&& from) noexcept {
869 if (this == &from) return *this;
870 if (GetOwningArena() == from.GetOwningArena()
871 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
872 && GetOwningArena() != nullptr
873 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
874 ) {
875 InternalSwap(&from);
876 } else {
877 CopyFrom(from);
878 }
879 return *this;
880 }
881
unknown_fields()882 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
883 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
884 }
mutable_unknown_fields()885 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
886 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
887 }
888
descriptor()889 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
890 return GetDescriptor();
891 }
GetDescriptor()892 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
893 return default_instance().GetMetadata().descriptor;
894 }
GetReflection()895 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
896 return default_instance().GetMetadata().reflection;
897 }
default_instance()898 static const FullScreenIntentLaunched& default_instance() {
899 return *internal_default_instance();
900 }
internal_default_instance()901 static inline const FullScreenIntentLaunched* internal_default_instance() {
902 return reinterpret_cast<const FullScreenIntentLaunched*>(
903 &_FullScreenIntentLaunched_default_instance_);
904 }
905 static constexpr int kIndexInFileMessages =
906 0;
907
swap(FullScreenIntentLaunched & a,FullScreenIntentLaunched & b)908 friend void swap(FullScreenIntentLaunched& a, FullScreenIntentLaunched& b) {
909 a.Swap(&b);
910 }
Swap(FullScreenIntentLaunched * other)911 inline void Swap(FullScreenIntentLaunched* other) {
912 if (other == this) return;
913 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
914 if (GetOwningArena() != nullptr &&
915 GetOwningArena() == other->GetOwningArena()) {
916 #else // PROTOBUF_FORCE_COPY_IN_SWAP
917 if (GetOwningArena() == other->GetOwningArena()) {
918 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
919 InternalSwap(other);
920 } else {
921 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
922 }
923 }
924 void UnsafeArenaSwap(FullScreenIntentLaunched* other) {
925 if (other == this) return;
926 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
927 InternalSwap(other);
928 }
929
930 // implements Message ----------------------------------------------
931
932 FullScreenIntentLaunched* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
933 return CreateMaybeMessage<FullScreenIntentLaunched>(arena);
934 }
935 FullScreenIntentLaunched* New() const {
936 return New(nullptr);
937 }
938 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
939 void CopyFrom(const FullScreenIntentLaunched& from);
940 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
941 void MergeFrom( const FullScreenIntentLaunched& from) {
942 FullScreenIntentLaunched::MergeImpl(*this, from);
943 }
944 private:
945 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
946 public:
947 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
948 bool IsInitialized() const final;
949
950 size_t ByteSizeLong() const final;
951 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
952 ::uint8_t* _InternalSerialize(
953 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
954 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
955
956 private:
957 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
958 void SharedDtor();
959 void SetCachedSize(int size) const final;
960 void InternalSwap(FullScreenIntentLaunched* other);
961
962 private:
963 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
964 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
965 return "android.os.statsd.framework.FullScreenIntentLaunched";
966 }
967 protected:
968 explicit FullScreenIntentLaunched(::PROTOBUF_NAMESPACE_ID::Arena* arena,
969 bool is_message_owned = false);
970 public:
971
972 static const ClassData _class_data_;
973 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
974
975 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
976
977 // nested types ----------------------------------------------------
978
979 // accessors -------------------------------------------------------
980
981 enum : int {
982 kActivityFieldNumber = 2,
983 kCreatorUidFieldNumber = 1,
984 };
985 // optional string activity = 2;
986 bool has_activity() const;
987 private:
988 bool _internal_has_activity() const;
989 public:
990 void clear_activity();
991 const std::string& activity() const;
992 template <typename ArgT0 = const std::string&, typename... ArgT>
993 void set_activity(ArgT0&& arg0, ArgT... args);
994 std::string* mutable_activity();
995 PROTOBUF_NODISCARD std::string* release_activity();
996 void set_allocated_activity(std::string* activity);
997 private:
998 const std::string& _internal_activity() const;
999 inline PROTOBUF_ALWAYS_INLINE void _internal_set_activity(const std::string& value);
1000 std::string* _internal_mutable_activity();
1001 public:
1002
1003 // optional int32 creator_uid = 1 [(.android.os.statsd.is_uid) = true];
1004 bool has_creator_uid() const;
1005 private:
1006 bool _internal_has_creator_uid() const;
1007 public:
1008 void clear_creator_uid();
1009 ::int32_t creator_uid() const;
1010 void set_creator_uid(::int32_t value);
1011 private:
1012 ::int32_t _internal_creator_uid() const;
1013 void _internal_set_creator_uid(::int32_t value);
1014 public:
1015
1016 // @@protoc_insertion_point(class_scope:android.os.statsd.framework.FullScreenIntentLaunched)
1017 private:
1018 class _Internal;
1019
1020 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
1021 typedef void InternalArenaConstructable_;
1022 typedef void DestructorSkippable_;
1023 struct Impl_ {
1024 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
1025 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
1026 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr activity_;
1027 ::int32_t creator_uid_;
1028 };
1029 union { Impl_ _impl_; };
1030 friend struct ::TableStruct_frameworks_2fproto_5flogging_2fstats_2fatoms_2fframework_2fframework_5fextension_5fatoms_2eproto;
1031 };
1032 // -------------------------------------------------------------------
1033
1034 class BalAllowed final :
1035 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:android.os.statsd.framework.BalAllowed) */ {
1036 public:
BalAllowed()1037 inline BalAllowed() : BalAllowed(nullptr) {}
1038 ~BalAllowed() override;
1039 explicit PROTOBUF_CONSTEXPR BalAllowed(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
1040
1041 BalAllowed(const BalAllowed& from);
BalAllowed(BalAllowed && from)1042 BalAllowed(BalAllowed&& from) noexcept
1043 : BalAllowed() {
1044 *this = ::std::move(from);
1045 }
1046
1047 inline BalAllowed& operator=(const BalAllowed& from) {
1048 if (this == &from) return *this;
1049 CopyFrom(from);
1050 return *this;
1051 }
1052 inline BalAllowed& operator=(BalAllowed&& from) noexcept {
1053 if (this == &from) return *this;
1054 if (GetOwningArena() == from.GetOwningArena()
1055 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
1056 && GetOwningArena() != nullptr
1057 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
1058 ) {
1059 InternalSwap(&from);
1060 } else {
1061 CopyFrom(from);
1062 }
1063 return *this;
1064 }
1065
unknown_fields()1066 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
1067 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
1068 }
mutable_unknown_fields()1069 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
1070 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
1071 }
1072
descriptor()1073 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
1074 return GetDescriptor();
1075 }
GetDescriptor()1076 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
1077 return default_instance().GetMetadata().descriptor;
1078 }
GetReflection()1079 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
1080 return default_instance().GetMetadata().reflection;
1081 }
default_instance()1082 static const BalAllowed& default_instance() {
1083 return *internal_default_instance();
1084 }
internal_default_instance()1085 static inline const BalAllowed* internal_default_instance() {
1086 return reinterpret_cast<const BalAllowed*>(
1087 &_BalAllowed_default_instance_);
1088 }
1089 static constexpr int kIndexInFileMessages =
1090 1;
1091
swap(BalAllowed & a,BalAllowed & b)1092 friend void swap(BalAllowed& a, BalAllowed& b) {
1093 a.Swap(&b);
1094 }
Swap(BalAllowed * other)1095 inline void Swap(BalAllowed* other) {
1096 if (other == this) return;
1097 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
1098 if (GetOwningArena() != nullptr &&
1099 GetOwningArena() == other->GetOwningArena()) {
1100 #else // PROTOBUF_FORCE_COPY_IN_SWAP
1101 if (GetOwningArena() == other->GetOwningArena()) {
1102 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
1103 InternalSwap(other);
1104 } else {
1105 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
1106 }
1107 }
1108 void UnsafeArenaSwap(BalAllowed* other) {
1109 if (other == this) return;
1110 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
1111 InternalSwap(other);
1112 }
1113
1114 // implements Message ----------------------------------------------
1115
1116 BalAllowed* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
1117 return CreateMaybeMessage<BalAllowed>(arena);
1118 }
1119 BalAllowed* New() const {
1120 return New(nullptr);
1121 }
1122 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
1123 void CopyFrom(const BalAllowed& from);
1124 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
1125 void MergeFrom( const BalAllowed& from) {
1126 BalAllowed::MergeImpl(*this, from);
1127 }
1128 private:
1129 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
1130 public:
1131 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
1132 bool IsInitialized() const final;
1133
1134 size_t ByteSizeLong() const final;
1135 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
1136 ::uint8_t* _InternalSerialize(
1137 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
1138 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
1139
1140 private:
1141 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
1142 void SharedDtor();
1143 void SetCachedSize(int size) const final;
1144 void InternalSwap(BalAllowed* other);
1145
1146 private:
1147 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
1148 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
1149 return "android.os.statsd.framework.BalAllowed";
1150 }
1151 protected:
1152 explicit BalAllowed(::PROTOBUF_NAMESPACE_ID::Arena* arena,
1153 bool is_message_owned = false);
1154 public:
1155
1156 static const ClassData _class_data_;
1157 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
1158
1159 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
1160
1161 // nested types ----------------------------------------------------
1162
1163 typedef BalAllowed_Status Status;
1164 static constexpr Status BAL_STATUS_UNKNOWN =
1165 BalAllowed_Status_BAL_STATUS_UNKNOWN;
1166 static constexpr Status BAL_ALLOW_DEFAULT =
1167 BalAllowed_Status_BAL_ALLOW_DEFAULT;
1168 static constexpr Status BAL_ALLOW_ALLOWLISTED_UID =
1169 BalAllowed_Status_BAL_ALLOW_ALLOWLISTED_UID;
1170 static constexpr Status BAL_ALLOW_ALLOWLISTED_COMPONENT =
1171 BalAllowed_Status_BAL_ALLOW_ALLOWLISTED_COMPONENT;
1172 static constexpr Status BAL_ALLOW_VISIBLE_WINDOW =
1173 BalAllowed_Status_BAL_ALLOW_VISIBLE_WINDOW;
1174 static constexpr Status BAL_ALLOW_PENDING_INTENT =
1175 BalAllowed_Status_BAL_ALLOW_PENDING_INTENT;
1176 static constexpr Status BAL_ALLOW_BAL_PERMISSION =
1177 BalAllowed_Status_BAL_ALLOW_BAL_PERMISSION;
1178 static constexpr Status BAL_ALLOW_SAW_PERMISSION =
1179 BalAllowed_Status_BAL_ALLOW_SAW_PERMISSION;
1180 static constexpr Status BAL_ALLOW_GRACE_PERIOD =
1181 BalAllowed_Status_BAL_ALLOW_GRACE_PERIOD;
1182 static constexpr Status BAL_ALLOW_FOREGROUND =
1183 BalAllowed_Status_BAL_ALLOW_FOREGROUND;
1184 static constexpr Status BAL_ALLOW_SDK_SANDBOX =
1185 BalAllowed_Status_BAL_ALLOW_SDK_SANDBOX;
1186 static constexpr Status BAL_ALLOW_NON_APP_VISIBLE_WINDOW =
1187 BalAllowed_Status_BAL_ALLOW_NON_APP_VISIBLE_WINDOW;
1188 static constexpr Status BAL_ALLOW_TOKEN =
1189 BalAllowed_Status_BAL_ALLOW_TOKEN;
1190 static constexpr Status BAL_ALLOW_BOUND_BY_FOREGROUND =
1191 BalAllowed_Status_BAL_ALLOW_BOUND_BY_FOREGROUND;
1192 static constexpr Status BAL_BLOCKED =
1193 BalAllowed_Status_BAL_BLOCKED;
1194 static inline bool Status_IsValid(int value) {
1195 return BalAllowed_Status_IsValid(value);
1196 }
1197 static constexpr Status Status_MIN =
1198 BalAllowed_Status_Status_MIN;
1199 static constexpr Status Status_MAX =
1200 BalAllowed_Status_Status_MAX;
1201 static constexpr int Status_ARRAYSIZE =
1202 BalAllowed_Status_Status_ARRAYSIZE;
1203 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
1204 Status_descriptor() {
1205 return BalAllowed_Status_descriptor();
1206 }
1207 template<typename T>
1208 static inline const std::string& Status_Name(T enum_t_value) {
1209 static_assert(::std::is_same<T, Status>::value ||
1210 ::std::is_integral<T>::value,
1211 "Incorrect type passed to function Status_Name.");
1212 return BalAllowed_Status_Name(enum_t_value);
1213 }
1214 static inline bool Status_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
1215 Status* value) {
1216 return BalAllowed_Status_Parse(name, value);
1217 }
1218
1219 // accessors -------------------------------------------------------
1220
1221 enum : int {
1222 kTargetActivityFieldNumber = 1,
1223 kAllowedReasonFieldNumber = 2,
1224 kCallingUidFieldNumber = 3,
1225 kRealCallingUidFieldNumber = 4,
1226 kCallerAllowedReasonFieldNumber = 5,
1227 kRealCallerAllowedReasonFieldNumber = 8,
1228 kCallerOptInFieldNumber = 6,
1229 kCallerOptInExplicitFieldNumber = 7,
1230 kRealCallerOptInFieldNumber = 9,
1231 kRealCallerOptInExplicitFieldNumber = 10,
1232 kCallerTargetSdkFieldNumber = 11,
1233 kRealCallerTargetSdkFieldNumber = 12,
1234 };
1235 // optional string target_activity = 1;
1236 bool has_target_activity() const;
1237 private:
1238 bool _internal_has_target_activity() const;
1239 public:
1240 void clear_target_activity();
1241 const std::string& target_activity() const;
1242 template <typename ArgT0 = const std::string&, typename... ArgT>
1243 void set_target_activity(ArgT0&& arg0, ArgT... args);
1244 std::string* mutable_target_activity();
1245 PROTOBUF_NODISCARD std::string* release_target_activity();
1246 void set_allocated_target_activity(std::string* target_activity);
1247 private:
1248 const std::string& _internal_target_activity() const;
1249 inline PROTOBUF_ALWAYS_INLINE void _internal_set_target_activity(const std::string& value);
1250 std::string* _internal_mutable_target_activity();
1251 public:
1252
1253 // optional .android.os.statsd.framework.BalAllowed.Status allowed_reason = 2;
1254 bool has_allowed_reason() const;
1255 private:
1256 bool _internal_has_allowed_reason() const;
1257 public:
1258 void clear_allowed_reason();
1259 ::android::os::statsd::framework::BalAllowed_Status allowed_reason() const;
1260 void set_allowed_reason(::android::os::statsd::framework::BalAllowed_Status value);
1261 private:
1262 ::android::os::statsd::framework::BalAllowed_Status _internal_allowed_reason() const;
1263 void _internal_set_allowed_reason(::android::os::statsd::framework::BalAllowed_Status value);
1264 public:
1265
1266 // optional int32 calling_uid = 3 [(.android.os.statsd.is_uid) = true];
1267 bool has_calling_uid() const;
1268 private:
1269 bool _internal_has_calling_uid() const;
1270 public:
1271 void clear_calling_uid();
1272 ::int32_t calling_uid() const;
1273 void set_calling_uid(::int32_t value);
1274 private:
1275 ::int32_t _internal_calling_uid() const;
1276 void _internal_set_calling_uid(::int32_t value);
1277 public:
1278
1279 // optional int32 real_calling_uid = 4 [(.android.os.statsd.is_uid) = true];
1280 bool has_real_calling_uid() const;
1281 private:
1282 bool _internal_has_real_calling_uid() const;
1283 public:
1284 void clear_real_calling_uid();
1285 ::int32_t real_calling_uid() const;
1286 void set_real_calling_uid(::int32_t value);
1287 private:
1288 ::int32_t _internal_real_calling_uid() const;
1289 void _internal_set_real_calling_uid(::int32_t value);
1290 public:
1291
1292 // optional .android.os.statsd.framework.BalAllowed.Status caller_allowed_reason = 5;
1293 bool has_caller_allowed_reason() const;
1294 private:
1295 bool _internal_has_caller_allowed_reason() const;
1296 public:
1297 void clear_caller_allowed_reason();
1298 ::android::os::statsd::framework::BalAllowed_Status caller_allowed_reason() const;
1299 void set_caller_allowed_reason(::android::os::statsd::framework::BalAllowed_Status value);
1300 private:
1301 ::android::os::statsd::framework::BalAllowed_Status _internal_caller_allowed_reason() const;
1302 void _internal_set_caller_allowed_reason(::android::os::statsd::framework::BalAllowed_Status value);
1303 public:
1304
1305 // optional .android.os.statsd.framework.BalAllowed.Status real_caller_allowed_reason = 8;
1306 bool has_real_caller_allowed_reason() const;
1307 private:
1308 bool _internal_has_real_caller_allowed_reason() const;
1309 public:
1310 void clear_real_caller_allowed_reason();
1311 ::android::os::statsd::framework::BalAllowed_Status real_caller_allowed_reason() const;
1312 void set_real_caller_allowed_reason(::android::os::statsd::framework::BalAllowed_Status value);
1313 private:
1314 ::android::os::statsd::framework::BalAllowed_Status _internal_real_caller_allowed_reason() const;
1315 void _internal_set_real_caller_allowed_reason(::android::os::statsd::framework::BalAllowed_Status value);
1316 public:
1317
1318 // optional bool caller_opt_in = 6;
1319 bool has_caller_opt_in() const;
1320 private:
1321 bool _internal_has_caller_opt_in() const;
1322 public:
1323 void clear_caller_opt_in();
1324 bool caller_opt_in() const;
1325 void set_caller_opt_in(bool value);
1326 private:
1327 bool _internal_caller_opt_in() const;
1328 void _internal_set_caller_opt_in(bool value);
1329 public:
1330
1331 // optional bool caller_opt_in_explicit = 7;
1332 bool has_caller_opt_in_explicit() const;
1333 private:
1334 bool _internal_has_caller_opt_in_explicit() const;
1335 public:
1336 void clear_caller_opt_in_explicit();
1337 bool caller_opt_in_explicit() const;
1338 void set_caller_opt_in_explicit(bool value);
1339 private:
1340 bool _internal_caller_opt_in_explicit() const;
1341 void _internal_set_caller_opt_in_explicit(bool value);
1342 public:
1343
1344 // optional bool real_caller_opt_in = 9;
1345 bool has_real_caller_opt_in() const;
1346 private:
1347 bool _internal_has_real_caller_opt_in() const;
1348 public:
1349 void clear_real_caller_opt_in();
1350 bool real_caller_opt_in() const;
1351 void set_real_caller_opt_in(bool value);
1352 private:
1353 bool _internal_real_caller_opt_in() const;
1354 void _internal_set_real_caller_opt_in(bool value);
1355 public:
1356
1357 // optional bool real_caller_opt_in_explicit = 10;
1358 bool has_real_caller_opt_in_explicit() const;
1359 private:
1360 bool _internal_has_real_caller_opt_in_explicit() const;
1361 public:
1362 void clear_real_caller_opt_in_explicit();
1363 bool real_caller_opt_in_explicit() const;
1364 void set_real_caller_opt_in_explicit(bool value);
1365 private:
1366 bool _internal_real_caller_opt_in_explicit() const;
1367 void _internal_set_real_caller_opt_in_explicit(bool value);
1368 public:
1369
1370 // optional int32 caller_target_sdk = 11;
1371 bool has_caller_target_sdk() const;
1372 private:
1373 bool _internal_has_caller_target_sdk() const;
1374 public:
1375 void clear_caller_target_sdk();
1376 ::int32_t caller_target_sdk() const;
1377 void set_caller_target_sdk(::int32_t value);
1378 private:
1379 ::int32_t _internal_caller_target_sdk() const;
1380 void _internal_set_caller_target_sdk(::int32_t value);
1381 public:
1382
1383 // optional int32 real_caller_target_sdk = 12;
1384 bool has_real_caller_target_sdk() const;
1385 private:
1386 bool _internal_has_real_caller_target_sdk() const;
1387 public:
1388 void clear_real_caller_target_sdk();
1389 ::int32_t real_caller_target_sdk() const;
1390 void set_real_caller_target_sdk(::int32_t value);
1391 private:
1392 ::int32_t _internal_real_caller_target_sdk() const;
1393 void _internal_set_real_caller_target_sdk(::int32_t value);
1394 public:
1395
1396 // @@protoc_insertion_point(class_scope:android.os.statsd.framework.BalAllowed)
1397 private:
1398 class _Internal;
1399
1400 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
1401 typedef void InternalArenaConstructable_;
1402 typedef void DestructorSkippable_;
1403 struct Impl_ {
1404 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
1405 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
1406 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr target_activity_;
1407 int allowed_reason_;
1408 ::int32_t calling_uid_;
1409 ::int32_t real_calling_uid_;
1410 int caller_allowed_reason_;
1411 int real_caller_allowed_reason_;
1412 bool caller_opt_in_;
1413 bool caller_opt_in_explicit_;
1414 bool real_caller_opt_in_;
1415 bool real_caller_opt_in_explicit_;
1416 ::int32_t caller_target_sdk_;
1417 ::int32_t real_caller_target_sdk_;
1418 };
1419 union { Impl_ _impl_; };
1420 friend struct ::TableStruct_frameworks_2fproto_5flogging_2fstats_2fatoms_2fframework_2fframework_5fextension_5fatoms_2eproto;
1421 };
1422 // -------------------------------------------------------------------
1423
1424 class InTaskActivityStarted final :
1425 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:android.os.statsd.framework.InTaskActivityStarted) */ {
1426 public:
InTaskActivityStarted()1427 inline InTaskActivityStarted() : InTaskActivityStarted(nullptr) {}
1428 ~InTaskActivityStarted() override;
1429 explicit PROTOBUF_CONSTEXPR InTaskActivityStarted(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
1430
1431 InTaskActivityStarted(const InTaskActivityStarted& from);
InTaskActivityStarted(InTaskActivityStarted && from)1432 InTaskActivityStarted(InTaskActivityStarted&& from) noexcept
1433 : InTaskActivityStarted() {
1434 *this = ::std::move(from);
1435 }
1436
1437 inline InTaskActivityStarted& operator=(const InTaskActivityStarted& from) {
1438 if (this == &from) return *this;
1439 CopyFrom(from);
1440 return *this;
1441 }
1442 inline InTaskActivityStarted& operator=(InTaskActivityStarted&& from) noexcept {
1443 if (this == &from) return *this;
1444 if (GetOwningArena() == from.GetOwningArena()
1445 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
1446 && GetOwningArena() != nullptr
1447 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
1448 ) {
1449 InternalSwap(&from);
1450 } else {
1451 CopyFrom(from);
1452 }
1453 return *this;
1454 }
1455
unknown_fields()1456 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
1457 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
1458 }
mutable_unknown_fields()1459 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
1460 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
1461 }
1462
descriptor()1463 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
1464 return GetDescriptor();
1465 }
GetDescriptor()1466 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
1467 return default_instance().GetMetadata().descriptor;
1468 }
GetReflection()1469 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
1470 return default_instance().GetMetadata().reflection;
1471 }
default_instance()1472 static const InTaskActivityStarted& default_instance() {
1473 return *internal_default_instance();
1474 }
internal_default_instance()1475 static inline const InTaskActivityStarted* internal_default_instance() {
1476 return reinterpret_cast<const InTaskActivityStarted*>(
1477 &_InTaskActivityStarted_default_instance_);
1478 }
1479 static constexpr int kIndexInFileMessages =
1480 2;
1481
swap(InTaskActivityStarted & a,InTaskActivityStarted & b)1482 friend void swap(InTaskActivityStarted& a, InTaskActivityStarted& b) {
1483 a.Swap(&b);
1484 }
Swap(InTaskActivityStarted * other)1485 inline void Swap(InTaskActivityStarted* other) {
1486 if (other == this) return;
1487 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
1488 if (GetOwningArena() != nullptr &&
1489 GetOwningArena() == other->GetOwningArena()) {
1490 #else // PROTOBUF_FORCE_COPY_IN_SWAP
1491 if (GetOwningArena() == other->GetOwningArena()) {
1492 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
1493 InternalSwap(other);
1494 } else {
1495 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
1496 }
1497 }
1498 void UnsafeArenaSwap(InTaskActivityStarted* other) {
1499 if (other == this) return;
1500 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
1501 InternalSwap(other);
1502 }
1503
1504 // implements Message ----------------------------------------------
1505
1506 InTaskActivityStarted* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
1507 return CreateMaybeMessage<InTaskActivityStarted>(arena);
1508 }
1509 InTaskActivityStarted* New() const {
1510 return New(nullptr);
1511 }
1512 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
1513 void CopyFrom(const InTaskActivityStarted& from);
1514 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
1515 void MergeFrom( const InTaskActivityStarted& from) {
1516 InTaskActivityStarted::MergeImpl(*this, from);
1517 }
1518 private:
1519 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
1520 public:
1521 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
1522 bool IsInitialized() const final;
1523
1524 size_t ByteSizeLong() const final;
1525 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
1526 ::uint8_t* _InternalSerialize(
1527 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
1528 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
1529
1530 private:
1531 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
1532 void SharedDtor();
1533 void SetCachedSize(int size) const final;
1534 void InternalSwap(InTaskActivityStarted* other);
1535
1536 private:
1537 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
1538 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
1539 return "android.os.statsd.framework.InTaskActivityStarted";
1540 }
1541 protected:
1542 explicit InTaskActivityStarted(::PROTOBUF_NAMESPACE_ID::Arena* arena,
1543 bool is_message_owned = false);
1544 public:
1545
1546 static const ClassData _class_data_;
1547 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
1548
1549 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
1550
1551 // nested types ----------------------------------------------------
1552
1553 typedef InTaskActivityStarted_TransitionType TransitionType;
1554 static constexpr TransitionType UNKNOWN =
1555 InTaskActivityStarted_TransitionType_UNKNOWN;
1556 static constexpr TransitionType WARM =
1557 InTaskActivityStarted_TransitionType_WARM;
1558 static constexpr TransitionType HOT =
1559 InTaskActivityStarted_TransitionType_HOT;
1560 static constexpr TransitionType COLD =
1561 InTaskActivityStarted_TransitionType_COLD;
1562 static constexpr TransitionType RELAUNCH =
1563 InTaskActivityStarted_TransitionType_RELAUNCH;
1564 static inline bool TransitionType_IsValid(int value) {
1565 return InTaskActivityStarted_TransitionType_IsValid(value);
1566 }
1567 static constexpr TransitionType TransitionType_MIN =
1568 InTaskActivityStarted_TransitionType_TransitionType_MIN;
1569 static constexpr TransitionType TransitionType_MAX =
1570 InTaskActivityStarted_TransitionType_TransitionType_MAX;
1571 static constexpr int TransitionType_ARRAYSIZE =
1572 InTaskActivityStarted_TransitionType_TransitionType_ARRAYSIZE;
1573 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
1574 TransitionType_descriptor() {
1575 return InTaskActivityStarted_TransitionType_descriptor();
1576 }
1577 template<typename T>
1578 static inline const std::string& TransitionType_Name(T enum_t_value) {
1579 static_assert(::std::is_same<T, TransitionType>::value ||
1580 ::std::is_integral<T>::value,
1581 "Incorrect type passed to function TransitionType_Name.");
1582 return InTaskActivityStarted_TransitionType_Name(enum_t_value);
1583 }
1584 static inline bool TransitionType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
1585 TransitionType* value) {
1586 return InTaskActivityStarted_TransitionType_Parse(name, value);
1587 }
1588
1589 // accessors -------------------------------------------------------
1590
1591 enum : int {
1592 kUidFieldNumber = 1,
1593 kTypeFieldNumber = 2,
1594 kIsOpaqueFieldNumber = 3,
1595 kTransitionDelayMillisFieldNumber = 4,
1596 kActivityStartTimestampMillisFieldNumber = 6,
1597 kWindowsDrawnDelayMillisFieldNumber = 5,
1598 };
1599 // optional int32 uid = 1 [(.android.os.statsd.is_uid) = true];
1600 bool has_uid() const;
1601 private:
1602 bool _internal_has_uid() const;
1603 public:
1604 void clear_uid();
1605 ::int32_t uid() const;
1606 void set_uid(::int32_t value);
1607 private:
1608 ::int32_t _internal_uid() const;
1609 void _internal_set_uid(::int32_t value);
1610 public:
1611
1612 // optional .android.os.statsd.framework.InTaskActivityStarted.TransitionType type = 2;
1613 bool has_type() const;
1614 private:
1615 bool _internal_has_type() const;
1616 public:
1617 void clear_type();
1618 ::android::os::statsd::framework::InTaskActivityStarted_TransitionType type() const;
1619 void set_type(::android::os::statsd::framework::InTaskActivityStarted_TransitionType value);
1620 private:
1621 ::android::os::statsd::framework::InTaskActivityStarted_TransitionType _internal_type() const;
1622 void _internal_set_type(::android::os::statsd::framework::InTaskActivityStarted_TransitionType value);
1623 public:
1624
1625 // optional bool is_opaque = 3;
1626 bool has_is_opaque() const;
1627 private:
1628 bool _internal_has_is_opaque() const;
1629 public:
1630 void clear_is_opaque();
1631 bool is_opaque() const;
1632 void set_is_opaque(bool value);
1633 private:
1634 bool _internal_is_opaque() const;
1635 void _internal_set_is_opaque(bool value);
1636 public:
1637
1638 // optional int32 transition_delay_millis = 4;
1639 bool has_transition_delay_millis() const;
1640 private:
1641 bool _internal_has_transition_delay_millis() const;
1642 public:
1643 void clear_transition_delay_millis();
1644 ::int32_t transition_delay_millis() const;
1645 void set_transition_delay_millis(::int32_t value);
1646 private:
1647 ::int32_t _internal_transition_delay_millis() const;
1648 void _internal_set_transition_delay_millis(::int32_t value);
1649 public:
1650
1651 // optional int64 activity_start_timestamp_millis = 6;
1652 bool has_activity_start_timestamp_millis() const;
1653 private:
1654 bool _internal_has_activity_start_timestamp_millis() const;
1655 public:
1656 void clear_activity_start_timestamp_millis();
1657 ::int64_t activity_start_timestamp_millis() const;
1658 void set_activity_start_timestamp_millis(::int64_t value);
1659 private:
1660 ::int64_t _internal_activity_start_timestamp_millis() const;
1661 void _internal_set_activity_start_timestamp_millis(::int64_t value);
1662 public:
1663
1664 // optional int32 windows_drawn_delay_millis = 5;
1665 bool has_windows_drawn_delay_millis() const;
1666 private:
1667 bool _internal_has_windows_drawn_delay_millis() const;
1668 public:
1669 void clear_windows_drawn_delay_millis();
1670 ::int32_t windows_drawn_delay_millis() const;
1671 void set_windows_drawn_delay_millis(::int32_t value);
1672 private:
1673 ::int32_t _internal_windows_drawn_delay_millis() const;
1674 void _internal_set_windows_drawn_delay_millis(::int32_t value);
1675 public:
1676
1677 // @@protoc_insertion_point(class_scope:android.os.statsd.framework.InTaskActivityStarted)
1678 private:
1679 class _Internal;
1680
1681 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
1682 typedef void InternalArenaConstructable_;
1683 typedef void DestructorSkippable_;
1684 struct Impl_ {
1685 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
1686 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
1687 ::int32_t uid_;
1688 int type_;
1689 bool is_opaque_;
1690 ::int32_t transition_delay_millis_;
1691 ::int64_t activity_start_timestamp_millis_;
1692 ::int32_t windows_drawn_delay_millis_;
1693 };
1694 union { Impl_ _impl_; };
1695 friend struct ::TableStruct_frameworks_2fproto_5flogging_2fstats_2fatoms_2fframework_2fframework_5fextension_5fatoms_2eproto;
1696 };
1697 // -------------------------------------------------------------------
1698
1699 class DeviceOrientationChanged final :
1700 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:android.os.statsd.framework.DeviceOrientationChanged) */ {
1701 public:
DeviceOrientationChanged()1702 inline DeviceOrientationChanged() : DeviceOrientationChanged(nullptr) {}
1703 ~DeviceOrientationChanged() override;
1704 explicit PROTOBUF_CONSTEXPR DeviceOrientationChanged(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
1705
1706 DeviceOrientationChanged(const DeviceOrientationChanged& from);
DeviceOrientationChanged(DeviceOrientationChanged && from)1707 DeviceOrientationChanged(DeviceOrientationChanged&& from) noexcept
1708 : DeviceOrientationChanged() {
1709 *this = ::std::move(from);
1710 }
1711
1712 inline DeviceOrientationChanged& operator=(const DeviceOrientationChanged& from) {
1713 if (this == &from) return *this;
1714 CopyFrom(from);
1715 return *this;
1716 }
1717 inline DeviceOrientationChanged& operator=(DeviceOrientationChanged&& from) noexcept {
1718 if (this == &from) return *this;
1719 if (GetOwningArena() == from.GetOwningArena()
1720 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
1721 && GetOwningArena() != nullptr
1722 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
1723 ) {
1724 InternalSwap(&from);
1725 } else {
1726 CopyFrom(from);
1727 }
1728 return *this;
1729 }
1730
unknown_fields()1731 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
1732 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
1733 }
mutable_unknown_fields()1734 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
1735 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
1736 }
1737
descriptor()1738 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
1739 return GetDescriptor();
1740 }
GetDescriptor()1741 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
1742 return default_instance().GetMetadata().descriptor;
1743 }
GetReflection()1744 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
1745 return default_instance().GetMetadata().reflection;
1746 }
default_instance()1747 static const DeviceOrientationChanged& default_instance() {
1748 return *internal_default_instance();
1749 }
internal_default_instance()1750 static inline const DeviceOrientationChanged* internal_default_instance() {
1751 return reinterpret_cast<const DeviceOrientationChanged*>(
1752 &_DeviceOrientationChanged_default_instance_);
1753 }
1754 static constexpr int kIndexInFileMessages =
1755 3;
1756
swap(DeviceOrientationChanged & a,DeviceOrientationChanged & b)1757 friend void swap(DeviceOrientationChanged& a, DeviceOrientationChanged& b) {
1758 a.Swap(&b);
1759 }
Swap(DeviceOrientationChanged * other)1760 inline void Swap(DeviceOrientationChanged* other) {
1761 if (other == this) return;
1762 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
1763 if (GetOwningArena() != nullptr &&
1764 GetOwningArena() == other->GetOwningArena()) {
1765 #else // PROTOBUF_FORCE_COPY_IN_SWAP
1766 if (GetOwningArena() == other->GetOwningArena()) {
1767 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
1768 InternalSwap(other);
1769 } else {
1770 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
1771 }
1772 }
1773 void UnsafeArenaSwap(DeviceOrientationChanged* other) {
1774 if (other == this) return;
1775 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
1776 InternalSwap(other);
1777 }
1778
1779 // implements Message ----------------------------------------------
1780
1781 DeviceOrientationChanged* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
1782 return CreateMaybeMessage<DeviceOrientationChanged>(arena);
1783 }
1784 DeviceOrientationChanged* New() const {
1785 return New(nullptr);
1786 }
1787 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
1788 void CopyFrom(const DeviceOrientationChanged& from);
1789 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
1790 void MergeFrom( const DeviceOrientationChanged& from) {
1791 DeviceOrientationChanged::MergeImpl(*this, from);
1792 }
1793 private:
1794 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
1795 public:
1796 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
1797 bool IsInitialized() const final;
1798
1799 size_t ByteSizeLong() const final;
1800 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
1801 ::uint8_t* _InternalSerialize(
1802 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
1803 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
1804
1805 private:
1806 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
1807 void SharedDtor();
1808 void SetCachedSize(int size) const final;
1809 void InternalSwap(DeviceOrientationChanged* other);
1810
1811 private:
1812 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
1813 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
1814 return "android.os.statsd.framework.DeviceOrientationChanged";
1815 }
1816 protected:
1817 explicit DeviceOrientationChanged(::PROTOBUF_NAMESPACE_ID::Arena* arena,
1818 bool is_message_owned = false);
1819 public:
1820
1821 static const ClassData _class_data_;
1822 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
1823
1824 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
1825
1826 // nested types ----------------------------------------------------
1827
1828 typedef DeviceOrientationChanged_Orientation Orientation;
1829 static constexpr Orientation UNDEFINED =
1830 DeviceOrientationChanged_Orientation_UNDEFINED;
1831 static constexpr Orientation PORTRAIT =
1832 DeviceOrientationChanged_Orientation_PORTRAIT;
1833 static constexpr Orientation LANDSCAPE =
1834 DeviceOrientationChanged_Orientation_LANDSCAPE;
1835 static inline bool Orientation_IsValid(int value) {
1836 return DeviceOrientationChanged_Orientation_IsValid(value);
1837 }
1838 static constexpr Orientation Orientation_MIN =
1839 DeviceOrientationChanged_Orientation_Orientation_MIN;
1840 static constexpr Orientation Orientation_MAX =
1841 DeviceOrientationChanged_Orientation_Orientation_MAX;
1842 static constexpr int Orientation_ARRAYSIZE =
1843 DeviceOrientationChanged_Orientation_Orientation_ARRAYSIZE;
1844 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
1845 Orientation_descriptor() {
1846 return DeviceOrientationChanged_Orientation_descriptor();
1847 }
1848 template<typename T>
1849 static inline const std::string& Orientation_Name(T enum_t_value) {
1850 static_assert(::std::is_same<T, Orientation>::value ||
1851 ::std::is_integral<T>::value,
1852 "Incorrect type passed to function Orientation_Name.");
1853 return DeviceOrientationChanged_Orientation_Name(enum_t_value);
1854 }
1855 static inline bool Orientation_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
1856 Orientation* value) {
1857 return DeviceOrientationChanged_Orientation_Parse(name, value);
1858 }
1859
1860 // accessors -------------------------------------------------------
1861
1862 enum : int {
1863 kOrientationFieldNumber = 1,
1864 };
1865 // optional .android.os.statsd.framework.DeviceOrientationChanged.Orientation orientation = 1 [(.android.os.statsd.state_field_option) = {
1866 bool has_orientation() const;
1867 private:
1868 bool _internal_has_orientation() const;
1869 public:
1870 void clear_orientation();
1871 ::android::os::statsd::framework::DeviceOrientationChanged_Orientation orientation() const;
1872 void set_orientation(::android::os::statsd::framework::DeviceOrientationChanged_Orientation value);
1873 private:
1874 ::android::os::statsd::framework::DeviceOrientationChanged_Orientation _internal_orientation() const;
1875 void _internal_set_orientation(::android::os::statsd::framework::DeviceOrientationChanged_Orientation value);
1876 public:
1877
1878 // @@protoc_insertion_point(class_scope:android.os.statsd.framework.DeviceOrientationChanged)
1879 private:
1880 class _Internal;
1881
1882 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
1883 typedef void InternalArenaConstructable_;
1884 typedef void DestructorSkippable_;
1885 struct Impl_ {
1886 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
1887 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
1888 int orientation_;
1889 };
1890 union { Impl_ _impl_; };
1891 friend struct ::TableStruct_frameworks_2fproto_5flogging_2fstats_2fatoms_2fframework_2fframework_5fextension_5fatoms_2eproto;
1892 };
1893 // -------------------------------------------------------------------
1894
1895 class CachedAppsHighWaterMark final :
1896 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:android.os.statsd.framework.CachedAppsHighWaterMark) */ {
1897 public:
CachedAppsHighWaterMark()1898 inline CachedAppsHighWaterMark() : CachedAppsHighWaterMark(nullptr) {}
1899 ~CachedAppsHighWaterMark() override;
1900 explicit PROTOBUF_CONSTEXPR CachedAppsHighWaterMark(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
1901
1902 CachedAppsHighWaterMark(const CachedAppsHighWaterMark& from);
CachedAppsHighWaterMark(CachedAppsHighWaterMark && from)1903 CachedAppsHighWaterMark(CachedAppsHighWaterMark&& from) noexcept
1904 : CachedAppsHighWaterMark() {
1905 *this = ::std::move(from);
1906 }
1907
1908 inline CachedAppsHighWaterMark& operator=(const CachedAppsHighWaterMark& from) {
1909 if (this == &from) return *this;
1910 CopyFrom(from);
1911 return *this;
1912 }
1913 inline CachedAppsHighWaterMark& operator=(CachedAppsHighWaterMark&& from) noexcept {
1914 if (this == &from) return *this;
1915 if (GetOwningArena() == from.GetOwningArena()
1916 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
1917 && GetOwningArena() != nullptr
1918 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
1919 ) {
1920 InternalSwap(&from);
1921 } else {
1922 CopyFrom(from);
1923 }
1924 return *this;
1925 }
1926
unknown_fields()1927 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
1928 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
1929 }
mutable_unknown_fields()1930 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
1931 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
1932 }
1933
descriptor()1934 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
1935 return GetDescriptor();
1936 }
GetDescriptor()1937 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
1938 return default_instance().GetMetadata().descriptor;
1939 }
GetReflection()1940 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
1941 return default_instance().GetMetadata().reflection;
1942 }
default_instance()1943 static const CachedAppsHighWaterMark& default_instance() {
1944 return *internal_default_instance();
1945 }
internal_default_instance()1946 static inline const CachedAppsHighWaterMark* internal_default_instance() {
1947 return reinterpret_cast<const CachedAppsHighWaterMark*>(
1948 &_CachedAppsHighWaterMark_default_instance_);
1949 }
1950 static constexpr int kIndexInFileMessages =
1951 4;
1952
swap(CachedAppsHighWaterMark & a,CachedAppsHighWaterMark & b)1953 friend void swap(CachedAppsHighWaterMark& a, CachedAppsHighWaterMark& b) {
1954 a.Swap(&b);
1955 }
Swap(CachedAppsHighWaterMark * other)1956 inline void Swap(CachedAppsHighWaterMark* other) {
1957 if (other == this) return;
1958 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
1959 if (GetOwningArena() != nullptr &&
1960 GetOwningArena() == other->GetOwningArena()) {
1961 #else // PROTOBUF_FORCE_COPY_IN_SWAP
1962 if (GetOwningArena() == other->GetOwningArena()) {
1963 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
1964 InternalSwap(other);
1965 } else {
1966 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
1967 }
1968 }
1969 void UnsafeArenaSwap(CachedAppsHighWaterMark* other) {
1970 if (other == this) return;
1971 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
1972 InternalSwap(other);
1973 }
1974
1975 // implements Message ----------------------------------------------
1976
1977 CachedAppsHighWaterMark* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
1978 return CreateMaybeMessage<CachedAppsHighWaterMark>(arena);
1979 }
1980 CachedAppsHighWaterMark* New() const {
1981 return New(nullptr);
1982 }
1983 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
1984 void CopyFrom(const CachedAppsHighWaterMark& from);
1985 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
1986 void MergeFrom( const CachedAppsHighWaterMark& from) {
1987 CachedAppsHighWaterMark::MergeImpl(*this, from);
1988 }
1989 private:
1990 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
1991 public:
1992 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
1993 bool IsInitialized() const final;
1994
1995 size_t ByteSizeLong() const final;
1996 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
1997 ::uint8_t* _InternalSerialize(
1998 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
1999 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
2000
2001 private:
2002 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
2003 void SharedDtor();
2004 void SetCachedSize(int size) const final;
2005 void InternalSwap(CachedAppsHighWaterMark* other);
2006
2007 private:
2008 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
2009 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
2010 return "android.os.statsd.framework.CachedAppsHighWaterMark";
2011 }
2012 protected:
2013 explicit CachedAppsHighWaterMark(::PROTOBUF_NAMESPACE_ID::Arena* arena,
2014 bool is_message_owned = false);
2015 public:
2016
2017 static const ClassData _class_data_;
2018 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
2019
2020 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
2021
2022 // nested types ----------------------------------------------------
2023
2024 // accessors -------------------------------------------------------
2025
2026 enum : int {
2027 kCachedAppHighWatermarkFieldNumber = 1,
2028 kUptimeInSecondsFieldNumber = 2,
2029 kBinderProxySnapshotFieldNumber = 3,
2030 kFreeInKbFieldNumber = 4,
2031 kCachedInKbFieldNumber = 5,
2032 kZramInKbFieldNumber = 6,
2033 kKernelInKbFieldNumber = 7,
2034 kNumFrozenAppsFieldNumber = 8,
2035 kLongestFrozenTimeInSecondsFieldNumber = 9,
2036 kShortestFrozenTimeInSecondsFieldNumber = 10,
2037 kMeanFrozenTimeInSecondsFieldNumber = 11,
2038 kAverageFrozenTimeInSecondsFieldNumber = 12,
2039 };
2040 // optional int32 cached_app_high_watermark = 1;
2041 bool has_cached_app_high_watermark() const;
2042 private:
2043 bool _internal_has_cached_app_high_watermark() const;
2044 public:
2045 void clear_cached_app_high_watermark();
2046 ::int32_t cached_app_high_watermark() const;
2047 void set_cached_app_high_watermark(::int32_t value);
2048 private:
2049 ::int32_t _internal_cached_app_high_watermark() const;
2050 void _internal_set_cached_app_high_watermark(::int32_t value);
2051 public:
2052
2053 // optional int32 uptime_in_seconds = 2;
2054 bool has_uptime_in_seconds() const;
2055 private:
2056 bool _internal_has_uptime_in_seconds() const;
2057 public:
2058 void clear_uptime_in_seconds();
2059 ::int32_t uptime_in_seconds() const;
2060 void set_uptime_in_seconds(::int32_t value);
2061 private:
2062 ::int32_t _internal_uptime_in_seconds() const;
2063 void _internal_set_uptime_in_seconds(::int32_t value);
2064 public:
2065
2066 // optional int32 binder_proxy_snapshot = 3;
2067 bool has_binder_proxy_snapshot() const;
2068 private:
2069 bool _internal_has_binder_proxy_snapshot() const;
2070 public:
2071 void clear_binder_proxy_snapshot();
2072 ::int32_t binder_proxy_snapshot() const;
2073 void set_binder_proxy_snapshot(::int32_t value);
2074 private:
2075 ::int32_t _internal_binder_proxy_snapshot() const;
2076 void _internal_set_binder_proxy_snapshot(::int32_t value);
2077 public:
2078
2079 // optional int32 free_in_kb = 4;
2080 bool has_free_in_kb() const;
2081 private:
2082 bool _internal_has_free_in_kb() const;
2083 public:
2084 void clear_free_in_kb();
2085 ::int32_t free_in_kb() const;
2086 void set_free_in_kb(::int32_t value);
2087 private:
2088 ::int32_t _internal_free_in_kb() const;
2089 void _internal_set_free_in_kb(::int32_t value);
2090 public:
2091
2092 // optional int32 cached_in_kb = 5;
2093 bool has_cached_in_kb() const;
2094 private:
2095 bool _internal_has_cached_in_kb() const;
2096 public:
2097 void clear_cached_in_kb();
2098 ::int32_t cached_in_kb() const;
2099 void set_cached_in_kb(::int32_t value);
2100 private:
2101 ::int32_t _internal_cached_in_kb() const;
2102 void _internal_set_cached_in_kb(::int32_t value);
2103 public:
2104
2105 // optional int32 zram_in_kb = 6;
2106 bool has_zram_in_kb() const;
2107 private:
2108 bool _internal_has_zram_in_kb() const;
2109 public:
2110 void clear_zram_in_kb();
2111 ::int32_t zram_in_kb() const;
2112 void set_zram_in_kb(::int32_t value);
2113 private:
2114 ::int32_t _internal_zram_in_kb() const;
2115 void _internal_set_zram_in_kb(::int32_t value);
2116 public:
2117
2118 // optional int32 kernel_in_kb = 7;
2119 bool has_kernel_in_kb() const;
2120 private:
2121 bool _internal_has_kernel_in_kb() const;
2122 public:
2123 void clear_kernel_in_kb();
2124 ::int32_t kernel_in_kb() const;
2125 void set_kernel_in_kb(::int32_t value);
2126 private:
2127 ::int32_t _internal_kernel_in_kb() const;
2128 void _internal_set_kernel_in_kb(::int32_t value);
2129 public:
2130
2131 // optional int32 num_frozen_apps = 8;
2132 bool has_num_frozen_apps() const;
2133 private:
2134 bool _internal_has_num_frozen_apps() const;
2135 public:
2136 void clear_num_frozen_apps();
2137 ::int32_t num_frozen_apps() const;
2138 void set_num_frozen_apps(::int32_t value);
2139 private:
2140 ::int32_t _internal_num_frozen_apps() const;
2141 void _internal_set_num_frozen_apps(::int32_t value);
2142 public:
2143
2144 // optional int32 longest_frozen_time_in_seconds = 9;
2145 bool has_longest_frozen_time_in_seconds() const;
2146 private:
2147 bool _internal_has_longest_frozen_time_in_seconds() const;
2148 public:
2149 void clear_longest_frozen_time_in_seconds();
2150 ::int32_t longest_frozen_time_in_seconds() const;
2151 void set_longest_frozen_time_in_seconds(::int32_t value);
2152 private:
2153 ::int32_t _internal_longest_frozen_time_in_seconds() const;
2154 void _internal_set_longest_frozen_time_in_seconds(::int32_t value);
2155 public:
2156
2157 // optional int32 shortest_frozen_time_in_seconds = 10;
2158 bool has_shortest_frozen_time_in_seconds() const;
2159 private:
2160 bool _internal_has_shortest_frozen_time_in_seconds() const;
2161 public:
2162 void clear_shortest_frozen_time_in_seconds();
2163 ::int32_t shortest_frozen_time_in_seconds() const;
2164 void set_shortest_frozen_time_in_seconds(::int32_t value);
2165 private:
2166 ::int32_t _internal_shortest_frozen_time_in_seconds() const;
2167 void _internal_set_shortest_frozen_time_in_seconds(::int32_t value);
2168 public:
2169
2170 // optional int32 mean_frozen_time_in_seconds = 11;
2171 bool has_mean_frozen_time_in_seconds() const;
2172 private:
2173 bool _internal_has_mean_frozen_time_in_seconds() const;
2174 public:
2175 void clear_mean_frozen_time_in_seconds();
2176 ::int32_t mean_frozen_time_in_seconds() const;
2177 void set_mean_frozen_time_in_seconds(::int32_t value);
2178 private:
2179 ::int32_t _internal_mean_frozen_time_in_seconds() const;
2180 void _internal_set_mean_frozen_time_in_seconds(::int32_t value);
2181 public:
2182
2183 // optional int32 average_frozen_time_in_seconds = 12;
2184 bool has_average_frozen_time_in_seconds() const;
2185 private:
2186 bool _internal_has_average_frozen_time_in_seconds() const;
2187 public:
2188 void clear_average_frozen_time_in_seconds();
2189 ::int32_t average_frozen_time_in_seconds() const;
2190 void set_average_frozen_time_in_seconds(::int32_t value);
2191 private:
2192 ::int32_t _internal_average_frozen_time_in_seconds() const;
2193 void _internal_set_average_frozen_time_in_seconds(::int32_t value);
2194 public:
2195
2196 // @@protoc_insertion_point(class_scope:android.os.statsd.framework.CachedAppsHighWaterMark)
2197 private:
2198 class _Internal;
2199
2200 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
2201 typedef void InternalArenaConstructable_;
2202 typedef void DestructorSkippable_;
2203 struct Impl_ {
2204 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
2205 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
2206 ::int32_t cached_app_high_watermark_;
2207 ::int32_t uptime_in_seconds_;
2208 ::int32_t binder_proxy_snapshot_;
2209 ::int32_t free_in_kb_;
2210 ::int32_t cached_in_kb_;
2211 ::int32_t zram_in_kb_;
2212 ::int32_t kernel_in_kb_;
2213 ::int32_t num_frozen_apps_;
2214 ::int32_t longest_frozen_time_in_seconds_;
2215 ::int32_t shortest_frozen_time_in_seconds_;
2216 ::int32_t mean_frozen_time_in_seconds_;
2217 ::int32_t average_frozen_time_in_seconds_;
2218 };
2219 union { Impl_ _impl_; };
2220 friend struct ::TableStruct_frameworks_2fproto_5flogging_2fstats_2fatoms_2fframework_2fframework_5fextension_5fatoms_2eproto;
2221 };
2222 // -------------------------------------------------------------------
2223
2224 class StylusPredictionMetricsReported final :
2225 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:android.os.statsd.framework.StylusPredictionMetricsReported) */ {
2226 public:
StylusPredictionMetricsReported()2227 inline StylusPredictionMetricsReported() : StylusPredictionMetricsReported(nullptr) {}
2228 ~StylusPredictionMetricsReported() override;
2229 explicit PROTOBUF_CONSTEXPR StylusPredictionMetricsReported(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
2230
2231 StylusPredictionMetricsReported(const StylusPredictionMetricsReported& from);
StylusPredictionMetricsReported(StylusPredictionMetricsReported && from)2232 StylusPredictionMetricsReported(StylusPredictionMetricsReported&& from) noexcept
2233 : StylusPredictionMetricsReported() {
2234 *this = ::std::move(from);
2235 }
2236
2237 inline StylusPredictionMetricsReported& operator=(const StylusPredictionMetricsReported& from) {
2238 if (this == &from) return *this;
2239 CopyFrom(from);
2240 return *this;
2241 }
2242 inline StylusPredictionMetricsReported& operator=(StylusPredictionMetricsReported&& from) noexcept {
2243 if (this == &from) return *this;
2244 if (GetOwningArena() == from.GetOwningArena()
2245 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
2246 && GetOwningArena() != nullptr
2247 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
2248 ) {
2249 InternalSwap(&from);
2250 } else {
2251 CopyFrom(from);
2252 }
2253 return *this;
2254 }
2255
unknown_fields()2256 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
2257 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
2258 }
mutable_unknown_fields()2259 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
2260 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
2261 }
2262
descriptor()2263 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
2264 return GetDescriptor();
2265 }
GetDescriptor()2266 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
2267 return default_instance().GetMetadata().descriptor;
2268 }
GetReflection()2269 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
2270 return default_instance().GetMetadata().reflection;
2271 }
default_instance()2272 static const StylusPredictionMetricsReported& default_instance() {
2273 return *internal_default_instance();
2274 }
internal_default_instance()2275 static inline const StylusPredictionMetricsReported* internal_default_instance() {
2276 return reinterpret_cast<const StylusPredictionMetricsReported*>(
2277 &_StylusPredictionMetricsReported_default_instance_);
2278 }
2279 static constexpr int kIndexInFileMessages =
2280 5;
2281
swap(StylusPredictionMetricsReported & a,StylusPredictionMetricsReported & b)2282 friend void swap(StylusPredictionMetricsReported& a, StylusPredictionMetricsReported& b) {
2283 a.Swap(&b);
2284 }
Swap(StylusPredictionMetricsReported * other)2285 inline void Swap(StylusPredictionMetricsReported* other) {
2286 if (other == this) return;
2287 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
2288 if (GetOwningArena() != nullptr &&
2289 GetOwningArena() == other->GetOwningArena()) {
2290 #else // PROTOBUF_FORCE_COPY_IN_SWAP
2291 if (GetOwningArena() == other->GetOwningArena()) {
2292 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
2293 InternalSwap(other);
2294 } else {
2295 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
2296 }
2297 }
2298 void UnsafeArenaSwap(StylusPredictionMetricsReported* other) {
2299 if (other == this) return;
2300 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
2301 InternalSwap(other);
2302 }
2303
2304 // implements Message ----------------------------------------------
2305
2306 StylusPredictionMetricsReported* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
2307 return CreateMaybeMessage<StylusPredictionMetricsReported>(arena);
2308 }
2309 StylusPredictionMetricsReported* New() const {
2310 return New(nullptr);
2311 }
2312 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
2313 void CopyFrom(const StylusPredictionMetricsReported& from);
2314 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
2315 void MergeFrom( const StylusPredictionMetricsReported& from) {
2316 StylusPredictionMetricsReported::MergeImpl(*this, from);
2317 }
2318 private:
2319 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
2320 public:
2321 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
2322 bool IsInitialized() const final;
2323
2324 size_t ByteSizeLong() const final;
2325 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
2326 ::uint8_t* _InternalSerialize(
2327 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
2328 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
2329
2330 private:
2331 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
2332 void SharedDtor();
2333 void SetCachedSize(int size) const final;
2334 void InternalSwap(StylusPredictionMetricsReported* other);
2335
2336 private:
2337 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
2338 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
2339 return "android.os.statsd.framework.StylusPredictionMetricsReported";
2340 }
2341 protected:
2342 explicit StylusPredictionMetricsReported(::PROTOBUF_NAMESPACE_ID::Arena* arena,
2343 bool is_message_owned = false);
2344 public:
2345
2346 static const ClassData _class_data_;
2347 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
2348
2349 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
2350
2351 // nested types ----------------------------------------------------
2352
2353 // accessors -------------------------------------------------------
2354
2355 enum : int {
2356 kStylusVendorIdFieldNumber = 1,
2357 kStylusProductIdFieldNumber = 2,
2358 kDeltaTimeBucketMillisecondsFieldNumber = 3,
2359 kAlongTrajectoryErrorMeanMillipixelsFieldNumber = 4,
2360 kAlongTrajectoryErrorStdMillipixelsFieldNumber = 5,
2361 kOffTrajectoryRmseMillipixelsFieldNumber = 6,
2362 kPressureRmseMilliunitsFieldNumber = 7,
2363 kHighVelocityAlongTrajectoryRmseMillipixelsFieldNumber = 8,
2364 kHighVelocityOffTrajectoryRmseMillipixelsFieldNumber = 9,
2365 kScaleInvariantAlongTrajectoryRmseMillipixelsFieldNumber = 10,
2366 kScaleInvariantOffTrajectoryRmseMillipixelsFieldNumber = 11,
2367 };
2368 // optional int32 stylus_vendor_id = 1;
2369 bool has_stylus_vendor_id() const;
2370 private:
2371 bool _internal_has_stylus_vendor_id() const;
2372 public:
2373 void clear_stylus_vendor_id();
2374 ::int32_t stylus_vendor_id() const;
2375 void set_stylus_vendor_id(::int32_t value);
2376 private:
2377 ::int32_t _internal_stylus_vendor_id() const;
2378 void _internal_set_stylus_vendor_id(::int32_t value);
2379 public:
2380
2381 // optional int32 stylus_product_id = 2;
2382 bool has_stylus_product_id() const;
2383 private:
2384 bool _internal_has_stylus_product_id() const;
2385 public:
2386 void clear_stylus_product_id();
2387 ::int32_t stylus_product_id() const;
2388 void set_stylus_product_id(::int32_t value);
2389 private:
2390 ::int32_t _internal_stylus_product_id() const;
2391 void _internal_set_stylus_product_id(::int32_t value);
2392 public:
2393
2394 // optional int32 delta_time_bucket_milliseconds = 3;
2395 bool has_delta_time_bucket_milliseconds() const;
2396 private:
2397 bool _internal_has_delta_time_bucket_milliseconds() const;
2398 public:
2399 void clear_delta_time_bucket_milliseconds();
2400 ::int32_t delta_time_bucket_milliseconds() const;
2401 void set_delta_time_bucket_milliseconds(::int32_t value);
2402 private:
2403 ::int32_t _internal_delta_time_bucket_milliseconds() const;
2404 void _internal_set_delta_time_bucket_milliseconds(::int32_t value);
2405 public:
2406
2407 // optional int32 along_trajectory_error_mean_millipixels = 4;
2408 bool has_along_trajectory_error_mean_millipixels() const;
2409 private:
2410 bool _internal_has_along_trajectory_error_mean_millipixels() const;
2411 public:
2412 void clear_along_trajectory_error_mean_millipixels();
2413 ::int32_t along_trajectory_error_mean_millipixels() const;
2414 void set_along_trajectory_error_mean_millipixels(::int32_t value);
2415 private:
2416 ::int32_t _internal_along_trajectory_error_mean_millipixels() const;
2417 void _internal_set_along_trajectory_error_mean_millipixels(::int32_t value);
2418 public:
2419
2420 // optional int32 along_trajectory_error_std_millipixels = 5;
2421 bool has_along_trajectory_error_std_millipixels() const;
2422 private:
2423 bool _internal_has_along_trajectory_error_std_millipixels() const;
2424 public:
2425 void clear_along_trajectory_error_std_millipixels();
2426 ::int32_t along_trajectory_error_std_millipixels() const;
2427 void set_along_trajectory_error_std_millipixels(::int32_t value);
2428 private:
2429 ::int32_t _internal_along_trajectory_error_std_millipixels() const;
2430 void _internal_set_along_trajectory_error_std_millipixels(::int32_t value);
2431 public:
2432
2433 // optional int32 off_trajectory_rmse_millipixels = 6;
2434 bool has_off_trajectory_rmse_millipixels() const;
2435 private:
2436 bool _internal_has_off_trajectory_rmse_millipixels() const;
2437 public:
2438 void clear_off_trajectory_rmse_millipixels();
2439 ::int32_t off_trajectory_rmse_millipixels() const;
2440 void set_off_trajectory_rmse_millipixels(::int32_t value);
2441 private:
2442 ::int32_t _internal_off_trajectory_rmse_millipixels() const;
2443 void _internal_set_off_trajectory_rmse_millipixels(::int32_t value);
2444 public:
2445
2446 // optional int32 pressure_rmse_milliunits = 7;
2447 bool has_pressure_rmse_milliunits() const;
2448 private:
2449 bool _internal_has_pressure_rmse_milliunits() const;
2450 public:
2451 void clear_pressure_rmse_milliunits();
2452 ::int32_t pressure_rmse_milliunits() const;
2453 void set_pressure_rmse_milliunits(::int32_t value);
2454 private:
2455 ::int32_t _internal_pressure_rmse_milliunits() const;
2456 void _internal_set_pressure_rmse_milliunits(::int32_t value);
2457 public:
2458
2459 // optional int32 high_velocity_along_trajectory_rmse_millipixels = 8;
2460 bool has_high_velocity_along_trajectory_rmse_millipixels() const;
2461 private:
2462 bool _internal_has_high_velocity_along_trajectory_rmse_millipixels() const;
2463 public:
2464 void clear_high_velocity_along_trajectory_rmse_millipixels();
2465 ::int32_t high_velocity_along_trajectory_rmse_millipixels() const;
2466 void set_high_velocity_along_trajectory_rmse_millipixels(::int32_t value);
2467 private:
2468 ::int32_t _internal_high_velocity_along_trajectory_rmse_millipixels() const;
2469 void _internal_set_high_velocity_along_trajectory_rmse_millipixels(::int32_t value);
2470 public:
2471
2472 // optional int32 high_velocity_off_trajectory_rmse_millipixels = 9;
2473 bool has_high_velocity_off_trajectory_rmse_millipixels() const;
2474 private:
2475 bool _internal_has_high_velocity_off_trajectory_rmse_millipixels() const;
2476 public:
2477 void clear_high_velocity_off_trajectory_rmse_millipixels();
2478 ::int32_t high_velocity_off_trajectory_rmse_millipixels() const;
2479 void set_high_velocity_off_trajectory_rmse_millipixels(::int32_t value);
2480 private:
2481 ::int32_t _internal_high_velocity_off_trajectory_rmse_millipixels() const;
2482 void _internal_set_high_velocity_off_trajectory_rmse_millipixels(::int32_t value);
2483 public:
2484
2485 // optional int32 scale_invariant_along_trajectory_rmse_millipixels = 10;
2486 bool has_scale_invariant_along_trajectory_rmse_millipixels() const;
2487 private:
2488 bool _internal_has_scale_invariant_along_trajectory_rmse_millipixels() const;
2489 public:
2490 void clear_scale_invariant_along_trajectory_rmse_millipixels();
2491 ::int32_t scale_invariant_along_trajectory_rmse_millipixels() const;
2492 void set_scale_invariant_along_trajectory_rmse_millipixels(::int32_t value);
2493 private:
2494 ::int32_t _internal_scale_invariant_along_trajectory_rmse_millipixels() const;
2495 void _internal_set_scale_invariant_along_trajectory_rmse_millipixels(::int32_t value);
2496 public:
2497
2498 // optional int32 scale_invariant_off_trajectory_rmse_millipixels = 11;
2499 bool has_scale_invariant_off_trajectory_rmse_millipixels() const;
2500 private:
2501 bool _internal_has_scale_invariant_off_trajectory_rmse_millipixels() const;
2502 public:
2503 void clear_scale_invariant_off_trajectory_rmse_millipixels();
2504 ::int32_t scale_invariant_off_trajectory_rmse_millipixels() const;
2505 void set_scale_invariant_off_trajectory_rmse_millipixels(::int32_t value);
2506 private:
2507 ::int32_t _internal_scale_invariant_off_trajectory_rmse_millipixels() const;
2508 void _internal_set_scale_invariant_off_trajectory_rmse_millipixels(::int32_t value);
2509 public:
2510
2511 // @@protoc_insertion_point(class_scope:android.os.statsd.framework.StylusPredictionMetricsReported)
2512 private:
2513 class _Internal;
2514
2515 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
2516 typedef void InternalArenaConstructable_;
2517 typedef void DestructorSkippable_;
2518 struct Impl_ {
2519 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
2520 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
2521 ::int32_t stylus_vendor_id_;
2522 ::int32_t stylus_product_id_;
2523 ::int32_t delta_time_bucket_milliseconds_;
2524 ::int32_t along_trajectory_error_mean_millipixels_;
2525 ::int32_t along_trajectory_error_std_millipixels_;
2526 ::int32_t off_trajectory_rmse_millipixels_;
2527 ::int32_t pressure_rmse_milliunits_;
2528 ::int32_t high_velocity_along_trajectory_rmse_millipixels_;
2529 ::int32_t high_velocity_off_trajectory_rmse_millipixels_;
2530 ::int32_t scale_invariant_along_trajectory_rmse_millipixels_;
2531 ::int32_t scale_invariant_off_trajectory_rmse_millipixels_;
2532 };
2533 union { Impl_ _impl_; };
2534 friend struct ::TableStruct_frameworks_2fproto_5flogging_2fstats_2fatoms_2fframework_2fframework_5fextension_5fatoms_2eproto;
2535 };
2536 // -------------------------------------------------------------------
2537
2538 class UserRiskEventReported final :
2539 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:android.os.statsd.framework.UserRiskEventReported) */ {
2540 public:
UserRiskEventReported()2541 inline UserRiskEventReported() : UserRiskEventReported(nullptr) {}
2542 ~UserRiskEventReported() override;
2543 explicit PROTOBUF_CONSTEXPR UserRiskEventReported(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
2544
2545 UserRiskEventReported(const UserRiskEventReported& from);
UserRiskEventReported(UserRiskEventReported && from)2546 UserRiskEventReported(UserRiskEventReported&& from) noexcept
2547 : UserRiskEventReported() {
2548 *this = ::std::move(from);
2549 }
2550
2551 inline UserRiskEventReported& operator=(const UserRiskEventReported& from) {
2552 if (this == &from) return *this;
2553 CopyFrom(from);
2554 return *this;
2555 }
2556 inline UserRiskEventReported& operator=(UserRiskEventReported&& from) noexcept {
2557 if (this == &from) return *this;
2558 if (GetOwningArena() == from.GetOwningArena()
2559 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
2560 && GetOwningArena() != nullptr
2561 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
2562 ) {
2563 InternalSwap(&from);
2564 } else {
2565 CopyFrom(from);
2566 }
2567 return *this;
2568 }
2569
unknown_fields()2570 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
2571 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
2572 }
mutable_unknown_fields()2573 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
2574 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
2575 }
2576
descriptor()2577 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
2578 return GetDescriptor();
2579 }
GetDescriptor()2580 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
2581 return default_instance().GetMetadata().descriptor;
2582 }
GetReflection()2583 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
2584 return default_instance().GetMetadata().reflection;
2585 }
default_instance()2586 static const UserRiskEventReported& default_instance() {
2587 return *internal_default_instance();
2588 }
internal_default_instance()2589 static inline const UserRiskEventReported* internal_default_instance() {
2590 return reinterpret_cast<const UserRiskEventReported*>(
2591 &_UserRiskEventReported_default_instance_);
2592 }
2593 static constexpr int kIndexInFileMessages =
2594 6;
2595
swap(UserRiskEventReported & a,UserRiskEventReported & b)2596 friend void swap(UserRiskEventReported& a, UserRiskEventReported& b) {
2597 a.Swap(&b);
2598 }
Swap(UserRiskEventReported * other)2599 inline void Swap(UserRiskEventReported* other) {
2600 if (other == this) return;
2601 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
2602 if (GetOwningArena() != nullptr &&
2603 GetOwningArena() == other->GetOwningArena()) {
2604 #else // PROTOBUF_FORCE_COPY_IN_SWAP
2605 if (GetOwningArena() == other->GetOwningArena()) {
2606 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
2607 InternalSwap(other);
2608 } else {
2609 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
2610 }
2611 }
2612 void UnsafeArenaSwap(UserRiskEventReported* other) {
2613 if (other == this) return;
2614 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
2615 InternalSwap(other);
2616 }
2617
2618 // implements Message ----------------------------------------------
2619
2620 UserRiskEventReported* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
2621 return CreateMaybeMessage<UserRiskEventReported>(arena);
2622 }
2623 UserRiskEventReported* New() const {
2624 return New(nullptr);
2625 }
2626 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
2627 void CopyFrom(const UserRiskEventReported& from);
2628 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
2629 void MergeFrom( const UserRiskEventReported& from) {
2630 UserRiskEventReported::MergeImpl(*this, from);
2631 }
2632 private:
2633 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
2634 public:
2635 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
2636 bool IsInitialized() const final;
2637
2638 size_t ByteSizeLong() const final;
2639 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
2640 ::uint8_t* _InternalSerialize(
2641 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
2642 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
2643
2644 private:
2645 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
2646 void SharedDtor();
2647 void SetCachedSize(int size) const final;
2648 void InternalSwap(UserRiskEventReported* other);
2649
2650 private:
2651 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
2652 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
2653 return "android.os.statsd.framework.UserRiskEventReported";
2654 }
2655 protected:
2656 explicit UserRiskEventReported(::PROTOBUF_NAMESPACE_ID::Arena* arena,
2657 bool is_message_owned = false);
2658 public:
2659
2660 static const ClassData _class_data_;
2661 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
2662
2663 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
2664
2665 // nested types ----------------------------------------------------
2666
2667 typedef UserRiskEventReported_EventType EventType;
2668 static constexpr EventType UNKNOWN =
2669 UserRiskEventReported_EventType_UNKNOWN;
2670 static constexpr EventType A11Y_CONSENT_DIALOG_SHOWN =
2671 UserRiskEventReported_EventType_A11Y_CONSENT_DIALOG_SHOWN;
2672 static constexpr EventType A11Y_GRANTED =
2673 UserRiskEventReported_EventType_A11Y_GRANTED;
2674 static constexpr EventType A11Y_DENIED =
2675 UserRiskEventReported_EventType_A11Y_DENIED;
2676 static constexpr EventType A11Y_APP_UNINSTALLED =
2677 UserRiskEventReported_EventType_A11Y_APP_UNINSTALLED;
2678 static constexpr EventType MEDIA_PROJECTION_CONSENT_DIALOG_SHOWN =
2679 UserRiskEventReported_EventType_MEDIA_PROJECTION_CONSENT_DIALOG_SHOWN;
2680 static constexpr EventType MEDIA_PROJECTION_GRANTED =
2681 UserRiskEventReported_EventType_MEDIA_PROJECTION_GRANTED;
2682 static constexpr EventType MEDIA_PROJECTION_DENIED =
2683 UserRiskEventReported_EventType_MEDIA_PROJECTION_DENIED;
2684 static constexpr EventType MEDIA_PROJECTION_STARTED =
2685 UserRiskEventReported_EventType_MEDIA_PROJECTION_STARTED;
2686 static constexpr EventType ACTIVE_CALL_STARTED =
2687 UserRiskEventReported_EventType_ACTIVE_CALL_STARTED;
2688 static constexpr EventType ACTIVE_CALL_CHANGED =
2689 UserRiskEventReported_EventType_ACTIVE_CALL_CHANGED;
2690 static constexpr EventType ACTIVE_CALL_ENDED =
2691 UserRiskEventReported_EventType_ACTIVE_CALL_ENDED;
2692 static inline bool EventType_IsValid(int value) {
2693 return UserRiskEventReported_EventType_IsValid(value);
2694 }
2695 static constexpr EventType EventType_MIN =
2696 UserRiskEventReported_EventType_EventType_MIN;
2697 static constexpr EventType EventType_MAX =
2698 UserRiskEventReported_EventType_EventType_MAX;
2699 static constexpr int EventType_ARRAYSIZE =
2700 UserRiskEventReported_EventType_EventType_ARRAYSIZE;
2701 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
2702 EventType_descriptor() {
2703 return UserRiskEventReported_EventType_descriptor();
2704 }
2705 template<typename T>
2706 static inline const std::string& EventType_Name(T enum_t_value) {
2707 static_assert(::std::is_same<T, EventType>::value ||
2708 ::std::is_integral<T>::value,
2709 "Incorrect type passed to function EventType_Name.");
2710 return UserRiskEventReported_EventType_Name(enum_t_value);
2711 }
2712 static inline bool EventType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
2713 EventType* value) {
2714 return UserRiskEventReported_EventType_Parse(name, value);
2715 }
2716
2717 typedef UserRiskEventReported_CallDirection CallDirection;
2718 static constexpr CallDirection UNKNOWN_DIRECTION =
2719 UserRiskEventReported_CallDirection_UNKNOWN_DIRECTION;
2720 static constexpr CallDirection INCOMING =
2721 UserRiskEventReported_CallDirection_INCOMING;
2722 static constexpr CallDirection OUTGOING =
2723 UserRiskEventReported_CallDirection_OUTGOING;
2724 static inline bool CallDirection_IsValid(int value) {
2725 return UserRiskEventReported_CallDirection_IsValid(value);
2726 }
2727 static constexpr CallDirection CallDirection_MIN =
2728 UserRiskEventReported_CallDirection_CallDirection_MIN;
2729 static constexpr CallDirection CallDirection_MAX =
2730 UserRiskEventReported_CallDirection_CallDirection_MAX;
2731 static constexpr int CallDirection_ARRAYSIZE =
2732 UserRiskEventReported_CallDirection_CallDirection_ARRAYSIZE;
2733 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
2734 CallDirection_descriptor() {
2735 return UserRiskEventReported_CallDirection_descriptor();
2736 }
2737 template<typename T>
2738 static inline const std::string& CallDirection_Name(T enum_t_value) {
2739 static_assert(::std::is_same<T, CallDirection>::value ||
2740 ::std::is_integral<T>::value,
2741 "Incorrect type passed to function CallDirection_Name.");
2742 return UserRiskEventReported_CallDirection_Name(enum_t_value);
2743 }
2744 static inline bool CallDirection_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
2745 CallDirection* value) {
2746 return UserRiskEventReported_CallDirection_Parse(name, value);
2747 }
2748
2749 typedef UserRiskEventReported_NumberVerificationStatus NumberVerificationStatus;
2750 static constexpr NumberVerificationStatus UNKNOWN_STATUS =
2751 UserRiskEventReported_NumberVerificationStatus_UNKNOWN_STATUS;
2752 static constexpr NumberVerificationStatus NOT_VERIFIED =
2753 UserRiskEventReported_NumberVerificationStatus_NOT_VERIFIED;
2754 static constexpr NumberVerificationStatus PASSED =
2755 UserRiskEventReported_NumberVerificationStatus_PASSED;
2756 static constexpr NumberVerificationStatus FAILED =
2757 UserRiskEventReported_NumberVerificationStatus_FAILED;
2758 static inline bool NumberVerificationStatus_IsValid(int value) {
2759 return UserRiskEventReported_NumberVerificationStatus_IsValid(value);
2760 }
2761 static constexpr NumberVerificationStatus NumberVerificationStatus_MIN =
2762 UserRiskEventReported_NumberVerificationStatus_NumberVerificationStatus_MIN;
2763 static constexpr NumberVerificationStatus NumberVerificationStatus_MAX =
2764 UserRiskEventReported_NumberVerificationStatus_NumberVerificationStatus_MAX;
2765 static constexpr int NumberVerificationStatus_ARRAYSIZE =
2766 UserRiskEventReported_NumberVerificationStatus_NumberVerificationStatus_ARRAYSIZE;
2767 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
2768 NumberVerificationStatus_descriptor() {
2769 return UserRiskEventReported_NumberVerificationStatus_descriptor();
2770 }
2771 template<typename T>
2772 static inline const std::string& NumberVerificationStatus_Name(T enum_t_value) {
2773 static_assert(::std::is_same<T, NumberVerificationStatus>::value ||
2774 ::std::is_integral<T>::value,
2775 "Incorrect type passed to function NumberVerificationStatus_Name.");
2776 return UserRiskEventReported_NumberVerificationStatus_Name(enum_t_value);
2777 }
2778 static inline bool NumberVerificationStatus_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
2779 NumberVerificationStatus* value) {
2780 return UserRiskEventReported_NumberVerificationStatus_Parse(name, value);
2781 }
2782
2783 // accessors -------------------------------------------------------
2784
2785 enum : int {
2786 kCallConnectedTimestampMillisFieldNumber = 2,
2787 kEventTypeFieldNumber = 1,
2788 kCallDirectionFieldNumber = 3,
2789 kCallContactLastUpdatedTimestampMillisFieldNumber = 5,
2790 kCallNumberVerificationStatusFieldNumber = 4,
2791 kCallLogPreviousIncomingCountFieldNumber = 6,
2792 kMpStartTimestampMillisFieldNumber = 8,
2793 kCallLogPreviousOutgoingCountFieldNumber = 7,
2794 kMpAppUidFieldNumber = 9,
2795 kMpAppFirstInstallTimestampMillisFieldNumber = 11,
2796 kMpInstallingAppUidFieldNumber = 10,
2797 kA11YAppUidFieldNumber = 13,
2798 kA11YCapabilityGrantedTimestampMillisFieldNumber = 12,
2799 kA11YAppFirstInstallTimestampMillsFieldNumber = 15,
2800 kA11YInstallingAppUidFieldNumber = 14,
2801 };
2802 // optional int64 call_connected_timestamp_millis = 2;
2803 bool has_call_connected_timestamp_millis() const;
2804 private:
2805 bool _internal_has_call_connected_timestamp_millis() const;
2806 public:
2807 void clear_call_connected_timestamp_millis();
2808 ::int64_t call_connected_timestamp_millis() const;
2809 void set_call_connected_timestamp_millis(::int64_t value);
2810 private:
2811 ::int64_t _internal_call_connected_timestamp_millis() const;
2812 void _internal_set_call_connected_timestamp_millis(::int64_t value);
2813 public:
2814
2815 // optional .android.os.statsd.framework.UserRiskEventReported.EventType event_type = 1;
2816 bool has_event_type() const;
2817 private:
2818 bool _internal_has_event_type() const;
2819 public:
2820 void clear_event_type();
2821 ::android::os::statsd::framework::UserRiskEventReported_EventType event_type() const;
2822 void set_event_type(::android::os::statsd::framework::UserRiskEventReported_EventType value);
2823 private:
2824 ::android::os::statsd::framework::UserRiskEventReported_EventType _internal_event_type() const;
2825 void _internal_set_event_type(::android::os::statsd::framework::UserRiskEventReported_EventType value);
2826 public:
2827
2828 // optional .android.os.statsd.framework.UserRiskEventReported.CallDirection call_direction = 3;
2829 bool has_call_direction() const;
2830 private:
2831 bool _internal_has_call_direction() const;
2832 public:
2833 void clear_call_direction();
2834 ::android::os::statsd::framework::UserRiskEventReported_CallDirection call_direction() const;
2835 void set_call_direction(::android::os::statsd::framework::UserRiskEventReported_CallDirection value);
2836 private:
2837 ::android::os::statsd::framework::UserRiskEventReported_CallDirection _internal_call_direction() const;
2838 void _internal_set_call_direction(::android::os::statsd::framework::UserRiskEventReported_CallDirection value);
2839 public:
2840
2841 // optional int64 call_contact_last_updated_timestamp_millis = 5;
2842 bool has_call_contact_last_updated_timestamp_millis() const;
2843 private:
2844 bool _internal_has_call_contact_last_updated_timestamp_millis() const;
2845 public:
2846 void clear_call_contact_last_updated_timestamp_millis();
2847 ::int64_t call_contact_last_updated_timestamp_millis() const;
2848 void set_call_contact_last_updated_timestamp_millis(::int64_t value);
2849 private:
2850 ::int64_t _internal_call_contact_last_updated_timestamp_millis() const;
2851 void _internal_set_call_contact_last_updated_timestamp_millis(::int64_t value);
2852 public:
2853
2854 // optional .android.os.statsd.framework.UserRiskEventReported.NumberVerificationStatus call_number_verification_status = 4;
2855 bool has_call_number_verification_status() const;
2856 private:
2857 bool _internal_has_call_number_verification_status() const;
2858 public:
2859 void clear_call_number_verification_status();
2860 ::android::os::statsd::framework::UserRiskEventReported_NumberVerificationStatus call_number_verification_status() const;
2861 void set_call_number_verification_status(::android::os::statsd::framework::UserRiskEventReported_NumberVerificationStatus value);
2862 private:
2863 ::android::os::statsd::framework::UserRiskEventReported_NumberVerificationStatus _internal_call_number_verification_status() const;
2864 void _internal_set_call_number_verification_status(::android::os::statsd::framework::UserRiskEventReported_NumberVerificationStatus value);
2865 public:
2866
2867 // optional int32 call_log_previous_incoming_count = 6;
2868 bool has_call_log_previous_incoming_count() const;
2869 private:
2870 bool _internal_has_call_log_previous_incoming_count() const;
2871 public:
2872 void clear_call_log_previous_incoming_count();
2873 ::int32_t call_log_previous_incoming_count() const;
2874 void set_call_log_previous_incoming_count(::int32_t value);
2875 private:
2876 ::int32_t _internal_call_log_previous_incoming_count() const;
2877 void _internal_set_call_log_previous_incoming_count(::int32_t value);
2878 public:
2879
2880 // optional int64 mp_start_timestamp_millis = 8;
2881 bool has_mp_start_timestamp_millis() const;
2882 private:
2883 bool _internal_has_mp_start_timestamp_millis() const;
2884 public:
2885 void clear_mp_start_timestamp_millis();
2886 ::int64_t mp_start_timestamp_millis() const;
2887 void set_mp_start_timestamp_millis(::int64_t value);
2888 private:
2889 ::int64_t _internal_mp_start_timestamp_millis() const;
2890 void _internal_set_mp_start_timestamp_millis(::int64_t value);
2891 public:
2892
2893 // optional int32 call_log_previous_outgoing_count = 7;
2894 bool has_call_log_previous_outgoing_count() const;
2895 private:
2896 bool _internal_has_call_log_previous_outgoing_count() const;
2897 public:
2898 void clear_call_log_previous_outgoing_count();
2899 ::int32_t call_log_previous_outgoing_count() const;
2900 void set_call_log_previous_outgoing_count(::int32_t value);
2901 private:
2902 ::int32_t _internal_call_log_previous_outgoing_count() const;
2903 void _internal_set_call_log_previous_outgoing_count(::int32_t value);
2904 public:
2905
2906 // optional int32 mp_app_uid = 9 [(.android.os.statsd.is_uid) = true];
2907 bool has_mp_app_uid() const;
2908 private:
2909 bool _internal_has_mp_app_uid() const;
2910 public:
2911 void clear_mp_app_uid();
2912 ::int32_t mp_app_uid() const;
2913 void set_mp_app_uid(::int32_t value);
2914 private:
2915 ::int32_t _internal_mp_app_uid() const;
2916 void _internal_set_mp_app_uid(::int32_t value);
2917 public:
2918
2919 // optional int64 mp_app_first_install_timestamp_millis = 11;
2920 bool has_mp_app_first_install_timestamp_millis() const;
2921 private:
2922 bool _internal_has_mp_app_first_install_timestamp_millis() const;
2923 public:
2924 void clear_mp_app_first_install_timestamp_millis();
2925 ::int64_t mp_app_first_install_timestamp_millis() const;
2926 void set_mp_app_first_install_timestamp_millis(::int64_t value);
2927 private:
2928 ::int64_t _internal_mp_app_first_install_timestamp_millis() const;
2929 void _internal_set_mp_app_first_install_timestamp_millis(::int64_t value);
2930 public:
2931
2932 // optional int32 mp_installing_app_uid = 10 [(.android.os.statsd.is_uid) = true];
2933 bool has_mp_installing_app_uid() const;
2934 private:
2935 bool _internal_has_mp_installing_app_uid() const;
2936 public:
2937 void clear_mp_installing_app_uid();
2938 ::int32_t mp_installing_app_uid() const;
2939 void set_mp_installing_app_uid(::int32_t value);
2940 private:
2941 ::int32_t _internal_mp_installing_app_uid() const;
2942 void _internal_set_mp_installing_app_uid(::int32_t value);
2943 public:
2944
2945 // optional int32 a11y_app_uid = 13 [(.android.os.statsd.is_uid) = true];
2946 bool has_a11y_app_uid() const;
2947 private:
2948 bool _internal_has_a11y_app_uid() const;
2949 public:
2950 void clear_a11y_app_uid();
2951 ::int32_t a11y_app_uid() const;
2952 void set_a11y_app_uid(::int32_t value);
2953 private:
2954 ::int32_t _internal_a11y_app_uid() const;
2955 void _internal_set_a11y_app_uid(::int32_t value);
2956 public:
2957
2958 // optional int64 a11y_capability_granted_timestamp_millis = 12;
2959 bool has_a11y_capability_granted_timestamp_millis() const;
2960 private:
2961 bool _internal_has_a11y_capability_granted_timestamp_millis() const;
2962 public:
2963 void clear_a11y_capability_granted_timestamp_millis();
2964 ::int64_t a11y_capability_granted_timestamp_millis() const;
2965 void set_a11y_capability_granted_timestamp_millis(::int64_t value);
2966 private:
2967 ::int64_t _internal_a11y_capability_granted_timestamp_millis() const;
2968 void _internal_set_a11y_capability_granted_timestamp_millis(::int64_t value);
2969 public:
2970
2971 // optional int64 a11y_app_first_install_timestamp_mills = 15;
2972 bool has_a11y_app_first_install_timestamp_mills() const;
2973 private:
2974 bool _internal_has_a11y_app_first_install_timestamp_mills() const;
2975 public:
2976 void clear_a11y_app_first_install_timestamp_mills();
2977 ::int64_t a11y_app_first_install_timestamp_mills() const;
2978 void set_a11y_app_first_install_timestamp_mills(::int64_t value);
2979 private:
2980 ::int64_t _internal_a11y_app_first_install_timestamp_mills() const;
2981 void _internal_set_a11y_app_first_install_timestamp_mills(::int64_t value);
2982 public:
2983
2984 // optional int32 a11y_installing_app_uid = 14 [(.android.os.statsd.is_uid) = true];
2985 bool has_a11y_installing_app_uid() const;
2986 private:
2987 bool _internal_has_a11y_installing_app_uid() const;
2988 public:
2989 void clear_a11y_installing_app_uid();
2990 ::int32_t a11y_installing_app_uid() const;
2991 void set_a11y_installing_app_uid(::int32_t value);
2992 private:
2993 ::int32_t _internal_a11y_installing_app_uid() const;
2994 void _internal_set_a11y_installing_app_uid(::int32_t value);
2995 public:
2996
2997 // @@protoc_insertion_point(class_scope:android.os.statsd.framework.UserRiskEventReported)
2998 private:
2999 class _Internal;
3000
3001 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
3002 typedef void InternalArenaConstructable_;
3003 typedef void DestructorSkippable_;
3004 struct Impl_ {
3005 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
3006 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
3007 ::int64_t call_connected_timestamp_millis_;
3008 int event_type_;
3009 int call_direction_;
3010 ::int64_t call_contact_last_updated_timestamp_millis_;
3011 int call_number_verification_status_;
3012 ::int32_t call_log_previous_incoming_count_;
3013 ::int64_t mp_start_timestamp_millis_;
3014 ::int32_t call_log_previous_outgoing_count_;
3015 ::int32_t mp_app_uid_;
3016 ::int64_t mp_app_first_install_timestamp_millis_;
3017 ::int32_t mp_installing_app_uid_;
3018 ::int32_t a11y_app_uid_;
3019 ::int64_t a11y_capability_granted_timestamp_millis_;
3020 ::int64_t a11y_app_first_install_timestamp_mills_;
3021 ::int32_t a11y_installing_app_uid_;
3022 };
3023 union { Impl_ _impl_; };
3024 friend struct ::TableStruct_frameworks_2fproto_5flogging_2fstats_2fatoms_2fframework_2fframework_5fextension_5fatoms_2eproto;
3025 };
3026 // -------------------------------------------------------------------
3027
3028 class MediaProjectionStateChanged final :
3029 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:android.os.statsd.framework.MediaProjectionStateChanged) */ {
3030 public:
MediaProjectionStateChanged()3031 inline MediaProjectionStateChanged() : MediaProjectionStateChanged(nullptr) {}
3032 ~MediaProjectionStateChanged() override;
3033 explicit PROTOBUF_CONSTEXPR MediaProjectionStateChanged(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
3034
3035 MediaProjectionStateChanged(const MediaProjectionStateChanged& from);
MediaProjectionStateChanged(MediaProjectionStateChanged && from)3036 MediaProjectionStateChanged(MediaProjectionStateChanged&& from) noexcept
3037 : MediaProjectionStateChanged() {
3038 *this = ::std::move(from);
3039 }
3040
3041 inline MediaProjectionStateChanged& operator=(const MediaProjectionStateChanged& from) {
3042 if (this == &from) return *this;
3043 CopyFrom(from);
3044 return *this;
3045 }
3046 inline MediaProjectionStateChanged& operator=(MediaProjectionStateChanged&& from) noexcept {
3047 if (this == &from) return *this;
3048 if (GetOwningArena() == from.GetOwningArena()
3049 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
3050 && GetOwningArena() != nullptr
3051 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
3052 ) {
3053 InternalSwap(&from);
3054 } else {
3055 CopyFrom(from);
3056 }
3057 return *this;
3058 }
3059
unknown_fields()3060 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
3061 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
3062 }
mutable_unknown_fields()3063 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
3064 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
3065 }
3066
descriptor()3067 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
3068 return GetDescriptor();
3069 }
GetDescriptor()3070 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
3071 return default_instance().GetMetadata().descriptor;
3072 }
GetReflection()3073 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
3074 return default_instance().GetMetadata().reflection;
3075 }
default_instance()3076 static const MediaProjectionStateChanged& default_instance() {
3077 return *internal_default_instance();
3078 }
internal_default_instance()3079 static inline const MediaProjectionStateChanged* internal_default_instance() {
3080 return reinterpret_cast<const MediaProjectionStateChanged*>(
3081 &_MediaProjectionStateChanged_default_instance_);
3082 }
3083 static constexpr int kIndexInFileMessages =
3084 7;
3085
swap(MediaProjectionStateChanged & a,MediaProjectionStateChanged & b)3086 friend void swap(MediaProjectionStateChanged& a, MediaProjectionStateChanged& b) {
3087 a.Swap(&b);
3088 }
Swap(MediaProjectionStateChanged * other)3089 inline void Swap(MediaProjectionStateChanged* other) {
3090 if (other == this) return;
3091 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
3092 if (GetOwningArena() != nullptr &&
3093 GetOwningArena() == other->GetOwningArena()) {
3094 #else // PROTOBUF_FORCE_COPY_IN_SWAP
3095 if (GetOwningArena() == other->GetOwningArena()) {
3096 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
3097 InternalSwap(other);
3098 } else {
3099 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
3100 }
3101 }
3102 void UnsafeArenaSwap(MediaProjectionStateChanged* other) {
3103 if (other == this) return;
3104 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
3105 InternalSwap(other);
3106 }
3107
3108 // implements Message ----------------------------------------------
3109
3110 MediaProjectionStateChanged* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
3111 return CreateMaybeMessage<MediaProjectionStateChanged>(arena);
3112 }
3113 MediaProjectionStateChanged* New() const {
3114 return New(nullptr);
3115 }
3116 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
3117 void CopyFrom(const MediaProjectionStateChanged& from);
3118 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
3119 void MergeFrom( const MediaProjectionStateChanged& from) {
3120 MediaProjectionStateChanged::MergeImpl(*this, from);
3121 }
3122 private:
3123 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
3124 public:
3125 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
3126 bool IsInitialized() const final;
3127
3128 size_t ByteSizeLong() const final;
3129 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
3130 ::uint8_t* _InternalSerialize(
3131 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
3132 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
3133
3134 private:
3135 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
3136 void SharedDtor();
3137 void SetCachedSize(int size) const final;
3138 void InternalSwap(MediaProjectionStateChanged* other);
3139
3140 private:
3141 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
3142 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
3143 return "android.os.statsd.framework.MediaProjectionStateChanged";
3144 }
3145 protected:
3146 explicit MediaProjectionStateChanged(::PROTOBUF_NAMESPACE_ID::Arena* arena,
3147 bool is_message_owned = false);
3148 public:
3149
3150 static const ClassData _class_data_;
3151 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
3152
3153 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
3154
3155 // nested types ----------------------------------------------------
3156
3157 typedef MediaProjectionStateChanged_MediaProjectionState MediaProjectionState;
3158 static constexpr MediaProjectionState MEDIA_PROJECTION_STATE_UNKNOWN =
3159 MediaProjectionStateChanged_MediaProjectionState_MEDIA_PROJECTION_STATE_UNKNOWN;
3160 static constexpr MediaProjectionState MEDIA_PROJECTION_STATE_INITIATED =
3161 MediaProjectionStateChanged_MediaProjectionState_MEDIA_PROJECTION_STATE_INITIATED;
3162 static constexpr MediaProjectionState MEDIA_PROJECTION_STATE_PERMISSION_REQUEST_DISPLAYED =
3163 MediaProjectionStateChanged_MediaProjectionState_MEDIA_PROJECTION_STATE_PERMISSION_REQUEST_DISPLAYED;
3164 static constexpr MediaProjectionState MEDIA_PROJECTION_STATE_APP_SELECTOR_DISPLAYED =
3165 MediaProjectionStateChanged_MediaProjectionState_MEDIA_PROJECTION_STATE_APP_SELECTOR_DISPLAYED;
3166 static constexpr MediaProjectionState MEDIA_PROJECTION_STATE_CAPTURING_IN_PROGRESS =
3167 MediaProjectionStateChanged_MediaProjectionState_MEDIA_PROJECTION_STATE_CAPTURING_IN_PROGRESS;
3168 static constexpr MediaProjectionState MEDIA_PROJECTION_STATE_CAPTURING_PAUSED =
3169 MediaProjectionStateChanged_MediaProjectionState_MEDIA_PROJECTION_STATE_CAPTURING_PAUSED;
3170 static constexpr MediaProjectionState MEDIA_PROJECTION_STATE_CAPTURING_IN_PROGRESS_RESUMED =
3171 MediaProjectionStateChanged_MediaProjectionState_MEDIA_PROJECTION_STATE_CAPTURING_IN_PROGRESS_RESUMED;
3172 static constexpr MediaProjectionState MEDIA_PROJECTION_STATE_STOPPED =
3173 MediaProjectionStateChanged_MediaProjectionState_MEDIA_PROJECTION_STATE_STOPPED;
3174 static constexpr MediaProjectionState MEDIA_PROJECTION_STATE_CANCELLED =
3175 MediaProjectionStateChanged_MediaProjectionState_MEDIA_PROJECTION_STATE_CANCELLED;
3176 static inline bool MediaProjectionState_IsValid(int value) {
3177 return MediaProjectionStateChanged_MediaProjectionState_IsValid(value);
3178 }
3179 static constexpr MediaProjectionState MediaProjectionState_MIN =
3180 MediaProjectionStateChanged_MediaProjectionState_MediaProjectionState_MIN;
3181 static constexpr MediaProjectionState MediaProjectionState_MAX =
3182 MediaProjectionStateChanged_MediaProjectionState_MediaProjectionState_MAX;
3183 static constexpr int MediaProjectionState_ARRAYSIZE =
3184 MediaProjectionStateChanged_MediaProjectionState_MediaProjectionState_ARRAYSIZE;
3185 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
3186 MediaProjectionState_descriptor() {
3187 return MediaProjectionStateChanged_MediaProjectionState_descriptor();
3188 }
3189 template<typename T>
3190 static inline const std::string& MediaProjectionState_Name(T enum_t_value) {
3191 static_assert(::std::is_same<T, MediaProjectionState>::value ||
3192 ::std::is_integral<T>::value,
3193 "Incorrect type passed to function MediaProjectionState_Name.");
3194 return MediaProjectionStateChanged_MediaProjectionState_Name(enum_t_value);
3195 }
3196 static inline bool MediaProjectionState_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
3197 MediaProjectionState* value) {
3198 return MediaProjectionStateChanged_MediaProjectionState_Parse(name, value);
3199 }
3200
3201 typedef MediaProjectionStateChanged_SessionCreationSource SessionCreationSource;
3202 static constexpr SessionCreationSource CREATION_SOURCE_UNKNOWN =
3203 MediaProjectionStateChanged_SessionCreationSource_CREATION_SOURCE_UNKNOWN;
3204 static constexpr SessionCreationSource CREATION_SOURCE_APP =
3205 MediaProjectionStateChanged_SessionCreationSource_CREATION_SOURCE_APP;
3206 static constexpr SessionCreationSource CREATION_SOURCE_SYSTEM_UI_SCREEN_RECORDER =
3207 MediaProjectionStateChanged_SessionCreationSource_CREATION_SOURCE_SYSTEM_UI_SCREEN_RECORDER;
3208 static constexpr SessionCreationSource CREATION_SOURCE_CAST =
3209 MediaProjectionStateChanged_SessionCreationSource_CREATION_SOURCE_CAST;
3210 static inline bool SessionCreationSource_IsValid(int value) {
3211 return MediaProjectionStateChanged_SessionCreationSource_IsValid(value);
3212 }
3213 static constexpr SessionCreationSource SessionCreationSource_MIN =
3214 MediaProjectionStateChanged_SessionCreationSource_SessionCreationSource_MIN;
3215 static constexpr SessionCreationSource SessionCreationSource_MAX =
3216 MediaProjectionStateChanged_SessionCreationSource_SessionCreationSource_MAX;
3217 static constexpr int SessionCreationSource_ARRAYSIZE =
3218 MediaProjectionStateChanged_SessionCreationSource_SessionCreationSource_ARRAYSIZE;
3219 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
3220 SessionCreationSource_descriptor() {
3221 return MediaProjectionStateChanged_SessionCreationSource_descriptor();
3222 }
3223 template<typename T>
3224 static inline const std::string& SessionCreationSource_Name(T enum_t_value) {
3225 static_assert(::std::is_same<T, SessionCreationSource>::value ||
3226 ::std::is_integral<T>::value,
3227 "Incorrect type passed to function SessionCreationSource_Name.");
3228 return MediaProjectionStateChanged_SessionCreationSource_Name(enum_t_value);
3229 }
3230 static inline bool SessionCreationSource_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
3231 SessionCreationSource* value) {
3232 return MediaProjectionStateChanged_SessionCreationSource_Parse(name, value);
3233 }
3234
3235 typedef MediaProjectionStateChanged_SessionStopSource SessionStopSource;
3236 static constexpr SessionStopSource STOP_SOURCE_UNKNOWN =
3237 MediaProjectionStateChanged_SessionStopSource_STOP_SOURCE_UNKNOWN;
3238 static constexpr SessionStopSource STOP_SOURCE_HOST_APP_STOP =
3239 MediaProjectionStateChanged_SessionStopSource_STOP_SOURCE_HOST_APP_STOP;
3240 static constexpr SessionStopSource STOP_SOURCE_TASK_APP_CLOSE =
3241 MediaProjectionStateChanged_SessionStopSource_STOP_SOURCE_TASK_APP_CLOSE;
3242 static constexpr SessionStopSource STOP_SOURCE_DEVICE_LOCK =
3243 MediaProjectionStateChanged_SessionStopSource_STOP_SOURCE_DEVICE_LOCK;
3244 static constexpr SessionStopSource STOP_SOURCE_STATUS_BAR_CHIP_STOP =
3245 MediaProjectionStateChanged_SessionStopSource_STOP_SOURCE_STATUS_BAR_CHIP_STOP;
3246 static constexpr SessionStopSource STOP_SOURCE_QS_TILE =
3247 MediaProjectionStateChanged_SessionStopSource_STOP_SOURCE_QS_TILE;
3248 static constexpr SessionStopSource STOP_SOURCE_USER_SWITCH =
3249 MediaProjectionStateChanged_SessionStopSource_STOP_SOURCE_USER_SWITCH;
3250 static constexpr SessionStopSource STOP_SOURCE_FOREGROUND_SERVICE_CHANGE =
3251 MediaProjectionStateChanged_SessionStopSource_STOP_SOURCE_FOREGROUND_SERVICE_CHANGE;
3252 static constexpr SessionStopSource STOP_SOURCE_NEW_PROJECTION =
3253 MediaProjectionStateChanged_SessionStopSource_STOP_SOURCE_NEW_PROJECTION;
3254 static constexpr SessionStopSource STOP_SOURCE_NEW_MEDIA_ROUTE =
3255 MediaProjectionStateChanged_SessionStopSource_STOP_SOURCE_NEW_MEDIA_ROUTE;
3256 static constexpr SessionStopSource STOP_SOURCE_ERROR =
3257 MediaProjectionStateChanged_SessionStopSource_STOP_SOURCE_ERROR;
3258 static inline bool SessionStopSource_IsValid(int value) {
3259 return MediaProjectionStateChanged_SessionStopSource_IsValid(value);
3260 }
3261 static constexpr SessionStopSource SessionStopSource_MIN =
3262 MediaProjectionStateChanged_SessionStopSource_SessionStopSource_MIN;
3263 static constexpr SessionStopSource SessionStopSource_MAX =
3264 MediaProjectionStateChanged_SessionStopSource_SessionStopSource_MAX;
3265 static constexpr int SessionStopSource_ARRAYSIZE =
3266 MediaProjectionStateChanged_SessionStopSource_SessionStopSource_ARRAYSIZE;
3267 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
3268 SessionStopSource_descriptor() {
3269 return MediaProjectionStateChanged_SessionStopSource_descriptor();
3270 }
3271 template<typename T>
3272 static inline const std::string& SessionStopSource_Name(T enum_t_value) {
3273 static_assert(::std::is_same<T, SessionStopSource>::value ||
3274 ::std::is_integral<T>::value,
3275 "Incorrect type passed to function SessionStopSource_Name.");
3276 return MediaProjectionStateChanged_SessionStopSource_Name(enum_t_value);
3277 }
3278 static inline bool SessionStopSource_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
3279 SessionStopSource* value) {
3280 return MediaProjectionStateChanged_SessionStopSource_Parse(name, value);
3281 }
3282
3283 // accessors -------------------------------------------------------
3284
3285 enum : int {
3286 kSessionIdFieldNumber = 1,
3287 kStateFieldNumber = 2,
3288 kPreviousStateFieldNumber = 3,
3289 kHostUidFieldNumber = 4,
3290 kTargetUidFieldNumber = 5,
3291 kTimeSinceLastActiveSessionSecondsFieldNumber = 6,
3292 kCreationSourceFieldNumber = 7,
3293 kStopSourceFieldNumber = 8,
3294 };
3295 // optional int32 session_id = 1 [(.android.os.statsd.state_field_option) = {
3296 bool has_session_id() const;
3297 private:
3298 bool _internal_has_session_id() const;
3299 public:
3300 void clear_session_id();
3301 ::int32_t session_id() const;
3302 void set_session_id(::int32_t value);
3303 private:
3304 ::int32_t _internal_session_id() const;
3305 void _internal_set_session_id(::int32_t value);
3306 public:
3307
3308 // optional .android.os.statsd.framework.MediaProjectionStateChanged.MediaProjectionState state = 2 [(.android.os.statsd.state_field_option) = {
3309 bool has_state() const;
3310 private:
3311 bool _internal_has_state() const;
3312 public:
3313 void clear_state();
3314 ::android::os::statsd::framework::MediaProjectionStateChanged_MediaProjectionState state() const;
3315 void set_state(::android::os::statsd::framework::MediaProjectionStateChanged_MediaProjectionState value);
3316 private:
3317 ::android::os::statsd::framework::MediaProjectionStateChanged_MediaProjectionState _internal_state() const;
3318 void _internal_set_state(::android::os::statsd::framework::MediaProjectionStateChanged_MediaProjectionState value);
3319 public:
3320
3321 // optional .android.os.statsd.framework.MediaProjectionStateChanged.MediaProjectionState previous_state = 3;
3322 bool has_previous_state() const;
3323 private:
3324 bool _internal_has_previous_state() const;
3325 public:
3326 void clear_previous_state();
3327 ::android::os::statsd::framework::MediaProjectionStateChanged_MediaProjectionState previous_state() const;
3328 void set_previous_state(::android::os::statsd::framework::MediaProjectionStateChanged_MediaProjectionState value);
3329 private:
3330 ::android::os::statsd::framework::MediaProjectionStateChanged_MediaProjectionState _internal_previous_state() const;
3331 void _internal_set_previous_state(::android::os::statsd::framework::MediaProjectionStateChanged_MediaProjectionState value);
3332 public:
3333
3334 // optional int32 host_uid = 4 [(.android.os.statsd.is_uid) = true];
3335 bool has_host_uid() const;
3336 private:
3337 bool _internal_has_host_uid() const;
3338 public:
3339 void clear_host_uid();
3340 ::int32_t host_uid() const;
3341 void set_host_uid(::int32_t value);
3342 private:
3343 ::int32_t _internal_host_uid() const;
3344 void _internal_set_host_uid(::int32_t value);
3345 public:
3346
3347 // optional int32 target_uid = 5 [(.android.os.statsd.is_uid) = true];
3348 bool has_target_uid() const;
3349 private:
3350 bool _internal_has_target_uid() const;
3351 public:
3352 void clear_target_uid();
3353 ::int32_t target_uid() const;
3354 void set_target_uid(::int32_t value);
3355 private:
3356 ::int32_t _internal_target_uid() const;
3357 void _internal_set_target_uid(::int32_t value);
3358 public:
3359
3360 // optional int32 time_since_last_active_session_seconds = 6;
3361 bool has_time_since_last_active_session_seconds() const;
3362 private:
3363 bool _internal_has_time_since_last_active_session_seconds() const;
3364 public:
3365 void clear_time_since_last_active_session_seconds();
3366 ::int32_t time_since_last_active_session_seconds() const;
3367 void set_time_since_last_active_session_seconds(::int32_t value);
3368 private:
3369 ::int32_t _internal_time_since_last_active_session_seconds() const;
3370 void _internal_set_time_since_last_active_session_seconds(::int32_t value);
3371 public:
3372
3373 // optional .android.os.statsd.framework.MediaProjectionStateChanged.SessionCreationSource creation_source = 7;
3374 bool has_creation_source() const;
3375 private:
3376 bool _internal_has_creation_source() const;
3377 public:
3378 void clear_creation_source();
3379 ::android::os::statsd::framework::MediaProjectionStateChanged_SessionCreationSource creation_source() const;
3380 void set_creation_source(::android::os::statsd::framework::MediaProjectionStateChanged_SessionCreationSource value);
3381 private:
3382 ::android::os::statsd::framework::MediaProjectionStateChanged_SessionCreationSource _internal_creation_source() const;
3383 void _internal_set_creation_source(::android::os::statsd::framework::MediaProjectionStateChanged_SessionCreationSource value);
3384 public:
3385
3386 // optional .android.os.statsd.framework.MediaProjectionStateChanged.SessionStopSource stop_source = 8;
3387 bool has_stop_source() const;
3388 private:
3389 bool _internal_has_stop_source() const;
3390 public:
3391 void clear_stop_source();
3392 ::android::os::statsd::framework::MediaProjectionStateChanged_SessionStopSource stop_source() const;
3393 void set_stop_source(::android::os::statsd::framework::MediaProjectionStateChanged_SessionStopSource value);
3394 private:
3395 ::android::os::statsd::framework::MediaProjectionStateChanged_SessionStopSource _internal_stop_source() const;
3396 void _internal_set_stop_source(::android::os::statsd::framework::MediaProjectionStateChanged_SessionStopSource value);
3397 public:
3398
3399 // @@protoc_insertion_point(class_scope:android.os.statsd.framework.MediaProjectionStateChanged)
3400 private:
3401 class _Internal;
3402
3403 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
3404 typedef void InternalArenaConstructable_;
3405 typedef void DestructorSkippable_;
3406 struct Impl_ {
3407 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
3408 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
3409 ::int32_t session_id_;
3410 int state_;
3411 int previous_state_;
3412 ::int32_t host_uid_;
3413 ::int32_t target_uid_;
3414 ::int32_t time_since_last_active_session_seconds_;
3415 int creation_source_;
3416 int stop_source_;
3417 };
3418 union { Impl_ _impl_; };
3419 friend struct ::TableStruct_frameworks_2fproto_5flogging_2fstats_2fatoms_2fframework_2fframework_5fextension_5fatoms_2eproto;
3420 };
3421 // -------------------------------------------------------------------
3422
3423 class MediaProjectionTargetChanged final :
3424 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:android.os.statsd.framework.MediaProjectionTargetChanged) */ {
3425 public:
MediaProjectionTargetChanged()3426 inline MediaProjectionTargetChanged() : MediaProjectionTargetChanged(nullptr) {}
3427 ~MediaProjectionTargetChanged() override;
3428 explicit PROTOBUF_CONSTEXPR MediaProjectionTargetChanged(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
3429
3430 MediaProjectionTargetChanged(const MediaProjectionTargetChanged& from);
MediaProjectionTargetChanged(MediaProjectionTargetChanged && from)3431 MediaProjectionTargetChanged(MediaProjectionTargetChanged&& from) noexcept
3432 : MediaProjectionTargetChanged() {
3433 *this = ::std::move(from);
3434 }
3435
3436 inline MediaProjectionTargetChanged& operator=(const MediaProjectionTargetChanged& from) {
3437 if (this == &from) return *this;
3438 CopyFrom(from);
3439 return *this;
3440 }
3441 inline MediaProjectionTargetChanged& operator=(MediaProjectionTargetChanged&& from) noexcept {
3442 if (this == &from) return *this;
3443 if (GetOwningArena() == from.GetOwningArena()
3444 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
3445 && GetOwningArena() != nullptr
3446 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
3447 ) {
3448 InternalSwap(&from);
3449 } else {
3450 CopyFrom(from);
3451 }
3452 return *this;
3453 }
3454
unknown_fields()3455 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
3456 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
3457 }
mutable_unknown_fields()3458 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
3459 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
3460 }
3461
descriptor()3462 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
3463 return GetDescriptor();
3464 }
GetDescriptor()3465 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
3466 return default_instance().GetMetadata().descriptor;
3467 }
GetReflection()3468 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
3469 return default_instance().GetMetadata().reflection;
3470 }
default_instance()3471 static const MediaProjectionTargetChanged& default_instance() {
3472 return *internal_default_instance();
3473 }
internal_default_instance()3474 static inline const MediaProjectionTargetChanged* internal_default_instance() {
3475 return reinterpret_cast<const MediaProjectionTargetChanged*>(
3476 &_MediaProjectionTargetChanged_default_instance_);
3477 }
3478 static constexpr int kIndexInFileMessages =
3479 8;
3480
swap(MediaProjectionTargetChanged & a,MediaProjectionTargetChanged & b)3481 friend void swap(MediaProjectionTargetChanged& a, MediaProjectionTargetChanged& b) {
3482 a.Swap(&b);
3483 }
Swap(MediaProjectionTargetChanged * other)3484 inline void Swap(MediaProjectionTargetChanged* other) {
3485 if (other == this) return;
3486 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
3487 if (GetOwningArena() != nullptr &&
3488 GetOwningArena() == other->GetOwningArena()) {
3489 #else // PROTOBUF_FORCE_COPY_IN_SWAP
3490 if (GetOwningArena() == other->GetOwningArena()) {
3491 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
3492 InternalSwap(other);
3493 } else {
3494 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
3495 }
3496 }
3497 void UnsafeArenaSwap(MediaProjectionTargetChanged* other) {
3498 if (other == this) return;
3499 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
3500 InternalSwap(other);
3501 }
3502
3503 // implements Message ----------------------------------------------
3504
3505 MediaProjectionTargetChanged* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
3506 return CreateMaybeMessage<MediaProjectionTargetChanged>(arena);
3507 }
3508 MediaProjectionTargetChanged* New() const {
3509 return New(nullptr);
3510 }
3511 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
3512 void CopyFrom(const MediaProjectionTargetChanged& from);
3513 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
3514 void MergeFrom( const MediaProjectionTargetChanged& from) {
3515 MediaProjectionTargetChanged::MergeImpl(*this, from);
3516 }
3517 private:
3518 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
3519 public:
3520 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
3521 bool IsInitialized() const final;
3522
3523 size_t ByteSizeLong() const final;
3524 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
3525 ::uint8_t* _InternalSerialize(
3526 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
3527 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
3528
3529 private:
3530 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
3531 void SharedDtor();
3532 void SetCachedSize(int size) const final;
3533 void InternalSwap(MediaProjectionTargetChanged* other);
3534
3535 private:
3536 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
3537 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
3538 return "android.os.statsd.framework.MediaProjectionTargetChanged";
3539 }
3540 protected:
3541 explicit MediaProjectionTargetChanged(::PROTOBUF_NAMESPACE_ID::Arena* arena,
3542 bool is_message_owned = false);
3543 public:
3544
3545 static const ClassData _class_data_;
3546 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
3547
3548 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
3549
3550 // nested types ----------------------------------------------------
3551
3552 typedef MediaProjectionTargetChanged_TargetChangeType TargetChangeType;
3553 static constexpr TargetChangeType TARGET_CHANGE_TYPE_UNKNOWN =
3554 MediaProjectionTargetChanged_TargetChangeType_TARGET_CHANGE_TYPE_UNKNOWN;
3555 static constexpr TargetChangeType TARGET_CHANGE_WINDOWING_MODE =
3556 MediaProjectionTargetChanged_TargetChangeType_TARGET_CHANGE_WINDOWING_MODE;
3557 static constexpr TargetChangeType TARGET_CHANGE_POSITION =
3558 MediaProjectionTargetChanged_TargetChangeType_TARGET_CHANGE_POSITION;
3559 static constexpr TargetChangeType TARGET_CHANGE_BOUNDS =
3560 MediaProjectionTargetChanged_TargetChangeType_TARGET_CHANGE_BOUNDS;
3561 static inline bool TargetChangeType_IsValid(int value) {
3562 return MediaProjectionTargetChanged_TargetChangeType_IsValid(value);
3563 }
3564 static constexpr TargetChangeType TargetChangeType_MIN =
3565 MediaProjectionTargetChanged_TargetChangeType_TargetChangeType_MIN;
3566 static constexpr TargetChangeType TargetChangeType_MAX =
3567 MediaProjectionTargetChanged_TargetChangeType_TargetChangeType_MAX;
3568 static constexpr int TargetChangeType_ARRAYSIZE =
3569 MediaProjectionTargetChanged_TargetChangeType_TargetChangeType_ARRAYSIZE;
3570 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
3571 TargetChangeType_descriptor() {
3572 return MediaProjectionTargetChanged_TargetChangeType_descriptor();
3573 }
3574 template<typename T>
3575 static inline const std::string& TargetChangeType_Name(T enum_t_value) {
3576 static_assert(::std::is_same<T, TargetChangeType>::value ||
3577 ::std::is_integral<T>::value,
3578 "Incorrect type passed to function TargetChangeType_Name.");
3579 return MediaProjectionTargetChanged_TargetChangeType_Name(enum_t_value);
3580 }
3581 static inline bool TargetChangeType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
3582 TargetChangeType* value) {
3583 return MediaProjectionTargetChanged_TargetChangeType_Parse(name, value);
3584 }
3585
3586 typedef MediaProjectionTargetChanged_TargetType TargetType;
3587 static constexpr TargetType TARGET_TYPE_UNKNOWN =
3588 MediaProjectionTargetChanged_TargetType_TARGET_TYPE_UNKNOWN;
3589 static constexpr TargetType TARGET_TYPE_DISPLAY =
3590 MediaProjectionTargetChanged_TargetType_TARGET_TYPE_DISPLAY;
3591 static constexpr TargetType TARGET_TYPE_APP_TASK =
3592 MediaProjectionTargetChanged_TargetType_TARGET_TYPE_APP_TASK;
3593 static inline bool TargetType_IsValid(int value) {
3594 return MediaProjectionTargetChanged_TargetType_IsValid(value);
3595 }
3596 static constexpr TargetType TargetType_MIN =
3597 MediaProjectionTargetChanged_TargetType_TargetType_MIN;
3598 static constexpr TargetType TargetType_MAX =
3599 MediaProjectionTargetChanged_TargetType_TargetType_MAX;
3600 static constexpr int TargetType_ARRAYSIZE =
3601 MediaProjectionTargetChanged_TargetType_TargetType_ARRAYSIZE;
3602 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
3603 TargetType_descriptor() {
3604 return MediaProjectionTargetChanged_TargetType_descriptor();
3605 }
3606 template<typename T>
3607 static inline const std::string& TargetType_Name(T enum_t_value) {
3608 static_assert(::std::is_same<T, TargetType>::value ||
3609 ::std::is_integral<T>::value,
3610 "Incorrect type passed to function TargetType_Name.");
3611 return MediaProjectionTargetChanged_TargetType_Name(enum_t_value);
3612 }
3613 static inline bool TargetType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
3614 TargetType* value) {
3615 return MediaProjectionTargetChanged_TargetType_Parse(name, value);
3616 }
3617
3618 typedef MediaProjectionTargetChanged_WindowingMode WindowingMode;
3619 static constexpr WindowingMode WINDOWING_MODE_UNKNOWN =
3620 MediaProjectionTargetChanged_WindowingMode_WINDOWING_MODE_UNKNOWN;
3621 static constexpr WindowingMode WINDOWING_MODE_HIDDEN =
3622 MediaProjectionTargetChanged_WindowingMode_WINDOWING_MODE_HIDDEN;
3623 static constexpr WindowingMode WINDOWING_MODE_FULLSCREEN =
3624 MediaProjectionTargetChanged_WindowingMode_WINDOWING_MODE_FULLSCREEN;
3625 static constexpr WindowingMode WINDOWING_MODE_SPLIT_SCREEN =
3626 MediaProjectionTargetChanged_WindowingMode_WINDOWING_MODE_SPLIT_SCREEN;
3627 static constexpr WindowingMode WINDOWING_MODE_FREEFORM =
3628 MediaProjectionTargetChanged_WindowingMode_WINDOWING_MODE_FREEFORM;
3629 static inline bool WindowingMode_IsValid(int value) {
3630 return MediaProjectionTargetChanged_WindowingMode_IsValid(value);
3631 }
3632 static constexpr WindowingMode WindowingMode_MIN =
3633 MediaProjectionTargetChanged_WindowingMode_WindowingMode_MIN;
3634 static constexpr WindowingMode WindowingMode_MAX =
3635 MediaProjectionTargetChanged_WindowingMode_WindowingMode_MAX;
3636 static constexpr int WindowingMode_ARRAYSIZE =
3637 MediaProjectionTargetChanged_WindowingMode_WindowingMode_ARRAYSIZE;
3638 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
3639 WindowingMode_descriptor() {
3640 return MediaProjectionTargetChanged_WindowingMode_descriptor();
3641 }
3642 template<typename T>
3643 static inline const std::string& WindowingMode_Name(T enum_t_value) {
3644 static_assert(::std::is_same<T, WindowingMode>::value ||
3645 ::std::is_integral<T>::value,
3646 "Incorrect type passed to function WindowingMode_Name.");
3647 return MediaProjectionTargetChanged_WindowingMode_Name(enum_t_value);
3648 }
3649 static inline bool WindowingMode_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
3650 WindowingMode* value) {
3651 return MediaProjectionTargetChanged_WindowingMode_Parse(name, value);
3652 }
3653
3654 // accessors -------------------------------------------------------
3655
3656 enum : int {
3657 kSessionIdFieldNumber = 1,
3658 kTargetTypeFieldNumber = 2,
3659 kHostUidFieldNumber = 3,
3660 kTargetUidFieldNumber = 4,
3661 kTargetWindowingModeFieldNumber = 5,
3662 kWidthFieldNumber = 6,
3663 kHeightFieldNumber = 7,
3664 kCenterXFieldNumber = 8,
3665 kCenterYFieldNumber = 9,
3666 kTargetChangeTypeFieldNumber = 10,
3667 };
3668 // optional int32 session_id = 1 [(.android.os.statsd.state_field_option) = {
3669 bool has_session_id() const;
3670 private:
3671 bool _internal_has_session_id() const;
3672 public:
3673 void clear_session_id();
3674 ::int32_t session_id() const;
3675 void set_session_id(::int32_t value);
3676 private:
3677 ::int32_t _internal_session_id() const;
3678 void _internal_set_session_id(::int32_t value);
3679 public:
3680
3681 // optional .android.os.statsd.framework.MediaProjectionTargetChanged.TargetType target_type = 2;
3682 bool has_target_type() const;
3683 private:
3684 bool _internal_has_target_type() const;
3685 public:
3686 void clear_target_type();
3687 ::android::os::statsd::framework::MediaProjectionTargetChanged_TargetType target_type() const;
3688 void set_target_type(::android::os::statsd::framework::MediaProjectionTargetChanged_TargetType value);
3689 private:
3690 ::android::os::statsd::framework::MediaProjectionTargetChanged_TargetType _internal_target_type() const;
3691 void _internal_set_target_type(::android::os::statsd::framework::MediaProjectionTargetChanged_TargetType value);
3692 public:
3693
3694 // optional int32 host_uid = 3 [(.android.os.statsd.is_uid) = true];
3695 bool has_host_uid() const;
3696 private:
3697 bool _internal_has_host_uid() const;
3698 public:
3699 void clear_host_uid();
3700 ::int32_t host_uid() const;
3701 void set_host_uid(::int32_t value);
3702 private:
3703 ::int32_t _internal_host_uid() const;
3704 void _internal_set_host_uid(::int32_t value);
3705 public:
3706
3707 // optional int32 target_uid = 4 [(.android.os.statsd.is_uid) = true];
3708 bool has_target_uid() const;
3709 private:
3710 bool _internal_has_target_uid() const;
3711 public:
3712 void clear_target_uid();
3713 ::int32_t target_uid() const;
3714 void set_target_uid(::int32_t value);
3715 private:
3716 ::int32_t _internal_target_uid() const;
3717 void _internal_set_target_uid(::int32_t value);
3718 public:
3719
3720 // optional .android.os.statsd.framework.MediaProjectionTargetChanged.WindowingMode target_windowing_mode = 5 [(.android.os.statsd.state_field_option) = {
3721 bool has_target_windowing_mode() const;
3722 private:
3723 bool _internal_has_target_windowing_mode() const;
3724 public:
3725 void clear_target_windowing_mode();
3726 ::android::os::statsd::framework::MediaProjectionTargetChanged_WindowingMode target_windowing_mode() const;
3727 void set_target_windowing_mode(::android::os::statsd::framework::MediaProjectionTargetChanged_WindowingMode value);
3728 private:
3729 ::android::os::statsd::framework::MediaProjectionTargetChanged_WindowingMode _internal_target_windowing_mode() const;
3730 void _internal_set_target_windowing_mode(::android::os::statsd::framework::MediaProjectionTargetChanged_WindowingMode value);
3731 public:
3732
3733 // optional int32 width = 6;
3734 bool has_width() const;
3735 private:
3736 bool _internal_has_width() const;
3737 public:
3738 void clear_width();
3739 ::int32_t width() const;
3740 void set_width(::int32_t value);
3741 private:
3742 ::int32_t _internal_width() const;
3743 void _internal_set_width(::int32_t value);
3744 public:
3745
3746 // optional int32 height = 7;
3747 bool has_height() const;
3748 private:
3749 bool _internal_has_height() const;
3750 public:
3751 void clear_height();
3752 ::int32_t height() const;
3753 void set_height(::int32_t value);
3754 private:
3755 ::int32_t _internal_height() const;
3756 void _internal_set_height(::int32_t value);
3757 public:
3758
3759 // optional int32 center_x = 8;
3760 bool has_center_x() const;
3761 private:
3762 bool _internal_has_center_x() const;
3763 public:
3764 void clear_center_x();
3765 ::int32_t center_x() const;
3766 void set_center_x(::int32_t value);
3767 private:
3768 ::int32_t _internal_center_x() const;
3769 void _internal_set_center_x(::int32_t value);
3770 public:
3771
3772 // optional int32 center_y = 9;
3773 bool has_center_y() const;
3774 private:
3775 bool _internal_has_center_y() const;
3776 public:
3777 void clear_center_y();
3778 ::int32_t center_y() const;
3779 void set_center_y(::int32_t value);
3780 private:
3781 ::int32_t _internal_center_y() const;
3782 void _internal_set_center_y(::int32_t value);
3783 public:
3784
3785 // optional .android.os.statsd.framework.MediaProjectionTargetChanged.TargetChangeType target_change_type = 10;
3786 bool has_target_change_type() const;
3787 private:
3788 bool _internal_has_target_change_type() const;
3789 public:
3790 void clear_target_change_type();
3791 ::android::os::statsd::framework::MediaProjectionTargetChanged_TargetChangeType target_change_type() const;
3792 void set_target_change_type(::android::os::statsd::framework::MediaProjectionTargetChanged_TargetChangeType value);
3793 private:
3794 ::android::os::statsd::framework::MediaProjectionTargetChanged_TargetChangeType _internal_target_change_type() const;
3795 void _internal_set_target_change_type(::android::os::statsd::framework::MediaProjectionTargetChanged_TargetChangeType value);
3796 public:
3797
3798 // @@protoc_insertion_point(class_scope:android.os.statsd.framework.MediaProjectionTargetChanged)
3799 private:
3800 class _Internal;
3801
3802 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
3803 typedef void InternalArenaConstructable_;
3804 typedef void DestructorSkippable_;
3805 struct Impl_ {
3806 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
3807 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
3808 ::int32_t session_id_;
3809 int target_type_;
3810 ::int32_t host_uid_;
3811 ::int32_t target_uid_;
3812 int target_windowing_mode_;
3813 ::int32_t width_;
3814 ::int32_t height_;
3815 ::int32_t center_x_;
3816 ::int32_t center_y_;
3817 int target_change_type_;
3818 };
3819 union { Impl_ _impl_; };
3820 friend struct ::TableStruct_frameworks_2fproto_5flogging_2fstats_2fatoms_2fframework_2fframework_5fextension_5fatoms_2eproto;
3821 };
3822 // -------------------------------------------------------------------
3823
3824 class ProxyBytesTransferByFgBg final :
3825 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:android.os.statsd.framework.ProxyBytesTransferByFgBg) */ {
3826 public:
ProxyBytesTransferByFgBg()3827 inline ProxyBytesTransferByFgBg() : ProxyBytesTransferByFgBg(nullptr) {}
3828 ~ProxyBytesTransferByFgBg() override;
3829 explicit PROTOBUF_CONSTEXPR ProxyBytesTransferByFgBg(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
3830
3831 ProxyBytesTransferByFgBg(const ProxyBytesTransferByFgBg& from);
ProxyBytesTransferByFgBg(ProxyBytesTransferByFgBg && from)3832 ProxyBytesTransferByFgBg(ProxyBytesTransferByFgBg&& from) noexcept
3833 : ProxyBytesTransferByFgBg() {
3834 *this = ::std::move(from);
3835 }
3836
3837 inline ProxyBytesTransferByFgBg& operator=(const ProxyBytesTransferByFgBg& from) {
3838 if (this == &from) return *this;
3839 CopyFrom(from);
3840 return *this;
3841 }
3842 inline ProxyBytesTransferByFgBg& operator=(ProxyBytesTransferByFgBg&& from) noexcept {
3843 if (this == &from) return *this;
3844 if (GetOwningArena() == from.GetOwningArena()
3845 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
3846 && GetOwningArena() != nullptr
3847 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
3848 ) {
3849 InternalSwap(&from);
3850 } else {
3851 CopyFrom(from);
3852 }
3853 return *this;
3854 }
3855
unknown_fields()3856 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
3857 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
3858 }
mutable_unknown_fields()3859 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
3860 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
3861 }
3862
descriptor()3863 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
3864 return GetDescriptor();
3865 }
GetDescriptor()3866 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
3867 return default_instance().GetMetadata().descriptor;
3868 }
GetReflection()3869 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
3870 return default_instance().GetMetadata().reflection;
3871 }
default_instance()3872 static const ProxyBytesTransferByFgBg& default_instance() {
3873 return *internal_default_instance();
3874 }
internal_default_instance()3875 static inline const ProxyBytesTransferByFgBg* internal_default_instance() {
3876 return reinterpret_cast<const ProxyBytesTransferByFgBg*>(
3877 &_ProxyBytesTransferByFgBg_default_instance_);
3878 }
3879 static constexpr int kIndexInFileMessages =
3880 9;
3881
swap(ProxyBytesTransferByFgBg & a,ProxyBytesTransferByFgBg & b)3882 friend void swap(ProxyBytesTransferByFgBg& a, ProxyBytesTransferByFgBg& b) {
3883 a.Swap(&b);
3884 }
Swap(ProxyBytesTransferByFgBg * other)3885 inline void Swap(ProxyBytesTransferByFgBg* other) {
3886 if (other == this) return;
3887 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
3888 if (GetOwningArena() != nullptr &&
3889 GetOwningArena() == other->GetOwningArena()) {
3890 #else // PROTOBUF_FORCE_COPY_IN_SWAP
3891 if (GetOwningArena() == other->GetOwningArena()) {
3892 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
3893 InternalSwap(other);
3894 } else {
3895 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
3896 }
3897 }
3898 void UnsafeArenaSwap(ProxyBytesTransferByFgBg* other) {
3899 if (other == this) return;
3900 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
3901 InternalSwap(other);
3902 }
3903
3904 // implements Message ----------------------------------------------
3905
3906 ProxyBytesTransferByFgBg* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
3907 return CreateMaybeMessage<ProxyBytesTransferByFgBg>(arena);
3908 }
3909 ProxyBytesTransferByFgBg* New() const {
3910 return New(nullptr);
3911 }
3912 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
3913 void CopyFrom(const ProxyBytesTransferByFgBg& from);
3914 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
3915 void MergeFrom( const ProxyBytesTransferByFgBg& from) {
3916 ProxyBytesTransferByFgBg::MergeImpl(*this, from);
3917 }
3918 private:
3919 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
3920 public:
3921 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
3922 bool IsInitialized() const final;
3923
3924 size_t ByteSizeLong() const final;
3925 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
3926 ::uint8_t* _InternalSerialize(
3927 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
3928 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
3929
3930 private:
3931 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
3932 void SharedDtor();
3933 void SetCachedSize(int size) const final;
3934 void InternalSwap(ProxyBytesTransferByFgBg* other);
3935
3936 private:
3937 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
3938 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
3939 return "android.os.statsd.framework.ProxyBytesTransferByFgBg";
3940 }
3941 protected:
3942 explicit ProxyBytesTransferByFgBg(::PROTOBUF_NAMESPACE_ID::Arena* arena,
3943 bool is_message_owned = false);
3944 public:
3945
3946 static const ClassData _class_data_;
3947 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
3948
3949 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
3950
3951 // nested types ----------------------------------------------------
3952
3953 // accessors -------------------------------------------------------
3954
3955 enum : int {
3956 kUidFieldNumber = 1,
3957 kIsForegroundFieldNumber = 2,
3958 kRxBytesFieldNumber = 3,
3959 kRxPacketsFieldNumber = 4,
3960 kTxBytesFieldNumber = 5,
3961 kTxPacketsFieldNumber = 6,
3962 };
3963 // optional int32 uid = 1 [(.android.os.statsd.is_uid) = true];
3964 bool has_uid() const;
3965 private:
3966 bool _internal_has_uid() const;
3967 public:
3968 void clear_uid();
3969 ::int32_t uid() const;
3970 void set_uid(::int32_t value);
3971 private:
3972 ::int32_t _internal_uid() const;
3973 void _internal_set_uid(::int32_t value);
3974 public:
3975
3976 // optional bool is_foreground = 2;
3977 bool has_is_foreground() const;
3978 private:
3979 bool _internal_has_is_foreground() const;
3980 public:
3981 void clear_is_foreground();
3982 bool is_foreground() const;
3983 void set_is_foreground(bool value);
3984 private:
3985 bool _internal_is_foreground() const;
3986 void _internal_set_is_foreground(bool value);
3987 public:
3988
3989 // optional int64 rx_bytes = 3;
3990 bool has_rx_bytes() const;
3991 private:
3992 bool _internal_has_rx_bytes() const;
3993 public:
3994 void clear_rx_bytes();
3995 ::int64_t rx_bytes() const;
3996 void set_rx_bytes(::int64_t value);
3997 private:
3998 ::int64_t _internal_rx_bytes() const;
3999 void _internal_set_rx_bytes(::int64_t value);
4000 public:
4001
4002 // optional int64 rx_packets = 4;
4003 bool has_rx_packets() const;
4004 private:
4005 bool _internal_has_rx_packets() const;
4006 public:
4007 void clear_rx_packets();
4008 ::int64_t rx_packets() const;
4009 void set_rx_packets(::int64_t value);
4010 private:
4011 ::int64_t _internal_rx_packets() const;
4012 void _internal_set_rx_packets(::int64_t value);
4013 public:
4014
4015 // optional int64 tx_bytes = 5;
4016 bool has_tx_bytes() const;
4017 private:
4018 bool _internal_has_tx_bytes() const;
4019 public:
4020 void clear_tx_bytes();
4021 ::int64_t tx_bytes() const;
4022 void set_tx_bytes(::int64_t value);
4023 private:
4024 ::int64_t _internal_tx_bytes() const;
4025 void _internal_set_tx_bytes(::int64_t value);
4026 public:
4027
4028 // optional int64 tx_packets = 6;
4029 bool has_tx_packets() const;
4030 private:
4031 bool _internal_has_tx_packets() const;
4032 public:
4033 void clear_tx_packets();
4034 ::int64_t tx_packets() const;
4035 void set_tx_packets(::int64_t value);
4036 private:
4037 ::int64_t _internal_tx_packets() const;
4038 void _internal_set_tx_packets(::int64_t value);
4039 public:
4040
4041 // @@protoc_insertion_point(class_scope:android.os.statsd.framework.ProxyBytesTransferByFgBg)
4042 private:
4043 class _Internal;
4044
4045 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
4046 typedef void InternalArenaConstructable_;
4047 typedef void DestructorSkippable_;
4048 struct Impl_ {
4049 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
4050 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
4051 ::int32_t uid_;
4052 bool is_foreground_;
4053 ::int64_t rx_bytes_;
4054 ::int64_t rx_packets_;
4055 ::int64_t tx_bytes_;
4056 ::int64_t tx_packets_;
4057 };
4058 union { Impl_ _impl_; };
4059 friend struct ::TableStruct_frameworks_2fproto_5flogging_2fstats_2fatoms_2fframework_2fframework_5fextension_5fatoms_2eproto;
4060 };
4061 // -------------------------------------------------------------------
4062
4063 class MobileBytesTransferByProcState final :
4064 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:android.os.statsd.framework.MobileBytesTransferByProcState) */ {
4065 public:
MobileBytesTransferByProcState()4066 inline MobileBytesTransferByProcState() : MobileBytesTransferByProcState(nullptr) {}
4067 ~MobileBytesTransferByProcState() override;
4068 explicit PROTOBUF_CONSTEXPR MobileBytesTransferByProcState(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
4069
4070 MobileBytesTransferByProcState(const MobileBytesTransferByProcState& from);
MobileBytesTransferByProcState(MobileBytesTransferByProcState && from)4071 MobileBytesTransferByProcState(MobileBytesTransferByProcState&& from) noexcept
4072 : MobileBytesTransferByProcState() {
4073 *this = ::std::move(from);
4074 }
4075
4076 inline MobileBytesTransferByProcState& operator=(const MobileBytesTransferByProcState& from) {
4077 if (this == &from) return *this;
4078 CopyFrom(from);
4079 return *this;
4080 }
4081 inline MobileBytesTransferByProcState& operator=(MobileBytesTransferByProcState&& from) noexcept {
4082 if (this == &from) return *this;
4083 if (GetOwningArena() == from.GetOwningArena()
4084 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
4085 && GetOwningArena() != nullptr
4086 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
4087 ) {
4088 InternalSwap(&from);
4089 } else {
4090 CopyFrom(from);
4091 }
4092 return *this;
4093 }
4094
unknown_fields()4095 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
4096 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
4097 }
mutable_unknown_fields()4098 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
4099 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
4100 }
4101
descriptor()4102 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
4103 return GetDescriptor();
4104 }
GetDescriptor()4105 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
4106 return default_instance().GetMetadata().descriptor;
4107 }
GetReflection()4108 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
4109 return default_instance().GetMetadata().reflection;
4110 }
default_instance()4111 static const MobileBytesTransferByProcState& default_instance() {
4112 return *internal_default_instance();
4113 }
internal_default_instance()4114 static inline const MobileBytesTransferByProcState* internal_default_instance() {
4115 return reinterpret_cast<const MobileBytesTransferByProcState*>(
4116 &_MobileBytesTransferByProcState_default_instance_);
4117 }
4118 static constexpr int kIndexInFileMessages =
4119 10;
4120
swap(MobileBytesTransferByProcState & a,MobileBytesTransferByProcState & b)4121 friend void swap(MobileBytesTransferByProcState& a, MobileBytesTransferByProcState& b) {
4122 a.Swap(&b);
4123 }
Swap(MobileBytesTransferByProcState * other)4124 inline void Swap(MobileBytesTransferByProcState* other) {
4125 if (other == this) return;
4126 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
4127 if (GetOwningArena() != nullptr &&
4128 GetOwningArena() == other->GetOwningArena()) {
4129 #else // PROTOBUF_FORCE_COPY_IN_SWAP
4130 if (GetOwningArena() == other->GetOwningArena()) {
4131 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
4132 InternalSwap(other);
4133 } else {
4134 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
4135 }
4136 }
4137 void UnsafeArenaSwap(MobileBytesTransferByProcState* other) {
4138 if (other == this) return;
4139 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
4140 InternalSwap(other);
4141 }
4142
4143 // implements Message ----------------------------------------------
4144
4145 MobileBytesTransferByProcState* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
4146 return CreateMaybeMessage<MobileBytesTransferByProcState>(arena);
4147 }
4148 MobileBytesTransferByProcState* New() const {
4149 return New(nullptr);
4150 }
4151 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
4152 void CopyFrom(const MobileBytesTransferByProcState& from);
4153 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
4154 void MergeFrom( const MobileBytesTransferByProcState& from) {
4155 MobileBytesTransferByProcState::MergeImpl(*this, from);
4156 }
4157 private:
4158 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
4159 public:
4160 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
4161 bool IsInitialized() const final;
4162
4163 size_t ByteSizeLong() const final;
4164 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
4165 ::uint8_t* _InternalSerialize(
4166 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
4167 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
4168
4169 private:
4170 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
4171 void SharedDtor();
4172 void SetCachedSize(int size) const final;
4173 void InternalSwap(MobileBytesTransferByProcState* other);
4174
4175 private:
4176 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
4177 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
4178 return "android.os.statsd.framework.MobileBytesTransferByProcState";
4179 }
4180 protected:
4181 explicit MobileBytesTransferByProcState(::PROTOBUF_NAMESPACE_ID::Arena* arena,
4182 bool is_message_owned = false);
4183 public:
4184
4185 static const ClassData _class_data_;
4186 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
4187
4188 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
4189
4190 // nested types ----------------------------------------------------
4191
4192 // accessors -------------------------------------------------------
4193
4194 enum : int {
4195 kRxBytesFieldNumber = 3,
4196 kRxPacketsFieldNumber = 4,
4197 kTxBytesFieldNumber = 5,
4198 kTxPacketsFieldNumber = 6,
4199 kUidFieldNumber = 1,
4200 kProcStateFieldNumber = 2,
4201 };
4202 // optional int64 rx_bytes = 3;
4203 bool has_rx_bytes() const;
4204 private:
4205 bool _internal_has_rx_bytes() const;
4206 public:
4207 void clear_rx_bytes();
4208 ::int64_t rx_bytes() const;
4209 void set_rx_bytes(::int64_t value);
4210 private:
4211 ::int64_t _internal_rx_bytes() const;
4212 void _internal_set_rx_bytes(::int64_t value);
4213 public:
4214
4215 // optional int64 rx_packets = 4;
4216 bool has_rx_packets() const;
4217 private:
4218 bool _internal_has_rx_packets() const;
4219 public:
4220 void clear_rx_packets();
4221 ::int64_t rx_packets() const;
4222 void set_rx_packets(::int64_t value);
4223 private:
4224 ::int64_t _internal_rx_packets() const;
4225 void _internal_set_rx_packets(::int64_t value);
4226 public:
4227
4228 // optional int64 tx_bytes = 5;
4229 bool has_tx_bytes() const;
4230 private:
4231 bool _internal_has_tx_bytes() const;
4232 public:
4233 void clear_tx_bytes();
4234 ::int64_t tx_bytes() const;
4235 void set_tx_bytes(::int64_t value);
4236 private:
4237 ::int64_t _internal_tx_bytes() const;
4238 void _internal_set_tx_bytes(::int64_t value);
4239 public:
4240
4241 // optional int64 tx_packets = 6;
4242 bool has_tx_packets() const;
4243 private:
4244 bool _internal_has_tx_packets() const;
4245 public:
4246 void clear_tx_packets();
4247 ::int64_t tx_packets() const;
4248 void set_tx_packets(::int64_t value);
4249 private:
4250 ::int64_t _internal_tx_packets() const;
4251 void _internal_set_tx_packets(::int64_t value);
4252 public:
4253
4254 // optional int32 uid = 1 [(.android.os.statsd.is_uid) = true];
4255 bool has_uid() const;
4256 private:
4257 bool _internal_has_uid() const;
4258 public:
4259 void clear_uid();
4260 ::int32_t uid() const;
4261 void set_uid(::int32_t value);
4262 private:
4263 ::int32_t _internal_uid() const;
4264 void _internal_set_uid(::int32_t value);
4265 public:
4266
4267 // optional .android.app.ProcessStateEnum proc_state = 2;
4268 bool has_proc_state() const;
4269 private:
4270 bool _internal_has_proc_state() const;
4271 public:
4272 void clear_proc_state();
4273 ::android::app::ProcessStateEnum proc_state() const;
4274 void set_proc_state(::android::app::ProcessStateEnum value);
4275 private:
4276 ::android::app::ProcessStateEnum _internal_proc_state() const;
4277 void _internal_set_proc_state(::android::app::ProcessStateEnum value);
4278 public:
4279
4280 // @@protoc_insertion_point(class_scope:android.os.statsd.framework.MobileBytesTransferByProcState)
4281 private:
4282 class _Internal;
4283
4284 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
4285 typedef void InternalArenaConstructable_;
4286 typedef void DestructorSkippable_;
4287 struct Impl_ {
4288 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
4289 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
4290 ::int64_t rx_bytes_;
4291 ::int64_t rx_packets_;
4292 ::int64_t tx_bytes_;
4293 ::int64_t tx_packets_;
4294 ::int32_t uid_;
4295 int proc_state_;
4296 };
4297 union { Impl_ _impl_; };
4298 friend struct ::TableStruct_frameworks_2fproto_5flogging_2fstats_2fatoms_2fframework_2fframework_5fextension_5fatoms_2eproto;
4299 };
4300 // -------------------------------------------------------------------
4301
4302 class BiometricFRRNotification final :
4303 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:android.os.statsd.framework.BiometricFRRNotification) */ {
4304 public:
BiometricFRRNotification()4305 inline BiometricFRRNotification() : BiometricFRRNotification(nullptr) {}
4306 ~BiometricFRRNotification() override;
4307 explicit PROTOBUF_CONSTEXPR BiometricFRRNotification(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
4308
4309 BiometricFRRNotification(const BiometricFRRNotification& from);
BiometricFRRNotification(BiometricFRRNotification && from)4310 BiometricFRRNotification(BiometricFRRNotification&& from) noexcept
4311 : BiometricFRRNotification() {
4312 *this = ::std::move(from);
4313 }
4314
4315 inline BiometricFRRNotification& operator=(const BiometricFRRNotification& from) {
4316 if (this == &from) return *this;
4317 CopyFrom(from);
4318 return *this;
4319 }
4320 inline BiometricFRRNotification& operator=(BiometricFRRNotification&& from) noexcept {
4321 if (this == &from) return *this;
4322 if (GetOwningArena() == from.GetOwningArena()
4323 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
4324 && GetOwningArena() != nullptr
4325 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
4326 ) {
4327 InternalSwap(&from);
4328 } else {
4329 CopyFrom(from);
4330 }
4331 return *this;
4332 }
4333
unknown_fields()4334 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
4335 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
4336 }
mutable_unknown_fields()4337 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
4338 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
4339 }
4340
descriptor()4341 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
4342 return GetDescriptor();
4343 }
GetDescriptor()4344 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
4345 return default_instance().GetMetadata().descriptor;
4346 }
GetReflection()4347 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
4348 return default_instance().GetMetadata().reflection;
4349 }
default_instance()4350 static const BiometricFRRNotification& default_instance() {
4351 return *internal_default_instance();
4352 }
internal_default_instance()4353 static inline const BiometricFRRNotification* internal_default_instance() {
4354 return reinterpret_cast<const BiometricFRRNotification*>(
4355 &_BiometricFRRNotification_default_instance_);
4356 }
4357 static constexpr int kIndexInFileMessages =
4358 11;
4359
swap(BiometricFRRNotification & a,BiometricFRRNotification & b)4360 friend void swap(BiometricFRRNotification& a, BiometricFRRNotification& b) {
4361 a.Swap(&b);
4362 }
Swap(BiometricFRRNotification * other)4363 inline void Swap(BiometricFRRNotification* other) {
4364 if (other == this) return;
4365 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
4366 if (GetOwningArena() != nullptr &&
4367 GetOwningArena() == other->GetOwningArena()) {
4368 #else // PROTOBUF_FORCE_COPY_IN_SWAP
4369 if (GetOwningArena() == other->GetOwningArena()) {
4370 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
4371 InternalSwap(other);
4372 } else {
4373 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
4374 }
4375 }
4376 void UnsafeArenaSwap(BiometricFRRNotification* other) {
4377 if (other == this) return;
4378 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
4379 InternalSwap(other);
4380 }
4381
4382 // implements Message ----------------------------------------------
4383
4384 BiometricFRRNotification* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
4385 return CreateMaybeMessage<BiometricFRRNotification>(arena);
4386 }
4387 BiometricFRRNotification* New() const {
4388 return New(nullptr);
4389 }
4390 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
4391 void CopyFrom(const BiometricFRRNotification& from);
4392 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
4393 void MergeFrom( const BiometricFRRNotification& from) {
4394 BiometricFRRNotification::MergeImpl(*this, from);
4395 }
4396 private:
4397 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
4398 public:
4399 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
4400 bool IsInitialized() const final;
4401
4402 size_t ByteSizeLong() const final;
4403 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
4404 ::uint8_t* _InternalSerialize(
4405 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
4406 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
4407
4408 private:
4409 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
4410 void SharedDtor();
4411 void SetCachedSize(int size) const final;
4412 void InternalSwap(BiometricFRRNotification* other);
4413
4414 private:
4415 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
4416 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
4417 return "android.os.statsd.framework.BiometricFRRNotification";
4418 }
4419 protected:
4420 explicit BiometricFRRNotification(::PROTOBUF_NAMESPACE_ID::Arena* arena,
4421 bool is_message_owned = false);
4422 public:
4423
4424 static const ClassData _class_data_;
4425 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
4426
4427 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
4428
4429 // nested types ----------------------------------------------------
4430
4431 // accessors -------------------------------------------------------
4432
4433 enum : int {
4434 kActionFieldNumber = 1,
4435 kModalityFieldNumber = 2,
4436 };
4437 // optional .android.hardware.biometrics.FRRNotificationAction action = 1;
4438 bool has_action() const;
4439 private:
4440 bool _internal_has_action() const;
4441 public:
4442 void clear_action();
4443 ::android::hardware::biometrics::FRRNotificationAction action() const;
4444 void set_action(::android::hardware::biometrics::FRRNotificationAction value);
4445 private:
4446 ::android::hardware::biometrics::FRRNotificationAction _internal_action() const;
4447 void _internal_set_action(::android::hardware::biometrics::FRRNotificationAction value);
4448 public:
4449
4450 // optional .android.hardware.biometrics.ModalityEnum modality = 2;
4451 bool has_modality() const;
4452 private:
4453 bool _internal_has_modality() const;
4454 public:
4455 void clear_modality();
4456 ::android::hardware::biometrics::ModalityEnum modality() const;
4457 void set_modality(::android::hardware::biometrics::ModalityEnum value);
4458 private:
4459 ::android::hardware::biometrics::ModalityEnum _internal_modality() const;
4460 void _internal_set_modality(::android::hardware::biometrics::ModalityEnum value);
4461 public:
4462
4463 // @@protoc_insertion_point(class_scope:android.os.statsd.framework.BiometricFRRNotification)
4464 private:
4465 class _Internal;
4466
4467 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
4468 typedef void InternalArenaConstructable_;
4469 typedef void DestructorSkippable_;
4470 struct Impl_ {
4471 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
4472 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
4473 int action_;
4474 int modality_;
4475 };
4476 union { Impl_ _impl_; };
4477 friend struct ::TableStruct_frameworks_2fproto_5flogging_2fstats_2fatoms_2fframework_2fframework_5fextension_5fatoms_2eproto;
4478 };
4479 // -------------------------------------------------------------------
4480
4481 class SensitiveContentMediaProjectionSession final :
4482 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:android.os.statsd.framework.SensitiveContentMediaProjectionSession) */ {
4483 public:
SensitiveContentMediaProjectionSession()4484 inline SensitiveContentMediaProjectionSession() : SensitiveContentMediaProjectionSession(nullptr) {}
4485 ~SensitiveContentMediaProjectionSession() override;
4486 explicit PROTOBUF_CONSTEXPR SensitiveContentMediaProjectionSession(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
4487
4488 SensitiveContentMediaProjectionSession(const SensitiveContentMediaProjectionSession& from);
SensitiveContentMediaProjectionSession(SensitiveContentMediaProjectionSession && from)4489 SensitiveContentMediaProjectionSession(SensitiveContentMediaProjectionSession&& from) noexcept
4490 : SensitiveContentMediaProjectionSession() {
4491 *this = ::std::move(from);
4492 }
4493
4494 inline SensitiveContentMediaProjectionSession& operator=(const SensitiveContentMediaProjectionSession& from) {
4495 if (this == &from) return *this;
4496 CopyFrom(from);
4497 return *this;
4498 }
4499 inline SensitiveContentMediaProjectionSession& operator=(SensitiveContentMediaProjectionSession&& from) noexcept {
4500 if (this == &from) return *this;
4501 if (GetOwningArena() == from.GetOwningArena()
4502 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
4503 && GetOwningArena() != nullptr
4504 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
4505 ) {
4506 InternalSwap(&from);
4507 } else {
4508 CopyFrom(from);
4509 }
4510 return *this;
4511 }
4512
unknown_fields()4513 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
4514 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
4515 }
mutable_unknown_fields()4516 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
4517 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
4518 }
4519
descriptor()4520 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
4521 return GetDescriptor();
4522 }
GetDescriptor()4523 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
4524 return default_instance().GetMetadata().descriptor;
4525 }
GetReflection()4526 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
4527 return default_instance().GetMetadata().reflection;
4528 }
default_instance()4529 static const SensitiveContentMediaProjectionSession& default_instance() {
4530 return *internal_default_instance();
4531 }
internal_default_instance()4532 static inline const SensitiveContentMediaProjectionSession* internal_default_instance() {
4533 return reinterpret_cast<const SensitiveContentMediaProjectionSession*>(
4534 &_SensitiveContentMediaProjectionSession_default_instance_);
4535 }
4536 static constexpr int kIndexInFileMessages =
4537 12;
4538
swap(SensitiveContentMediaProjectionSession & a,SensitiveContentMediaProjectionSession & b)4539 friend void swap(SensitiveContentMediaProjectionSession& a, SensitiveContentMediaProjectionSession& b) {
4540 a.Swap(&b);
4541 }
Swap(SensitiveContentMediaProjectionSession * other)4542 inline void Swap(SensitiveContentMediaProjectionSession* other) {
4543 if (other == this) return;
4544 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
4545 if (GetOwningArena() != nullptr &&
4546 GetOwningArena() == other->GetOwningArena()) {
4547 #else // PROTOBUF_FORCE_COPY_IN_SWAP
4548 if (GetOwningArena() == other->GetOwningArena()) {
4549 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
4550 InternalSwap(other);
4551 } else {
4552 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
4553 }
4554 }
4555 void UnsafeArenaSwap(SensitiveContentMediaProjectionSession* other) {
4556 if (other == this) return;
4557 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
4558 InternalSwap(other);
4559 }
4560
4561 // implements Message ----------------------------------------------
4562
4563 SensitiveContentMediaProjectionSession* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
4564 return CreateMaybeMessage<SensitiveContentMediaProjectionSession>(arena);
4565 }
4566 SensitiveContentMediaProjectionSession* New() const {
4567 return New(nullptr);
4568 }
4569 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
4570 void CopyFrom(const SensitiveContentMediaProjectionSession& from);
4571 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
4572 void MergeFrom( const SensitiveContentMediaProjectionSession& from) {
4573 SensitiveContentMediaProjectionSession::MergeImpl(*this, from);
4574 }
4575 private:
4576 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
4577 public:
4578 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
4579 bool IsInitialized() const final;
4580
4581 size_t ByteSizeLong() const final;
4582 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
4583 ::uint8_t* _InternalSerialize(
4584 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
4585 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
4586
4587 private:
4588 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
4589 void SharedDtor();
4590 void SetCachedSize(int size) const final;
4591 void InternalSwap(SensitiveContentMediaProjectionSession* other);
4592
4593 private:
4594 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
4595 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
4596 return "android.os.statsd.framework.SensitiveContentMediaProjectionSession";
4597 }
4598 protected:
4599 explicit SensitiveContentMediaProjectionSession(::PROTOBUF_NAMESPACE_ID::Arena* arena,
4600 bool is_message_owned = false);
4601 public:
4602
4603 static const ClassData _class_data_;
4604 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
4605
4606 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
4607
4608 // nested types ----------------------------------------------------
4609
4610 typedef SensitiveContentMediaProjectionSession_State State;
4611 static constexpr State UNDEFINED_STATE =
4612 SensitiveContentMediaProjectionSession_State_UNDEFINED_STATE;
4613 static constexpr State START =
4614 SensitiveContentMediaProjectionSession_State_START;
4615 static constexpr State STOP =
4616 SensitiveContentMediaProjectionSession_State_STOP;
4617 static inline bool State_IsValid(int value) {
4618 return SensitiveContentMediaProjectionSession_State_IsValid(value);
4619 }
4620 static constexpr State State_MIN =
4621 SensitiveContentMediaProjectionSession_State_State_MIN;
4622 static constexpr State State_MAX =
4623 SensitiveContentMediaProjectionSession_State_State_MAX;
4624 static constexpr int State_ARRAYSIZE =
4625 SensitiveContentMediaProjectionSession_State_State_ARRAYSIZE;
4626 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
4627 State_descriptor() {
4628 return SensitiveContentMediaProjectionSession_State_descriptor();
4629 }
4630 template<typename T>
4631 static inline const std::string& State_Name(T enum_t_value) {
4632 static_assert(::std::is_same<T, State>::value ||
4633 ::std::is_integral<T>::value,
4634 "Incorrect type passed to function State_Name.");
4635 return SensitiveContentMediaProjectionSession_State_Name(enum_t_value);
4636 }
4637 static inline bool State_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
4638 State* value) {
4639 return SensitiveContentMediaProjectionSession_State_Parse(name, value);
4640 }
4641
4642 typedef SensitiveContentMediaProjectionSession_LoggingSource LoggingSource;
4643 static constexpr LoggingSource UNDEFINED_SOURCE =
4644 SensitiveContentMediaProjectionSession_LoggingSource_UNDEFINED_SOURCE;
4645 static constexpr LoggingSource SYS_UI =
4646 SensitiveContentMediaProjectionSession_LoggingSource_SYS_UI;
4647 static constexpr LoggingSource FRAMEWORKS =
4648 SensitiveContentMediaProjectionSession_LoggingSource_FRAMEWORKS;
4649 static inline bool LoggingSource_IsValid(int value) {
4650 return SensitiveContentMediaProjectionSession_LoggingSource_IsValid(value);
4651 }
4652 static constexpr LoggingSource LoggingSource_MIN =
4653 SensitiveContentMediaProjectionSession_LoggingSource_LoggingSource_MIN;
4654 static constexpr LoggingSource LoggingSource_MAX =
4655 SensitiveContentMediaProjectionSession_LoggingSource_LoggingSource_MAX;
4656 static constexpr int LoggingSource_ARRAYSIZE =
4657 SensitiveContentMediaProjectionSession_LoggingSource_LoggingSource_ARRAYSIZE;
4658 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
4659 LoggingSource_descriptor() {
4660 return SensitiveContentMediaProjectionSession_LoggingSource_descriptor();
4661 }
4662 template<typename T>
4663 static inline const std::string& LoggingSource_Name(T enum_t_value) {
4664 static_assert(::std::is_same<T, LoggingSource>::value ||
4665 ::std::is_integral<T>::value,
4666 "Incorrect type passed to function LoggingSource_Name.");
4667 return SensitiveContentMediaProjectionSession_LoggingSource_Name(enum_t_value);
4668 }
4669 static inline bool LoggingSource_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
4670 LoggingSource* value) {
4671 return SensitiveContentMediaProjectionSession_LoggingSource_Parse(name, value);
4672 }
4673
4674 // accessors -------------------------------------------------------
4675
4676 enum : int {
4677 kSessionIdFieldNumber = 1,
4678 kProjectionAppUidFieldNumber = 2,
4679 kExemptedFieldNumber = 3,
4680 kStateFieldNumber = 4,
4681 kSourceFieldNumber = 5,
4682 };
4683 // optional int64 session_id = 1;
4684 bool has_session_id() const;
4685 private:
4686 bool _internal_has_session_id() const;
4687 public:
4688 void clear_session_id();
4689 ::int64_t session_id() const;
4690 void set_session_id(::int64_t value);
4691 private:
4692 ::int64_t _internal_session_id() const;
4693 void _internal_set_session_id(::int64_t value);
4694 public:
4695
4696 // optional int32 projection_app_uid = 2 [(.android.os.statsd.is_uid) = true];
4697 bool has_projection_app_uid() const;
4698 private:
4699 bool _internal_has_projection_app_uid() const;
4700 public:
4701 void clear_projection_app_uid();
4702 ::int32_t projection_app_uid() const;
4703 void set_projection_app_uid(::int32_t value);
4704 private:
4705 ::int32_t _internal_projection_app_uid() const;
4706 void _internal_set_projection_app_uid(::int32_t value);
4707 public:
4708
4709 // optional bool exempted = 3;
4710 bool has_exempted() const;
4711 private:
4712 bool _internal_has_exempted() const;
4713 public:
4714 void clear_exempted();
4715 bool exempted() const;
4716 void set_exempted(bool value);
4717 private:
4718 bool _internal_exempted() const;
4719 void _internal_set_exempted(bool value);
4720 public:
4721
4722 // optional .android.os.statsd.framework.SensitiveContentMediaProjectionSession.State state = 4;
4723 bool has_state() const;
4724 private:
4725 bool _internal_has_state() const;
4726 public:
4727 void clear_state();
4728 ::android::os::statsd::framework::SensitiveContentMediaProjectionSession_State state() const;
4729 void set_state(::android::os::statsd::framework::SensitiveContentMediaProjectionSession_State value);
4730 private:
4731 ::android::os::statsd::framework::SensitiveContentMediaProjectionSession_State _internal_state() const;
4732 void _internal_set_state(::android::os::statsd::framework::SensitiveContentMediaProjectionSession_State value);
4733 public:
4734
4735 // optional .android.os.statsd.framework.SensitiveContentMediaProjectionSession.LoggingSource source = 5;
4736 bool has_source() const;
4737 private:
4738 bool _internal_has_source() const;
4739 public:
4740 void clear_source();
4741 ::android::os::statsd::framework::SensitiveContentMediaProjectionSession_LoggingSource source() const;
4742 void set_source(::android::os::statsd::framework::SensitiveContentMediaProjectionSession_LoggingSource value);
4743 private:
4744 ::android::os::statsd::framework::SensitiveContentMediaProjectionSession_LoggingSource _internal_source() const;
4745 void _internal_set_source(::android::os::statsd::framework::SensitiveContentMediaProjectionSession_LoggingSource value);
4746 public:
4747
4748 // @@protoc_insertion_point(class_scope:android.os.statsd.framework.SensitiveContentMediaProjectionSession)
4749 private:
4750 class _Internal;
4751
4752 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
4753 typedef void InternalArenaConstructable_;
4754 typedef void DestructorSkippable_;
4755 struct Impl_ {
4756 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
4757 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
4758 ::int64_t session_id_;
4759 ::int32_t projection_app_uid_;
4760 bool exempted_;
4761 int state_;
4762 int source_;
4763 };
4764 union { Impl_ _impl_; };
4765 friend struct ::TableStruct_frameworks_2fproto_5flogging_2fstats_2fatoms_2fframework_2fframework_5fextension_5fatoms_2eproto;
4766 };
4767 // -------------------------------------------------------------------
4768
4769 class SensitiveNotificationAppProtectionSession final :
4770 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:android.os.statsd.framework.SensitiveNotificationAppProtectionSession) */ {
4771 public:
SensitiveNotificationAppProtectionSession()4772 inline SensitiveNotificationAppProtectionSession() : SensitiveNotificationAppProtectionSession(nullptr) {}
4773 ~SensitiveNotificationAppProtectionSession() override;
4774 explicit PROTOBUF_CONSTEXPR SensitiveNotificationAppProtectionSession(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
4775
4776 SensitiveNotificationAppProtectionSession(const SensitiveNotificationAppProtectionSession& from);
SensitiveNotificationAppProtectionSession(SensitiveNotificationAppProtectionSession && from)4777 SensitiveNotificationAppProtectionSession(SensitiveNotificationAppProtectionSession&& from) noexcept
4778 : SensitiveNotificationAppProtectionSession() {
4779 *this = ::std::move(from);
4780 }
4781
4782 inline SensitiveNotificationAppProtectionSession& operator=(const SensitiveNotificationAppProtectionSession& from) {
4783 if (this == &from) return *this;
4784 CopyFrom(from);
4785 return *this;
4786 }
4787 inline SensitiveNotificationAppProtectionSession& operator=(SensitiveNotificationAppProtectionSession&& from) noexcept {
4788 if (this == &from) return *this;
4789 if (GetOwningArena() == from.GetOwningArena()
4790 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
4791 && GetOwningArena() != nullptr
4792 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
4793 ) {
4794 InternalSwap(&from);
4795 } else {
4796 CopyFrom(from);
4797 }
4798 return *this;
4799 }
4800
unknown_fields()4801 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
4802 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
4803 }
mutable_unknown_fields()4804 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
4805 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
4806 }
4807
descriptor()4808 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
4809 return GetDescriptor();
4810 }
GetDescriptor()4811 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
4812 return default_instance().GetMetadata().descriptor;
4813 }
GetReflection()4814 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
4815 return default_instance().GetMetadata().reflection;
4816 }
default_instance()4817 static const SensitiveNotificationAppProtectionSession& default_instance() {
4818 return *internal_default_instance();
4819 }
internal_default_instance()4820 static inline const SensitiveNotificationAppProtectionSession* internal_default_instance() {
4821 return reinterpret_cast<const SensitiveNotificationAppProtectionSession*>(
4822 &_SensitiveNotificationAppProtectionSession_default_instance_);
4823 }
4824 static constexpr int kIndexInFileMessages =
4825 13;
4826
swap(SensitiveNotificationAppProtectionSession & a,SensitiveNotificationAppProtectionSession & b)4827 friend void swap(SensitiveNotificationAppProtectionSession& a, SensitiveNotificationAppProtectionSession& b) {
4828 a.Swap(&b);
4829 }
Swap(SensitiveNotificationAppProtectionSession * other)4830 inline void Swap(SensitiveNotificationAppProtectionSession* other) {
4831 if (other == this) return;
4832 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
4833 if (GetOwningArena() != nullptr &&
4834 GetOwningArena() == other->GetOwningArena()) {
4835 #else // PROTOBUF_FORCE_COPY_IN_SWAP
4836 if (GetOwningArena() == other->GetOwningArena()) {
4837 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
4838 InternalSwap(other);
4839 } else {
4840 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
4841 }
4842 }
4843 void UnsafeArenaSwap(SensitiveNotificationAppProtectionSession* other) {
4844 if (other == this) return;
4845 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
4846 InternalSwap(other);
4847 }
4848
4849 // implements Message ----------------------------------------------
4850
4851 SensitiveNotificationAppProtectionSession* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
4852 return CreateMaybeMessage<SensitiveNotificationAppProtectionSession>(arena);
4853 }
4854 SensitiveNotificationAppProtectionSession* New() const {
4855 return New(nullptr);
4856 }
4857 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
4858 void CopyFrom(const SensitiveNotificationAppProtectionSession& from);
4859 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
4860 void MergeFrom( const SensitiveNotificationAppProtectionSession& from) {
4861 SensitiveNotificationAppProtectionSession::MergeImpl(*this, from);
4862 }
4863 private:
4864 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
4865 public:
4866 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
4867 bool IsInitialized() const final;
4868
4869 size_t ByteSizeLong() const final;
4870 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
4871 ::uint8_t* _InternalSerialize(
4872 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
4873 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
4874
4875 private:
4876 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
4877 void SharedDtor();
4878 void SetCachedSize(int size) const final;
4879 void InternalSwap(SensitiveNotificationAppProtectionSession* other);
4880
4881 private:
4882 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
4883 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
4884 return "android.os.statsd.framework.SensitiveNotificationAppProtectionSession";
4885 }
4886 protected:
4887 explicit SensitiveNotificationAppProtectionSession(::PROTOBUF_NAMESPACE_ID::Arena* arena,
4888 bool is_message_owned = false);
4889 public:
4890
4891 static const ClassData _class_data_;
4892 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
4893
4894 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
4895
4896 // nested types ----------------------------------------------------
4897
4898 // accessors -------------------------------------------------------
4899
4900 enum : int {
4901 kSessionIdFieldNumber = 1,
4902 kNumNotificationsFieldNumber = 2,
4903 kNumOtpNotificationsFieldNumber = 3,
4904 };
4905 // optional int64 session_id = 1;
4906 bool has_session_id() const;
4907 private:
4908 bool _internal_has_session_id() const;
4909 public:
4910 void clear_session_id();
4911 ::int64_t session_id() const;
4912 void set_session_id(::int64_t value);
4913 private:
4914 ::int64_t _internal_session_id() const;
4915 void _internal_set_session_id(::int64_t value);
4916 public:
4917
4918 // optional int32 num_notifications = 2;
4919 bool has_num_notifications() const;
4920 private:
4921 bool _internal_has_num_notifications() const;
4922 public:
4923 void clear_num_notifications();
4924 ::int32_t num_notifications() const;
4925 void set_num_notifications(::int32_t value);
4926 private:
4927 ::int32_t _internal_num_notifications() const;
4928 void _internal_set_num_notifications(::int32_t value);
4929 public:
4930
4931 // optional int32 num_otp_notifications = 3;
4932 bool has_num_otp_notifications() const;
4933 private:
4934 bool _internal_has_num_otp_notifications() const;
4935 public:
4936 void clear_num_otp_notifications();
4937 ::int32_t num_otp_notifications() const;
4938 void set_num_otp_notifications(::int32_t value);
4939 private:
4940 ::int32_t _internal_num_otp_notifications() const;
4941 void _internal_set_num_otp_notifications(::int32_t value);
4942 public:
4943
4944 // @@protoc_insertion_point(class_scope:android.os.statsd.framework.SensitiveNotificationAppProtectionSession)
4945 private:
4946 class _Internal;
4947
4948 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
4949 typedef void InternalArenaConstructable_;
4950 typedef void DestructorSkippable_;
4951 struct Impl_ {
4952 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
4953 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
4954 ::int64_t session_id_;
4955 ::int32_t num_notifications_;
4956 ::int32_t num_otp_notifications_;
4957 };
4958 union { Impl_ _impl_; };
4959 friend struct ::TableStruct_frameworks_2fproto_5flogging_2fstats_2fatoms_2fframework_2fframework_5fextension_5fatoms_2eproto;
4960 };
4961 // -------------------------------------------------------------------
4962
4963 class SensitiveNotificationAppProtectionApplied final :
4964 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:android.os.statsd.framework.SensitiveNotificationAppProtectionApplied) */ {
4965 public:
SensitiveNotificationAppProtectionApplied()4966 inline SensitiveNotificationAppProtectionApplied() : SensitiveNotificationAppProtectionApplied(nullptr) {}
4967 ~SensitiveNotificationAppProtectionApplied() override;
4968 explicit PROTOBUF_CONSTEXPR SensitiveNotificationAppProtectionApplied(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
4969
4970 SensitiveNotificationAppProtectionApplied(const SensitiveNotificationAppProtectionApplied& from);
SensitiveNotificationAppProtectionApplied(SensitiveNotificationAppProtectionApplied && from)4971 SensitiveNotificationAppProtectionApplied(SensitiveNotificationAppProtectionApplied&& from) noexcept
4972 : SensitiveNotificationAppProtectionApplied() {
4973 *this = ::std::move(from);
4974 }
4975
4976 inline SensitiveNotificationAppProtectionApplied& operator=(const SensitiveNotificationAppProtectionApplied& from) {
4977 if (this == &from) return *this;
4978 CopyFrom(from);
4979 return *this;
4980 }
4981 inline SensitiveNotificationAppProtectionApplied& operator=(SensitiveNotificationAppProtectionApplied&& from) noexcept {
4982 if (this == &from) return *this;
4983 if (GetOwningArena() == from.GetOwningArena()
4984 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
4985 && GetOwningArena() != nullptr
4986 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
4987 ) {
4988 InternalSwap(&from);
4989 } else {
4990 CopyFrom(from);
4991 }
4992 return *this;
4993 }
4994
unknown_fields()4995 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
4996 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
4997 }
mutable_unknown_fields()4998 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
4999 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
5000 }
5001
descriptor()5002 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
5003 return GetDescriptor();
5004 }
GetDescriptor()5005 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
5006 return default_instance().GetMetadata().descriptor;
5007 }
GetReflection()5008 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
5009 return default_instance().GetMetadata().reflection;
5010 }
default_instance()5011 static const SensitiveNotificationAppProtectionApplied& default_instance() {
5012 return *internal_default_instance();
5013 }
internal_default_instance()5014 static inline const SensitiveNotificationAppProtectionApplied* internal_default_instance() {
5015 return reinterpret_cast<const SensitiveNotificationAppProtectionApplied*>(
5016 &_SensitiveNotificationAppProtectionApplied_default_instance_);
5017 }
5018 static constexpr int kIndexInFileMessages =
5019 14;
5020
swap(SensitiveNotificationAppProtectionApplied & a,SensitiveNotificationAppProtectionApplied & b)5021 friend void swap(SensitiveNotificationAppProtectionApplied& a, SensitiveNotificationAppProtectionApplied& b) {
5022 a.Swap(&b);
5023 }
Swap(SensitiveNotificationAppProtectionApplied * other)5024 inline void Swap(SensitiveNotificationAppProtectionApplied* other) {
5025 if (other == this) return;
5026 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
5027 if (GetOwningArena() != nullptr &&
5028 GetOwningArena() == other->GetOwningArena()) {
5029 #else // PROTOBUF_FORCE_COPY_IN_SWAP
5030 if (GetOwningArena() == other->GetOwningArena()) {
5031 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
5032 InternalSwap(other);
5033 } else {
5034 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
5035 }
5036 }
5037 void UnsafeArenaSwap(SensitiveNotificationAppProtectionApplied* other) {
5038 if (other == this) return;
5039 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
5040 InternalSwap(other);
5041 }
5042
5043 // implements Message ----------------------------------------------
5044
5045 SensitiveNotificationAppProtectionApplied* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
5046 return CreateMaybeMessage<SensitiveNotificationAppProtectionApplied>(arena);
5047 }
5048 SensitiveNotificationAppProtectionApplied* New() const {
5049 return New(nullptr);
5050 }
5051 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
5052 void CopyFrom(const SensitiveNotificationAppProtectionApplied& from);
5053 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
5054 void MergeFrom( const SensitiveNotificationAppProtectionApplied& from) {
5055 SensitiveNotificationAppProtectionApplied::MergeImpl(*this, from);
5056 }
5057 private:
5058 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
5059 public:
5060 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
5061 bool IsInitialized() const final;
5062
5063 size_t ByteSizeLong() const final;
5064 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
5065 ::uint8_t* _InternalSerialize(
5066 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
5067 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
5068
5069 private:
5070 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
5071 void SharedDtor();
5072 void SetCachedSize(int size) const final;
5073 void InternalSwap(SensitiveNotificationAppProtectionApplied* other);
5074
5075 private:
5076 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
5077 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
5078 return "android.os.statsd.framework.SensitiveNotificationAppProtectionApplied";
5079 }
5080 protected:
5081 explicit SensitiveNotificationAppProtectionApplied(::PROTOBUF_NAMESPACE_ID::Arena* arena,
5082 bool is_message_owned = false);
5083 public:
5084
5085 static const ClassData _class_data_;
5086 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
5087
5088 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
5089
5090 // nested types ----------------------------------------------------
5091
5092 // accessors -------------------------------------------------------
5093
5094 enum : int {
5095 kSessionIdFieldNumber = 1,
5096 kUidFieldNumber = 2,
5097 };
5098 // optional int64 session_id = 1;
5099 bool has_session_id() const;
5100 private:
5101 bool _internal_has_session_id() const;
5102 public:
5103 void clear_session_id();
5104 ::int64_t session_id() const;
5105 void set_session_id(::int64_t value);
5106 private:
5107 ::int64_t _internal_session_id() const;
5108 void _internal_set_session_id(::int64_t value);
5109 public:
5110
5111 // optional int32 uid = 2 [(.android.os.statsd.is_uid) = true];
5112 bool has_uid() const;
5113 private:
5114 bool _internal_has_uid() const;
5115 public:
5116 void clear_uid();
5117 ::int32_t uid() const;
5118 void set_uid(::int32_t value);
5119 private:
5120 ::int32_t _internal_uid() const;
5121 void _internal_set_uid(::int32_t value);
5122 public:
5123
5124 // @@protoc_insertion_point(class_scope:android.os.statsd.framework.SensitiveNotificationAppProtectionApplied)
5125 private:
5126 class _Internal;
5127
5128 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
5129 typedef void InternalArenaConstructable_;
5130 typedef void DestructorSkippable_;
5131 struct Impl_ {
5132 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
5133 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
5134 ::int64_t session_id_;
5135 ::int32_t uid_;
5136 };
5137 union { Impl_ _impl_; };
5138 friend struct ::TableStruct_frameworks_2fproto_5flogging_2fstats_2fatoms_2fframework_2fframework_5fextension_5fatoms_2eproto;
5139 };
5140 // -------------------------------------------------------------------
5141
5142 class SensitiveNotificationRedaction final :
5143 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:android.os.statsd.framework.SensitiveNotificationRedaction) */ {
5144 public:
SensitiveNotificationRedaction()5145 inline SensitiveNotificationRedaction() : SensitiveNotificationRedaction(nullptr) {}
5146 ~SensitiveNotificationRedaction() override;
5147 explicit PROTOBUF_CONSTEXPR SensitiveNotificationRedaction(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
5148
5149 SensitiveNotificationRedaction(const SensitiveNotificationRedaction& from);
SensitiveNotificationRedaction(SensitiveNotificationRedaction && from)5150 SensitiveNotificationRedaction(SensitiveNotificationRedaction&& from) noexcept
5151 : SensitiveNotificationRedaction() {
5152 *this = ::std::move(from);
5153 }
5154
5155 inline SensitiveNotificationRedaction& operator=(const SensitiveNotificationRedaction& from) {
5156 if (this == &from) return *this;
5157 CopyFrom(from);
5158 return *this;
5159 }
5160 inline SensitiveNotificationRedaction& operator=(SensitiveNotificationRedaction&& from) noexcept {
5161 if (this == &from) return *this;
5162 if (GetOwningArena() == from.GetOwningArena()
5163 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
5164 && GetOwningArena() != nullptr
5165 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
5166 ) {
5167 InternalSwap(&from);
5168 } else {
5169 CopyFrom(from);
5170 }
5171 return *this;
5172 }
5173
unknown_fields()5174 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
5175 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
5176 }
mutable_unknown_fields()5177 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
5178 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
5179 }
5180
descriptor()5181 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
5182 return GetDescriptor();
5183 }
GetDescriptor()5184 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
5185 return default_instance().GetMetadata().descriptor;
5186 }
GetReflection()5187 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
5188 return default_instance().GetMetadata().reflection;
5189 }
default_instance()5190 static const SensitiveNotificationRedaction& default_instance() {
5191 return *internal_default_instance();
5192 }
internal_default_instance()5193 static inline const SensitiveNotificationRedaction* internal_default_instance() {
5194 return reinterpret_cast<const SensitiveNotificationRedaction*>(
5195 &_SensitiveNotificationRedaction_default_instance_);
5196 }
5197 static constexpr int kIndexInFileMessages =
5198 15;
5199
swap(SensitiveNotificationRedaction & a,SensitiveNotificationRedaction & b)5200 friend void swap(SensitiveNotificationRedaction& a, SensitiveNotificationRedaction& b) {
5201 a.Swap(&b);
5202 }
Swap(SensitiveNotificationRedaction * other)5203 inline void Swap(SensitiveNotificationRedaction* other) {
5204 if (other == this) return;
5205 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
5206 if (GetOwningArena() != nullptr &&
5207 GetOwningArena() == other->GetOwningArena()) {
5208 #else // PROTOBUF_FORCE_COPY_IN_SWAP
5209 if (GetOwningArena() == other->GetOwningArena()) {
5210 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
5211 InternalSwap(other);
5212 } else {
5213 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
5214 }
5215 }
5216 void UnsafeArenaSwap(SensitiveNotificationRedaction* other) {
5217 if (other == this) return;
5218 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
5219 InternalSwap(other);
5220 }
5221
5222 // implements Message ----------------------------------------------
5223
5224 SensitiveNotificationRedaction* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
5225 return CreateMaybeMessage<SensitiveNotificationRedaction>(arena);
5226 }
5227 SensitiveNotificationRedaction* New() const {
5228 return New(nullptr);
5229 }
5230 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
5231 void CopyFrom(const SensitiveNotificationRedaction& from);
5232 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
5233 void MergeFrom( const SensitiveNotificationRedaction& from) {
5234 SensitiveNotificationRedaction::MergeImpl(*this, from);
5235 }
5236 private:
5237 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
5238 public:
5239 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
5240 bool IsInitialized() const final;
5241
5242 size_t ByteSizeLong() const final;
5243 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
5244 ::uint8_t* _InternalSerialize(
5245 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
5246 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
5247
5248 private:
5249 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
5250 void SharedDtor();
5251 void SetCachedSize(int size) const final;
5252 void InternalSwap(SensitiveNotificationRedaction* other);
5253
5254 private:
5255 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
5256 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
5257 return "android.os.statsd.framework.SensitiveNotificationRedaction";
5258 }
5259 protected:
5260 explicit SensitiveNotificationRedaction(::PROTOBUF_NAMESPACE_ID::Arena* arena,
5261 bool is_message_owned = false);
5262 public:
5263
5264 static const ClassData _class_data_;
5265 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
5266
5267 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
5268
5269 // nested types ----------------------------------------------------
5270
5271 // accessors -------------------------------------------------------
5272
5273 enum : int {
5274 kReceiveAdjustmentBeforePostFieldNumber = 1,
5275 kRedactFieldNumber = 2,
5276 kLatencyMsFieldNumber = 3,
5277 };
5278 // optional bool receive_adjustment_before_post = 1;
5279 bool has_receive_adjustment_before_post() const;
5280 private:
5281 bool _internal_has_receive_adjustment_before_post() const;
5282 public:
5283 void clear_receive_adjustment_before_post();
5284 bool receive_adjustment_before_post() const;
5285 void set_receive_adjustment_before_post(bool value);
5286 private:
5287 bool _internal_receive_adjustment_before_post() const;
5288 void _internal_set_receive_adjustment_before_post(bool value);
5289 public:
5290
5291 // optional bool redact = 2;
5292 bool has_redact() const;
5293 private:
5294 bool _internal_has_redact() const;
5295 public:
5296 void clear_redact();
5297 bool redact() const;
5298 void set_redact(bool value);
5299 private:
5300 bool _internal_redact() const;
5301 void _internal_set_redact(bool value);
5302 public:
5303
5304 // optional int32 latency_ms = 3;
5305 bool has_latency_ms() const;
5306 private:
5307 bool _internal_has_latency_ms() const;
5308 public:
5309 void clear_latency_ms();
5310 ::int32_t latency_ms() const;
5311 void set_latency_ms(::int32_t value);
5312 private:
5313 ::int32_t _internal_latency_ms() const;
5314 void _internal_set_latency_ms(::int32_t value);
5315 public:
5316
5317 // @@protoc_insertion_point(class_scope:android.os.statsd.framework.SensitiveNotificationRedaction)
5318 private:
5319 class _Internal;
5320
5321 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
5322 typedef void InternalArenaConstructable_;
5323 typedef void DestructorSkippable_;
5324 struct Impl_ {
5325 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
5326 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
5327 bool receive_adjustment_before_post_;
5328 bool redact_;
5329 ::int32_t latency_ms_;
5330 };
5331 union { Impl_ _impl_; };
5332 friend struct ::TableStruct_frameworks_2fproto_5flogging_2fstats_2fatoms_2fframework_2fframework_5fextension_5fatoms_2eproto;
5333 };
5334 // -------------------------------------------------------------------
5335
5336 class SensitiveContentAppProtection final :
5337 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:android.os.statsd.framework.SensitiveContentAppProtection) */ {
5338 public:
SensitiveContentAppProtection()5339 inline SensitiveContentAppProtection() : SensitiveContentAppProtection(nullptr) {}
5340 ~SensitiveContentAppProtection() override;
5341 explicit PROTOBUF_CONSTEXPR SensitiveContentAppProtection(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
5342
5343 SensitiveContentAppProtection(const SensitiveContentAppProtection& from);
SensitiveContentAppProtection(SensitiveContentAppProtection && from)5344 SensitiveContentAppProtection(SensitiveContentAppProtection&& from) noexcept
5345 : SensitiveContentAppProtection() {
5346 *this = ::std::move(from);
5347 }
5348
5349 inline SensitiveContentAppProtection& operator=(const SensitiveContentAppProtection& from) {
5350 if (this == &from) return *this;
5351 CopyFrom(from);
5352 return *this;
5353 }
5354 inline SensitiveContentAppProtection& operator=(SensitiveContentAppProtection&& from) noexcept {
5355 if (this == &from) return *this;
5356 if (GetOwningArena() == from.GetOwningArena()
5357 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
5358 && GetOwningArena() != nullptr
5359 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
5360 ) {
5361 InternalSwap(&from);
5362 } else {
5363 CopyFrom(from);
5364 }
5365 return *this;
5366 }
5367
unknown_fields()5368 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
5369 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
5370 }
mutable_unknown_fields()5371 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
5372 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
5373 }
5374
descriptor()5375 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
5376 return GetDescriptor();
5377 }
GetDescriptor()5378 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
5379 return default_instance().GetMetadata().descriptor;
5380 }
GetReflection()5381 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
5382 return default_instance().GetMetadata().reflection;
5383 }
default_instance()5384 static const SensitiveContentAppProtection& default_instance() {
5385 return *internal_default_instance();
5386 }
internal_default_instance()5387 static inline const SensitiveContentAppProtection* internal_default_instance() {
5388 return reinterpret_cast<const SensitiveContentAppProtection*>(
5389 &_SensitiveContentAppProtection_default_instance_);
5390 }
5391 static constexpr int kIndexInFileMessages =
5392 16;
5393
swap(SensitiveContentAppProtection & a,SensitiveContentAppProtection & b)5394 friend void swap(SensitiveContentAppProtection& a, SensitiveContentAppProtection& b) {
5395 a.Swap(&b);
5396 }
Swap(SensitiveContentAppProtection * other)5397 inline void Swap(SensitiveContentAppProtection* other) {
5398 if (other == this) return;
5399 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
5400 if (GetOwningArena() != nullptr &&
5401 GetOwningArena() == other->GetOwningArena()) {
5402 #else // PROTOBUF_FORCE_COPY_IN_SWAP
5403 if (GetOwningArena() == other->GetOwningArena()) {
5404 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
5405 InternalSwap(other);
5406 } else {
5407 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
5408 }
5409 }
5410 void UnsafeArenaSwap(SensitiveContentAppProtection* other) {
5411 if (other == this) return;
5412 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
5413 InternalSwap(other);
5414 }
5415
5416 // implements Message ----------------------------------------------
5417
5418 SensitiveContentAppProtection* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
5419 return CreateMaybeMessage<SensitiveContentAppProtection>(arena);
5420 }
5421 SensitiveContentAppProtection* New() const {
5422 return New(nullptr);
5423 }
5424 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
5425 void CopyFrom(const SensitiveContentAppProtection& from);
5426 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
5427 void MergeFrom( const SensitiveContentAppProtection& from) {
5428 SensitiveContentAppProtection::MergeImpl(*this, from);
5429 }
5430 private:
5431 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
5432 public:
5433 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
5434 bool IsInitialized() const final;
5435
5436 size_t ByteSizeLong() const final;
5437 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
5438 ::uint8_t* _InternalSerialize(
5439 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
5440 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
5441
5442 private:
5443 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
5444 void SharedDtor();
5445 void SetCachedSize(int size) const final;
5446 void InternalSwap(SensitiveContentAppProtection* other);
5447
5448 private:
5449 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
5450 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
5451 return "android.os.statsd.framework.SensitiveContentAppProtection";
5452 }
5453 protected:
5454 explicit SensitiveContentAppProtection(::PROTOBUF_NAMESPACE_ID::Arena* arena,
5455 bool is_message_owned = false);
5456 public:
5457
5458 static const ClassData _class_data_;
5459 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
5460
5461 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
5462
5463 // nested types ----------------------------------------------------
5464
5465 typedef SensitiveContentAppProtection_State State;
5466 static constexpr State UNKNOWN =
5467 SensitiveContentAppProtection_State_UNKNOWN;
5468 static constexpr State BLOCKED =
5469 SensitiveContentAppProtection_State_BLOCKED;
5470 static constexpr State UNBLOCKED =
5471 SensitiveContentAppProtection_State_UNBLOCKED;
5472 static inline bool State_IsValid(int value) {
5473 return SensitiveContentAppProtection_State_IsValid(value);
5474 }
5475 static constexpr State State_MIN =
5476 SensitiveContentAppProtection_State_State_MIN;
5477 static constexpr State State_MAX =
5478 SensitiveContentAppProtection_State_State_MAX;
5479 static constexpr int State_ARRAYSIZE =
5480 SensitiveContentAppProtection_State_State_ARRAYSIZE;
5481 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
5482 State_descriptor() {
5483 return SensitiveContentAppProtection_State_descriptor();
5484 }
5485 template<typename T>
5486 static inline const std::string& State_Name(T enum_t_value) {
5487 static_assert(::std::is_same<T, State>::value ||
5488 ::std::is_integral<T>::value,
5489 "Incorrect type passed to function State_Name.");
5490 return SensitiveContentAppProtection_State_Name(enum_t_value);
5491 }
5492 static inline bool State_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
5493 State* value) {
5494 return SensitiveContentAppProtection_State_Parse(name, value);
5495 }
5496
5497 // accessors -------------------------------------------------------
5498
5499 enum : int {
5500 kSessionIdFieldNumber = 1,
5501 kProtectedUidFieldNumber = 2,
5502 kProjectionUidFieldNumber = 3,
5503 kStateFieldNumber = 4,
5504 };
5505 // optional int64 session_id = 1;
5506 bool has_session_id() const;
5507 private:
5508 bool _internal_has_session_id() const;
5509 public:
5510 void clear_session_id();
5511 ::int64_t session_id() const;
5512 void set_session_id(::int64_t value);
5513 private:
5514 ::int64_t _internal_session_id() const;
5515 void _internal_set_session_id(::int64_t value);
5516 public:
5517
5518 // optional int32 protected_uid = 2 [(.android.os.statsd.is_uid) = true];
5519 bool has_protected_uid() const;
5520 private:
5521 bool _internal_has_protected_uid() const;
5522 public:
5523 void clear_protected_uid();
5524 ::int32_t protected_uid() const;
5525 void set_protected_uid(::int32_t value);
5526 private:
5527 ::int32_t _internal_protected_uid() const;
5528 void _internal_set_protected_uid(::int32_t value);
5529 public:
5530
5531 // optional int32 projection_uid = 3 [(.android.os.statsd.is_uid) = true];
5532 bool has_projection_uid() const;
5533 private:
5534 bool _internal_has_projection_uid() const;
5535 public:
5536 void clear_projection_uid();
5537 ::int32_t projection_uid() const;
5538 void set_projection_uid(::int32_t value);
5539 private:
5540 ::int32_t _internal_projection_uid() const;
5541 void _internal_set_projection_uid(::int32_t value);
5542 public:
5543
5544 // optional .android.os.statsd.framework.SensitiveContentAppProtection.State state = 4;
5545 bool has_state() const;
5546 private:
5547 bool _internal_has_state() const;
5548 public:
5549 void clear_state();
5550 ::android::os::statsd::framework::SensitiveContentAppProtection_State state() const;
5551 void set_state(::android::os::statsd::framework::SensitiveContentAppProtection_State value);
5552 private:
5553 ::android::os::statsd::framework::SensitiveContentAppProtection_State _internal_state() const;
5554 void _internal_set_state(::android::os::statsd::framework::SensitiveContentAppProtection_State value);
5555 public:
5556
5557 // @@protoc_insertion_point(class_scope:android.os.statsd.framework.SensitiveContentAppProtection)
5558 private:
5559 class _Internal;
5560
5561 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
5562 typedef void InternalArenaConstructable_;
5563 typedef void DestructorSkippable_;
5564 struct Impl_ {
5565 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
5566 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
5567 ::int64_t session_id_;
5568 ::int32_t protected_uid_;
5569 ::int32_t projection_uid_;
5570 int state_;
5571 };
5572 union { Impl_ _impl_; };
5573 friend struct ::TableStruct_frameworks_2fproto_5flogging_2fstats_2fatoms_2fframework_2fframework_5fextension_5fatoms_2eproto;
5574 };
5575 // -------------------------------------------------------------------
5576
5577 class ExcessiveBinderProxyCountReported final :
5578 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:android.os.statsd.framework.ExcessiveBinderProxyCountReported) */ {
5579 public:
ExcessiveBinderProxyCountReported()5580 inline ExcessiveBinderProxyCountReported() : ExcessiveBinderProxyCountReported(nullptr) {}
5581 ~ExcessiveBinderProxyCountReported() override;
5582 explicit PROTOBUF_CONSTEXPR ExcessiveBinderProxyCountReported(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
5583
5584 ExcessiveBinderProxyCountReported(const ExcessiveBinderProxyCountReported& from);
ExcessiveBinderProxyCountReported(ExcessiveBinderProxyCountReported && from)5585 ExcessiveBinderProxyCountReported(ExcessiveBinderProxyCountReported&& from) noexcept
5586 : ExcessiveBinderProxyCountReported() {
5587 *this = ::std::move(from);
5588 }
5589
5590 inline ExcessiveBinderProxyCountReported& operator=(const ExcessiveBinderProxyCountReported& from) {
5591 if (this == &from) return *this;
5592 CopyFrom(from);
5593 return *this;
5594 }
5595 inline ExcessiveBinderProxyCountReported& operator=(ExcessiveBinderProxyCountReported&& from) noexcept {
5596 if (this == &from) return *this;
5597 if (GetOwningArena() == from.GetOwningArena()
5598 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
5599 && GetOwningArena() != nullptr
5600 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
5601 ) {
5602 InternalSwap(&from);
5603 } else {
5604 CopyFrom(from);
5605 }
5606 return *this;
5607 }
5608
unknown_fields()5609 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
5610 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
5611 }
mutable_unknown_fields()5612 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
5613 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
5614 }
5615
descriptor()5616 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
5617 return GetDescriptor();
5618 }
GetDescriptor()5619 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
5620 return default_instance().GetMetadata().descriptor;
5621 }
GetReflection()5622 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
5623 return default_instance().GetMetadata().reflection;
5624 }
default_instance()5625 static const ExcessiveBinderProxyCountReported& default_instance() {
5626 return *internal_default_instance();
5627 }
internal_default_instance()5628 static inline const ExcessiveBinderProxyCountReported* internal_default_instance() {
5629 return reinterpret_cast<const ExcessiveBinderProxyCountReported*>(
5630 &_ExcessiveBinderProxyCountReported_default_instance_);
5631 }
5632 static constexpr int kIndexInFileMessages =
5633 17;
5634
swap(ExcessiveBinderProxyCountReported & a,ExcessiveBinderProxyCountReported & b)5635 friend void swap(ExcessiveBinderProxyCountReported& a, ExcessiveBinderProxyCountReported& b) {
5636 a.Swap(&b);
5637 }
Swap(ExcessiveBinderProxyCountReported * other)5638 inline void Swap(ExcessiveBinderProxyCountReported* other) {
5639 if (other == this) return;
5640 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
5641 if (GetOwningArena() != nullptr &&
5642 GetOwningArena() == other->GetOwningArena()) {
5643 #else // PROTOBUF_FORCE_COPY_IN_SWAP
5644 if (GetOwningArena() == other->GetOwningArena()) {
5645 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
5646 InternalSwap(other);
5647 } else {
5648 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
5649 }
5650 }
5651 void UnsafeArenaSwap(ExcessiveBinderProxyCountReported* other) {
5652 if (other == this) return;
5653 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
5654 InternalSwap(other);
5655 }
5656
5657 // implements Message ----------------------------------------------
5658
5659 ExcessiveBinderProxyCountReported* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
5660 return CreateMaybeMessage<ExcessiveBinderProxyCountReported>(arena);
5661 }
5662 ExcessiveBinderProxyCountReported* New() const {
5663 return New(nullptr);
5664 }
5665 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
5666 void CopyFrom(const ExcessiveBinderProxyCountReported& from);
5667 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
5668 void MergeFrom( const ExcessiveBinderProxyCountReported& from) {
5669 ExcessiveBinderProxyCountReported::MergeImpl(*this, from);
5670 }
5671 private:
5672 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
5673 public:
5674 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
5675 bool IsInitialized() const final;
5676
5677 size_t ByteSizeLong() const final;
5678 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
5679 ::uint8_t* _InternalSerialize(
5680 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
5681 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
5682
5683 private:
5684 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
5685 void SharedDtor();
5686 void SetCachedSize(int size) const final;
5687 void InternalSwap(ExcessiveBinderProxyCountReported* other);
5688
5689 private:
5690 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
5691 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
5692 return "android.os.statsd.framework.ExcessiveBinderProxyCountReported";
5693 }
5694 protected:
5695 explicit ExcessiveBinderProxyCountReported(::PROTOBUF_NAMESPACE_ID::Arena* arena,
5696 bool is_message_owned = false);
5697 public:
5698
5699 static const ClassData _class_data_;
5700 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
5701
5702 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
5703
5704 // nested types ----------------------------------------------------
5705
5706 // accessors -------------------------------------------------------
5707
5708 enum : int {
5709 kOffendingUidFieldNumber = 1,
5710 };
5711 // optional int32 offending_uid = 1 [(.android.os.statsd.is_uid) = true];
5712 bool has_offending_uid() const;
5713 private:
5714 bool _internal_has_offending_uid() const;
5715 public:
5716 void clear_offending_uid();
5717 ::int32_t offending_uid() const;
5718 void set_offending_uid(::int32_t value);
5719 private:
5720 ::int32_t _internal_offending_uid() const;
5721 void _internal_set_offending_uid(::int32_t value);
5722 public:
5723
5724 // @@protoc_insertion_point(class_scope:android.os.statsd.framework.ExcessiveBinderProxyCountReported)
5725 private:
5726 class _Internal;
5727
5728 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
5729 typedef void InternalArenaConstructable_;
5730 typedef void DestructorSkippable_;
5731 struct Impl_ {
5732 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
5733 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
5734 ::int32_t offending_uid_;
5735 };
5736 union { Impl_ _impl_; };
5737 friend struct ::TableStruct_frameworks_2fproto_5flogging_2fstats_2fatoms_2fframework_2fframework_5fextension_5fatoms_2eproto;
5738 };
5739 // -------------------------------------------------------------------
5740
5741 class AppRestrictionStateChanged final :
5742 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:android.os.statsd.framework.AppRestrictionStateChanged) */ {
5743 public:
AppRestrictionStateChanged()5744 inline AppRestrictionStateChanged() : AppRestrictionStateChanged(nullptr) {}
5745 ~AppRestrictionStateChanged() override;
5746 explicit PROTOBUF_CONSTEXPR AppRestrictionStateChanged(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
5747
5748 AppRestrictionStateChanged(const AppRestrictionStateChanged& from);
AppRestrictionStateChanged(AppRestrictionStateChanged && from)5749 AppRestrictionStateChanged(AppRestrictionStateChanged&& from) noexcept
5750 : AppRestrictionStateChanged() {
5751 *this = ::std::move(from);
5752 }
5753
5754 inline AppRestrictionStateChanged& operator=(const AppRestrictionStateChanged& from) {
5755 if (this == &from) return *this;
5756 CopyFrom(from);
5757 return *this;
5758 }
5759 inline AppRestrictionStateChanged& operator=(AppRestrictionStateChanged&& from) noexcept {
5760 if (this == &from) return *this;
5761 if (GetOwningArena() == from.GetOwningArena()
5762 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
5763 && GetOwningArena() != nullptr
5764 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
5765 ) {
5766 InternalSwap(&from);
5767 } else {
5768 CopyFrom(from);
5769 }
5770 return *this;
5771 }
5772
unknown_fields()5773 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
5774 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
5775 }
mutable_unknown_fields()5776 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
5777 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
5778 }
5779
descriptor()5780 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
5781 return GetDescriptor();
5782 }
GetDescriptor()5783 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
5784 return default_instance().GetMetadata().descriptor;
5785 }
GetReflection()5786 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
5787 return default_instance().GetMetadata().reflection;
5788 }
default_instance()5789 static const AppRestrictionStateChanged& default_instance() {
5790 return *internal_default_instance();
5791 }
internal_default_instance()5792 static inline const AppRestrictionStateChanged* internal_default_instance() {
5793 return reinterpret_cast<const AppRestrictionStateChanged*>(
5794 &_AppRestrictionStateChanged_default_instance_);
5795 }
5796 static constexpr int kIndexInFileMessages =
5797 18;
5798
swap(AppRestrictionStateChanged & a,AppRestrictionStateChanged & b)5799 friend void swap(AppRestrictionStateChanged& a, AppRestrictionStateChanged& b) {
5800 a.Swap(&b);
5801 }
Swap(AppRestrictionStateChanged * other)5802 inline void Swap(AppRestrictionStateChanged* other) {
5803 if (other == this) return;
5804 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
5805 if (GetOwningArena() != nullptr &&
5806 GetOwningArena() == other->GetOwningArena()) {
5807 #else // PROTOBUF_FORCE_COPY_IN_SWAP
5808 if (GetOwningArena() == other->GetOwningArena()) {
5809 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
5810 InternalSwap(other);
5811 } else {
5812 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
5813 }
5814 }
5815 void UnsafeArenaSwap(AppRestrictionStateChanged* other) {
5816 if (other == this) return;
5817 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
5818 InternalSwap(other);
5819 }
5820
5821 // implements Message ----------------------------------------------
5822
5823 AppRestrictionStateChanged* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
5824 return CreateMaybeMessage<AppRestrictionStateChanged>(arena);
5825 }
5826 AppRestrictionStateChanged* New() const {
5827 return New(nullptr);
5828 }
5829 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
5830 void CopyFrom(const AppRestrictionStateChanged& from);
5831 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
5832 void MergeFrom( const AppRestrictionStateChanged& from) {
5833 AppRestrictionStateChanged::MergeImpl(*this, from);
5834 }
5835 private:
5836 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
5837 public:
5838 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
5839 bool IsInitialized() const final;
5840
5841 size_t ByteSizeLong() const final;
5842 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
5843 ::uint8_t* _InternalSerialize(
5844 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
5845 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
5846
5847 private:
5848 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
5849 void SharedDtor();
5850 void SetCachedSize(int size) const final;
5851 void InternalSwap(AppRestrictionStateChanged* other);
5852
5853 private:
5854 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
5855 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
5856 return "android.os.statsd.framework.AppRestrictionStateChanged";
5857 }
5858 protected:
5859 explicit AppRestrictionStateChanged(::PROTOBUF_NAMESPACE_ID::Arena* arena,
5860 bool is_message_owned = false);
5861 public:
5862
5863 static const ClassData _class_data_;
5864 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
5865
5866 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
5867
5868 // nested types ----------------------------------------------------
5869
5870 typedef AppRestrictionStateChanged_RestrictionType RestrictionType;
5871 static constexpr RestrictionType TYPE_UNKNOWN =
5872 AppRestrictionStateChanged_RestrictionType_TYPE_UNKNOWN;
5873 static constexpr RestrictionType TYPE_UNRESTRICTED =
5874 AppRestrictionStateChanged_RestrictionType_TYPE_UNRESTRICTED;
5875 static constexpr RestrictionType TYPE_EXEMPTED =
5876 AppRestrictionStateChanged_RestrictionType_TYPE_EXEMPTED;
5877 static constexpr RestrictionType TYPE_ADAPTIVE =
5878 AppRestrictionStateChanged_RestrictionType_TYPE_ADAPTIVE;
5879 static constexpr RestrictionType TYPE_RESTRICTED_BUCKET =
5880 AppRestrictionStateChanged_RestrictionType_TYPE_RESTRICTED_BUCKET;
5881 static constexpr RestrictionType TYPE_BACKGROUND_RESTRICTED =
5882 AppRestrictionStateChanged_RestrictionType_TYPE_BACKGROUND_RESTRICTED;
5883 static constexpr RestrictionType TYPE_FORCE_STOPPED =
5884 AppRestrictionStateChanged_RestrictionType_TYPE_FORCE_STOPPED;
5885 static constexpr RestrictionType TYPE_USER_LAUNCH_ONLY =
5886 AppRestrictionStateChanged_RestrictionType_TYPE_USER_LAUNCH_ONLY;
5887 static constexpr RestrictionType TYPE_CUSTOM =
5888 AppRestrictionStateChanged_RestrictionType_TYPE_CUSTOM;
5889 static inline bool RestrictionType_IsValid(int value) {
5890 return AppRestrictionStateChanged_RestrictionType_IsValid(value);
5891 }
5892 static constexpr RestrictionType RestrictionType_MIN =
5893 AppRestrictionStateChanged_RestrictionType_RestrictionType_MIN;
5894 static constexpr RestrictionType RestrictionType_MAX =
5895 AppRestrictionStateChanged_RestrictionType_RestrictionType_MAX;
5896 static constexpr int RestrictionType_ARRAYSIZE =
5897 AppRestrictionStateChanged_RestrictionType_RestrictionType_ARRAYSIZE;
5898 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
5899 RestrictionType_descriptor() {
5900 return AppRestrictionStateChanged_RestrictionType_descriptor();
5901 }
5902 template<typename T>
5903 static inline const std::string& RestrictionType_Name(T enum_t_value) {
5904 static_assert(::std::is_same<T, RestrictionType>::value ||
5905 ::std::is_integral<T>::value,
5906 "Incorrect type passed to function RestrictionType_Name.");
5907 return AppRestrictionStateChanged_RestrictionType_Name(enum_t_value);
5908 }
5909 static inline bool RestrictionType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
5910 RestrictionType* value) {
5911 return AppRestrictionStateChanged_RestrictionType_Parse(name, value);
5912 }
5913
5914 typedef AppRestrictionStateChanged_RestrictionChangeReason RestrictionChangeReason;
5915 static constexpr RestrictionChangeReason REASON_UNKNOWN =
5916 AppRestrictionStateChanged_RestrictionChangeReason_REASON_UNKNOWN;
5917 static constexpr RestrictionChangeReason REASON_DEFAULT =
5918 AppRestrictionStateChanged_RestrictionChangeReason_REASON_DEFAULT;
5919 static constexpr RestrictionChangeReason REASON_DORMANT =
5920 AppRestrictionStateChanged_RestrictionChangeReason_REASON_DORMANT;
5921 static constexpr RestrictionChangeReason REASON_USAGE =
5922 AppRestrictionStateChanged_RestrictionChangeReason_REASON_USAGE;
5923 static constexpr RestrictionChangeReason REASON_USER =
5924 AppRestrictionStateChanged_RestrictionChangeReason_REASON_USER;
5925 static constexpr RestrictionChangeReason REASON_SYSTEM_HEALTH =
5926 AppRestrictionStateChanged_RestrictionChangeReason_REASON_SYSTEM_HEALTH;
5927 static constexpr RestrictionChangeReason REASON_POLICY =
5928 AppRestrictionStateChanged_RestrictionChangeReason_REASON_POLICY;
5929 static constexpr RestrictionChangeReason REASON_OTHER =
5930 AppRestrictionStateChanged_RestrictionChangeReason_REASON_OTHER;
5931 static inline bool RestrictionChangeReason_IsValid(int value) {
5932 return AppRestrictionStateChanged_RestrictionChangeReason_IsValid(value);
5933 }
5934 static constexpr RestrictionChangeReason RestrictionChangeReason_MIN =
5935 AppRestrictionStateChanged_RestrictionChangeReason_RestrictionChangeReason_MIN;
5936 static constexpr RestrictionChangeReason RestrictionChangeReason_MAX =
5937 AppRestrictionStateChanged_RestrictionChangeReason_RestrictionChangeReason_MAX;
5938 static constexpr int RestrictionChangeReason_ARRAYSIZE =
5939 AppRestrictionStateChanged_RestrictionChangeReason_RestrictionChangeReason_ARRAYSIZE;
5940 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
5941 RestrictionChangeReason_descriptor() {
5942 return AppRestrictionStateChanged_RestrictionChangeReason_descriptor();
5943 }
5944 template<typename T>
5945 static inline const std::string& RestrictionChangeReason_Name(T enum_t_value) {
5946 static_assert(::std::is_same<T, RestrictionChangeReason>::value ||
5947 ::std::is_integral<T>::value,
5948 "Incorrect type passed to function RestrictionChangeReason_Name.");
5949 return AppRestrictionStateChanged_RestrictionChangeReason_Name(enum_t_value);
5950 }
5951 static inline bool RestrictionChangeReason_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
5952 RestrictionChangeReason* value) {
5953 return AppRestrictionStateChanged_RestrictionChangeReason_Parse(name, value);
5954 }
5955
5956 typedef AppRestrictionStateChanged_RestrictionChangeSource RestrictionChangeSource;
5957 static constexpr RestrictionChangeSource SOURCE_UNKNOWN =
5958 AppRestrictionStateChanged_RestrictionChangeSource_SOURCE_UNKNOWN;
5959 static constexpr RestrictionChangeSource SOURCE_USER =
5960 AppRestrictionStateChanged_RestrictionChangeSource_SOURCE_USER;
5961 static constexpr RestrictionChangeSource SOURCE_USER_NUDGED =
5962 AppRestrictionStateChanged_RestrictionChangeSource_SOURCE_USER_NUDGED;
5963 static constexpr RestrictionChangeSource SOURCE_SYSTEM =
5964 AppRestrictionStateChanged_RestrictionChangeSource_SOURCE_SYSTEM;
5965 static constexpr RestrictionChangeSource SOURCE_COMMAND_LINE =
5966 AppRestrictionStateChanged_RestrictionChangeSource_SOURCE_COMMAND_LINE;
5967 static constexpr RestrictionChangeSource SOURCE_REMOTE_TRIGGER =
5968 AppRestrictionStateChanged_RestrictionChangeSource_SOURCE_REMOTE_TRIGGER;
5969 static inline bool RestrictionChangeSource_IsValid(int value) {
5970 return AppRestrictionStateChanged_RestrictionChangeSource_IsValid(value);
5971 }
5972 static constexpr RestrictionChangeSource RestrictionChangeSource_MIN =
5973 AppRestrictionStateChanged_RestrictionChangeSource_RestrictionChangeSource_MIN;
5974 static constexpr RestrictionChangeSource RestrictionChangeSource_MAX =
5975 AppRestrictionStateChanged_RestrictionChangeSource_RestrictionChangeSource_MAX;
5976 static constexpr int RestrictionChangeSource_ARRAYSIZE =
5977 AppRestrictionStateChanged_RestrictionChangeSource_RestrictionChangeSource_ARRAYSIZE;
5978 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
5979 RestrictionChangeSource_descriptor() {
5980 return AppRestrictionStateChanged_RestrictionChangeSource_descriptor();
5981 }
5982 template<typename T>
5983 static inline const std::string& RestrictionChangeSource_Name(T enum_t_value) {
5984 static_assert(::std::is_same<T, RestrictionChangeSource>::value ||
5985 ::std::is_integral<T>::value,
5986 "Incorrect type passed to function RestrictionChangeSource_Name.");
5987 return AppRestrictionStateChanged_RestrictionChangeSource_Name(enum_t_value);
5988 }
5989 static inline bool RestrictionChangeSource_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
5990 RestrictionChangeSource* value) {
5991 return AppRestrictionStateChanged_RestrictionChangeSource_Parse(name, value);
5992 }
5993
5994 // accessors -------------------------------------------------------
5995
5996 enum : int {
5997 kSubReasonFieldNumber = 5,
5998 kUidFieldNumber = 1,
5999 kRestrictionTypeFieldNumber = 2,
6000 kEnabledFieldNumber = 3,
6001 kMainReasonFieldNumber = 4,
6002 kThresholdExceededFieldNumber = 6,
6003 kSourceFieldNumber = 7,
6004 };
6005 // optional string sub_reason = 5;
6006 bool has_sub_reason() const;
6007 private:
6008 bool _internal_has_sub_reason() const;
6009 public:
6010 void clear_sub_reason();
6011 const std::string& sub_reason() const;
6012 template <typename ArgT0 = const std::string&, typename... ArgT>
6013 void set_sub_reason(ArgT0&& arg0, ArgT... args);
6014 std::string* mutable_sub_reason();
6015 PROTOBUF_NODISCARD std::string* release_sub_reason();
6016 void set_allocated_sub_reason(std::string* sub_reason);
6017 private:
6018 const std::string& _internal_sub_reason() const;
6019 inline PROTOBUF_ALWAYS_INLINE void _internal_set_sub_reason(const std::string& value);
6020 std::string* _internal_mutable_sub_reason();
6021 public:
6022
6023 // optional int32 uid = 1 [(.android.os.statsd.is_uid) = true];
6024 bool has_uid() const;
6025 private:
6026 bool _internal_has_uid() const;
6027 public:
6028 void clear_uid();
6029 ::int32_t uid() const;
6030 void set_uid(::int32_t value);
6031 private:
6032 ::int32_t _internal_uid() const;
6033 void _internal_set_uid(::int32_t value);
6034 public:
6035
6036 // optional .android.os.statsd.framework.AppRestrictionStateChanged.RestrictionType restriction_type = 2;
6037 bool has_restriction_type() const;
6038 private:
6039 bool _internal_has_restriction_type() const;
6040 public:
6041 void clear_restriction_type();
6042 ::android::os::statsd::framework::AppRestrictionStateChanged_RestrictionType restriction_type() const;
6043 void set_restriction_type(::android::os::statsd::framework::AppRestrictionStateChanged_RestrictionType value);
6044 private:
6045 ::android::os::statsd::framework::AppRestrictionStateChanged_RestrictionType _internal_restriction_type() const;
6046 void _internal_set_restriction_type(::android::os::statsd::framework::AppRestrictionStateChanged_RestrictionType value);
6047 public:
6048
6049 // optional bool enabled = 3;
6050 bool has_enabled() const;
6051 private:
6052 bool _internal_has_enabled() const;
6053 public:
6054 void clear_enabled();
6055 bool enabled() const;
6056 void set_enabled(bool value);
6057 private:
6058 bool _internal_enabled() const;
6059 void _internal_set_enabled(bool value);
6060 public:
6061
6062 // optional .android.os.statsd.framework.AppRestrictionStateChanged.RestrictionChangeReason main_reason = 4;
6063 bool has_main_reason() const;
6064 private:
6065 bool _internal_has_main_reason() const;
6066 public:
6067 void clear_main_reason();
6068 ::android::os::statsd::framework::AppRestrictionStateChanged_RestrictionChangeReason main_reason() const;
6069 void set_main_reason(::android::os::statsd::framework::AppRestrictionStateChanged_RestrictionChangeReason value);
6070 private:
6071 ::android::os::statsd::framework::AppRestrictionStateChanged_RestrictionChangeReason _internal_main_reason() const;
6072 void _internal_set_main_reason(::android::os::statsd::framework::AppRestrictionStateChanged_RestrictionChangeReason value);
6073 public:
6074
6075 // optional int64 threshold_exceeded = 6;
6076 bool has_threshold_exceeded() const;
6077 private:
6078 bool _internal_has_threshold_exceeded() const;
6079 public:
6080 void clear_threshold_exceeded();
6081 ::int64_t threshold_exceeded() const;
6082 void set_threshold_exceeded(::int64_t value);
6083 private:
6084 ::int64_t _internal_threshold_exceeded() const;
6085 void _internal_set_threshold_exceeded(::int64_t value);
6086 public:
6087
6088 // optional .android.os.statsd.framework.AppRestrictionStateChanged.RestrictionChangeSource source = 7;
6089 bool has_source() const;
6090 private:
6091 bool _internal_has_source() const;
6092 public:
6093 void clear_source();
6094 ::android::os::statsd::framework::AppRestrictionStateChanged_RestrictionChangeSource source() const;
6095 void set_source(::android::os::statsd::framework::AppRestrictionStateChanged_RestrictionChangeSource value);
6096 private:
6097 ::android::os::statsd::framework::AppRestrictionStateChanged_RestrictionChangeSource _internal_source() const;
6098 void _internal_set_source(::android::os::statsd::framework::AppRestrictionStateChanged_RestrictionChangeSource value);
6099 public:
6100
6101 // @@protoc_insertion_point(class_scope:android.os.statsd.framework.AppRestrictionStateChanged)
6102 private:
6103 class _Internal;
6104
6105 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
6106 typedef void InternalArenaConstructable_;
6107 typedef void DestructorSkippable_;
6108 struct Impl_ {
6109 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
6110 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
6111 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr sub_reason_;
6112 ::int32_t uid_;
6113 int restriction_type_;
6114 bool enabled_;
6115 int main_reason_;
6116 ::int64_t threshold_exceeded_;
6117 int source_;
6118 };
6119 union { Impl_ _impl_; };
6120 friend struct ::TableStruct_frameworks_2fproto_5flogging_2fstats_2fatoms_2fframework_2fframework_5fextension_5fatoms_2eproto;
6121 };
6122 // -------------------------------------------------------------------
6123
6124 class BatteryUsageStatsPerUid final :
6125 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:android.os.statsd.framework.BatteryUsageStatsPerUid) */ {
6126 public:
BatteryUsageStatsPerUid()6127 inline BatteryUsageStatsPerUid() : BatteryUsageStatsPerUid(nullptr) {}
6128 ~BatteryUsageStatsPerUid() override;
6129 explicit PROTOBUF_CONSTEXPR BatteryUsageStatsPerUid(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
6130
6131 BatteryUsageStatsPerUid(const BatteryUsageStatsPerUid& from);
BatteryUsageStatsPerUid(BatteryUsageStatsPerUid && from)6132 BatteryUsageStatsPerUid(BatteryUsageStatsPerUid&& from) noexcept
6133 : BatteryUsageStatsPerUid() {
6134 *this = ::std::move(from);
6135 }
6136
6137 inline BatteryUsageStatsPerUid& operator=(const BatteryUsageStatsPerUid& from) {
6138 if (this == &from) return *this;
6139 CopyFrom(from);
6140 return *this;
6141 }
6142 inline BatteryUsageStatsPerUid& operator=(BatteryUsageStatsPerUid&& from) noexcept {
6143 if (this == &from) return *this;
6144 if (GetOwningArena() == from.GetOwningArena()
6145 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
6146 && GetOwningArena() != nullptr
6147 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
6148 ) {
6149 InternalSwap(&from);
6150 } else {
6151 CopyFrom(from);
6152 }
6153 return *this;
6154 }
6155
unknown_fields()6156 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
6157 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
6158 }
mutable_unknown_fields()6159 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
6160 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
6161 }
6162
descriptor()6163 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
6164 return GetDescriptor();
6165 }
GetDescriptor()6166 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
6167 return default_instance().GetMetadata().descriptor;
6168 }
GetReflection()6169 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
6170 return default_instance().GetMetadata().reflection;
6171 }
default_instance()6172 static const BatteryUsageStatsPerUid& default_instance() {
6173 return *internal_default_instance();
6174 }
internal_default_instance()6175 static inline const BatteryUsageStatsPerUid* internal_default_instance() {
6176 return reinterpret_cast<const BatteryUsageStatsPerUid*>(
6177 &_BatteryUsageStatsPerUid_default_instance_);
6178 }
6179 static constexpr int kIndexInFileMessages =
6180 19;
6181
swap(BatteryUsageStatsPerUid & a,BatteryUsageStatsPerUid & b)6182 friend void swap(BatteryUsageStatsPerUid& a, BatteryUsageStatsPerUid& b) {
6183 a.Swap(&b);
6184 }
Swap(BatteryUsageStatsPerUid * other)6185 inline void Swap(BatteryUsageStatsPerUid* other) {
6186 if (other == this) return;
6187 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
6188 if (GetOwningArena() != nullptr &&
6189 GetOwningArena() == other->GetOwningArena()) {
6190 #else // PROTOBUF_FORCE_COPY_IN_SWAP
6191 if (GetOwningArena() == other->GetOwningArena()) {
6192 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
6193 InternalSwap(other);
6194 } else {
6195 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
6196 }
6197 }
6198 void UnsafeArenaSwap(BatteryUsageStatsPerUid* other) {
6199 if (other == this) return;
6200 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
6201 InternalSwap(other);
6202 }
6203
6204 // implements Message ----------------------------------------------
6205
6206 BatteryUsageStatsPerUid* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
6207 return CreateMaybeMessage<BatteryUsageStatsPerUid>(arena);
6208 }
6209 BatteryUsageStatsPerUid* New() const {
6210 return New(nullptr);
6211 }
6212 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
6213 void CopyFrom(const BatteryUsageStatsPerUid& from);
6214 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
6215 void MergeFrom( const BatteryUsageStatsPerUid& from) {
6216 BatteryUsageStatsPerUid::MergeImpl(*this, from);
6217 }
6218 private:
6219 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
6220 public:
6221 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
6222 bool IsInitialized() const final;
6223
6224 size_t ByteSizeLong() const final;
6225 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
6226 ::uint8_t* _InternalSerialize(
6227 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
6228 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
6229
6230 private:
6231 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
6232 void SharedDtor();
6233 void SetCachedSize(int size) const final;
6234 void InternalSwap(BatteryUsageStatsPerUid* other);
6235
6236 private:
6237 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
6238 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
6239 return "android.os.statsd.framework.BatteryUsageStatsPerUid";
6240 }
6241 protected:
6242 explicit BatteryUsageStatsPerUid(::PROTOBUF_NAMESPACE_ID::Arena* arena,
6243 bool is_message_owned = false);
6244 public:
6245
6246 static const ClassData _class_data_;
6247 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
6248
6249 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
6250
6251 // nested types ----------------------------------------------------
6252
6253 typedef BatteryUsageStatsPerUid_ProcessState ProcessState;
6254 static constexpr ProcessState UNSPECIFIED =
6255 BatteryUsageStatsPerUid_ProcessState_UNSPECIFIED;
6256 static constexpr ProcessState FOREGROUND =
6257 BatteryUsageStatsPerUid_ProcessState_FOREGROUND;
6258 static constexpr ProcessState BACKGROUND =
6259 BatteryUsageStatsPerUid_ProcessState_BACKGROUND;
6260 static constexpr ProcessState FOREGROUND_SERVICE =
6261 BatteryUsageStatsPerUid_ProcessState_FOREGROUND_SERVICE;
6262 static constexpr ProcessState CACHED =
6263 BatteryUsageStatsPerUid_ProcessState_CACHED;
6264 static inline bool ProcessState_IsValid(int value) {
6265 return BatteryUsageStatsPerUid_ProcessState_IsValid(value);
6266 }
6267 static constexpr ProcessState ProcessState_MIN =
6268 BatteryUsageStatsPerUid_ProcessState_ProcessState_MIN;
6269 static constexpr ProcessState ProcessState_MAX =
6270 BatteryUsageStatsPerUid_ProcessState_ProcessState_MAX;
6271 static constexpr int ProcessState_ARRAYSIZE =
6272 BatteryUsageStatsPerUid_ProcessState_ProcessState_ARRAYSIZE;
6273 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
6274 ProcessState_descriptor() {
6275 return BatteryUsageStatsPerUid_ProcessState_descriptor();
6276 }
6277 template<typename T>
6278 static inline const std::string& ProcessState_Name(T enum_t_value) {
6279 static_assert(::std::is_same<T, ProcessState>::value ||
6280 ::std::is_integral<T>::value,
6281 "Incorrect type passed to function ProcessState_Name.");
6282 return BatteryUsageStatsPerUid_ProcessState_Name(enum_t_value);
6283 }
6284 static inline bool ProcessState_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
6285 ProcessState* value) {
6286 return BatteryUsageStatsPerUid_ProcessState_Parse(name, value);
6287 }
6288
6289 // accessors -------------------------------------------------------
6290
6291 enum : int {
6292 kPowerComponentNameFieldNumber = 9,
6293 kSessionStartMillisFieldNumber = 1,
6294 kSessionEndMillisFieldNumber = 2,
6295 kSessionDurationMillisFieldNumber = 3,
6296 kSessionDischargeDurationMillisFieldNumber = 5,
6297 kSessionDischargePercentageFieldNumber = 4,
6298 kUidFieldNumber = 6,
6299 kTimeInStateMillisFieldNumber = 8,
6300 kProcStateFieldNumber = 7,
6301 kTotalConsumedPowerMahFieldNumber = 10,
6302 kDurationMillisFieldNumber = 12,
6303 kConsumedPowerMahFieldNumber = 11,
6304 };
6305 // optional string power_component_name = 9;
6306 bool has_power_component_name() const;
6307 private:
6308 bool _internal_has_power_component_name() const;
6309 public:
6310 void clear_power_component_name();
6311 const std::string& power_component_name() const;
6312 template <typename ArgT0 = const std::string&, typename... ArgT>
6313 void set_power_component_name(ArgT0&& arg0, ArgT... args);
6314 std::string* mutable_power_component_name();
6315 PROTOBUF_NODISCARD std::string* release_power_component_name();
6316 void set_allocated_power_component_name(std::string* power_component_name);
6317 private:
6318 const std::string& _internal_power_component_name() const;
6319 inline PROTOBUF_ALWAYS_INLINE void _internal_set_power_component_name(const std::string& value);
6320 std::string* _internal_mutable_power_component_name();
6321 public:
6322
6323 // optional int64 session_start_millis = 1;
6324 bool has_session_start_millis() const;
6325 private:
6326 bool _internal_has_session_start_millis() const;
6327 public:
6328 void clear_session_start_millis();
6329 ::int64_t session_start_millis() const;
6330 void set_session_start_millis(::int64_t value);
6331 private:
6332 ::int64_t _internal_session_start_millis() const;
6333 void _internal_set_session_start_millis(::int64_t value);
6334 public:
6335
6336 // optional int64 session_end_millis = 2;
6337 bool has_session_end_millis() const;
6338 private:
6339 bool _internal_has_session_end_millis() const;
6340 public:
6341 void clear_session_end_millis();
6342 ::int64_t session_end_millis() const;
6343 void set_session_end_millis(::int64_t value);
6344 private:
6345 ::int64_t _internal_session_end_millis() const;
6346 void _internal_set_session_end_millis(::int64_t value);
6347 public:
6348
6349 // optional int64 session_duration_millis = 3;
6350 bool has_session_duration_millis() const;
6351 private:
6352 bool _internal_has_session_duration_millis() const;
6353 public:
6354 void clear_session_duration_millis();
6355 ::int64_t session_duration_millis() const;
6356 void set_session_duration_millis(::int64_t value);
6357 private:
6358 ::int64_t _internal_session_duration_millis() const;
6359 void _internal_set_session_duration_millis(::int64_t value);
6360 public:
6361
6362 // optional int64 session_discharge_duration_millis = 5;
6363 bool has_session_discharge_duration_millis() const;
6364 private:
6365 bool _internal_has_session_discharge_duration_millis() const;
6366 public:
6367 void clear_session_discharge_duration_millis();
6368 ::int64_t session_discharge_duration_millis() const;
6369 void set_session_discharge_duration_millis(::int64_t value);
6370 private:
6371 ::int64_t _internal_session_discharge_duration_millis() const;
6372 void _internal_set_session_discharge_duration_millis(::int64_t value);
6373 public:
6374
6375 // optional int32 session_discharge_percentage = 4;
6376 bool has_session_discharge_percentage() const;
6377 private:
6378 bool _internal_has_session_discharge_percentage() const;
6379 public:
6380 void clear_session_discharge_percentage();
6381 ::int32_t session_discharge_percentage() const;
6382 void set_session_discharge_percentage(::int32_t value);
6383 private:
6384 ::int32_t _internal_session_discharge_percentage() const;
6385 void _internal_set_session_discharge_percentage(::int32_t value);
6386 public:
6387
6388 // optional int32 uid = 6 [(.android.os.statsd.is_uid) = true];
6389 bool has_uid() const;
6390 private:
6391 bool _internal_has_uid() const;
6392 public:
6393 void clear_uid();
6394 ::int32_t uid() const;
6395 void set_uid(::int32_t value);
6396 private:
6397 ::int32_t _internal_uid() const;
6398 void _internal_set_uid(::int32_t value);
6399 public:
6400
6401 // optional int64 time_in_state_millis = 8;
6402 bool has_time_in_state_millis() const;
6403 private:
6404 bool _internal_has_time_in_state_millis() const;
6405 public:
6406 void clear_time_in_state_millis();
6407 ::int64_t time_in_state_millis() const;
6408 void set_time_in_state_millis(::int64_t value);
6409 private:
6410 ::int64_t _internal_time_in_state_millis() const;
6411 void _internal_set_time_in_state_millis(::int64_t value);
6412 public:
6413
6414 // optional .android.os.statsd.framework.BatteryUsageStatsPerUid.ProcessState proc_state = 7;
6415 bool has_proc_state() const;
6416 private:
6417 bool _internal_has_proc_state() const;
6418 public:
6419 void clear_proc_state();
6420 ::android::os::statsd::framework::BatteryUsageStatsPerUid_ProcessState proc_state() const;
6421 void set_proc_state(::android::os::statsd::framework::BatteryUsageStatsPerUid_ProcessState value);
6422 private:
6423 ::android::os::statsd::framework::BatteryUsageStatsPerUid_ProcessState _internal_proc_state() const;
6424 void _internal_set_proc_state(::android::os::statsd::framework::BatteryUsageStatsPerUid_ProcessState value);
6425 public:
6426
6427 // optional float total_consumed_power_mah = 10;
6428 bool has_total_consumed_power_mah() const;
6429 private:
6430 bool _internal_has_total_consumed_power_mah() const;
6431 public:
6432 void clear_total_consumed_power_mah();
6433 float total_consumed_power_mah() const;
6434 void set_total_consumed_power_mah(float value);
6435 private:
6436 float _internal_total_consumed_power_mah() const;
6437 void _internal_set_total_consumed_power_mah(float value);
6438 public:
6439
6440 // optional int64 duration_millis = 12;
6441 bool has_duration_millis() const;
6442 private:
6443 bool _internal_has_duration_millis() const;
6444 public:
6445 void clear_duration_millis();
6446 ::int64_t duration_millis() const;
6447 void set_duration_millis(::int64_t value);
6448 private:
6449 ::int64_t _internal_duration_millis() const;
6450 void _internal_set_duration_millis(::int64_t value);
6451 public:
6452
6453 // optional float consumed_power_mah = 11;
6454 bool has_consumed_power_mah() const;
6455 private:
6456 bool _internal_has_consumed_power_mah() const;
6457 public:
6458 void clear_consumed_power_mah();
6459 float consumed_power_mah() const;
6460 void set_consumed_power_mah(float value);
6461 private:
6462 float _internal_consumed_power_mah() const;
6463 void _internal_set_consumed_power_mah(float value);
6464 public:
6465
6466 // @@protoc_insertion_point(class_scope:android.os.statsd.framework.BatteryUsageStatsPerUid)
6467 private:
6468 class _Internal;
6469
6470 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
6471 typedef void InternalArenaConstructable_;
6472 typedef void DestructorSkippable_;
6473 struct Impl_ {
6474 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
6475 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
6476 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr power_component_name_;
6477 ::int64_t session_start_millis_;
6478 ::int64_t session_end_millis_;
6479 ::int64_t session_duration_millis_;
6480 ::int64_t session_discharge_duration_millis_;
6481 ::int32_t session_discharge_percentage_;
6482 ::int32_t uid_;
6483 ::int64_t time_in_state_millis_;
6484 int proc_state_;
6485 float total_consumed_power_mah_;
6486 ::int64_t duration_millis_;
6487 float consumed_power_mah_;
6488 };
6489 union { Impl_ _impl_; };
6490 friend struct ::TableStruct_frameworks_2fproto_5flogging_2fstats_2fatoms_2fframework_2fframework_5fextension_5fatoms_2eproto;
6491 };
6492 // -------------------------------------------------------------------
6493
6494 class PostGCMemorySnapshot final :
6495 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:android.os.statsd.framework.PostGCMemorySnapshot) */ {
6496 public:
PostGCMemorySnapshot()6497 inline PostGCMemorySnapshot() : PostGCMemorySnapshot(nullptr) {}
6498 ~PostGCMemorySnapshot() override;
6499 explicit PROTOBUF_CONSTEXPR PostGCMemorySnapshot(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
6500
6501 PostGCMemorySnapshot(const PostGCMemorySnapshot& from);
PostGCMemorySnapshot(PostGCMemorySnapshot && from)6502 PostGCMemorySnapshot(PostGCMemorySnapshot&& from) noexcept
6503 : PostGCMemorySnapshot() {
6504 *this = ::std::move(from);
6505 }
6506
6507 inline PostGCMemorySnapshot& operator=(const PostGCMemorySnapshot& from) {
6508 if (this == &from) return *this;
6509 CopyFrom(from);
6510 return *this;
6511 }
6512 inline PostGCMemorySnapshot& operator=(PostGCMemorySnapshot&& from) noexcept {
6513 if (this == &from) return *this;
6514 if (GetOwningArena() == from.GetOwningArena()
6515 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
6516 && GetOwningArena() != nullptr
6517 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
6518 ) {
6519 InternalSwap(&from);
6520 } else {
6521 CopyFrom(from);
6522 }
6523 return *this;
6524 }
6525
unknown_fields()6526 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
6527 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
6528 }
mutable_unknown_fields()6529 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
6530 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
6531 }
6532
descriptor()6533 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
6534 return GetDescriptor();
6535 }
GetDescriptor()6536 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
6537 return default_instance().GetMetadata().descriptor;
6538 }
GetReflection()6539 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
6540 return default_instance().GetMetadata().reflection;
6541 }
default_instance()6542 static const PostGCMemorySnapshot& default_instance() {
6543 return *internal_default_instance();
6544 }
internal_default_instance()6545 static inline const PostGCMemorySnapshot* internal_default_instance() {
6546 return reinterpret_cast<const PostGCMemorySnapshot*>(
6547 &_PostGCMemorySnapshot_default_instance_);
6548 }
6549 static constexpr int kIndexInFileMessages =
6550 20;
6551
swap(PostGCMemorySnapshot & a,PostGCMemorySnapshot & b)6552 friend void swap(PostGCMemorySnapshot& a, PostGCMemorySnapshot& b) {
6553 a.Swap(&b);
6554 }
Swap(PostGCMemorySnapshot * other)6555 inline void Swap(PostGCMemorySnapshot* other) {
6556 if (other == this) return;
6557 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
6558 if (GetOwningArena() != nullptr &&
6559 GetOwningArena() == other->GetOwningArena()) {
6560 #else // PROTOBUF_FORCE_COPY_IN_SWAP
6561 if (GetOwningArena() == other->GetOwningArena()) {
6562 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
6563 InternalSwap(other);
6564 } else {
6565 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
6566 }
6567 }
6568 void UnsafeArenaSwap(PostGCMemorySnapshot* other) {
6569 if (other == this) return;
6570 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
6571 InternalSwap(other);
6572 }
6573
6574 // implements Message ----------------------------------------------
6575
6576 PostGCMemorySnapshot* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
6577 return CreateMaybeMessage<PostGCMemorySnapshot>(arena);
6578 }
6579 PostGCMemorySnapshot* New() const {
6580 return New(nullptr);
6581 }
6582 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
6583 void CopyFrom(const PostGCMemorySnapshot& from);
6584 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
6585 void MergeFrom( const PostGCMemorySnapshot& from) {
6586 PostGCMemorySnapshot::MergeImpl(*this, from);
6587 }
6588 private:
6589 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
6590 public:
6591 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
6592 bool IsInitialized() const final;
6593
6594 size_t ByteSizeLong() const final;
6595 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
6596 ::uint8_t* _InternalSerialize(
6597 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
6598 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
6599
6600 private:
6601 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
6602 void SharedDtor();
6603 void SetCachedSize(int size) const final;
6604 void InternalSwap(PostGCMemorySnapshot* other);
6605
6606 private:
6607 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
6608 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
6609 return "android.os.statsd.framework.PostGCMemorySnapshot";
6610 }
6611 protected:
6612 explicit PostGCMemorySnapshot(::PROTOBUF_NAMESPACE_ID::Arena* arena,
6613 bool is_message_owned = false);
6614 public:
6615
6616 static const ClassData _class_data_;
6617 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
6618
6619 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
6620
6621 // nested types ----------------------------------------------------
6622
6623 // accessors -------------------------------------------------------
6624
6625 enum : int {
6626 kNativeAllocationClassFieldNumber = 9,
6627 kNativeAllocationMallocedCountFieldNumber = 10,
6628 kNativeAllocationMallocedBytesFieldNumber = 11,
6629 kNativeAllocationNonmallocedCountFieldNumber = 12,
6630 kNativeAllocationNonmallocedBytesFieldNumber = 13,
6631 kProcessNameFieldNumber = 2,
6632 kUidFieldNumber = 1,
6633 kPidFieldNumber = 3,
6634 kOomScoreAdjFieldNumber = 4,
6635 kRssInKbFieldNumber = 5,
6636 kAnonRssInKbFieldNumber = 6,
6637 kSwapInKbFieldNumber = 7,
6638 kAnonRssAndSwapInKbFieldNumber = 8,
6639 };
6640 // repeated string native_allocation_class = 9;
6641 int native_allocation_class_size() const;
6642 private:
6643 int _internal_native_allocation_class_size() const;
6644 public:
6645 void clear_native_allocation_class();
6646 const std::string& native_allocation_class(int index) const;
6647 std::string* mutable_native_allocation_class(int index);
6648 void set_native_allocation_class(int index, const std::string& value);
6649 void set_native_allocation_class(int index, std::string&& value);
6650 void set_native_allocation_class(int index, const char* value);
6651 void set_native_allocation_class(int index, const char* value, size_t size);
6652 std::string* add_native_allocation_class();
6653 void add_native_allocation_class(const std::string& value);
6654 void add_native_allocation_class(std::string&& value);
6655 void add_native_allocation_class(const char* value);
6656 void add_native_allocation_class(const char* value, size_t size);
6657 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& native_allocation_class() const;
6658 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_native_allocation_class();
6659 private:
6660 const std::string& _internal_native_allocation_class(int index) const;
6661 std::string* _internal_add_native_allocation_class();
6662 public:
6663
6664 // repeated int64 native_allocation_malloced_count = 10;
6665 int native_allocation_malloced_count_size() const;
6666 private:
6667 int _internal_native_allocation_malloced_count_size() const;
6668 public:
6669 void clear_native_allocation_malloced_count();
6670 private:
6671 ::int64_t _internal_native_allocation_malloced_count(int index) const;
6672 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int64_t >&
6673 _internal_native_allocation_malloced_count() const;
6674 void _internal_add_native_allocation_malloced_count(::int64_t value);
6675 ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int64_t >*
6676 _internal_mutable_native_allocation_malloced_count();
6677 public:
6678 ::int64_t native_allocation_malloced_count(int index) const;
6679 void set_native_allocation_malloced_count(int index, ::int64_t value);
6680 void add_native_allocation_malloced_count(::int64_t value);
6681 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int64_t >&
6682 native_allocation_malloced_count() const;
6683 ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int64_t >*
6684 mutable_native_allocation_malloced_count();
6685
6686 // repeated int64 native_allocation_malloced_bytes = 11;
6687 int native_allocation_malloced_bytes_size() const;
6688 private:
6689 int _internal_native_allocation_malloced_bytes_size() const;
6690 public:
6691 void clear_native_allocation_malloced_bytes();
6692 private:
6693 ::int64_t _internal_native_allocation_malloced_bytes(int index) const;
6694 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int64_t >&
6695 _internal_native_allocation_malloced_bytes() const;
6696 void _internal_add_native_allocation_malloced_bytes(::int64_t value);
6697 ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int64_t >*
6698 _internal_mutable_native_allocation_malloced_bytes();
6699 public:
6700 ::int64_t native_allocation_malloced_bytes(int index) const;
6701 void set_native_allocation_malloced_bytes(int index, ::int64_t value);
6702 void add_native_allocation_malloced_bytes(::int64_t value);
6703 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int64_t >&
6704 native_allocation_malloced_bytes() const;
6705 ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int64_t >*
6706 mutable_native_allocation_malloced_bytes();
6707
6708 // repeated int64 native_allocation_nonmalloced_count = 12;
6709 int native_allocation_nonmalloced_count_size() const;
6710 private:
6711 int _internal_native_allocation_nonmalloced_count_size() const;
6712 public:
6713 void clear_native_allocation_nonmalloced_count();
6714 private:
6715 ::int64_t _internal_native_allocation_nonmalloced_count(int index) const;
6716 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int64_t >&
6717 _internal_native_allocation_nonmalloced_count() const;
6718 void _internal_add_native_allocation_nonmalloced_count(::int64_t value);
6719 ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int64_t >*
6720 _internal_mutable_native_allocation_nonmalloced_count();
6721 public:
6722 ::int64_t native_allocation_nonmalloced_count(int index) const;
6723 void set_native_allocation_nonmalloced_count(int index, ::int64_t value);
6724 void add_native_allocation_nonmalloced_count(::int64_t value);
6725 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int64_t >&
6726 native_allocation_nonmalloced_count() const;
6727 ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int64_t >*
6728 mutable_native_allocation_nonmalloced_count();
6729
6730 // repeated int64 native_allocation_nonmalloced_bytes = 13;
6731 int native_allocation_nonmalloced_bytes_size() const;
6732 private:
6733 int _internal_native_allocation_nonmalloced_bytes_size() const;
6734 public:
6735 void clear_native_allocation_nonmalloced_bytes();
6736 private:
6737 ::int64_t _internal_native_allocation_nonmalloced_bytes(int index) const;
6738 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int64_t >&
6739 _internal_native_allocation_nonmalloced_bytes() const;
6740 void _internal_add_native_allocation_nonmalloced_bytes(::int64_t value);
6741 ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int64_t >*
6742 _internal_mutable_native_allocation_nonmalloced_bytes();
6743 public:
6744 ::int64_t native_allocation_nonmalloced_bytes(int index) const;
6745 void set_native_allocation_nonmalloced_bytes(int index, ::int64_t value);
6746 void add_native_allocation_nonmalloced_bytes(::int64_t value);
6747 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int64_t >&
6748 native_allocation_nonmalloced_bytes() const;
6749 ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int64_t >*
6750 mutable_native_allocation_nonmalloced_bytes();
6751
6752 // optional string process_name = 2;
6753 bool has_process_name() const;
6754 private:
6755 bool _internal_has_process_name() const;
6756 public:
6757 void clear_process_name();
6758 const std::string& process_name() const;
6759 template <typename ArgT0 = const std::string&, typename... ArgT>
6760 void set_process_name(ArgT0&& arg0, ArgT... args);
6761 std::string* mutable_process_name();
6762 PROTOBUF_NODISCARD std::string* release_process_name();
6763 void set_allocated_process_name(std::string* process_name);
6764 private:
6765 const std::string& _internal_process_name() const;
6766 inline PROTOBUF_ALWAYS_INLINE void _internal_set_process_name(const std::string& value);
6767 std::string* _internal_mutable_process_name();
6768 public:
6769
6770 // optional int32 uid = 1 [(.android.os.statsd.is_uid) = true];
6771 bool has_uid() const;
6772 private:
6773 bool _internal_has_uid() const;
6774 public:
6775 void clear_uid();
6776 ::int32_t uid() const;
6777 void set_uid(::int32_t value);
6778 private:
6779 ::int32_t _internal_uid() const;
6780 void _internal_set_uid(::int32_t value);
6781 public:
6782
6783 // optional int32 pid = 3;
6784 bool has_pid() const;
6785 private:
6786 bool _internal_has_pid() const;
6787 public:
6788 void clear_pid();
6789 ::int32_t pid() const;
6790 void set_pid(::int32_t value);
6791 private:
6792 ::int32_t _internal_pid() const;
6793 void _internal_set_pid(::int32_t value);
6794 public:
6795
6796 // optional int32 oom_score_adj = 4;
6797 bool has_oom_score_adj() const;
6798 private:
6799 bool _internal_has_oom_score_adj() const;
6800 public:
6801 void clear_oom_score_adj();
6802 ::int32_t oom_score_adj() const;
6803 void set_oom_score_adj(::int32_t value);
6804 private:
6805 ::int32_t _internal_oom_score_adj() const;
6806 void _internal_set_oom_score_adj(::int32_t value);
6807 public:
6808
6809 // optional int32 rss_in_kb = 5;
6810 bool has_rss_in_kb() const;
6811 private:
6812 bool _internal_has_rss_in_kb() const;
6813 public:
6814 void clear_rss_in_kb();
6815 ::int32_t rss_in_kb() const;
6816 void set_rss_in_kb(::int32_t value);
6817 private:
6818 ::int32_t _internal_rss_in_kb() const;
6819 void _internal_set_rss_in_kb(::int32_t value);
6820 public:
6821
6822 // optional int32 anon_rss_in_kb = 6;
6823 bool has_anon_rss_in_kb() const;
6824 private:
6825 bool _internal_has_anon_rss_in_kb() const;
6826 public:
6827 void clear_anon_rss_in_kb();
6828 ::int32_t anon_rss_in_kb() const;
6829 void set_anon_rss_in_kb(::int32_t value);
6830 private:
6831 ::int32_t _internal_anon_rss_in_kb() const;
6832 void _internal_set_anon_rss_in_kb(::int32_t value);
6833 public:
6834
6835 // optional int32 swap_in_kb = 7;
6836 bool has_swap_in_kb() const;
6837 private:
6838 bool _internal_has_swap_in_kb() const;
6839 public:
6840 void clear_swap_in_kb();
6841 ::int32_t swap_in_kb() const;
6842 void set_swap_in_kb(::int32_t value);
6843 private:
6844 ::int32_t _internal_swap_in_kb() const;
6845 void _internal_set_swap_in_kb(::int32_t value);
6846 public:
6847
6848 // optional int32 anon_rss_and_swap_in_kb = 8;
6849 bool has_anon_rss_and_swap_in_kb() const;
6850 private:
6851 bool _internal_has_anon_rss_and_swap_in_kb() const;
6852 public:
6853 void clear_anon_rss_and_swap_in_kb();
6854 ::int32_t anon_rss_and_swap_in_kb() const;
6855 void set_anon_rss_and_swap_in_kb(::int32_t value);
6856 private:
6857 ::int32_t _internal_anon_rss_and_swap_in_kb() const;
6858 void _internal_set_anon_rss_and_swap_in_kb(::int32_t value);
6859 public:
6860
6861 // @@protoc_insertion_point(class_scope:android.os.statsd.framework.PostGCMemorySnapshot)
6862 private:
6863 class _Internal;
6864
6865 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
6866 typedef void InternalArenaConstructable_;
6867 typedef void DestructorSkippable_;
6868 struct Impl_ {
6869 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
6870 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
6871 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> native_allocation_class_;
6872 ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int64_t > native_allocation_malloced_count_;
6873 ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int64_t > native_allocation_malloced_bytes_;
6874 ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int64_t > native_allocation_nonmalloced_count_;
6875 ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int64_t > native_allocation_nonmalloced_bytes_;
6876 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr process_name_;
6877 ::int32_t uid_;
6878 ::int32_t pid_;
6879 ::int32_t oom_score_adj_;
6880 ::int32_t rss_in_kb_;
6881 ::int32_t anon_rss_in_kb_;
6882 ::int32_t swap_in_kb_;
6883 ::int32_t anon_rss_and_swap_in_kb_;
6884 };
6885 union { Impl_ _impl_; };
6886 friend struct ::TableStruct_frameworks_2fproto_5flogging_2fstats_2fatoms_2fframework_2fframework_5fextension_5fatoms_2eproto;
6887 };
6888 // -------------------------------------------------------------------
6889
6890 class PowerSaveTempAllowlistChanged final :
6891 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:android.os.statsd.framework.PowerSaveTempAllowlistChanged) */ {
6892 public:
PowerSaveTempAllowlistChanged()6893 inline PowerSaveTempAllowlistChanged() : PowerSaveTempAllowlistChanged(nullptr) {}
6894 ~PowerSaveTempAllowlistChanged() override;
6895 explicit PROTOBUF_CONSTEXPR PowerSaveTempAllowlistChanged(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
6896
6897 PowerSaveTempAllowlistChanged(const PowerSaveTempAllowlistChanged& from);
PowerSaveTempAllowlistChanged(PowerSaveTempAllowlistChanged && from)6898 PowerSaveTempAllowlistChanged(PowerSaveTempAllowlistChanged&& from) noexcept
6899 : PowerSaveTempAllowlistChanged() {
6900 *this = ::std::move(from);
6901 }
6902
6903 inline PowerSaveTempAllowlistChanged& operator=(const PowerSaveTempAllowlistChanged& from) {
6904 if (this == &from) return *this;
6905 CopyFrom(from);
6906 return *this;
6907 }
6908 inline PowerSaveTempAllowlistChanged& operator=(PowerSaveTempAllowlistChanged&& from) noexcept {
6909 if (this == &from) return *this;
6910 if (GetOwningArena() == from.GetOwningArena()
6911 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
6912 && GetOwningArena() != nullptr
6913 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
6914 ) {
6915 InternalSwap(&from);
6916 } else {
6917 CopyFrom(from);
6918 }
6919 return *this;
6920 }
6921
unknown_fields()6922 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
6923 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
6924 }
mutable_unknown_fields()6925 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
6926 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
6927 }
6928
descriptor()6929 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
6930 return GetDescriptor();
6931 }
GetDescriptor()6932 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
6933 return default_instance().GetMetadata().descriptor;
6934 }
GetReflection()6935 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
6936 return default_instance().GetMetadata().reflection;
6937 }
default_instance()6938 static const PowerSaveTempAllowlistChanged& default_instance() {
6939 return *internal_default_instance();
6940 }
internal_default_instance()6941 static inline const PowerSaveTempAllowlistChanged* internal_default_instance() {
6942 return reinterpret_cast<const PowerSaveTempAllowlistChanged*>(
6943 &_PowerSaveTempAllowlistChanged_default_instance_);
6944 }
6945 static constexpr int kIndexInFileMessages =
6946 21;
6947
swap(PowerSaveTempAllowlistChanged & a,PowerSaveTempAllowlistChanged & b)6948 friend void swap(PowerSaveTempAllowlistChanged& a, PowerSaveTempAllowlistChanged& b) {
6949 a.Swap(&b);
6950 }
Swap(PowerSaveTempAllowlistChanged * other)6951 inline void Swap(PowerSaveTempAllowlistChanged* other) {
6952 if (other == this) return;
6953 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
6954 if (GetOwningArena() != nullptr &&
6955 GetOwningArena() == other->GetOwningArena()) {
6956 #else // PROTOBUF_FORCE_COPY_IN_SWAP
6957 if (GetOwningArena() == other->GetOwningArena()) {
6958 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
6959 InternalSwap(other);
6960 } else {
6961 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
6962 }
6963 }
6964 void UnsafeArenaSwap(PowerSaveTempAllowlistChanged* other) {
6965 if (other == this) return;
6966 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
6967 InternalSwap(other);
6968 }
6969
6970 // implements Message ----------------------------------------------
6971
6972 PowerSaveTempAllowlistChanged* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
6973 return CreateMaybeMessage<PowerSaveTempAllowlistChanged>(arena);
6974 }
6975 PowerSaveTempAllowlistChanged* New() const {
6976 return New(nullptr);
6977 }
6978 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
6979 void CopyFrom(const PowerSaveTempAllowlistChanged& from);
6980 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
6981 void MergeFrom( const PowerSaveTempAllowlistChanged& from) {
6982 PowerSaveTempAllowlistChanged::MergeImpl(*this, from);
6983 }
6984 private:
6985 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
6986 public:
6987 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
6988 bool IsInitialized() const final;
6989
6990 size_t ByteSizeLong() const final;
6991 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
6992 ::uint8_t* _InternalSerialize(
6993 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
6994 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
6995
6996 private:
6997 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
6998 void SharedDtor();
6999 void SetCachedSize(int size) const final;
7000 void InternalSwap(PowerSaveTempAllowlistChanged* other);
7001
7002 private:
7003 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
7004 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
7005 return "android.os.statsd.framework.PowerSaveTempAllowlistChanged";
7006 }
7007 protected:
7008 explicit PowerSaveTempAllowlistChanged(::PROTOBUF_NAMESPACE_ID::Arena* arena,
7009 bool is_message_owned = false);
7010 public:
7011
7012 static const ClassData _class_data_;
7013 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
7014
7015 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
7016
7017 // nested types ----------------------------------------------------
7018
7019 // accessors -------------------------------------------------------
7020
7021 enum : int {
7022 kUidFieldNumber = 1,
7023 kAddToAllowlistFieldNumber = 2,
7024 };
7025 // optional int32 uid = 1 [(.android.os.statsd.is_uid) = true];
7026 bool has_uid() const;
7027 private:
7028 bool _internal_has_uid() const;
7029 public:
7030 void clear_uid();
7031 ::int32_t uid() const;
7032 void set_uid(::int32_t value);
7033 private:
7034 ::int32_t _internal_uid() const;
7035 void _internal_set_uid(::int32_t value);
7036 public:
7037
7038 // optional bool add_to_allowlist = 2;
7039 bool has_add_to_allowlist() const;
7040 private:
7041 bool _internal_has_add_to_allowlist() const;
7042 public:
7043 void clear_add_to_allowlist();
7044 bool add_to_allowlist() const;
7045 void set_add_to_allowlist(bool value);
7046 private:
7047 bool _internal_add_to_allowlist() const;
7048 void _internal_set_add_to_allowlist(bool value);
7049 public:
7050
7051 // @@protoc_insertion_point(class_scope:android.os.statsd.framework.PowerSaveTempAllowlistChanged)
7052 private:
7053 class _Internal;
7054
7055 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
7056 typedef void InternalArenaConstructable_;
7057 typedef void DestructorSkippable_;
7058 struct Impl_ {
7059 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
7060 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
7061 ::int32_t uid_;
7062 bool add_to_allowlist_;
7063 };
7064 union { Impl_ _impl_; };
7065 friend struct ::TableStruct_frameworks_2fproto_5flogging_2fstats_2fatoms_2fframework_2fframework_5fextension_5fatoms_2eproto;
7066 };
7067 // -------------------------------------------------------------------
7068
7069 class DeviceIdleTempAllowlistUpdated final :
7070 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:android.os.statsd.framework.DeviceIdleTempAllowlistUpdated) */ {
7071 public:
DeviceIdleTempAllowlistUpdated()7072 inline DeviceIdleTempAllowlistUpdated() : DeviceIdleTempAllowlistUpdated(nullptr) {}
7073 ~DeviceIdleTempAllowlistUpdated() override;
7074 explicit PROTOBUF_CONSTEXPR DeviceIdleTempAllowlistUpdated(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
7075
7076 DeviceIdleTempAllowlistUpdated(const DeviceIdleTempAllowlistUpdated& from);
DeviceIdleTempAllowlistUpdated(DeviceIdleTempAllowlistUpdated && from)7077 DeviceIdleTempAllowlistUpdated(DeviceIdleTempAllowlistUpdated&& from) noexcept
7078 : DeviceIdleTempAllowlistUpdated() {
7079 *this = ::std::move(from);
7080 }
7081
7082 inline DeviceIdleTempAllowlistUpdated& operator=(const DeviceIdleTempAllowlistUpdated& from) {
7083 if (this == &from) return *this;
7084 CopyFrom(from);
7085 return *this;
7086 }
7087 inline DeviceIdleTempAllowlistUpdated& operator=(DeviceIdleTempAllowlistUpdated&& from) noexcept {
7088 if (this == &from) return *this;
7089 if (GetOwningArena() == from.GetOwningArena()
7090 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
7091 && GetOwningArena() != nullptr
7092 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
7093 ) {
7094 InternalSwap(&from);
7095 } else {
7096 CopyFrom(from);
7097 }
7098 return *this;
7099 }
7100
unknown_fields()7101 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
7102 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
7103 }
mutable_unknown_fields()7104 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
7105 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
7106 }
7107
descriptor()7108 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
7109 return GetDescriptor();
7110 }
GetDescriptor()7111 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
7112 return default_instance().GetMetadata().descriptor;
7113 }
GetReflection()7114 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
7115 return default_instance().GetMetadata().reflection;
7116 }
default_instance()7117 static const DeviceIdleTempAllowlistUpdated& default_instance() {
7118 return *internal_default_instance();
7119 }
internal_default_instance()7120 static inline const DeviceIdleTempAllowlistUpdated* internal_default_instance() {
7121 return reinterpret_cast<const DeviceIdleTempAllowlistUpdated*>(
7122 &_DeviceIdleTempAllowlistUpdated_default_instance_);
7123 }
7124 static constexpr int kIndexInFileMessages =
7125 22;
7126
swap(DeviceIdleTempAllowlistUpdated & a,DeviceIdleTempAllowlistUpdated & b)7127 friend void swap(DeviceIdleTempAllowlistUpdated& a, DeviceIdleTempAllowlistUpdated& b) {
7128 a.Swap(&b);
7129 }
Swap(DeviceIdleTempAllowlistUpdated * other)7130 inline void Swap(DeviceIdleTempAllowlistUpdated* other) {
7131 if (other == this) return;
7132 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
7133 if (GetOwningArena() != nullptr &&
7134 GetOwningArena() == other->GetOwningArena()) {
7135 #else // PROTOBUF_FORCE_COPY_IN_SWAP
7136 if (GetOwningArena() == other->GetOwningArena()) {
7137 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
7138 InternalSwap(other);
7139 } else {
7140 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
7141 }
7142 }
7143 void UnsafeArenaSwap(DeviceIdleTempAllowlistUpdated* other) {
7144 if (other == this) return;
7145 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
7146 InternalSwap(other);
7147 }
7148
7149 // implements Message ----------------------------------------------
7150
7151 DeviceIdleTempAllowlistUpdated* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
7152 return CreateMaybeMessage<DeviceIdleTempAllowlistUpdated>(arena);
7153 }
7154 DeviceIdleTempAllowlistUpdated* New() const {
7155 return New(nullptr);
7156 }
7157 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
7158 void CopyFrom(const DeviceIdleTempAllowlistUpdated& from);
7159 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
7160 void MergeFrom( const DeviceIdleTempAllowlistUpdated& from) {
7161 DeviceIdleTempAllowlistUpdated::MergeImpl(*this, from);
7162 }
7163 private:
7164 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
7165 public:
7166 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
7167 bool IsInitialized() const final;
7168
7169 size_t ByteSizeLong() const final;
7170 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
7171 ::uint8_t* _InternalSerialize(
7172 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
7173 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
7174
7175 private:
7176 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
7177 void SharedDtor();
7178 void SetCachedSize(int size) const final;
7179 void InternalSwap(DeviceIdleTempAllowlistUpdated* other);
7180
7181 private:
7182 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
7183 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
7184 return "android.os.statsd.framework.DeviceIdleTempAllowlistUpdated";
7185 }
7186 protected:
7187 explicit DeviceIdleTempAllowlistUpdated(::PROTOBUF_NAMESPACE_ID::Arena* arena,
7188 bool is_message_owned = false);
7189 public:
7190
7191 static const ClassData _class_data_;
7192 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
7193
7194 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
7195
7196 // nested types ----------------------------------------------------
7197
7198 // accessors -------------------------------------------------------
7199
7200 enum : int {
7201 kReasonFieldNumber = 6,
7202 kChangingUidFieldNumber = 1,
7203 kAddingFieldNumber = 2,
7204 kDurationMsFieldNumber = 3,
7205 kTypeFieldNumber = 4,
7206 kReasonCodeFieldNumber = 5,
7207 kCallingUidFieldNumber = 7,
7208 };
7209 // optional string reason = 6;
7210 bool has_reason() const;
7211 private:
7212 bool _internal_has_reason() const;
7213 public:
7214 void clear_reason();
7215 const std::string& reason() const;
7216 template <typename ArgT0 = const std::string&, typename... ArgT>
7217 void set_reason(ArgT0&& arg0, ArgT... args);
7218 std::string* mutable_reason();
7219 PROTOBUF_NODISCARD std::string* release_reason();
7220 void set_allocated_reason(std::string* reason);
7221 private:
7222 const std::string& _internal_reason() const;
7223 inline PROTOBUF_ALWAYS_INLINE void _internal_set_reason(const std::string& value);
7224 std::string* _internal_mutable_reason();
7225 public:
7226
7227 // optional int32 changing_uid = 1 [(.android.os.statsd.is_uid) = true];
7228 bool has_changing_uid() const;
7229 private:
7230 bool _internal_has_changing_uid() const;
7231 public:
7232 void clear_changing_uid();
7233 ::int32_t changing_uid() const;
7234 void set_changing_uid(::int32_t value);
7235 private:
7236 ::int32_t _internal_changing_uid() const;
7237 void _internal_set_changing_uid(::int32_t value);
7238 public:
7239
7240 // optional bool adding = 2;
7241 bool has_adding() const;
7242 private:
7243 bool _internal_has_adding() const;
7244 public:
7245 void clear_adding();
7246 bool adding() const;
7247 void set_adding(bool value);
7248 private:
7249 bool _internal_adding() const;
7250 void _internal_set_adding(bool value);
7251 public:
7252
7253 // optional int64 duration_ms = 3;
7254 bool has_duration_ms() const;
7255 private:
7256 bool _internal_has_duration_ms() const;
7257 public:
7258 void clear_duration_ms();
7259 ::int64_t duration_ms() const;
7260 void set_duration_ms(::int64_t value);
7261 private:
7262 ::int64_t _internal_duration_ms() const;
7263 void _internal_set_duration_ms(::int64_t value);
7264 public:
7265
7266 // optional int32 type = 4;
7267 bool has_type() const;
7268 private:
7269 bool _internal_has_type() const;
7270 public:
7271 void clear_type();
7272 ::int32_t type() const;
7273 void set_type(::int32_t value);
7274 private:
7275 ::int32_t _internal_type() const;
7276 void _internal_set_type(::int32_t value);
7277 public:
7278
7279 // optional int32 reason_code = 5;
7280 bool has_reason_code() const;
7281 private:
7282 bool _internal_has_reason_code() const;
7283 public:
7284 void clear_reason_code();
7285 ::int32_t reason_code() const;
7286 void set_reason_code(::int32_t value);
7287 private:
7288 ::int32_t _internal_reason_code() const;
7289 void _internal_set_reason_code(::int32_t value);
7290 public:
7291
7292 // optional int32 calling_uid = 7 [(.android.os.statsd.is_uid) = true];
7293 bool has_calling_uid() const;
7294 private:
7295 bool _internal_has_calling_uid() const;
7296 public:
7297 void clear_calling_uid();
7298 ::int32_t calling_uid() const;
7299 void set_calling_uid(::int32_t value);
7300 private:
7301 ::int32_t _internal_calling_uid() const;
7302 void _internal_set_calling_uid(::int32_t value);
7303 public:
7304
7305 // @@protoc_insertion_point(class_scope:android.os.statsd.framework.DeviceIdleTempAllowlistUpdated)
7306 private:
7307 class _Internal;
7308
7309 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
7310 typedef void InternalArenaConstructable_;
7311 typedef void DestructorSkippable_;
7312 struct Impl_ {
7313 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
7314 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
7315 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr reason_;
7316 ::int32_t changing_uid_;
7317 bool adding_;
7318 ::int64_t duration_ms_;
7319 ::int32_t type_;
7320 ::int32_t reason_code_;
7321 ::int32_t calling_uid_;
7322 };
7323 union { Impl_ _impl_; };
7324 friend struct ::TableStruct_frameworks_2fproto_5flogging_2fstats_2fatoms_2fframework_2fframework_5fextension_5fatoms_2eproto;
7325 };
7326 // -------------------------------------------------------------------
7327
7328 class AppOpAccessTracked final :
7329 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:android.os.statsd.framework.AppOpAccessTracked) */ {
7330 public:
AppOpAccessTracked()7331 inline AppOpAccessTracked() : AppOpAccessTracked(nullptr) {}
7332 ~AppOpAccessTracked() override;
7333 explicit PROTOBUF_CONSTEXPR AppOpAccessTracked(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
7334
7335 AppOpAccessTracked(const AppOpAccessTracked& from);
AppOpAccessTracked(AppOpAccessTracked && from)7336 AppOpAccessTracked(AppOpAccessTracked&& from) noexcept
7337 : AppOpAccessTracked() {
7338 *this = ::std::move(from);
7339 }
7340
7341 inline AppOpAccessTracked& operator=(const AppOpAccessTracked& from) {
7342 if (this == &from) return *this;
7343 CopyFrom(from);
7344 return *this;
7345 }
7346 inline AppOpAccessTracked& operator=(AppOpAccessTracked&& from) noexcept {
7347 if (this == &from) return *this;
7348 if (GetOwningArena() == from.GetOwningArena()
7349 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
7350 && GetOwningArena() != nullptr
7351 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
7352 ) {
7353 InternalSwap(&from);
7354 } else {
7355 CopyFrom(from);
7356 }
7357 return *this;
7358 }
7359
unknown_fields()7360 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
7361 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
7362 }
mutable_unknown_fields()7363 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
7364 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
7365 }
7366
descriptor()7367 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
7368 return GetDescriptor();
7369 }
GetDescriptor()7370 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
7371 return default_instance().GetMetadata().descriptor;
7372 }
GetReflection()7373 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
7374 return default_instance().GetMetadata().reflection;
7375 }
default_instance()7376 static const AppOpAccessTracked& default_instance() {
7377 return *internal_default_instance();
7378 }
internal_default_instance()7379 static inline const AppOpAccessTracked* internal_default_instance() {
7380 return reinterpret_cast<const AppOpAccessTracked*>(
7381 &_AppOpAccessTracked_default_instance_);
7382 }
7383 static constexpr int kIndexInFileMessages =
7384 23;
7385
swap(AppOpAccessTracked & a,AppOpAccessTracked & b)7386 friend void swap(AppOpAccessTracked& a, AppOpAccessTracked& b) {
7387 a.Swap(&b);
7388 }
Swap(AppOpAccessTracked * other)7389 inline void Swap(AppOpAccessTracked* other) {
7390 if (other == this) return;
7391 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
7392 if (GetOwningArena() != nullptr &&
7393 GetOwningArena() == other->GetOwningArena()) {
7394 #else // PROTOBUF_FORCE_COPY_IN_SWAP
7395 if (GetOwningArena() == other->GetOwningArena()) {
7396 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
7397 InternalSwap(other);
7398 } else {
7399 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
7400 }
7401 }
7402 void UnsafeArenaSwap(AppOpAccessTracked* other) {
7403 if (other == this) return;
7404 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
7405 InternalSwap(other);
7406 }
7407
7408 // implements Message ----------------------------------------------
7409
7410 AppOpAccessTracked* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
7411 return CreateMaybeMessage<AppOpAccessTracked>(arena);
7412 }
7413 AppOpAccessTracked* New() const {
7414 return New(nullptr);
7415 }
7416 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
7417 void CopyFrom(const AppOpAccessTracked& from);
7418 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
7419 void MergeFrom( const AppOpAccessTracked& from) {
7420 AppOpAccessTracked::MergeImpl(*this, from);
7421 }
7422 private:
7423 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
7424 public:
7425 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
7426 bool IsInitialized() const final;
7427
7428 size_t ByteSizeLong() const final;
7429 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
7430 ::uint8_t* _InternalSerialize(
7431 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
7432 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
7433
7434 private:
7435 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
7436 void SharedDtor();
7437 void SetCachedSize(int size) const final;
7438 void InternalSwap(AppOpAccessTracked* other);
7439
7440 private:
7441 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
7442 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
7443 return "android.os.statsd.framework.AppOpAccessTracked";
7444 }
7445 protected:
7446 explicit AppOpAccessTracked(::PROTOBUF_NAMESPACE_ID::Arena* arena,
7447 bool is_message_owned = false);
7448 public:
7449
7450 static const ClassData _class_data_;
7451 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
7452
7453 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
7454
7455 // nested types ----------------------------------------------------
7456
7457 typedef AppOpAccessTracked_AccessType AccessType;
7458 static constexpr AccessType UNKNOWN =
7459 AppOpAccessTracked_AccessType_UNKNOWN;
7460 static constexpr AccessType NOTE_OP =
7461 AppOpAccessTracked_AccessType_NOTE_OP;
7462 static constexpr AccessType START_OP =
7463 AppOpAccessTracked_AccessType_START_OP;
7464 static constexpr AccessType FINISH_OP =
7465 AppOpAccessTracked_AccessType_FINISH_OP;
7466 static constexpr AccessType PAUSE_OP =
7467 AppOpAccessTracked_AccessType_PAUSE_OP;
7468 static constexpr AccessType RESUME_OP =
7469 AppOpAccessTracked_AccessType_RESUME_OP;
7470 static inline bool AccessType_IsValid(int value) {
7471 return AppOpAccessTracked_AccessType_IsValid(value);
7472 }
7473 static constexpr AccessType AccessType_MIN =
7474 AppOpAccessTracked_AccessType_AccessType_MIN;
7475 static constexpr AccessType AccessType_MAX =
7476 AppOpAccessTracked_AccessType_AccessType_MAX;
7477 static constexpr int AccessType_ARRAYSIZE =
7478 AppOpAccessTracked_AccessType_AccessType_ARRAYSIZE;
7479 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
7480 AccessType_descriptor() {
7481 return AppOpAccessTracked_AccessType_descriptor();
7482 }
7483 template<typename T>
7484 static inline const std::string& AccessType_Name(T enum_t_value) {
7485 static_assert(::std::is_same<T, AccessType>::value ||
7486 ::std::is_integral<T>::value,
7487 "Incorrect type passed to function AccessType_Name.");
7488 return AppOpAccessTracked_AccessType_Name(enum_t_value);
7489 }
7490 static inline bool AccessType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
7491 AccessType* value) {
7492 return AppOpAccessTracked_AccessType_Parse(name, value);
7493 }
7494
7495 // accessors -------------------------------------------------------
7496
7497 enum : int {
7498 kAttributionTagFieldNumber = 7,
7499 kUidFieldNumber = 1,
7500 kAccessTypeFieldNumber = 3,
7501 kUidStateFieldNumber = 4,
7502 kOpFlagFieldNumber = 5,
7503 kAttributionFlagFieldNumber = 6,
7504 kAttributionChainIdFieldNumber = 8,
7505 kOpIdFieldNumber = 2,
7506 };
7507 // optional string attribution_tag = 7;
7508 bool has_attribution_tag() const;
7509 private:
7510 bool _internal_has_attribution_tag() const;
7511 public:
7512 void clear_attribution_tag();
7513 const std::string& attribution_tag() const;
7514 template <typename ArgT0 = const std::string&, typename... ArgT>
7515 void set_attribution_tag(ArgT0&& arg0, ArgT... args);
7516 std::string* mutable_attribution_tag();
7517 PROTOBUF_NODISCARD std::string* release_attribution_tag();
7518 void set_allocated_attribution_tag(std::string* attribution_tag);
7519 private:
7520 const std::string& _internal_attribution_tag() const;
7521 inline PROTOBUF_ALWAYS_INLINE void _internal_set_attribution_tag(const std::string& value);
7522 std::string* _internal_mutable_attribution_tag();
7523 public:
7524
7525 // optional int32 uid = 1 [(.android.os.statsd.is_uid) = true];
7526 bool has_uid() const;
7527 private:
7528 bool _internal_has_uid() const;
7529 public:
7530 void clear_uid();
7531 ::int32_t uid() const;
7532 void set_uid(::int32_t value);
7533 private:
7534 ::int32_t _internal_uid() const;
7535 void _internal_set_uid(::int32_t value);
7536 public:
7537
7538 // optional .android.os.statsd.framework.AppOpAccessTracked.AccessType access_type = 3;
7539 bool has_access_type() const;
7540 private:
7541 bool _internal_has_access_type() const;
7542 public:
7543 void clear_access_type();
7544 ::android::os::statsd::framework::AppOpAccessTracked_AccessType access_type() const;
7545 void set_access_type(::android::os::statsd::framework::AppOpAccessTracked_AccessType value);
7546 private:
7547 ::android::os::statsd::framework::AppOpAccessTracked_AccessType _internal_access_type() const;
7548 void _internal_set_access_type(::android::os::statsd::framework::AppOpAccessTracked_AccessType value);
7549 public:
7550
7551 // optional int32 uid_state = 4;
7552 bool has_uid_state() const;
7553 private:
7554 bool _internal_has_uid_state() const;
7555 public:
7556 void clear_uid_state();
7557 ::int32_t uid_state() const;
7558 void set_uid_state(::int32_t value);
7559 private:
7560 ::int32_t _internal_uid_state() const;
7561 void _internal_set_uid_state(::int32_t value);
7562 public:
7563
7564 // optional int32 op_flag = 5;
7565 bool has_op_flag() const;
7566 private:
7567 bool _internal_has_op_flag() const;
7568 public:
7569 void clear_op_flag();
7570 ::int32_t op_flag() const;
7571 void set_op_flag(::int32_t value);
7572 private:
7573 ::int32_t _internal_op_flag() const;
7574 void _internal_set_op_flag(::int32_t value);
7575 public:
7576
7577 // optional int32 attribution_flag = 6;
7578 bool has_attribution_flag() const;
7579 private:
7580 bool _internal_has_attribution_flag() const;
7581 public:
7582 void clear_attribution_flag();
7583 ::int32_t attribution_flag() const;
7584 void set_attribution_flag(::int32_t value);
7585 private:
7586 ::int32_t _internal_attribution_flag() const;
7587 void _internal_set_attribution_flag(::int32_t value);
7588 public:
7589
7590 // optional int32 attribution_chain_id = 8;
7591 bool has_attribution_chain_id() const;
7592 private:
7593 bool _internal_has_attribution_chain_id() const;
7594 public:
7595 void clear_attribution_chain_id();
7596 ::int32_t attribution_chain_id() const;
7597 void set_attribution_chain_id(::int32_t value);
7598 private:
7599 ::int32_t _internal_attribution_chain_id() const;
7600 void _internal_set_attribution_chain_id(::int32_t value);
7601 public:
7602
7603 // optional .android.app.AppOpEnum op_id = 2 [default = APP_OP_NONE];
7604 bool has_op_id() const;
7605 private:
7606 bool _internal_has_op_id() const;
7607 public:
7608 void clear_op_id();
7609 ::android::app::AppOpEnum op_id() const;
7610 void set_op_id(::android::app::AppOpEnum value);
7611 private:
7612 ::android::app::AppOpEnum _internal_op_id() const;
7613 void _internal_set_op_id(::android::app::AppOpEnum value);
7614 public:
7615
7616 // @@protoc_insertion_point(class_scope:android.os.statsd.framework.AppOpAccessTracked)
7617 private:
7618 class _Internal;
7619
7620 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
7621 typedef void InternalArenaConstructable_;
7622 typedef void DestructorSkippable_;
7623 struct Impl_ {
7624 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
7625 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
7626 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr attribution_tag_;
7627 ::int32_t uid_;
7628 int access_type_;
7629 ::int32_t uid_state_;
7630 ::int32_t op_flag_;
7631 ::int32_t attribution_flag_;
7632 ::int32_t attribution_chain_id_;
7633 int op_id_;
7634 };
7635 union { Impl_ _impl_; };
7636 friend struct ::TableStruct_frameworks_2fproto_5flogging_2fstats_2fatoms_2fframework_2fframework_5fextension_5fatoms_2eproto;
7637 };
7638 // -------------------------------------------------------------------
7639
7640 class AppOpNoteOpOrCheckOpBinderApiCalled final :
7641 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:android.os.statsd.framework.AppOpNoteOpOrCheckOpBinderApiCalled) */ {
7642 public:
AppOpNoteOpOrCheckOpBinderApiCalled()7643 inline AppOpNoteOpOrCheckOpBinderApiCalled() : AppOpNoteOpOrCheckOpBinderApiCalled(nullptr) {}
7644 ~AppOpNoteOpOrCheckOpBinderApiCalled() override;
7645 explicit PROTOBUF_CONSTEXPR AppOpNoteOpOrCheckOpBinderApiCalled(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
7646
7647 AppOpNoteOpOrCheckOpBinderApiCalled(const AppOpNoteOpOrCheckOpBinderApiCalled& from);
AppOpNoteOpOrCheckOpBinderApiCalled(AppOpNoteOpOrCheckOpBinderApiCalled && from)7648 AppOpNoteOpOrCheckOpBinderApiCalled(AppOpNoteOpOrCheckOpBinderApiCalled&& from) noexcept
7649 : AppOpNoteOpOrCheckOpBinderApiCalled() {
7650 *this = ::std::move(from);
7651 }
7652
7653 inline AppOpNoteOpOrCheckOpBinderApiCalled& operator=(const AppOpNoteOpOrCheckOpBinderApiCalled& from) {
7654 if (this == &from) return *this;
7655 CopyFrom(from);
7656 return *this;
7657 }
7658 inline AppOpNoteOpOrCheckOpBinderApiCalled& operator=(AppOpNoteOpOrCheckOpBinderApiCalled&& from) noexcept {
7659 if (this == &from) return *this;
7660 if (GetOwningArena() == from.GetOwningArena()
7661 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
7662 && GetOwningArena() != nullptr
7663 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
7664 ) {
7665 InternalSwap(&from);
7666 } else {
7667 CopyFrom(from);
7668 }
7669 return *this;
7670 }
7671
unknown_fields()7672 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
7673 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
7674 }
mutable_unknown_fields()7675 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
7676 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
7677 }
7678
descriptor()7679 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
7680 return GetDescriptor();
7681 }
GetDescriptor()7682 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
7683 return default_instance().GetMetadata().descriptor;
7684 }
GetReflection()7685 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
7686 return default_instance().GetMetadata().reflection;
7687 }
default_instance()7688 static const AppOpNoteOpOrCheckOpBinderApiCalled& default_instance() {
7689 return *internal_default_instance();
7690 }
internal_default_instance()7691 static inline const AppOpNoteOpOrCheckOpBinderApiCalled* internal_default_instance() {
7692 return reinterpret_cast<const AppOpNoteOpOrCheckOpBinderApiCalled*>(
7693 &_AppOpNoteOpOrCheckOpBinderApiCalled_default_instance_);
7694 }
7695 static constexpr int kIndexInFileMessages =
7696 24;
7697
swap(AppOpNoteOpOrCheckOpBinderApiCalled & a,AppOpNoteOpOrCheckOpBinderApiCalled & b)7698 friend void swap(AppOpNoteOpOrCheckOpBinderApiCalled& a, AppOpNoteOpOrCheckOpBinderApiCalled& b) {
7699 a.Swap(&b);
7700 }
Swap(AppOpNoteOpOrCheckOpBinderApiCalled * other)7701 inline void Swap(AppOpNoteOpOrCheckOpBinderApiCalled* other) {
7702 if (other == this) return;
7703 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
7704 if (GetOwningArena() != nullptr &&
7705 GetOwningArena() == other->GetOwningArena()) {
7706 #else // PROTOBUF_FORCE_COPY_IN_SWAP
7707 if (GetOwningArena() == other->GetOwningArena()) {
7708 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
7709 InternalSwap(other);
7710 } else {
7711 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
7712 }
7713 }
7714 void UnsafeArenaSwap(AppOpNoteOpOrCheckOpBinderApiCalled* other) {
7715 if (other == this) return;
7716 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
7717 InternalSwap(other);
7718 }
7719
7720 // implements Message ----------------------------------------------
7721
7722 AppOpNoteOpOrCheckOpBinderApiCalled* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
7723 return CreateMaybeMessage<AppOpNoteOpOrCheckOpBinderApiCalled>(arena);
7724 }
7725 AppOpNoteOpOrCheckOpBinderApiCalled* New() const {
7726 return New(nullptr);
7727 }
7728 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
7729 void CopyFrom(const AppOpNoteOpOrCheckOpBinderApiCalled& from);
7730 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
7731 void MergeFrom( const AppOpNoteOpOrCheckOpBinderApiCalled& from) {
7732 AppOpNoteOpOrCheckOpBinderApiCalled::MergeImpl(*this, from);
7733 }
7734 private:
7735 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
7736 public:
7737 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
7738 bool IsInitialized() const final;
7739
7740 size_t ByteSizeLong() const final;
7741 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
7742 ::uint8_t* _InternalSerialize(
7743 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
7744 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
7745
7746 private:
7747 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
7748 void SharedDtor();
7749 void SetCachedSize(int size) const final;
7750 void InternalSwap(AppOpNoteOpOrCheckOpBinderApiCalled* other);
7751
7752 private:
7753 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
7754 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
7755 return "android.os.statsd.framework.AppOpNoteOpOrCheckOpBinderApiCalled";
7756 }
7757 protected:
7758 explicit AppOpNoteOpOrCheckOpBinderApiCalled(::PROTOBUF_NAMESPACE_ID::Arena* arena,
7759 bool is_message_owned = false);
7760 public:
7761
7762 static const ClassData _class_data_;
7763 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
7764
7765 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
7766
7767 // nested types ----------------------------------------------------
7768
7769 typedef AppOpNoteOpOrCheckOpBinderApiCalled_BinderApi BinderApi;
7770 static constexpr BinderApi UNKNOWN =
7771 AppOpNoteOpOrCheckOpBinderApiCalled_BinderApi_UNKNOWN;
7772 static constexpr BinderApi CHECK_OPERATION =
7773 AppOpNoteOpOrCheckOpBinderApiCalled_BinderApi_CHECK_OPERATION;
7774 static constexpr BinderApi NOTE_OPERATION =
7775 AppOpNoteOpOrCheckOpBinderApiCalled_BinderApi_NOTE_OPERATION;
7776 static constexpr BinderApi NOTE_PROXY_OPERATION =
7777 AppOpNoteOpOrCheckOpBinderApiCalled_BinderApi_NOTE_PROXY_OPERATION;
7778 static inline bool BinderApi_IsValid(int value) {
7779 return AppOpNoteOpOrCheckOpBinderApiCalled_BinderApi_IsValid(value);
7780 }
7781 static constexpr BinderApi BinderApi_MIN =
7782 AppOpNoteOpOrCheckOpBinderApiCalled_BinderApi_BinderApi_MIN;
7783 static constexpr BinderApi BinderApi_MAX =
7784 AppOpNoteOpOrCheckOpBinderApiCalled_BinderApi_BinderApi_MAX;
7785 static constexpr int BinderApi_ARRAYSIZE =
7786 AppOpNoteOpOrCheckOpBinderApiCalled_BinderApi_BinderApi_ARRAYSIZE;
7787 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
7788 BinderApi_descriptor() {
7789 return AppOpNoteOpOrCheckOpBinderApiCalled_BinderApi_descriptor();
7790 }
7791 template<typename T>
7792 static inline const std::string& BinderApi_Name(T enum_t_value) {
7793 static_assert(::std::is_same<T, BinderApi>::value ||
7794 ::std::is_integral<T>::value,
7795 "Incorrect type passed to function BinderApi_Name.");
7796 return AppOpNoteOpOrCheckOpBinderApiCalled_BinderApi_Name(enum_t_value);
7797 }
7798 static inline bool BinderApi_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
7799 BinderApi* value) {
7800 return AppOpNoteOpOrCheckOpBinderApiCalled_BinderApi_Parse(name, value);
7801 }
7802
7803 // accessors -------------------------------------------------------
7804
7805 enum : int {
7806 kUidFieldNumber = 1,
7807 kBinderApiFieldNumber = 3,
7808 kHasAttributionTagFieldNumber = 4,
7809 kOpIdFieldNumber = 2,
7810 };
7811 // optional int32 uid = 1 [(.android.os.statsd.is_uid) = true];
7812 bool has_uid() const;
7813 private:
7814 bool _internal_has_uid() const;
7815 public:
7816 void clear_uid();
7817 ::int32_t uid() const;
7818 void set_uid(::int32_t value);
7819 private:
7820 ::int32_t _internal_uid() const;
7821 void _internal_set_uid(::int32_t value);
7822 public:
7823
7824 // optional .android.os.statsd.framework.AppOpNoteOpOrCheckOpBinderApiCalled.BinderApi binder_api = 3;
7825 bool has_binder_api() const;
7826 private:
7827 bool _internal_has_binder_api() const;
7828 public:
7829 void clear_binder_api();
7830 ::android::os::statsd::framework::AppOpNoteOpOrCheckOpBinderApiCalled_BinderApi binder_api() const;
7831 void set_binder_api(::android::os::statsd::framework::AppOpNoteOpOrCheckOpBinderApiCalled_BinderApi value);
7832 private:
7833 ::android::os::statsd::framework::AppOpNoteOpOrCheckOpBinderApiCalled_BinderApi _internal_binder_api() const;
7834 void _internal_set_binder_api(::android::os::statsd::framework::AppOpNoteOpOrCheckOpBinderApiCalled_BinderApi value);
7835 public:
7836
7837 // optional bool has_attribution_tag = 4;
7838 bool has_has_attribution_tag() const;
7839 private:
7840 bool _internal_has_has_attribution_tag() const;
7841 public:
7842 void clear_has_attribution_tag();
7843 bool has_attribution_tag() const;
7844 void set_has_attribution_tag(bool value);
7845 private:
7846 bool _internal_has_attribution_tag() const;
7847 void _internal_set_has_attribution_tag(bool value);
7848 public:
7849
7850 // optional .android.app.AppOpEnum op_id = 2 [default = APP_OP_NONE];
7851 bool has_op_id() const;
7852 private:
7853 bool _internal_has_op_id() const;
7854 public:
7855 void clear_op_id();
7856 ::android::app::AppOpEnum op_id() const;
7857 void set_op_id(::android::app::AppOpEnum value);
7858 private:
7859 ::android::app::AppOpEnum _internal_op_id() const;
7860 void _internal_set_op_id(::android::app::AppOpEnum value);
7861 public:
7862
7863 // @@protoc_insertion_point(class_scope:android.os.statsd.framework.AppOpNoteOpOrCheckOpBinderApiCalled)
7864 private:
7865 class _Internal;
7866
7867 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
7868 typedef void InternalArenaConstructable_;
7869 typedef void DestructorSkippable_;
7870 struct Impl_ {
7871 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
7872 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
7873 ::int32_t uid_;
7874 int binder_api_;
7875 bool has_attribution_tag_;
7876 int op_id_;
7877 };
7878 union { Impl_ _impl_; };
7879 friend struct ::TableStruct_frameworks_2fproto_5flogging_2fstats_2fatoms_2fframework_2fframework_5fextension_5fatoms_2eproto;
7880 };
7881 // -------------------------------------------------------------------
7882
7883 class ContentOrFileUriEventReported final :
7884 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:android.os.statsd.framework.ContentOrFileUriEventReported) */ {
7885 public:
ContentOrFileUriEventReported()7886 inline ContentOrFileUriEventReported() : ContentOrFileUriEventReported(nullptr) {}
7887 ~ContentOrFileUriEventReported() override;
7888 explicit PROTOBUF_CONSTEXPR ContentOrFileUriEventReported(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
7889
7890 ContentOrFileUriEventReported(const ContentOrFileUriEventReported& from);
ContentOrFileUriEventReported(ContentOrFileUriEventReported && from)7891 ContentOrFileUriEventReported(ContentOrFileUriEventReported&& from) noexcept
7892 : ContentOrFileUriEventReported() {
7893 *this = ::std::move(from);
7894 }
7895
7896 inline ContentOrFileUriEventReported& operator=(const ContentOrFileUriEventReported& from) {
7897 if (this == &from) return *this;
7898 CopyFrom(from);
7899 return *this;
7900 }
7901 inline ContentOrFileUriEventReported& operator=(ContentOrFileUriEventReported&& from) noexcept {
7902 if (this == &from) return *this;
7903 if (GetOwningArena() == from.GetOwningArena()
7904 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
7905 && GetOwningArena() != nullptr
7906 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
7907 ) {
7908 InternalSwap(&from);
7909 } else {
7910 CopyFrom(from);
7911 }
7912 return *this;
7913 }
7914
unknown_fields()7915 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
7916 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
7917 }
mutable_unknown_fields()7918 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
7919 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
7920 }
7921
descriptor()7922 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
7923 return GetDescriptor();
7924 }
GetDescriptor()7925 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
7926 return default_instance().GetMetadata().descriptor;
7927 }
GetReflection()7928 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
7929 return default_instance().GetMetadata().reflection;
7930 }
default_instance()7931 static const ContentOrFileUriEventReported& default_instance() {
7932 return *internal_default_instance();
7933 }
internal_default_instance()7934 static inline const ContentOrFileUriEventReported* internal_default_instance() {
7935 return reinterpret_cast<const ContentOrFileUriEventReported*>(
7936 &_ContentOrFileUriEventReported_default_instance_);
7937 }
7938 static constexpr int kIndexInFileMessages =
7939 25;
7940
swap(ContentOrFileUriEventReported & a,ContentOrFileUriEventReported & b)7941 friend void swap(ContentOrFileUriEventReported& a, ContentOrFileUriEventReported& b) {
7942 a.Swap(&b);
7943 }
Swap(ContentOrFileUriEventReported * other)7944 inline void Swap(ContentOrFileUriEventReported* other) {
7945 if (other == this) return;
7946 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
7947 if (GetOwningArena() != nullptr &&
7948 GetOwningArena() == other->GetOwningArena()) {
7949 #else // PROTOBUF_FORCE_COPY_IN_SWAP
7950 if (GetOwningArena() == other->GetOwningArena()) {
7951 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
7952 InternalSwap(other);
7953 } else {
7954 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
7955 }
7956 }
7957 void UnsafeArenaSwap(ContentOrFileUriEventReported* other) {
7958 if (other == this) return;
7959 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
7960 InternalSwap(other);
7961 }
7962
7963 // implements Message ----------------------------------------------
7964
7965 ContentOrFileUriEventReported* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
7966 return CreateMaybeMessage<ContentOrFileUriEventReported>(arena);
7967 }
7968 ContentOrFileUriEventReported* New() const {
7969 return New(nullptr);
7970 }
7971 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
7972 void CopyFrom(const ContentOrFileUriEventReported& from);
7973 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
7974 void MergeFrom( const ContentOrFileUriEventReported& from) {
7975 ContentOrFileUriEventReported::MergeImpl(*this, from);
7976 }
7977 private:
7978 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
7979 public:
7980 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
7981 bool IsInitialized() const final;
7982
7983 size_t ByteSizeLong() const final;
7984 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
7985 ::uint8_t* _InternalSerialize(
7986 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
7987 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
7988
7989 private:
7990 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
7991 void SharedDtor();
7992 void SetCachedSize(int size) const final;
7993 void InternalSwap(ContentOrFileUriEventReported* other);
7994
7995 private:
7996 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
7997 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
7998 return "android.os.statsd.framework.ContentOrFileUriEventReported";
7999 }
8000 protected:
8001 explicit ContentOrFileUriEventReported(::PROTOBUF_NAMESPACE_ID::Arena* arena,
8002 bool is_message_owned = false);
8003 public:
8004
8005 static const ClassData _class_data_;
8006 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
8007
8008 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
8009
8010 // nested types ----------------------------------------------------
8011
8012 typedef ContentOrFileUriEventReported_EventType EventType;
8013 static constexpr EventType UNKNOWN =
8014 ContentOrFileUriEventReported_EventType_UNKNOWN;
8015 static constexpr EventType CONTENT_URI_WITHOUT_CALLER_READ_PERMISSION =
8016 ContentOrFileUriEventReported_EventType_CONTENT_URI_WITHOUT_CALLER_READ_PERMISSION;
8017 static constexpr EventType FILE_URI_IN_CONTENT_RESOLVER =
8018 ContentOrFileUriEventReported_EventType_FILE_URI_IN_CONTENT_RESOLVER;
8019 static constexpr EventType NON_CONTENT_URI_IN_ICON =
8020 ContentOrFileUriEventReported_EventType_NON_CONTENT_URI_IN_ICON;
8021 static constexpr EventType NON_CONTENT_URI_IN_NOTIFICATION_RECORD =
8022 ContentOrFileUriEventReported_EventType_NON_CONTENT_URI_IN_NOTIFICATION_RECORD;
8023 static constexpr EventType NON_CONTENT_URI_IN_MEDIA_DATA_MANAGER =
8024 ContentOrFileUriEventReported_EventType_NON_CONTENT_URI_IN_MEDIA_DATA_MANAGER;
8025 static inline bool EventType_IsValid(int value) {
8026 return ContentOrFileUriEventReported_EventType_IsValid(value);
8027 }
8028 static constexpr EventType EventType_MIN =
8029 ContentOrFileUriEventReported_EventType_EventType_MIN;
8030 static constexpr EventType EventType_MAX =
8031 ContentOrFileUriEventReported_EventType_EventType_MAX;
8032 static constexpr int EventType_ARRAYSIZE =
8033 ContentOrFileUriEventReported_EventType_EventType_ARRAYSIZE;
8034 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
8035 EventType_descriptor() {
8036 return ContentOrFileUriEventReported_EventType_descriptor();
8037 }
8038 template<typename T>
8039 static inline const std::string& EventType_Name(T enum_t_value) {
8040 static_assert(::std::is_same<T, EventType>::value ||
8041 ::std::is_integral<T>::value,
8042 "Incorrect type passed to function EventType_Name.");
8043 return ContentOrFileUriEventReported_EventType_Name(enum_t_value);
8044 }
8045 static inline bool EventType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
8046 EventType* value) {
8047 return ContentOrFileUriEventReported_EventType_Parse(name, value);
8048 }
8049
8050 // accessors -------------------------------------------------------
8051
8052 enum : int {
8053 kActionTypeFieldNumber = 2,
8054 kCallerActivityClassNameFieldNumber = 4,
8055 kCalleeActivityClassNameFieldNumber = 6,
8056 kUriAuthorityFieldNumber = 8,
8057 kUriTypeFieldNumber = 9,
8058 kUriMimeTypeFieldNumber = 10,
8059 kEventTypeFieldNumber = 1,
8060 kCallerUidFieldNumber = 3,
8061 kCalleeUidFieldNumber = 5,
8062 kIsStartActivityForResultFieldNumber = 7,
8063 };
8064 // optional string action_type = 2;
8065 bool has_action_type() const;
8066 private:
8067 bool _internal_has_action_type() const;
8068 public:
8069 void clear_action_type();
8070 const std::string& action_type() const;
8071 template <typename ArgT0 = const std::string&, typename... ArgT>
8072 void set_action_type(ArgT0&& arg0, ArgT... args);
8073 std::string* mutable_action_type();
8074 PROTOBUF_NODISCARD std::string* release_action_type();
8075 void set_allocated_action_type(std::string* action_type);
8076 private:
8077 const std::string& _internal_action_type() const;
8078 inline PROTOBUF_ALWAYS_INLINE void _internal_set_action_type(const std::string& value);
8079 std::string* _internal_mutable_action_type();
8080 public:
8081
8082 // optional string caller_activity_class_name = 4;
8083 bool has_caller_activity_class_name() const;
8084 private:
8085 bool _internal_has_caller_activity_class_name() const;
8086 public:
8087 void clear_caller_activity_class_name();
8088 const std::string& caller_activity_class_name() const;
8089 template <typename ArgT0 = const std::string&, typename... ArgT>
8090 void set_caller_activity_class_name(ArgT0&& arg0, ArgT... args);
8091 std::string* mutable_caller_activity_class_name();
8092 PROTOBUF_NODISCARD std::string* release_caller_activity_class_name();
8093 void set_allocated_caller_activity_class_name(std::string* caller_activity_class_name);
8094 private:
8095 const std::string& _internal_caller_activity_class_name() const;
8096 inline PROTOBUF_ALWAYS_INLINE void _internal_set_caller_activity_class_name(const std::string& value);
8097 std::string* _internal_mutable_caller_activity_class_name();
8098 public:
8099
8100 // optional string callee_activity_class_name = 6;
8101 bool has_callee_activity_class_name() const;
8102 private:
8103 bool _internal_has_callee_activity_class_name() const;
8104 public:
8105 void clear_callee_activity_class_name();
8106 const std::string& callee_activity_class_name() const;
8107 template <typename ArgT0 = const std::string&, typename... ArgT>
8108 void set_callee_activity_class_name(ArgT0&& arg0, ArgT... args);
8109 std::string* mutable_callee_activity_class_name();
8110 PROTOBUF_NODISCARD std::string* release_callee_activity_class_name();
8111 void set_allocated_callee_activity_class_name(std::string* callee_activity_class_name);
8112 private:
8113 const std::string& _internal_callee_activity_class_name() const;
8114 inline PROTOBUF_ALWAYS_INLINE void _internal_set_callee_activity_class_name(const std::string& value);
8115 std::string* _internal_mutable_callee_activity_class_name();
8116 public:
8117
8118 // optional string uri_authority = 8;
8119 bool has_uri_authority() const;
8120 private:
8121 bool _internal_has_uri_authority() const;
8122 public:
8123 void clear_uri_authority();
8124 const std::string& uri_authority() const;
8125 template <typename ArgT0 = const std::string&, typename... ArgT>
8126 void set_uri_authority(ArgT0&& arg0, ArgT... args);
8127 std::string* mutable_uri_authority();
8128 PROTOBUF_NODISCARD std::string* release_uri_authority();
8129 void set_allocated_uri_authority(std::string* uri_authority);
8130 private:
8131 const std::string& _internal_uri_authority() const;
8132 inline PROTOBUF_ALWAYS_INLINE void _internal_set_uri_authority(const std::string& value);
8133 std::string* _internal_mutable_uri_authority();
8134 public:
8135
8136 // optional string uri_type = 9;
8137 bool has_uri_type() const;
8138 private:
8139 bool _internal_has_uri_type() const;
8140 public:
8141 void clear_uri_type();
8142 const std::string& uri_type() const;
8143 template <typename ArgT0 = const std::string&, typename... ArgT>
8144 void set_uri_type(ArgT0&& arg0, ArgT... args);
8145 std::string* mutable_uri_type();
8146 PROTOBUF_NODISCARD std::string* release_uri_type();
8147 void set_allocated_uri_type(std::string* uri_type);
8148 private:
8149 const std::string& _internal_uri_type() const;
8150 inline PROTOBUF_ALWAYS_INLINE void _internal_set_uri_type(const std::string& value);
8151 std::string* _internal_mutable_uri_type();
8152 public:
8153
8154 // optional string uri_mime_type = 10;
8155 bool has_uri_mime_type() const;
8156 private:
8157 bool _internal_has_uri_mime_type() const;
8158 public:
8159 void clear_uri_mime_type();
8160 const std::string& uri_mime_type() const;
8161 template <typename ArgT0 = const std::string&, typename... ArgT>
8162 void set_uri_mime_type(ArgT0&& arg0, ArgT... args);
8163 std::string* mutable_uri_mime_type();
8164 PROTOBUF_NODISCARD std::string* release_uri_mime_type();
8165 void set_allocated_uri_mime_type(std::string* uri_mime_type);
8166 private:
8167 const std::string& _internal_uri_mime_type() const;
8168 inline PROTOBUF_ALWAYS_INLINE void _internal_set_uri_mime_type(const std::string& value);
8169 std::string* _internal_mutable_uri_mime_type();
8170 public:
8171
8172 // optional .android.os.statsd.framework.ContentOrFileUriEventReported.EventType event_type = 1;
8173 bool has_event_type() const;
8174 private:
8175 bool _internal_has_event_type() const;
8176 public:
8177 void clear_event_type();
8178 ::android::os::statsd::framework::ContentOrFileUriEventReported_EventType event_type() const;
8179 void set_event_type(::android::os::statsd::framework::ContentOrFileUriEventReported_EventType value);
8180 private:
8181 ::android::os::statsd::framework::ContentOrFileUriEventReported_EventType _internal_event_type() const;
8182 void _internal_set_event_type(::android::os::statsd::framework::ContentOrFileUriEventReported_EventType value);
8183 public:
8184
8185 // optional int32 caller_uid = 3 [(.android.os.statsd.is_uid) = true];
8186 bool has_caller_uid() const;
8187 private:
8188 bool _internal_has_caller_uid() const;
8189 public:
8190 void clear_caller_uid();
8191 ::int32_t caller_uid() const;
8192 void set_caller_uid(::int32_t value);
8193 private:
8194 ::int32_t _internal_caller_uid() const;
8195 void _internal_set_caller_uid(::int32_t value);
8196 public:
8197
8198 // optional int32 callee_uid = 5 [(.android.os.statsd.is_uid) = true];
8199 bool has_callee_uid() const;
8200 private:
8201 bool _internal_has_callee_uid() const;
8202 public:
8203 void clear_callee_uid();
8204 ::int32_t callee_uid() const;
8205 void set_callee_uid(::int32_t value);
8206 private:
8207 ::int32_t _internal_callee_uid() const;
8208 void _internal_set_callee_uid(::int32_t value);
8209 public:
8210
8211 // optional bool is_start_activity_for_result = 7;
8212 bool has_is_start_activity_for_result() const;
8213 private:
8214 bool _internal_has_is_start_activity_for_result() const;
8215 public:
8216 void clear_is_start_activity_for_result();
8217 bool is_start_activity_for_result() const;
8218 void set_is_start_activity_for_result(bool value);
8219 private:
8220 bool _internal_is_start_activity_for_result() const;
8221 void _internal_set_is_start_activity_for_result(bool value);
8222 public:
8223
8224 // @@protoc_insertion_point(class_scope:android.os.statsd.framework.ContentOrFileUriEventReported)
8225 private:
8226 class _Internal;
8227
8228 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
8229 typedef void InternalArenaConstructable_;
8230 typedef void DestructorSkippable_;
8231 struct Impl_ {
8232 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
8233 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
8234 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr action_type_;
8235 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr caller_activity_class_name_;
8236 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr callee_activity_class_name_;
8237 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr uri_authority_;
8238 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr uri_type_;
8239 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr uri_mime_type_;
8240 int event_type_;
8241 ::int32_t caller_uid_;
8242 ::int32_t callee_uid_;
8243 bool is_start_activity_for_result_;
8244 };
8245 union { Impl_ _impl_; };
8246 friend struct ::TableStruct_frameworks_2fproto_5flogging_2fstats_2fatoms_2fframework_2fframework_5fextension_5fatoms_2eproto;
8247 };
8248 // -------------------------------------------------------------------
8249
8250 class FrameworkWakelockInfo final :
8251 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:android.os.statsd.framework.FrameworkWakelockInfo) */ {
8252 public:
FrameworkWakelockInfo()8253 inline FrameworkWakelockInfo() : FrameworkWakelockInfo(nullptr) {}
8254 ~FrameworkWakelockInfo() override;
8255 explicit PROTOBUF_CONSTEXPR FrameworkWakelockInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
8256
8257 FrameworkWakelockInfo(const FrameworkWakelockInfo& from);
FrameworkWakelockInfo(FrameworkWakelockInfo && from)8258 FrameworkWakelockInfo(FrameworkWakelockInfo&& from) noexcept
8259 : FrameworkWakelockInfo() {
8260 *this = ::std::move(from);
8261 }
8262
8263 inline FrameworkWakelockInfo& operator=(const FrameworkWakelockInfo& from) {
8264 if (this == &from) return *this;
8265 CopyFrom(from);
8266 return *this;
8267 }
8268 inline FrameworkWakelockInfo& operator=(FrameworkWakelockInfo&& from) noexcept {
8269 if (this == &from) return *this;
8270 if (GetOwningArena() == from.GetOwningArena()
8271 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
8272 && GetOwningArena() != nullptr
8273 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
8274 ) {
8275 InternalSwap(&from);
8276 } else {
8277 CopyFrom(from);
8278 }
8279 return *this;
8280 }
8281
unknown_fields()8282 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
8283 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
8284 }
mutable_unknown_fields()8285 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
8286 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
8287 }
8288
descriptor()8289 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
8290 return GetDescriptor();
8291 }
GetDescriptor()8292 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
8293 return default_instance().GetMetadata().descriptor;
8294 }
GetReflection()8295 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
8296 return default_instance().GetMetadata().reflection;
8297 }
default_instance()8298 static const FrameworkWakelockInfo& default_instance() {
8299 return *internal_default_instance();
8300 }
internal_default_instance()8301 static inline const FrameworkWakelockInfo* internal_default_instance() {
8302 return reinterpret_cast<const FrameworkWakelockInfo*>(
8303 &_FrameworkWakelockInfo_default_instance_);
8304 }
8305 static constexpr int kIndexInFileMessages =
8306 26;
8307
swap(FrameworkWakelockInfo & a,FrameworkWakelockInfo & b)8308 friend void swap(FrameworkWakelockInfo& a, FrameworkWakelockInfo& b) {
8309 a.Swap(&b);
8310 }
Swap(FrameworkWakelockInfo * other)8311 inline void Swap(FrameworkWakelockInfo* other) {
8312 if (other == this) return;
8313 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
8314 if (GetOwningArena() != nullptr &&
8315 GetOwningArena() == other->GetOwningArena()) {
8316 #else // PROTOBUF_FORCE_COPY_IN_SWAP
8317 if (GetOwningArena() == other->GetOwningArena()) {
8318 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
8319 InternalSwap(other);
8320 } else {
8321 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
8322 }
8323 }
8324 void UnsafeArenaSwap(FrameworkWakelockInfo* other) {
8325 if (other == this) return;
8326 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
8327 InternalSwap(other);
8328 }
8329
8330 // implements Message ----------------------------------------------
8331
8332 FrameworkWakelockInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
8333 return CreateMaybeMessage<FrameworkWakelockInfo>(arena);
8334 }
8335 FrameworkWakelockInfo* New() const {
8336 return New(nullptr);
8337 }
8338 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
8339 void CopyFrom(const FrameworkWakelockInfo& from);
8340 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
8341 void MergeFrom( const FrameworkWakelockInfo& from) {
8342 FrameworkWakelockInfo::MergeImpl(*this, from);
8343 }
8344 private:
8345 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
8346 public:
8347 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
8348 bool IsInitialized() const final;
8349
8350 size_t ByteSizeLong() const final;
8351 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
8352 ::uint8_t* _InternalSerialize(
8353 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
8354 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
8355
8356 private:
8357 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
8358 void SharedDtor();
8359 void SetCachedSize(int size) const final;
8360 void InternalSwap(FrameworkWakelockInfo* other);
8361
8362 private:
8363 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
8364 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
8365 return "android.os.statsd.framework.FrameworkWakelockInfo";
8366 }
8367 protected:
8368 explicit FrameworkWakelockInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena,
8369 bool is_message_owned = false);
8370 public:
8371
8372 static const ClassData _class_data_;
8373 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
8374
8375 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
8376
8377 // nested types ----------------------------------------------------
8378
8379 // accessors -------------------------------------------------------
8380
8381 enum : int {
8382 kAttributionTagFieldNumber = 2,
8383 kUptimeMillisFieldNumber = 4,
8384 kCompletedCountFieldNumber = 5,
8385 kAttributionUidFieldNumber = 1,
8386 kTypeFieldNumber = 3,
8387 };
8388 // optional string attribution_tag = 2;
8389 bool has_attribution_tag() const;
8390 private:
8391 bool _internal_has_attribution_tag() const;
8392 public:
8393 void clear_attribution_tag();
8394 const std::string& attribution_tag() const;
8395 template <typename ArgT0 = const std::string&, typename... ArgT>
8396 void set_attribution_tag(ArgT0&& arg0, ArgT... args);
8397 std::string* mutable_attribution_tag();
8398 PROTOBUF_NODISCARD std::string* release_attribution_tag();
8399 void set_allocated_attribution_tag(std::string* attribution_tag);
8400 private:
8401 const std::string& _internal_attribution_tag() const;
8402 inline PROTOBUF_ALWAYS_INLINE void _internal_set_attribution_tag(const std::string& value);
8403 std::string* _internal_mutable_attribution_tag();
8404 public:
8405
8406 // optional int64 uptime_millis = 4;
8407 bool has_uptime_millis() const;
8408 private:
8409 bool _internal_has_uptime_millis() const;
8410 public:
8411 void clear_uptime_millis();
8412 ::int64_t uptime_millis() const;
8413 void set_uptime_millis(::int64_t value);
8414 private:
8415 ::int64_t _internal_uptime_millis() const;
8416 void _internal_set_uptime_millis(::int64_t value);
8417 public:
8418
8419 // optional int64 completed_count = 5;
8420 bool has_completed_count() const;
8421 private:
8422 bool _internal_has_completed_count() const;
8423 public:
8424 void clear_completed_count();
8425 ::int64_t completed_count() const;
8426 void set_completed_count(::int64_t value);
8427 private:
8428 ::int64_t _internal_completed_count() const;
8429 void _internal_set_completed_count(::int64_t value);
8430 public:
8431
8432 // optional int32 attribution_uid = 1 [(.android.os.statsd.is_uid) = true];
8433 bool has_attribution_uid() const;
8434 private:
8435 bool _internal_has_attribution_uid() const;
8436 public:
8437 void clear_attribution_uid();
8438 ::int32_t attribution_uid() const;
8439 void set_attribution_uid(::int32_t value);
8440 private:
8441 ::int32_t _internal_attribution_uid() const;
8442 void _internal_set_attribution_uid(::int32_t value);
8443 public:
8444
8445 // optional .android.os.WakeLockLevelEnum type = 3;
8446 bool has_type() const;
8447 private:
8448 bool _internal_has_type() const;
8449 public:
8450 void clear_type();
8451 ::android::os::WakeLockLevelEnum type() const;
8452 void set_type(::android::os::WakeLockLevelEnum value);
8453 private:
8454 ::android::os::WakeLockLevelEnum _internal_type() const;
8455 void _internal_set_type(::android::os::WakeLockLevelEnum value);
8456 public:
8457
8458 // @@protoc_insertion_point(class_scope:android.os.statsd.framework.FrameworkWakelockInfo)
8459 private:
8460 class _Internal;
8461
8462 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
8463 typedef void InternalArenaConstructable_;
8464 typedef void DestructorSkippable_;
8465 struct Impl_ {
8466 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
8467 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
8468 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr attribution_tag_;
8469 ::int64_t uptime_millis_;
8470 ::int64_t completed_count_;
8471 ::int32_t attribution_uid_;
8472 int type_;
8473 };
8474 union { Impl_ _impl_; };
8475 friend struct ::TableStruct_frameworks_2fproto_5flogging_2fstats_2fatoms_2fframework_2fframework_5fextension_5fatoms_2eproto;
8476 };
8477 // -------------------------------------------------------------------
8478
8479 class JankFrameCountByWidgetReported final :
8480 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:android.os.statsd.framework.JankFrameCountByWidgetReported) */ {
8481 public:
JankFrameCountByWidgetReported()8482 inline JankFrameCountByWidgetReported() : JankFrameCountByWidgetReported(nullptr) {}
8483 ~JankFrameCountByWidgetReported() override;
8484 explicit PROTOBUF_CONSTEXPR JankFrameCountByWidgetReported(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
8485
8486 JankFrameCountByWidgetReported(const JankFrameCountByWidgetReported& from);
JankFrameCountByWidgetReported(JankFrameCountByWidgetReported && from)8487 JankFrameCountByWidgetReported(JankFrameCountByWidgetReported&& from) noexcept
8488 : JankFrameCountByWidgetReported() {
8489 *this = ::std::move(from);
8490 }
8491
8492 inline JankFrameCountByWidgetReported& operator=(const JankFrameCountByWidgetReported& from) {
8493 if (this == &from) return *this;
8494 CopyFrom(from);
8495 return *this;
8496 }
8497 inline JankFrameCountByWidgetReported& operator=(JankFrameCountByWidgetReported&& from) noexcept {
8498 if (this == &from) return *this;
8499 if (GetOwningArena() == from.GetOwningArena()
8500 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
8501 && GetOwningArena() != nullptr
8502 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
8503 ) {
8504 InternalSwap(&from);
8505 } else {
8506 CopyFrom(from);
8507 }
8508 return *this;
8509 }
8510
unknown_fields()8511 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
8512 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
8513 }
mutable_unknown_fields()8514 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
8515 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
8516 }
8517
descriptor()8518 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
8519 return GetDescriptor();
8520 }
GetDescriptor()8521 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
8522 return default_instance().GetMetadata().descriptor;
8523 }
GetReflection()8524 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
8525 return default_instance().GetMetadata().reflection;
8526 }
default_instance()8527 static const JankFrameCountByWidgetReported& default_instance() {
8528 return *internal_default_instance();
8529 }
internal_default_instance()8530 static inline const JankFrameCountByWidgetReported* internal_default_instance() {
8531 return reinterpret_cast<const JankFrameCountByWidgetReported*>(
8532 &_JankFrameCountByWidgetReported_default_instance_);
8533 }
8534 static constexpr int kIndexInFileMessages =
8535 27;
8536
swap(JankFrameCountByWidgetReported & a,JankFrameCountByWidgetReported & b)8537 friend void swap(JankFrameCountByWidgetReported& a, JankFrameCountByWidgetReported& b) {
8538 a.Swap(&b);
8539 }
Swap(JankFrameCountByWidgetReported * other)8540 inline void Swap(JankFrameCountByWidgetReported* other) {
8541 if (other == this) return;
8542 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
8543 if (GetOwningArena() != nullptr &&
8544 GetOwningArena() == other->GetOwningArena()) {
8545 #else // PROTOBUF_FORCE_COPY_IN_SWAP
8546 if (GetOwningArena() == other->GetOwningArena()) {
8547 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
8548 InternalSwap(other);
8549 } else {
8550 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
8551 }
8552 }
8553 void UnsafeArenaSwap(JankFrameCountByWidgetReported* other) {
8554 if (other == this) return;
8555 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
8556 InternalSwap(other);
8557 }
8558
8559 // implements Message ----------------------------------------------
8560
8561 JankFrameCountByWidgetReported* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
8562 return CreateMaybeMessage<JankFrameCountByWidgetReported>(arena);
8563 }
8564 JankFrameCountByWidgetReported* New() const {
8565 return New(nullptr);
8566 }
8567 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
8568 void CopyFrom(const JankFrameCountByWidgetReported& from);
8569 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
8570 void MergeFrom( const JankFrameCountByWidgetReported& from) {
8571 JankFrameCountByWidgetReported::MergeImpl(*this, from);
8572 }
8573 private:
8574 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
8575 public:
8576 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
8577 bool IsInitialized() const final;
8578
8579 size_t ByteSizeLong() const final;
8580 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
8581 ::uint8_t* _InternalSerialize(
8582 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
8583 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
8584
8585 private:
8586 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
8587 void SharedDtor();
8588 void SetCachedSize(int size) const final;
8589 void InternalSwap(JankFrameCountByWidgetReported* other);
8590
8591 private:
8592 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
8593 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
8594 return "android.os.statsd.framework.JankFrameCountByWidgetReported";
8595 }
8596 protected:
8597 explicit JankFrameCountByWidgetReported(::PROTOBUF_NAMESPACE_ID::Arena* arena,
8598 bool is_message_owned = false);
8599 public:
8600
8601 static const ClassData _class_data_;
8602 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
8603
8604 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
8605
8606 // nested types ----------------------------------------------------
8607
8608 typedef JankFrameCountByWidgetReported_WidgetCategory WidgetCategory;
8609 static constexpr WidgetCategory WIDGET_CATEGORY_UNSPECIFIED =
8610 JankFrameCountByWidgetReported_WidgetCategory_WIDGET_CATEGORY_UNSPECIFIED;
8611 static constexpr WidgetCategory SCROLL =
8612 JankFrameCountByWidgetReported_WidgetCategory_SCROLL;
8613 static constexpr WidgetCategory ANIMATION =
8614 JankFrameCountByWidgetReported_WidgetCategory_ANIMATION;
8615 static constexpr WidgetCategory MEDIA =
8616 JankFrameCountByWidgetReported_WidgetCategory_MEDIA;
8617 static constexpr WidgetCategory NAVIGATION =
8618 JankFrameCountByWidgetReported_WidgetCategory_NAVIGATION;
8619 static constexpr WidgetCategory KEYBOARD =
8620 JankFrameCountByWidgetReported_WidgetCategory_KEYBOARD;
8621 static constexpr WidgetCategory PREDICTIVE_BACK =
8622 JankFrameCountByWidgetReported_WidgetCategory_PREDICTIVE_BACK;
8623 static constexpr WidgetCategory OTHER =
8624 JankFrameCountByWidgetReported_WidgetCategory_OTHER;
8625 static inline bool WidgetCategory_IsValid(int value) {
8626 return JankFrameCountByWidgetReported_WidgetCategory_IsValid(value);
8627 }
8628 static constexpr WidgetCategory WidgetCategory_MIN =
8629 JankFrameCountByWidgetReported_WidgetCategory_WidgetCategory_MIN;
8630 static constexpr WidgetCategory WidgetCategory_MAX =
8631 JankFrameCountByWidgetReported_WidgetCategory_WidgetCategory_MAX;
8632 static constexpr int WidgetCategory_ARRAYSIZE =
8633 JankFrameCountByWidgetReported_WidgetCategory_WidgetCategory_ARRAYSIZE;
8634 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
8635 WidgetCategory_descriptor() {
8636 return JankFrameCountByWidgetReported_WidgetCategory_descriptor();
8637 }
8638 template<typename T>
8639 static inline const std::string& WidgetCategory_Name(T enum_t_value) {
8640 static_assert(::std::is_same<T, WidgetCategory>::value ||
8641 ::std::is_integral<T>::value,
8642 "Incorrect type passed to function WidgetCategory_Name.");
8643 return JankFrameCountByWidgetReported_WidgetCategory_Name(enum_t_value);
8644 }
8645 static inline bool WidgetCategory_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
8646 WidgetCategory* value) {
8647 return JankFrameCountByWidgetReported_WidgetCategory_Parse(name, value);
8648 }
8649
8650 typedef JankFrameCountByWidgetReported_WidgetState WidgetState;
8651 static constexpr WidgetState WIDGET_STATE_UNSPECIFIED =
8652 JankFrameCountByWidgetReported_WidgetState_WIDGET_STATE_UNSPECIFIED;
8653 static constexpr WidgetState NONE =
8654 JankFrameCountByWidgetReported_WidgetState_NONE;
8655 static constexpr WidgetState SCROLLING =
8656 JankFrameCountByWidgetReported_WidgetState_SCROLLING;
8657 static constexpr WidgetState FLINGING =
8658 JankFrameCountByWidgetReported_WidgetState_FLINGING;
8659 static constexpr WidgetState SWIPING =
8660 JankFrameCountByWidgetReported_WidgetState_SWIPING;
8661 static constexpr WidgetState DRAGGING =
8662 JankFrameCountByWidgetReported_WidgetState_DRAGGING;
8663 static constexpr WidgetState ZOOMING =
8664 JankFrameCountByWidgetReported_WidgetState_ZOOMING;
8665 static constexpr WidgetState ANIMATING =
8666 JankFrameCountByWidgetReported_WidgetState_ANIMATING;
8667 static constexpr WidgetState PLAYBACK =
8668 JankFrameCountByWidgetReported_WidgetState_PLAYBACK;
8669 static constexpr WidgetState TAPPING =
8670 JankFrameCountByWidgetReported_WidgetState_TAPPING;
8671 static inline bool WidgetState_IsValid(int value) {
8672 return JankFrameCountByWidgetReported_WidgetState_IsValid(value);
8673 }
8674 static constexpr WidgetState WidgetState_MIN =
8675 JankFrameCountByWidgetReported_WidgetState_WidgetState_MIN;
8676 static constexpr WidgetState WidgetState_MAX =
8677 JankFrameCountByWidgetReported_WidgetState_WidgetState_MAX;
8678 static constexpr int WidgetState_ARRAYSIZE =
8679 JankFrameCountByWidgetReported_WidgetState_WidgetState_ARRAYSIZE;
8680 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
8681 WidgetState_descriptor() {
8682 return JankFrameCountByWidgetReported_WidgetState_descriptor();
8683 }
8684 template<typename T>
8685 static inline const std::string& WidgetState_Name(T enum_t_value) {
8686 static_assert(::std::is_same<T, WidgetState>::value ||
8687 ::std::is_integral<T>::value,
8688 "Incorrect type passed to function WidgetState_Name.");
8689 return JankFrameCountByWidgetReported_WidgetState_Name(enum_t_value);
8690 }
8691 static inline bool WidgetState_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
8692 WidgetState* value) {
8693 return JankFrameCountByWidgetReported_WidgetState_Parse(name, value);
8694 }
8695
8696 // accessors -------------------------------------------------------
8697
8698 enum : int {
8699 kFrameOverrunHistogramFieldNumber = 9,
8700 kActivityNameFieldNumber = 2,
8701 kWidgetIdFieldNumber = 3,
8702 kUidFieldNumber = 1,
8703 kRefreshRateFieldNumber = 4,
8704 kWidgetTypeFieldNumber = 5,
8705 kWidgetStateFieldNumber = 6,
8706 kTotalFramesFieldNumber = 7,
8707 kJankyFramesFieldNumber = 8,
8708 };
8709 // repeated int32 frame_overrun_histogram = 9;
8710 int frame_overrun_histogram_size() const;
8711 private:
8712 int _internal_frame_overrun_histogram_size() const;
8713 public:
8714 void clear_frame_overrun_histogram();
8715 private:
8716 ::int32_t _internal_frame_overrun_histogram(int index) const;
8717 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int32_t >&
8718 _internal_frame_overrun_histogram() const;
8719 void _internal_add_frame_overrun_histogram(::int32_t value);
8720 ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int32_t >*
8721 _internal_mutable_frame_overrun_histogram();
8722 public:
8723 ::int32_t frame_overrun_histogram(int index) const;
8724 void set_frame_overrun_histogram(int index, ::int32_t value);
8725 void add_frame_overrun_histogram(::int32_t value);
8726 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int32_t >&
8727 frame_overrun_histogram() const;
8728 ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int32_t >*
8729 mutable_frame_overrun_histogram();
8730
8731 // optional string activity_name = 2;
8732 bool has_activity_name() const;
8733 private:
8734 bool _internal_has_activity_name() const;
8735 public:
8736 void clear_activity_name();
8737 const std::string& activity_name() const;
8738 template <typename ArgT0 = const std::string&, typename... ArgT>
8739 void set_activity_name(ArgT0&& arg0, ArgT... args);
8740 std::string* mutable_activity_name();
8741 PROTOBUF_NODISCARD std::string* release_activity_name();
8742 void set_allocated_activity_name(std::string* activity_name);
8743 private:
8744 const std::string& _internal_activity_name() const;
8745 inline PROTOBUF_ALWAYS_INLINE void _internal_set_activity_name(const std::string& value);
8746 std::string* _internal_mutable_activity_name();
8747 public:
8748
8749 // optional string widget_id = 3;
8750 bool has_widget_id() const;
8751 private:
8752 bool _internal_has_widget_id() const;
8753 public:
8754 void clear_widget_id();
8755 const std::string& widget_id() const;
8756 template <typename ArgT0 = const std::string&, typename... ArgT>
8757 void set_widget_id(ArgT0&& arg0, ArgT... args);
8758 std::string* mutable_widget_id();
8759 PROTOBUF_NODISCARD std::string* release_widget_id();
8760 void set_allocated_widget_id(std::string* widget_id);
8761 private:
8762 const std::string& _internal_widget_id() const;
8763 inline PROTOBUF_ALWAYS_INLINE void _internal_set_widget_id(const std::string& value);
8764 std::string* _internal_mutable_widget_id();
8765 public:
8766
8767 // optional int32 uid = 1 [(.android.os.statsd.is_uid) = true];
8768 bool has_uid() const;
8769 private:
8770 bool _internal_has_uid() const;
8771 public:
8772 void clear_uid();
8773 ::int32_t uid() const;
8774 void set_uid(::int32_t value);
8775 private:
8776 ::int32_t _internal_uid() const;
8777 void _internal_set_uid(::int32_t value);
8778 public:
8779
8780 // optional int32 refresh_rate = 4;
8781 bool has_refresh_rate() const;
8782 private:
8783 bool _internal_has_refresh_rate() const;
8784 public:
8785 void clear_refresh_rate();
8786 ::int32_t refresh_rate() const;
8787 void set_refresh_rate(::int32_t value);
8788 private:
8789 ::int32_t _internal_refresh_rate() const;
8790 void _internal_set_refresh_rate(::int32_t value);
8791 public:
8792
8793 // optional .android.os.statsd.framework.JankFrameCountByWidgetReported.WidgetCategory widget_type = 5;
8794 bool has_widget_type() const;
8795 private:
8796 bool _internal_has_widget_type() const;
8797 public:
8798 void clear_widget_type();
8799 ::android::os::statsd::framework::JankFrameCountByWidgetReported_WidgetCategory widget_type() const;
8800 void set_widget_type(::android::os::statsd::framework::JankFrameCountByWidgetReported_WidgetCategory value);
8801 private:
8802 ::android::os::statsd::framework::JankFrameCountByWidgetReported_WidgetCategory _internal_widget_type() const;
8803 void _internal_set_widget_type(::android::os::statsd::framework::JankFrameCountByWidgetReported_WidgetCategory value);
8804 public:
8805
8806 // optional .android.os.statsd.framework.JankFrameCountByWidgetReported.WidgetState widget_state = 6;
8807 bool has_widget_state() const;
8808 private:
8809 bool _internal_has_widget_state() const;
8810 public:
8811 void clear_widget_state();
8812 ::android::os::statsd::framework::JankFrameCountByWidgetReported_WidgetState widget_state() const;
8813 void set_widget_state(::android::os::statsd::framework::JankFrameCountByWidgetReported_WidgetState value);
8814 private:
8815 ::android::os::statsd::framework::JankFrameCountByWidgetReported_WidgetState _internal_widget_state() const;
8816 void _internal_set_widget_state(::android::os::statsd::framework::JankFrameCountByWidgetReported_WidgetState value);
8817 public:
8818
8819 // optional int64 total_frames = 7;
8820 bool has_total_frames() const;
8821 private:
8822 bool _internal_has_total_frames() const;
8823 public:
8824 void clear_total_frames();
8825 ::int64_t total_frames() const;
8826 void set_total_frames(::int64_t value);
8827 private:
8828 ::int64_t _internal_total_frames() const;
8829 void _internal_set_total_frames(::int64_t value);
8830 public:
8831
8832 // optional int64 janky_frames = 8;
8833 bool has_janky_frames() const;
8834 private:
8835 bool _internal_has_janky_frames() const;
8836 public:
8837 void clear_janky_frames();
8838 ::int64_t janky_frames() const;
8839 void set_janky_frames(::int64_t value);
8840 private:
8841 ::int64_t _internal_janky_frames() const;
8842 void _internal_set_janky_frames(::int64_t value);
8843 public:
8844
8845 // @@protoc_insertion_point(class_scope:android.os.statsd.framework.JankFrameCountByWidgetReported)
8846 private:
8847 class _Internal;
8848
8849 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
8850 typedef void InternalArenaConstructable_;
8851 typedef void DestructorSkippable_;
8852 struct Impl_ {
8853 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
8854 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
8855 ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int32_t > frame_overrun_histogram_;
8856 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr activity_name_;
8857 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr widget_id_;
8858 ::int32_t uid_;
8859 ::int32_t refresh_rate_;
8860 int widget_type_;
8861 int widget_state_;
8862 ::int64_t total_frames_;
8863 ::int64_t janky_frames_;
8864 };
8865 union { Impl_ _impl_; };
8866 friend struct ::TableStruct_frameworks_2fproto_5flogging_2fstats_2fatoms_2fframework_2fframework_5fextension_5fatoms_2eproto;
8867 };
8868 // -------------------------------------------------------------------
8869
8870 class IntentCreatorTokenAdded final :
8871 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:android.os.statsd.framework.IntentCreatorTokenAdded) */ {
8872 public:
IntentCreatorTokenAdded()8873 inline IntentCreatorTokenAdded() : IntentCreatorTokenAdded(nullptr) {}
8874 ~IntentCreatorTokenAdded() override;
8875 explicit PROTOBUF_CONSTEXPR IntentCreatorTokenAdded(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
8876
8877 IntentCreatorTokenAdded(const IntentCreatorTokenAdded& from);
IntentCreatorTokenAdded(IntentCreatorTokenAdded && from)8878 IntentCreatorTokenAdded(IntentCreatorTokenAdded&& from) noexcept
8879 : IntentCreatorTokenAdded() {
8880 *this = ::std::move(from);
8881 }
8882
8883 inline IntentCreatorTokenAdded& operator=(const IntentCreatorTokenAdded& from) {
8884 if (this == &from) return *this;
8885 CopyFrom(from);
8886 return *this;
8887 }
8888 inline IntentCreatorTokenAdded& operator=(IntentCreatorTokenAdded&& from) noexcept {
8889 if (this == &from) return *this;
8890 if (GetOwningArena() == from.GetOwningArena()
8891 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
8892 && GetOwningArena() != nullptr
8893 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
8894 ) {
8895 InternalSwap(&from);
8896 } else {
8897 CopyFrom(from);
8898 }
8899 return *this;
8900 }
8901
unknown_fields()8902 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
8903 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
8904 }
mutable_unknown_fields()8905 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
8906 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
8907 }
8908
descriptor()8909 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
8910 return GetDescriptor();
8911 }
GetDescriptor()8912 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
8913 return default_instance().GetMetadata().descriptor;
8914 }
GetReflection()8915 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
8916 return default_instance().GetMetadata().reflection;
8917 }
default_instance()8918 static const IntentCreatorTokenAdded& default_instance() {
8919 return *internal_default_instance();
8920 }
internal_default_instance()8921 static inline const IntentCreatorTokenAdded* internal_default_instance() {
8922 return reinterpret_cast<const IntentCreatorTokenAdded*>(
8923 &_IntentCreatorTokenAdded_default_instance_);
8924 }
8925 static constexpr int kIndexInFileMessages =
8926 28;
8927
swap(IntentCreatorTokenAdded & a,IntentCreatorTokenAdded & b)8928 friend void swap(IntentCreatorTokenAdded& a, IntentCreatorTokenAdded& b) {
8929 a.Swap(&b);
8930 }
Swap(IntentCreatorTokenAdded * other)8931 inline void Swap(IntentCreatorTokenAdded* other) {
8932 if (other == this) return;
8933 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
8934 if (GetOwningArena() != nullptr &&
8935 GetOwningArena() == other->GetOwningArena()) {
8936 #else // PROTOBUF_FORCE_COPY_IN_SWAP
8937 if (GetOwningArena() == other->GetOwningArena()) {
8938 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
8939 InternalSwap(other);
8940 } else {
8941 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
8942 }
8943 }
8944 void UnsafeArenaSwap(IntentCreatorTokenAdded* other) {
8945 if (other == this) return;
8946 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
8947 InternalSwap(other);
8948 }
8949
8950 // implements Message ----------------------------------------------
8951
8952 IntentCreatorTokenAdded* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
8953 return CreateMaybeMessage<IntentCreatorTokenAdded>(arena);
8954 }
8955 IntentCreatorTokenAdded* New() const {
8956 return New(nullptr);
8957 }
8958 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
8959 void CopyFrom(const IntentCreatorTokenAdded& from);
8960 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
8961 void MergeFrom( const IntentCreatorTokenAdded& from) {
8962 IntentCreatorTokenAdded::MergeImpl(*this, from);
8963 }
8964 private:
8965 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
8966 public:
8967 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
8968 bool IsInitialized() const final;
8969
8970 size_t ByteSizeLong() const final;
8971 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
8972 ::uint8_t* _InternalSerialize(
8973 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
8974 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
8975
8976 private:
8977 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
8978 void SharedDtor();
8979 void SetCachedSize(int size) const final;
8980 void InternalSwap(IntentCreatorTokenAdded* other);
8981
8982 private:
8983 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
8984 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
8985 return "android.os.statsd.framework.IntentCreatorTokenAdded";
8986 }
8987 protected:
8988 explicit IntentCreatorTokenAdded(::PROTOBUF_NAMESPACE_ID::Arena* arena,
8989 bool is_message_owned = false);
8990 public:
8991
8992 static const ClassData _class_data_;
8993 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
8994
8995 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
8996
8997 // nested types ----------------------------------------------------
8998
8999 // accessors -------------------------------------------------------
9000
9001 enum : int {
9002 kCreatorUidFieldNumber = 1,
9003 kIsOptimizedFieldNumber = 2,
9004 };
9005 // optional int32 creator_uid = 1 [(.android.os.statsd.is_uid) = true];
9006 bool has_creator_uid() const;
9007 private:
9008 bool _internal_has_creator_uid() const;
9009 public:
9010 void clear_creator_uid();
9011 ::int32_t creator_uid() const;
9012 void set_creator_uid(::int32_t value);
9013 private:
9014 ::int32_t _internal_creator_uid() const;
9015 void _internal_set_creator_uid(::int32_t value);
9016 public:
9017
9018 // optional bool is_optimized = 2;
9019 bool has_is_optimized() const;
9020 private:
9021 bool _internal_has_is_optimized() const;
9022 public:
9023 void clear_is_optimized();
9024 bool is_optimized() const;
9025 void set_is_optimized(bool value);
9026 private:
9027 bool _internal_is_optimized() const;
9028 void _internal_set_is_optimized(bool value);
9029 public:
9030
9031 // @@protoc_insertion_point(class_scope:android.os.statsd.framework.IntentCreatorTokenAdded)
9032 private:
9033 class _Internal;
9034
9035 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
9036 typedef void InternalArenaConstructable_;
9037 typedef void DestructorSkippable_;
9038 struct Impl_ {
9039 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
9040 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
9041 ::int32_t creator_uid_;
9042 bool is_optimized_;
9043 };
9044 union { Impl_ _impl_; };
9045 friend struct ::TableStruct_frameworks_2fproto_5flogging_2fstats_2fatoms_2fframework_2fframework_5fextension_5fatoms_2eproto;
9046 };
9047 // -------------------------------------------------------------------
9048
9049 class NotificationChannelClassification final :
9050 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:android.os.statsd.framework.NotificationChannelClassification) */ {
9051 public:
NotificationChannelClassification()9052 inline NotificationChannelClassification() : NotificationChannelClassification(nullptr) {}
9053 ~NotificationChannelClassification() override;
9054 explicit PROTOBUF_CONSTEXPR NotificationChannelClassification(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
9055
9056 NotificationChannelClassification(const NotificationChannelClassification& from);
NotificationChannelClassification(NotificationChannelClassification && from)9057 NotificationChannelClassification(NotificationChannelClassification&& from) noexcept
9058 : NotificationChannelClassification() {
9059 *this = ::std::move(from);
9060 }
9061
9062 inline NotificationChannelClassification& operator=(const NotificationChannelClassification& from) {
9063 if (this == &from) return *this;
9064 CopyFrom(from);
9065 return *this;
9066 }
9067 inline NotificationChannelClassification& operator=(NotificationChannelClassification&& from) noexcept {
9068 if (this == &from) return *this;
9069 if (GetOwningArena() == from.GetOwningArena()
9070 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
9071 && GetOwningArena() != nullptr
9072 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
9073 ) {
9074 InternalSwap(&from);
9075 } else {
9076 CopyFrom(from);
9077 }
9078 return *this;
9079 }
9080
unknown_fields()9081 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
9082 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
9083 }
mutable_unknown_fields()9084 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
9085 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
9086 }
9087
descriptor()9088 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
9089 return GetDescriptor();
9090 }
GetDescriptor()9091 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
9092 return default_instance().GetMetadata().descriptor;
9093 }
GetReflection()9094 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
9095 return default_instance().GetMetadata().reflection;
9096 }
default_instance()9097 static const NotificationChannelClassification& default_instance() {
9098 return *internal_default_instance();
9099 }
internal_default_instance()9100 static inline const NotificationChannelClassification* internal_default_instance() {
9101 return reinterpret_cast<const NotificationChannelClassification*>(
9102 &_NotificationChannelClassification_default_instance_);
9103 }
9104 static constexpr int kIndexInFileMessages =
9105 29;
9106
swap(NotificationChannelClassification & a,NotificationChannelClassification & b)9107 friend void swap(NotificationChannelClassification& a, NotificationChannelClassification& b) {
9108 a.Swap(&b);
9109 }
Swap(NotificationChannelClassification * other)9110 inline void Swap(NotificationChannelClassification* other) {
9111 if (other == this) return;
9112 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
9113 if (GetOwningArena() != nullptr &&
9114 GetOwningArena() == other->GetOwningArena()) {
9115 #else // PROTOBUF_FORCE_COPY_IN_SWAP
9116 if (GetOwningArena() == other->GetOwningArena()) {
9117 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
9118 InternalSwap(other);
9119 } else {
9120 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
9121 }
9122 }
9123 void UnsafeArenaSwap(NotificationChannelClassification* other) {
9124 if (other == this) return;
9125 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
9126 InternalSwap(other);
9127 }
9128
9129 // implements Message ----------------------------------------------
9130
9131 NotificationChannelClassification* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
9132 return CreateMaybeMessage<NotificationChannelClassification>(arena);
9133 }
9134 NotificationChannelClassification* New() const {
9135 return New(nullptr);
9136 }
9137 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
9138 void CopyFrom(const NotificationChannelClassification& from);
9139 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
9140 void MergeFrom( const NotificationChannelClassification& from) {
9141 NotificationChannelClassification::MergeImpl(*this, from);
9142 }
9143 private:
9144 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
9145 public:
9146 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
9147 bool IsInitialized() const final;
9148
9149 size_t ByteSizeLong() const final;
9150 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
9151 ::uint8_t* _InternalSerialize(
9152 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
9153 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
9154
9155 private:
9156 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
9157 void SharedDtor();
9158 void SetCachedSize(int size) const final;
9159 void InternalSwap(NotificationChannelClassification* other);
9160
9161 private:
9162 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
9163 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
9164 return "android.os.statsd.framework.NotificationChannelClassification";
9165 }
9166 protected:
9167 explicit NotificationChannelClassification(::PROTOBUF_NAMESPACE_ID::Arena* arena,
9168 bool is_message_owned = false);
9169 public:
9170
9171 static const ClassData _class_data_;
9172 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
9173
9174 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
9175
9176 // nested types ----------------------------------------------------
9177
9178 // accessors -------------------------------------------------------
9179
9180 enum : int {
9181 kReceiveAdjustmentAfterPostFieldNumber = 1,
9182 kWasAlertingFieldNumber = 2,
9183 kTypeFieldNumber = 3,
9184 kLatencyMsFieldNumber = 4,
9185 };
9186 // optional bool receive_adjustment_after_post = 1;
9187 bool has_receive_adjustment_after_post() const;
9188 private:
9189 bool _internal_has_receive_adjustment_after_post() const;
9190 public:
9191 void clear_receive_adjustment_after_post();
9192 bool receive_adjustment_after_post() const;
9193 void set_receive_adjustment_after_post(bool value);
9194 private:
9195 bool _internal_receive_adjustment_after_post() const;
9196 void _internal_set_receive_adjustment_after_post(bool value);
9197 public:
9198
9199 // optional bool was_alerting = 2;
9200 bool has_was_alerting() const;
9201 private:
9202 bool _internal_has_was_alerting() const;
9203 public:
9204 void clear_was_alerting();
9205 bool was_alerting() const;
9206 void set_was_alerting(bool value);
9207 private:
9208 bool _internal_was_alerting() const;
9209 void _internal_set_was_alerting(bool value);
9210 public:
9211
9212 // optional int32 type = 3;
9213 bool has_type() const;
9214 private:
9215 bool _internal_has_type() const;
9216 public:
9217 void clear_type();
9218 ::int32_t type() const;
9219 void set_type(::int32_t value);
9220 private:
9221 ::int32_t _internal_type() const;
9222 void _internal_set_type(::int32_t value);
9223 public:
9224
9225 // optional int32 latency_ms = 4;
9226 bool has_latency_ms() const;
9227 private:
9228 bool _internal_has_latency_ms() const;
9229 public:
9230 void clear_latency_ms();
9231 ::int32_t latency_ms() const;
9232 void set_latency_ms(::int32_t value);
9233 private:
9234 ::int32_t _internal_latency_ms() const;
9235 void _internal_set_latency_ms(::int32_t value);
9236 public:
9237
9238 // @@protoc_insertion_point(class_scope:android.os.statsd.framework.NotificationChannelClassification)
9239 private:
9240 class _Internal;
9241
9242 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
9243 typedef void InternalArenaConstructable_;
9244 typedef void DestructorSkippable_;
9245 struct Impl_ {
9246 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
9247 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
9248 bool receive_adjustment_after_post_;
9249 bool was_alerting_;
9250 ::int32_t type_;
9251 ::int32_t latency_ms_;
9252 };
9253 union { Impl_ _impl_; };
9254 friend struct ::TableStruct_frameworks_2fproto_5flogging_2fstats_2fatoms_2fframework_2fframework_5fextension_5fatoms_2eproto;
9255 };
9256 // -------------------------------------------------------------------
9257
9258 class CameraStatusForCompatibilityChanged final :
9259 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:android.os.statsd.framework.CameraStatusForCompatibilityChanged) */ {
9260 public:
CameraStatusForCompatibilityChanged()9261 inline CameraStatusForCompatibilityChanged() : CameraStatusForCompatibilityChanged(nullptr) {}
9262 ~CameraStatusForCompatibilityChanged() override;
9263 explicit PROTOBUF_CONSTEXPR CameraStatusForCompatibilityChanged(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
9264
9265 CameraStatusForCompatibilityChanged(const CameraStatusForCompatibilityChanged& from);
CameraStatusForCompatibilityChanged(CameraStatusForCompatibilityChanged && from)9266 CameraStatusForCompatibilityChanged(CameraStatusForCompatibilityChanged&& from) noexcept
9267 : CameraStatusForCompatibilityChanged() {
9268 *this = ::std::move(from);
9269 }
9270
9271 inline CameraStatusForCompatibilityChanged& operator=(const CameraStatusForCompatibilityChanged& from) {
9272 if (this == &from) return *this;
9273 CopyFrom(from);
9274 return *this;
9275 }
9276 inline CameraStatusForCompatibilityChanged& operator=(CameraStatusForCompatibilityChanged&& from) noexcept {
9277 if (this == &from) return *this;
9278 if (GetOwningArena() == from.GetOwningArena()
9279 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
9280 && GetOwningArena() != nullptr
9281 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
9282 ) {
9283 InternalSwap(&from);
9284 } else {
9285 CopyFrom(from);
9286 }
9287 return *this;
9288 }
9289
unknown_fields()9290 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
9291 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
9292 }
mutable_unknown_fields()9293 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
9294 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
9295 }
9296
descriptor()9297 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
9298 return GetDescriptor();
9299 }
GetDescriptor()9300 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
9301 return default_instance().GetMetadata().descriptor;
9302 }
GetReflection()9303 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
9304 return default_instance().GetMetadata().reflection;
9305 }
default_instance()9306 static const CameraStatusForCompatibilityChanged& default_instance() {
9307 return *internal_default_instance();
9308 }
internal_default_instance()9309 static inline const CameraStatusForCompatibilityChanged* internal_default_instance() {
9310 return reinterpret_cast<const CameraStatusForCompatibilityChanged*>(
9311 &_CameraStatusForCompatibilityChanged_default_instance_);
9312 }
9313 static constexpr int kIndexInFileMessages =
9314 30;
9315
swap(CameraStatusForCompatibilityChanged & a,CameraStatusForCompatibilityChanged & b)9316 friend void swap(CameraStatusForCompatibilityChanged& a, CameraStatusForCompatibilityChanged& b) {
9317 a.Swap(&b);
9318 }
Swap(CameraStatusForCompatibilityChanged * other)9319 inline void Swap(CameraStatusForCompatibilityChanged* other) {
9320 if (other == this) return;
9321 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
9322 if (GetOwningArena() != nullptr &&
9323 GetOwningArena() == other->GetOwningArena()) {
9324 #else // PROTOBUF_FORCE_COPY_IN_SWAP
9325 if (GetOwningArena() == other->GetOwningArena()) {
9326 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
9327 InternalSwap(other);
9328 } else {
9329 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
9330 }
9331 }
9332 void UnsafeArenaSwap(CameraStatusForCompatibilityChanged* other) {
9333 if (other == this) return;
9334 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
9335 InternalSwap(other);
9336 }
9337
9338 // implements Message ----------------------------------------------
9339
9340 CameraStatusForCompatibilityChanged* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
9341 return CreateMaybeMessage<CameraStatusForCompatibilityChanged>(arena);
9342 }
9343 CameraStatusForCompatibilityChanged* New() const {
9344 return New(nullptr);
9345 }
9346 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
9347 void CopyFrom(const CameraStatusForCompatibilityChanged& from);
9348 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
9349 void MergeFrom( const CameraStatusForCompatibilityChanged& from) {
9350 CameraStatusForCompatibilityChanged::MergeImpl(*this, from);
9351 }
9352 private:
9353 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
9354 public:
9355 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
9356 bool IsInitialized() const final;
9357
9358 size_t ByteSizeLong() const final;
9359 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
9360 ::uint8_t* _InternalSerialize(
9361 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
9362 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
9363
9364 private:
9365 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
9366 void SharedDtor();
9367 void SetCachedSize(int size) const final;
9368 void InternalSwap(CameraStatusForCompatibilityChanged* other);
9369
9370 private:
9371 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
9372 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
9373 return "android.os.statsd.framework.CameraStatusForCompatibilityChanged";
9374 }
9375 protected:
9376 explicit CameraStatusForCompatibilityChanged(::PROTOBUF_NAMESPACE_ID::Arena* arena,
9377 bool is_message_owned = false);
9378 public:
9379
9380 static const ClassData _class_data_;
9381 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
9382
9383 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
9384
9385 // nested types ----------------------------------------------------
9386
9387 // accessors -------------------------------------------------------
9388
9389 enum : int {
9390 kFreeformCameraCompatModeStateFieldNumber = 1,
9391 kCameraStateFieldNumber = 2,
9392 kLatencyMsFieldNumber = 3,
9393 };
9394 // optional .android.framework.compat.FreeformCameraCompatMode freeform_camera_compat_mode_state = 1;
9395 bool has_freeform_camera_compat_mode_state() const;
9396 private:
9397 bool _internal_has_freeform_camera_compat_mode_state() const;
9398 public:
9399 void clear_freeform_camera_compat_mode_state();
9400 ::android::framework::compat::FreeformCameraCompatMode freeform_camera_compat_mode_state() const;
9401 void set_freeform_camera_compat_mode_state(::android::framework::compat::FreeformCameraCompatMode value);
9402 private:
9403 ::android::framework::compat::FreeformCameraCompatMode _internal_freeform_camera_compat_mode_state() const;
9404 void _internal_set_freeform_camera_compat_mode_state(::android::framework::compat::FreeformCameraCompatMode value);
9405 public:
9406
9407 // optional .android.framework.compat.CameraState camera_state = 2;
9408 bool has_camera_state() const;
9409 private:
9410 bool _internal_has_camera_state() const;
9411 public:
9412 void clear_camera_state();
9413 ::android::framework::compat::CameraState camera_state() const;
9414 void set_camera_state(::android::framework::compat::CameraState value);
9415 private:
9416 ::android::framework::compat::CameraState _internal_camera_state() const;
9417 void _internal_set_camera_state(::android::framework::compat::CameraState value);
9418 public:
9419
9420 // optional int32 latency_ms = 3;
9421 bool has_latency_ms() const;
9422 private:
9423 bool _internal_has_latency_ms() const;
9424 public:
9425 void clear_latency_ms();
9426 ::int32_t latency_ms() const;
9427 void set_latency_ms(::int32_t value);
9428 private:
9429 ::int32_t _internal_latency_ms() const;
9430 void _internal_set_latency_ms(::int32_t value);
9431 public:
9432
9433 // @@protoc_insertion_point(class_scope:android.os.statsd.framework.CameraStatusForCompatibilityChanged)
9434 private:
9435 class _Internal;
9436
9437 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
9438 typedef void InternalArenaConstructable_;
9439 typedef void DestructorSkippable_;
9440 struct Impl_ {
9441 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
9442 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
9443 int freeform_camera_compat_mode_state_;
9444 int camera_state_;
9445 ::int32_t latency_ms_;
9446 };
9447 union { Impl_ _impl_; };
9448 friend struct ::TableStruct_frameworks_2fproto_5flogging_2fstats_2fatoms_2fframework_2fframework_5fextension_5fatoms_2eproto;
9449 };
9450 // ===================================================================
9451
9452 static const int kFullScreenIntentLaunchedFieldNumber = 631;
9453 extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::android::os::statsd::Atom,
9454 ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::android::os::statsd::framework::FullScreenIntentLaunched >, 11, false >
9455 full_screen_intent_launched;
9456 static const int kBalAllowedFieldNumber = 632;
9457 extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::android::os::statsd::Atom,
9458 ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::android::os::statsd::framework::BalAllowed >, 11, false >
9459 bal_allowed;
9460 static const int kInTaskActivityStartedFieldNumber = 685;
9461 extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::android::os::statsd::Atom,
9462 ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::android::os::statsd::framework::InTaskActivityStarted >, 11, false >
9463 in_task_activity_started;
9464 static const int kDeviceOrientationChangedFieldNumber = 906;
9465 extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::android::os::statsd::Atom,
9466 ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::android::os::statsd::framework::DeviceOrientationChanged >, 11, false >
9467 device_orientation_changed;
9468 static const int kCachedAppsHighWatermarkFieldNumber = 10189;
9469 extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::android::os::statsd::Atom,
9470 ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::android::os::statsd::framework::CachedAppsHighWaterMark >, 11, false >
9471 cached_apps_high_watermark;
9472 static const int kStylusPredictionMetricsReportedFieldNumber = 718;
9473 extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::android::os::statsd::Atom,
9474 ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::android::os::statsd::framework::StylusPredictionMetricsReported >, 11, false >
9475 stylus_prediction_metrics_reported;
9476 static const int kUserRiskEventReportedFieldNumber = 725;
9477 extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::android::os::statsd::Atom,
9478 ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::android::os::statsd::framework::UserRiskEventReported >, 11, false >
9479 user_risk_event_reported;
9480 static const int kMediaProjectionStateChangedFieldNumber = 729;
9481 extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::android::os::statsd::Atom,
9482 ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::android::os::statsd::framework::MediaProjectionStateChanged >, 11, false >
9483 media_projection_state_changed;
9484 static const int kMediaProjectionTargetChangedFieldNumber = 730;
9485 extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::android::os::statsd::Atom,
9486 ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::android::os::statsd::framework::MediaProjectionTargetChanged >, 11, false >
9487 media_projection_target_changed;
9488 static const int kExcessiveBinderProxyCountReportedFieldNumber = 853;
9489 extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::android::os::statsd::Atom,
9490 ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::android::os::statsd::framework::ExcessiveBinderProxyCountReported >, 11, false >
9491 excessive_binder_proxy_count_reported;
9492 static const int kProxyBytesTransferByFgBgFieldNumber = 10200;
9493 extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::android::os::statsd::Atom,
9494 ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::android::os::statsd::framework::ProxyBytesTransferByFgBg >, 11, false >
9495 proxy_bytes_transfer_by_fg_bg;
9496 static const int kMobileBytesTransferByProcStateFieldNumber = 10204;
9497 extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::android::os::statsd::Atom,
9498 ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::android::os::statsd::framework::MobileBytesTransferByProcState >, 11, false >
9499 mobile_bytes_transfer_by_proc_state;
9500 static const int kBiometricFrrNotificationFieldNumber = 817;
9501 extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::android::os::statsd::Atom,
9502 ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::android::os::statsd::framework::BiometricFRRNotification >, 11, false >
9503 biometric_frr_notification;
9504 static const int kSensitiveContentMediaProjectionSessionFieldNumber = 830;
9505 extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::android::os::statsd::Atom,
9506 ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::android::os::statsd::framework::SensitiveContentMediaProjectionSession >, 11, false >
9507 sensitive_content_media_projection_session;
9508 static const int kSensitiveNotificationAppProtectionSessionFieldNumber = 831;
9509 extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::android::os::statsd::Atom,
9510 ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::android::os::statsd::framework::SensitiveNotificationAppProtectionSession >, 11, false >
9511 sensitive_notification_app_protection_session;
9512 static const int kSensitiveNotificationAppProtectionAppliedFieldNumber = 832;
9513 extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::android::os::statsd::Atom,
9514 ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::android::os::statsd::framework::SensitiveNotificationAppProtectionApplied >, 11, false >
9515 sensitive_notification_app_protection_applied;
9516 static const int kSensitiveNotificationRedactionFieldNumber = 833;
9517 extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::android::os::statsd::Atom,
9518 ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::android::os::statsd::framework::SensitiveNotificationRedaction >, 11, false >
9519 sensitive_notification_redaction;
9520 static const int kSensitiveContentAppProtectionFieldNumber = 835;
9521 extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::android::os::statsd::Atom,
9522 ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::android::os::statsd::framework::SensitiveContentAppProtection >, 11, false >
9523 sensitive_content_app_protection;
9524 static const int kAppRestrictionStateChangedFieldNumber = 866;
9525 extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::android::os::statsd::Atom,
9526 ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::android::os::statsd::framework::AppRestrictionStateChanged >, 11, false >
9527 app_restriction_state_changed;
9528 static const int kBatteryUsageStatsPerUidFieldNumber = 10209;
9529 extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::android::os::statsd::Atom,
9530 ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::android::os::statsd::framework::BatteryUsageStatsPerUid >, 11, false >
9531 battery_usage_stats_per_uid;
9532 static const int kPostgcMemorySnapshotFieldNumber = 924;
9533 extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::android::os::statsd::Atom,
9534 ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::android::os::statsd::framework::PostGCMemorySnapshot >, 11, false >
9535 postgc_memory_snapshot;
9536 static const int kPowerSaveTempAllowlistChangedFieldNumber = 926;
9537 extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::android::os::statsd::Atom,
9538 ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::android::os::statsd::framework::PowerSaveTempAllowlistChanged >, 11, false >
9539 power_save_temp_allowlist_changed;
9540 static const int kAppOpAccessTrackedFieldNumber = 931;
9541 extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::android::os::statsd::Atom,
9542 ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::android::os::statsd::framework::AppOpAccessTracked >, 11, false >
9543 app_op_access_tracked;
9544 static const int kContentOrFileUriEventReportedFieldNumber = 933;
9545 extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::android::os::statsd::Atom,
9546 ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::android::os::statsd::framework::ContentOrFileUriEventReported >, 11, false >
9547 content_or_file_uri_event_reported;
9548 static const int kDeviceIdleTempAllowlistUpdatedFieldNumber = 940;
9549 extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::android::os::statsd::Atom,
9550 ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::android::os::statsd::framework::DeviceIdleTempAllowlistUpdated >, 11, false >
9551 device_idle_temp_allowlist_updated;
9552 static const int kAppOpNoteOpOrCheckOpBinderApiCalledFieldNumber = 943;
9553 extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::android::os::statsd::Atom,
9554 ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::android::os::statsd::framework::AppOpNoteOpOrCheckOpBinderApiCalled >, 11, false >
9555 app_op_note_op_or_check_op_binder_api_called;
9556 static const int kFrameworkWakelockInfoFieldNumber = 10230;
9557 extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::android::os::statsd::Atom,
9558 ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::android::os::statsd::framework::FrameworkWakelockInfo >, 11, false >
9559 framework_wakelock_info;
9560 static const int kJankFrameCountByWidgetReportedFieldNumber = 950;
9561 extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::android::os::statsd::Atom,
9562 ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::android::os::statsd::framework::JankFrameCountByWidgetReported >, 11, false >
9563 jank_frame_count_by_widget_reported;
9564 static const int kIntentCreatorTokenAddedFieldNumber = 978;
9565 extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::android::os::statsd::Atom,
9566 ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::android::os::statsd::framework::IntentCreatorTokenAdded >, 11, false >
9567 intent_creator_token_added;
9568 static const int kNotificationChannelClassificationFieldNumber = 983;
9569 extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::android::os::statsd::Atom,
9570 ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::android::os::statsd::framework::NotificationChannelClassification >, 11, false >
9571 notification_channel_classification;
9572 static const int kCameraStatusForCompatibilityChangedFieldNumber = 999;
9573 extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::android::os::statsd::Atom,
9574 ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::android::os::statsd::framework::CameraStatusForCompatibilityChanged >, 11, false >
9575 camera_status_for_compatibility_changed;
9576
9577 // ===================================================================
9578
9579 #ifdef __GNUC__
9580 #pragma GCC diagnostic push
9581 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
9582 #endif // __GNUC__
9583 // FullScreenIntentLaunched
9584
9585 // optional int32 creator_uid = 1 [(.android.os.statsd.is_uid) = true];
_internal_has_creator_uid()9586 inline bool FullScreenIntentLaunched::_internal_has_creator_uid() const {
9587 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
9588 return value;
9589 }
has_creator_uid()9590 inline bool FullScreenIntentLaunched::has_creator_uid() const {
9591 return _internal_has_creator_uid();
9592 }
clear_creator_uid()9593 inline void FullScreenIntentLaunched::clear_creator_uid() {
9594 _impl_.creator_uid_ = 0;
9595 _impl_._has_bits_[0] &= ~0x00000002u;
9596 }
_internal_creator_uid()9597 inline ::int32_t FullScreenIntentLaunched::_internal_creator_uid() const {
9598 return _impl_.creator_uid_;
9599 }
creator_uid()9600 inline ::int32_t FullScreenIntentLaunched::creator_uid() const {
9601 // @@protoc_insertion_point(field_get:android.os.statsd.framework.FullScreenIntentLaunched.creator_uid)
9602 return _internal_creator_uid();
9603 }
_internal_set_creator_uid(::int32_t value)9604 inline void FullScreenIntentLaunched::_internal_set_creator_uid(::int32_t value) {
9605 _impl_._has_bits_[0] |= 0x00000002u;
9606 _impl_.creator_uid_ = value;
9607 }
set_creator_uid(::int32_t value)9608 inline void FullScreenIntentLaunched::set_creator_uid(::int32_t value) {
9609 _internal_set_creator_uid(value);
9610 // @@protoc_insertion_point(field_set:android.os.statsd.framework.FullScreenIntentLaunched.creator_uid)
9611 }
9612
9613 // optional string activity = 2;
_internal_has_activity()9614 inline bool FullScreenIntentLaunched::_internal_has_activity() const {
9615 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
9616 return value;
9617 }
has_activity()9618 inline bool FullScreenIntentLaunched::has_activity() const {
9619 return _internal_has_activity();
9620 }
clear_activity()9621 inline void FullScreenIntentLaunched::clear_activity() {
9622 _impl_.activity_.ClearToEmpty();
9623 _impl_._has_bits_[0] &= ~0x00000001u;
9624 }
activity()9625 inline const std::string& FullScreenIntentLaunched::activity() const {
9626 // @@protoc_insertion_point(field_get:android.os.statsd.framework.FullScreenIntentLaunched.activity)
9627 return _internal_activity();
9628 }
9629 template <typename ArgT0, typename... ArgT>
9630 inline PROTOBUF_ALWAYS_INLINE
set_activity(ArgT0 && arg0,ArgT...args)9631 void FullScreenIntentLaunched::set_activity(ArgT0&& arg0, ArgT... args) {
9632 _impl_._has_bits_[0] |= 0x00000001u;
9633 _impl_.activity_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
9634 // @@protoc_insertion_point(field_set:android.os.statsd.framework.FullScreenIntentLaunched.activity)
9635 }
mutable_activity()9636 inline std::string* FullScreenIntentLaunched::mutable_activity() {
9637 std::string* _s = _internal_mutable_activity();
9638 // @@protoc_insertion_point(field_mutable:android.os.statsd.framework.FullScreenIntentLaunched.activity)
9639 return _s;
9640 }
_internal_activity()9641 inline const std::string& FullScreenIntentLaunched::_internal_activity() const {
9642 return _impl_.activity_.Get();
9643 }
_internal_set_activity(const std::string & value)9644 inline void FullScreenIntentLaunched::_internal_set_activity(const std::string& value) {
9645 _impl_._has_bits_[0] |= 0x00000001u;
9646 _impl_.activity_.Set(value, GetArenaForAllocation());
9647 }
_internal_mutable_activity()9648 inline std::string* FullScreenIntentLaunched::_internal_mutable_activity() {
9649 _impl_._has_bits_[0] |= 0x00000001u;
9650 return _impl_.activity_.Mutable(GetArenaForAllocation());
9651 }
release_activity()9652 inline std::string* FullScreenIntentLaunched::release_activity() {
9653 // @@protoc_insertion_point(field_release:android.os.statsd.framework.FullScreenIntentLaunched.activity)
9654 if (!_internal_has_activity()) {
9655 return nullptr;
9656 }
9657 _impl_._has_bits_[0] &= ~0x00000001u;
9658 auto* p = _impl_.activity_.Release();
9659 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
9660 if (_impl_.activity_.IsDefault()) {
9661 _impl_.activity_.Set("", GetArenaForAllocation());
9662 }
9663 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
9664 return p;
9665 }
set_allocated_activity(std::string * activity)9666 inline void FullScreenIntentLaunched::set_allocated_activity(std::string* activity) {
9667 if (activity != nullptr) {
9668 _impl_._has_bits_[0] |= 0x00000001u;
9669 } else {
9670 _impl_._has_bits_[0] &= ~0x00000001u;
9671 }
9672 _impl_.activity_.SetAllocated(activity, GetArenaForAllocation());
9673 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
9674 if (_impl_.activity_.IsDefault()) {
9675 _impl_.activity_.Set("", GetArenaForAllocation());
9676 }
9677 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
9678 // @@protoc_insertion_point(field_set_allocated:android.os.statsd.framework.FullScreenIntentLaunched.activity)
9679 }
9680
9681 // -------------------------------------------------------------------
9682
9683 // BalAllowed
9684
9685 // optional string target_activity = 1;
_internal_has_target_activity()9686 inline bool BalAllowed::_internal_has_target_activity() const {
9687 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
9688 return value;
9689 }
has_target_activity()9690 inline bool BalAllowed::has_target_activity() const {
9691 return _internal_has_target_activity();
9692 }
clear_target_activity()9693 inline void BalAllowed::clear_target_activity() {
9694 _impl_.target_activity_.ClearToEmpty();
9695 _impl_._has_bits_[0] &= ~0x00000001u;
9696 }
target_activity()9697 inline const std::string& BalAllowed::target_activity() const {
9698 // @@protoc_insertion_point(field_get:android.os.statsd.framework.BalAllowed.target_activity)
9699 return _internal_target_activity();
9700 }
9701 template <typename ArgT0, typename... ArgT>
9702 inline PROTOBUF_ALWAYS_INLINE
set_target_activity(ArgT0 && arg0,ArgT...args)9703 void BalAllowed::set_target_activity(ArgT0&& arg0, ArgT... args) {
9704 _impl_._has_bits_[0] |= 0x00000001u;
9705 _impl_.target_activity_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
9706 // @@protoc_insertion_point(field_set:android.os.statsd.framework.BalAllowed.target_activity)
9707 }
mutable_target_activity()9708 inline std::string* BalAllowed::mutable_target_activity() {
9709 std::string* _s = _internal_mutable_target_activity();
9710 // @@protoc_insertion_point(field_mutable:android.os.statsd.framework.BalAllowed.target_activity)
9711 return _s;
9712 }
_internal_target_activity()9713 inline const std::string& BalAllowed::_internal_target_activity() const {
9714 return _impl_.target_activity_.Get();
9715 }
_internal_set_target_activity(const std::string & value)9716 inline void BalAllowed::_internal_set_target_activity(const std::string& value) {
9717 _impl_._has_bits_[0] |= 0x00000001u;
9718 _impl_.target_activity_.Set(value, GetArenaForAllocation());
9719 }
_internal_mutable_target_activity()9720 inline std::string* BalAllowed::_internal_mutable_target_activity() {
9721 _impl_._has_bits_[0] |= 0x00000001u;
9722 return _impl_.target_activity_.Mutable(GetArenaForAllocation());
9723 }
release_target_activity()9724 inline std::string* BalAllowed::release_target_activity() {
9725 // @@protoc_insertion_point(field_release:android.os.statsd.framework.BalAllowed.target_activity)
9726 if (!_internal_has_target_activity()) {
9727 return nullptr;
9728 }
9729 _impl_._has_bits_[0] &= ~0x00000001u;
9730 auto* p = _impl_.target_activity_.Release();
9731 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
9732 if (_impl_.target_activity_.IsDefault()) {
9733 _impl_.target_activity_.Set("", GetArenaForAllocation());
9734 }
9735 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
9736 return p;
9737 }
set_allocated_target_activity(std::string * target_activity)9738 inline void BalAllowed::set_allocated_target_activity(std::string* target_activity) {
9739 if (target_activity != nullptr) {
9740 _impl_._has_bits_[0] |= 0x00000001u;
9741 } else {
9742 _impl_._has_bits_[0] &= ~0x00000001u;
9743 }
9744 _impl_.target_activity_.SetAllocated(target_activity, GetArenaForAllocation());
9745 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
9746 if (_impl_.target_activity_.IsDefault()) {
9747 _impl_.target_activity_.Set("", GetArenaForAllocation());
9748 }
9749 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
9750 // @@protoc_insertion_point(field_set_allocated:android.os.statsd.framework.BalAllowed.target_activity)
9751 }
9752
9753 // optional .android.os.statsd.framework.BalAllowed.Status allowed_reason = 2;
_internal_has_allowed_reason()9754 inline bool BalAllowed::_internal_has_allowed_reason() const {
9755 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
9756 return value;
9757 }
has_allowed_reason()9758 inline bool BalAllowed::has_allowed_reason() const {
9759 return _internal_has_allowed_reason();
9760 }
clear_allowed_reason()9761 inline void BalAllowed::clear_allowed_reason() {
9762 _impl_.allowed_reason_ = 0;
9763 _impl_._has_bits_[0] &= ~0x00000002u;
9764 }
_internal_allowed_reason()9765 inline ::android::os::statsd::framework::BalAllowed_Status BalAllowed::_internal_allowed_reason() const {
9766 return static_cast< ::android::os::statsd::framework::BalAllowed_Status >(_impl_.allowed_reason_);
9767 }
allowed_reason()9768 inline ::android::os::statsd::framework::BalAllowed_Status BalAllowed::allowed_reason() const {
9769 // @@protoc_insertion_point(field_get:android.os.statsd.framework.BalAllowed.allowed_reason)
9770 return _internal_allowed_reason();
9771 }
_internal_set_allowed_reason(::android::os::statsd::framework::BalAllowed_Status value)9772 inline void BalAllowed::_internal_set_allowed_reason(::android::os::statsd::framework::BalAllowed_Status value) {
9773 assert(::android::os::statsd::framework::BalAllowed_Status_IsValid(value));
9774 _impl_._has_bits_[0] |= 0x00000002u;
9775 _impl_.allowed_reason_ = value;
9776 }
set_allowed_reason(::android::os::statsd::framework::BalAllowed_Status value)9777 inline void BalAllowed::set_allowed_reason(::android::os::statsd::framework::BalAllowed_Status value) {
9778 _internal_set_allowed_reason(value);
9779 // @@protoc_insertion_point(field_set:android.os.statsd.framework.BalAllowed.allowed_reason)
9780 }
9781
9782 // optional int32 calling_uid = 3 [(.android.os.statsd.is_uid) = true];
_internal_has_calling_uid()9783 inline bool BalAllowed::_internal_has_calling_uid() const {
9784 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
9785 return value;
9786 }
has_calling_uid()9787 inline bool BalAllowed::has_calling_uid() const {
9788 return _internal_has_calling_uid();
9789 }
clear_calling_uid()9790 inline void BalAllowed::clear_calling_uid() {
9791 _impl_.calling_uid_ = 0;
9792 _impl_._has_bits_[0] &= ~0x00000004u;
9793 }
_internal_calling_uid()9794 inline ::int32_t BalAllowed::_internal_calling_uid() const {
9795 return _impl_.calling_uid_;
9796 }
calling_uid()9797 inline ::int32_t BalAllowed::calling_uid() const {
9798 // @@protoc_insertion_point(field_get:android.os.statsd.framework.BalAllowed.calling_uid)
9799 return _internal_calling_uid();
9800 }
_internal_set_calling_uid(::int32_t value)9801 inline void BalAllowed::_internal_set_calling_uid(::int32_t value) {
9802 _impl_._has_bits_[0] |= 0x00000004u;
9803 _impl_.calling_uid_ = value;
9804 }
set_calling_uid(::int32_t value)9805 inline void BalAllowed::set_calling_uid(::int32_t value) {
9806 _internal_set_calling_uid(value);
9807 // @@protoc_insertion_point(field_set:android.os.statsd.framework.BalAllowed.calling_uid)
9808 }
9809
9810 // optional int32 real_calling_uid = 4 [(.android.os.statsd.is_uid) = true];
_internal_has_real_calling_uid()9811 inline bool BalAllowed::_internal_has_real_calling_uid() const {
9812 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
9813 return value;
9814 }
has_real_calling_uid()9815 inline bool BalAllowed::has_real_calling_uid() const {
9816 return _internal_has_real_calling_uid();
9817 }
clear_real_calling_uid()9818 inline void BalAllowed::clear_real_calling_uid() {
9819 _impl_.real_calling_uid_ = 0;
9820 _impl_._has_bits_[0] &= ~0x00000008u;
9821 }
_internal_real_calling_uid()9822