1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: frameworks/proto_logging/stats/atoms/wearservices/wearservices_extension_atoms.proto
3
4 #include "frameworks/proto_logging/stats/atoms/wearservices/wearservices_extension_atoms.pb.h"
5
6 #include <algorithm>
7 #include <cstdint>
8
9 #include <google/protobuf/io/coded_stream.h>
10 #include <google/protobuf/extension_set.h>
11 #include <google/protobuf/wire_format_lite.h>
12 #include <google/protobuf/descriptor.h>
13 #include <google/protobuf/generated_message_reflection.h>
14 #include <google/protobuf/reflection_ops.h>
15 #include <google/protobuf/wire_format.h>
16 // @@protoc_insertion_point(includes)
17 #include <google/protobuf/port_def.inc>
18
19 PROTOBUF_PRAGMA_INIT_SEG
20
21 namespace _pb = ::PROTOBUF_NAMESPACE_ID;
22 namespace _pbi = _pb::internal;
23
24 namespace android {
25 namespace os {
26 namespace statsd {
27 namespace wearservices {
WsIncomingCallActionReported(::_pbi::ConstantInitialized)28 PROTOBUF_CONSTEXPR WsIncomingCallActionReported::WsIncomingCallActionReported(
29 ::_pbi::ConstantInitialized): _impl_{
30 /*decltype(_impl_._has_bits_)*/{}
31 , /*decltype(_impl_._cached_size_)*/{}
32 , /*decltype(_impl_.action_)*/0
33 , /*decltype(_impl_.call_source_)*/0} {}
34 struct WsIncomingCallActionReportedDefaultTypeInternal {
WsIncomingCallActionReportedDefaultTypeInternalandroid::os::statsd::wearservices::WsIncomingCallActionReportedDefaultTypeInternal35 PROTOBUF_CONSTEXPR WsIncomingCallActionReportedDefaultTypeInternal()
36 : _instance(::_pbi::ConstantInitialized{}) {}
~WsIncomingCallActionReportedDefaultTypeInternalandroid::os::statsd::wearservices::WsIncomingCallActionReportedDefaultTypeInternal37 ~WsIncomingCallActionReportedDefaultTypeInternal() {}
38 union { // NOLINT(misc-non-private-member-variables-in-classes)
39 WsIncomingCallActionReported _instance;
40 };
41 };
42 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 WsIncomingCallActionReportedDefaultTypeInternal _WsIncomingCallActionReported_default_instance_;
WsCallDisconnectionReported(::_pbi::ConstantInitialized)43 PROTOBUF_CONSTEXPR WsCallDisconnectionReported::WsCallDisconnectionReported(
44 ::_pbi::ConstantInitialized): _impl_{
45 /*decltype(_impl_._has_bits_)*/{}
46 , /*decltype(_impl_._cached_size_)*/{}
47 , /*decltype(_impl_.reason_)*/0
48 , /*decltype(_impl_.error_code_)*/0} {}
49 struct WsCallDisconnectionReportedDefaultTypeInternal {
WsCallDisconnectionReportedDefaultTypeInternalandroid::os::statsd::wearservices::WsCallDisconnectionReportedDefaultTypeInternal50 PROTOBUF_CONSTEXPR WsCallDisconnectionReportedDefaultTypeInternal()
51 : _instance(::_pbi::ConstantInitialized{}) {}
~WsCallDisconnectionReportedDefaultTypeInternalandroid::os::statsd::wearservices::WsCallDisconnectionReportedDefaultTypeInternal52 ~WsCallDisconnectionReportedDefaultTypeInternal() {}
53 union { // NOLINT(misc-non-private-member-variables-in-classes)
54 WsCallDisconnectionReported _instance;
55 };
56 };
57 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 WsCallDisconnectionReportedDefaultTypeInternal _WsCallDisconnectionReported_default_instance_;
WsCallDurationReported(::_pbi::ConstantInitialized)58 PROTOBUF_CONSTEXPR WsCallDurationReported::WsCallDurationReported(
59 ::_pbi::ConstantInitialized): _impl_{
60 /*decltype(_impl_._has_bits_)*/{}
61 , /*decltype(_impl_._cached_size_)*/{}
62 , /*decltype(_impl_.call_type_)*/0
63 , /*decltype(_impl_.is_initiated_or_accepted_on_watch_)*/false
64 , /*decltype(_impl_.call_source_)*/0
65 , /*decltype(_impl_.call_duration_millis_)*/0} {}
66 struct WsCallDurationReportedDefaultTypeInternal {
WsCallDurationReportedDefaultTypeInternalandroid::os::statsd::wearservices::WsCallDurationReportedDefaultTypeInternal67 PROTOBUF_CONSTEXPR WsCallDurationReportedDefaultTypeInternal()
68 : _instance(::_pbi::ConstantInitialized{}) {}
~WsCallDurationReportedDefaultTypeInternalandroid::os::statsd::wearservices::WsCallDurationReportedDefaultTypeInternal69 ~WsCallDurationReportedDefaultTypeInternal() {}
70 union { // NOLINT(misc-non-private-member-variables-in-classes)
71 WsCallDurationReported _instance;
72 };
73 };
74 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 WsCallDurationReportedDefaultTypeInternal _WsCallDurationReported_default_instance_;
WsCallUserExperienceLatencyReported(::_pbi::ConstantInitialized)75 PROTOBUF_CONSTEXPR WsCallUserExperienceLatencyReported::WsCallUserExperienceLatencyReported(
76 ::_pbi::ConstantInitialized): _impl_{
77 /*decltype(_impl_._has_bits_)*/{}
78 , /*decltype(_impl_._cached_size_)*/{}
79 , /*decltype(_impl_.latency_action_)*/0
80 , /*decltype(_impl_.result_)*/0
81 , /*decltype(_impl_.latency_duration_millis_)*/0} {}
82 struct WsCallUserExperienceLatencyReportedDefaultTypeInternal {
WsCallUserExperienceLatencyReportedDefaultTypeInternalandroid::os::statsd::wearservices::WsCallUserExperienceLatencyReportedDefaultTypeInternal83 PROTOBUF_CONSTEXPR WsCallUserExperienceLatencyReportedDefaultTypeInternal()
84 : _instance(::_pbi::ConstantInitialized{}) {}
~WsCallUserExperienceLatencyReportedDefaultTypeInternalandroid::os::statsd::wearservices::WsCallUserExperienceLatencyReportedDefaultTypeInternal85 ~WsCallUserExperienceLatencyReportedDefaultTypeInternal() {}
86 union { // NOLINT(misc-non-private-member-variables-in-classes)
87 WsCallUserExperienceLatencyReported _instance;
88 };
89 };
90 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 WsCallUserExperienceLatencyReportedDefaultTypeInternal _WsCallUserExperienceLatencyReported_default_instance_;
WsCallInteractionReported(::_pbi::ConstantInitialized)91 PROTOBUF_CONSTEXPR WsCallInteractionReported::WsCallInteractionReported(
92 ::_pbi::ConstantInitialized): _impl_{
93 /*decltype(_impl_._has_bits_)*/{}
94 , /*decltype(_impl_._cached_size_)*/{}
95 , /*decltype(_impl_.interaction_)*/0
96 , /*decltype(_impl_.call_source_)*/0} {}
97 struct WsCallInteractionReportedDefaultTypeInternal {
WsCallInteractionReportedDefaultTypeInternalandroid::os::statsd::wearservices::WsCallInteractionReportedDefaultTypeInternal98 PROTOBUF_CONSTEXPR WsCallInteractionReportedDefaultTypeInternal()
99 : _instance(::_pbi::ConstantInitialized{}) {}
~WsCallInteractionReportedDefaultTypeInternalandroid::os::statsd::wearservices::WsCallInteractionReportedDefaultTypeInternal100 ~WsCallInteractionReportedDefaultTypeInternal() {}
101 union { // NOLINT(misc-non-private-member-variables-in-classes)
102 WsCallInteractionReported _instance;
103 };
104 };
105 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 WsCallInteractionReportedDefaultTypeInternal _WsCallInteractionReported_default_instance_;
WsWearTimeSession(::_pbi::ConstantInitialized)106 PROTOBUF_CONSTEXPR WsWearTimeSession::WsWearTimeSession(
107 ::_pbi::ConstantInitialized): _impl_{
108 /*decltype(_impl_._has_bits_)*/{}
109 , /*decltype(_impl_._cached_size_)*/{}
110 , /*decltype(_impl_.session_duration_millis_)*/::int64_t{0}} {}
111 struct WsWearTimeSessionDefaultTypeInternal {
WsWearTimeSessionDefaultTypeInternalandroid::os::statsd::wearservices::WsWearTimeSessionDefaultTypeInternal112 PROTOBUF_CONSTEXPR WsWearTimeSessionDefaultTypeInternal()
113 : _instance(::_pbi::ConstantInitialized{}) {}
~WsWearTimeSessionDefaultTypeInternalandroid::os::statsd::wearservices::WsWearTimeSessionDefaultTypeInternal114 ~WsWearTimeSessionDefaultTypeInternal() {}
115 union { // NOLINT(misc-non-private-member-variables-in-classes)
116 WsWearTimeSession _instance;
117 };
118 };
119 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 WsWearTimeSessionDefaultTypeInternal _WsWearTimeSession_default_instance_;
WsOnBodyStateChanged(::_pbi::ConstantInitialized)120 PROTOBUF_CONSTEXPR WsOnBodyStateChanged::WsOnBodyStateChanged(
121 ::_pbi::ConstantInitialized): _impl_{
122 /*decltype(_impl_._has_bits_)*/{}
123 , /*decltype(_impl_._cached_size_)*/{}
124 , /*decltype(_impl_.sensor_event_timestamp_nanos_)*/::int64_t{0}
125 , /*decltype(_impl_.on_body_state_)*/0} {}
126 struct WsOnBodyStateChangedDefaultTypeInternal {
WsOnBodyStateChangedDefaultTypeInternalandroid::os::statsd::wearservices::WsOnBodyStateChangedDefaultTypeInternal127 PROTOBUF_CONSTEXPR WsOnBodyStateChangedDefaultTypeInternal()
128 : _instance(::_pbi::ConstantInitialized{}) {}
~WsOnBodyStateChangedDefaultTypeInternalandroid::os::statsd::wearservices::WsOnBodyStateChangedDefaultTypeInternal129 ~WsOnBodyStateChangedDefaultTypeInternal() {}
130 union { // NOLINT(misc-non-private-member-variables-in-classes)
131 WsOnBodyStateChanged _instance;
132 };
133 };
134 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 WsOnBodyStateChangedDefaultTypeInternal _WsOnBodyStateChanged_default_instance_;
WsStandaloneModeSnapshot(::_pbi::ConstantInitialized)135 PROTOBUF_CONSTEXPR WsStandaloneModeSnapshot::WsStandaloneModeSnapshot(
136 ::_pbi::ConstantInitialized): _impl_{
137 /*decltype(_impl_._has_bits_)*/{}
138 , /*decltype(_impl_._cached_size_)*/{}
139 , /*decltype(_impl_.tether_configuration_status_)*/0} {}
140 struct WsStandaloneModeSnapshotDefaultTypeInternal {
WsStandaloneModeSnapshotDefaultTypeInternalandroid::os::statsd::wearservices::WsStandaloneModeSnapshotDefaultTypeInternal141 PROTOBUF_CONSTEXPR WsStandaloneModeSnapshotDefaultTypeInternal()
142 : _instance(::_pbi::ConstantInitialized{}) {}
~WsStandaloneModeSnapshotDefaultTypeInternalandroid::os::statsd::wearservices::WsStandaloneModeSnapshotDefaultTypeInternal143 ~WsStandaloneModeSnapshotDefaultTypeInternal() {}
144 union { // NOLINT(misc-non-private-member-variables-in-classes)
145 WsStandaloneModeSnapshot _instance;
146 };
147 };
148 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 WsStandaloneModeSnapshotDefaultTypeInternal _WsStandaloneModeSnapshot_default_instance_;
WsWatchFaceRestrictedComplicationsImpacted(::_pbi::ConstantInitialized)149 PROTOBUF_CONSTEXPR WsWatchFaceRestrictedComplicationsImpacted::WsWatchFaceRestrictedComplicationsImpacted(
150 ::_pbi::ConstantInitialized): _impl_{
151 /*decltype(_impl_._has_bits_)*/{}
152 , /*decltype(_impl_._cached_size_)*/{}
153 , /*decltype(_impl_.complication_component_package_uid_)*/{}
154 , /*decltype(_impl_.complication_component_class_name_)*/{}
155 , /*decltype(_impl_.complication_type_)*/{}
156 , /*decltype(_impl_.watch_face_component_class_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
157 , /*decltype(_impl_.watch_face_package_uid_)*/0
158 , /*decltype(_impl_.is_current_active_)*/false} {}
159 struct WsWatchFaceRestrictedComplicationsImpactedDefaultTypeInternal {
WsWatchFaceRestrictedComplicationsImpactedDefaultTypeInternalandroid::os::statsd::wearservices::WsWatchFaceRestrictedComplicationsImpactedDefaultTypeInternal160 PROTOBUF_CONSTEXPR WsWatchFaceRestrictedComplicationsImpactedDefaultTypeInternal()
161 : _instance(::_pbi::ConstantInitialized{}) {}
~WsWatchFaceRestrictedComplicationsImpactedDefaultTypeInternalandroid::os::statsd::wearservices::WsWatchFaceRestrictedComplicationsImpactedDefaultTypeInternal162 ~WsWatchFaceRestrictedComplicationsImpactedDefaultTypeInternal() {}
163 union { // NOLINT(misc-non-private-member-variables-in-classes)
164 WsWatchFaceRestrictedComplicationsImpacted _instance;
165 };
166 };
167 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 WsWatchFaceRestrictedComplicationsImpactedDefaultTypeInternal _WsWatchFaceRestrictedComplicationsImpacted_default_instance_;
WsFavouriteWatchFaceSnapshot(::_pbi::ConstantInitialized)168 PROTOBUF_CONSTEXPR WsFavouriteWatchFaceSnapshot::WsFavouriteWatchFaceSnapshot(
169 ::_pbi::ConstantInitialized): _impl_{
170 /*decltype(_impl_._has_bits_)*/{}
171 , /*decltype(_impl_._cached_size_)*/{}
172 , /*decltype(_impl_.complication_component_package_uid_)*/{}
173 , /*decltype(_impl_.complication_component_class_name_)*/{}
174 , /*decltype(_impl_.complication_type_)*/{}
175 , /*decltype(_impl_.watch_face_class_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
176 , /*decltype(_impl_.watch_face_package_uid_)*/0
177 , /*decltype(_impl_.favorite_id_)*/0
178 , /*decltype(_impl_.is_current_active_)*/false
179 , /*decltype(_impl_.is_restricted_)*/false} {}
180 struct WsFavouriteWatchFaceSnapshotDefaultTypeInternal {
WsFavouriteWatchFaceSnapshotDefaultTypeInternalandroid::os::statsd::wearservices::WsFavouriteWatchFaceSnapshotDefaultTypeInternal181 PROTOBUF_CONSTEXPR WsFavouriteWatchFaceSnapshotDefaultTypeInternal()
182 : _instance(::_pbi::ConstantInitialized{}) {}
~WsFavouriteWatchFaceSnapshotDefaultTypeInternalandroid::os::statsd::wearservices::WsFavouriteWatchFaceSnapshotDefaultTypeInternal183 ~WsFavouriteWatchFaceSnapshotDefaultTypeInternal() {}
184 union { // NOLINT(misc-non-private-member-variables-in-classes)
185 WsFavouriteWatchFaceSnapshot _instance;
186 };
187 };
188 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 WsFavouriteWatchFaceSnapshotDefaultTypeInternal _WsFavouriteWatchFaceSnapshot_default_instance_;
WsWatchFaceCustomizationSnapshot(::_pbi::ConstantInitialized)189 PROTOBUF_CONSTEXPR WsWatchFaceCustomizationSnapshot::WsWatchFaceCustomizationSnapshot(
190 ::_pbi::ConstantInitialized): _impl_{
191 /*decltype(_impl_._has_bits_)*/{}
192 , /*decltype(_impl_._cached_size_)*/{}
193 , /*decltype(_impl_.customized_wf_)*/false
194 , /*decltype(_impl_.switched_to_pre_installed_wf_)*/false
195 , /*decltype(_impl_.switched_to_non_preinstalled_wf_)*/false} {}
196 struct WsWatchFaceCustomizationSnapshotDefaultTypeInternal {
WsWatchFaceCustomizationSnapshotDefaultTypeInternalandroid::os::statsd::wearservices::WsWatchFaceCustomizationSnapshotDefaultTypeInternal197 PROTOBUF_CONSTEXPR WsWatchFaceCustomizationSnapshotDefaultTypeInternal()
198 : _instance(::_pbi::ConstantInitialized{}) {}
~WsWatchFaceCustomizationSnapshotDefaultTypeInternalandroid::os::statsd::wearservices::WsWatchFaceCustomizationSnapshotDefaultTypeInternal199 ~WsWatchFaceCustomizationSnapshotDefaultTypeInternal() {}
200 union { // NOLINT(misc-non-private-member-variables-in-classes)
201 WsWatchFaceCustomizationSnapshot _instance;
202 };
203 };
204 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 WsWatchFaceCustomizationSnapshotDefaultTypeInternal _WsWatchFaceCustomizationSnapshot_default_instance_;
WsPhotosWatchFaceFeatureSnapshot(::_pbi::ConstantInitialized)205 PROTOBUF_CONSTEXPR WsPhotosWatchFaceFeatureSnapshot::WsPhotosWatchFaceFeatureSnapshot(
206 ::_pbi::ConstantInitialized): _impl_{
207 /*decltype(_impl_._has_bits_)*/{}
208 , /*decltype(_impl_._cached_size_)*/{}
209 , /*decltype(_impl_.watch_face_package_uid_)*/0
210 , /*decltype(_impl_.favorite_id_)*/0
211 , /*decltype(_impl_.photo_selection_type_)*/0} {}
212 struct WsPhotosWatchFaceFeatureSnapshotDefaultTypeInternal {
WsPhotosWatchFaceFeatureSnapshotDefaultTypeInternalandroid::os::statsd::wearservices::WsPhotosWatchFaceFeatureSnapshotDefaultTypeInternal213 PROTOBUF_CONSTEXPR WsPhotosWatchFaceFeatureSnapshotDefaultTypeInternal()
214 : _instance(::_pbi::ConstantInitialized{}) {}
~WsPhotosWatchFaceFeatureSnapshotDefaultTypeInternalandroid::os::statsd::wearservices::WsPhotosWatchFaceFeatureSnapshotDefaultTypeInternal215 ~WsPhotosWatchFaceFeatureSnapshotDefaultTypeInternal() {}
216 union { // NOLINT(misc-non-private-member-variables-in-classes)
217 WsPhotosWatchFaceFeatureSnapshot _instance;
218 };
219 };
220 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 WsPhotosWatchFaceFeatureSnapshotDefaultTypeInternal _WsPhotosWatchFaceFeatureSnapshot_default_instance_;
WsWatchFaceDefaultRestrictedComplicationsRemoved(::_pbi::ConstantInitialized)221 PROTOBUF_CONSTEXPR WsWatchFaceDefaultRestrictedComplicationsRemoved::WsWatchFaceDefaultRestrictedComplicationsRemoved(
222 ::_pbi::ConstantInitialized): _impl_{
223 /*decltype(_impl_._has_bits_)*/{}
224 , /*decltype(_impl_._cached_size_)*/{}
225 , /*decltype(_impl_.complication_component_package_uid_)*/{}
226 , /*decltype(_impl_.complication_component_class_name_)*/{}
227 , /*decltype(_impl_.complication_type_)*/{}
228 , /*decltype(_impl_.slot_id_)*/{}
229 , /*decltype(_impl_.watch_face_component_class_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
230 , /*decltype(_impl_.watch_face_package_uid_)*/0
231 , /*decltype(_impl_.watch_face_type_)*/0} {}
232 struct WsWatchFaceDefaultRestrictedComplicationsRemovedDefaultTypeInternal {
WsWatchFaceDefaultRestrictedComplicationsRemovedDefaultTypeInternalandroid::os::statsd::wearservices::WsWatchFaceDefaultRestrictedComplicationsRemovedDefaultTypeInternal233 PROTOBUF_CONSTEXPR WsWatchFaceDefaultRestrictedComplicationsRemovedDefaultTypeInternal()
234 : _instance(::_pbi::ConstantInitialized{}) {}
~WsWatchFaceDefaultRestrictedComplicationsRemovedDefaultTypeInternalandroid::os::statsd::wearservices::WsWatchFaceDefaultRestrictedComplicationsRemovedDefaultTypeInternal235 ~WsWatchFaceDefaultRestrictedComplicationsRemovedDefaultTypeInternal() {}
236 union { // NOLINT(misc-non-private-member-variables-in-classes)
237 WsWatchFaceDefaultRestrictedComplicationsRemoved _instance;
238 };
239 };
240 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 WsWatchFaceDefaultRestrictedComplicationsRemovedDefaultTypeInternal _WsWatchFaceDefaultRestrictedComplicationsRemoved_default_instance_;
WsComplicationsImpactedNotificationEventReported(::_pbi::ConstantInitialized)241 PROTOBUF_CONSTEXPR WsComplicationsImpactedNotificationEventReported::WsComplicationsImpactedNotificationEventReported(
242 ::_pbi::ConstantInitialized): _impl_{
243 /*decltype(_impl_._has_bits_)*/{}
244 , /*decltype(_impl_._cached_size_)*/{}
245 , /*decltype(_impl_.event_)*/0} {}
246 struct WsComplicationsImpactedNotificationEventReportedDefaultTypeInternal {
WsComplicationsImpactedNotificationEventReportedDefaultTypeInternalandroid::os::statsd::wearservices::WsComplicationsImpactedNotificationEventReportedDefaultTypeInternal247 PROTOBUF_CONSTEXPR WsComplicationsImpactedNotificationEventReportedDefaultTypeInternal()
248 : _instance(::_pbi::ConstantInitialized{}) {}
~WsComplicationsImpactedNotificationEventReportedDefaultTypeInternalandroid::os::statsd::wearservices::WsComplicationsImpactedNotificationEventReportedDefaultTypeInternal249 ~WsComplicationsImpactedNotificationEventReportedDefaultTypeInternal() {}
250 union { // NOLINT(misc-non-private-member-variables-in-classes)
251 WsComplicationsImpactedNotificationEventReported _instance;
252 };
253 };
254 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 WsComplicationsImpactedNotificationEventReportedDefaultTypeInternal _WsComplicationsImpactedNotificationEventReported_default_instance_;
WsRemoteEventUsageReported(::_pbi::ConstantInitialized)255 PROTOBUF_CONSTEXPR WsRemoteEventUsageReported::WsRemoteEventUsageReported(
256 ::_pbi::ConstantInitialized): _impl_{
257 /*decltype(_impl_._has_bits_)*/{}
258 , /*decltype(_impl_._cached_size_)*/{}
259 , /*decltype(_impl_.remote_event_type_)*/0
260 , /*decltype(_impl_.is_successful_)*/false
261 , /*decltype(_impl_.remote_event_state_)*/0} {}
262 struct WsRemoteEventUsageReportedDefaultTypeInternal {
WsRemoteEventUsageReportedDefaultTypeInternalandroid::os::statsd::wearservices::WsRemoteEventUsageReportedDefaultTypeInternal263 PROTOBUF_CONSTEXPR WsRemoteEventUsageReportedDefaultTypeInternal()
264 : _instance(::_pbi::ConstantInitialized{}) {}
~WsRemoteEventUsageReportedDefaultTypeInternalandroid::os::statsd::wearservices::WsRemoteEventUsageReportedDefaultTypeInternal265 ~WsRemoteEventUsageReportedDefaultTypeInternal() {}
266 union { // NOLINT(misc-non-private-member-variables-in-classes)
267 WsRemoteEventUsageReported _instance;
268 };
269 };
270 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 WsRemoteEventUsageReportedDefaultTypeInternal _WsRemoteEventUsageReported_default_instance_;
WsBugreportEventReported(::_pbi::ConstantInitialized)271 PROTOBUF_CONSTEXPR WsBugreportEventReported::WsBugreportEventReported(
272 ::_pbi::ConstantInitialized): _impl_{
273 /*decltype(_impl_._has_bits_)*/{}
274 , /*decltype(_impl_._cached_size_)*/{}
275 , /*decltype(_impl_.event_)*/0
276 , /*decltype(_impl_.component_)*/0
277 , /*decltype(_impl_.result_)*/0
278 , /*decltype(_impl_.bugreport_size_kilobytes_)*/0
279 , /*decltype(_impl_.bugreport_event_duration_seconds_)*/0} {}
280 struct WsBugreportEventReportedDefaultTypeInternal {
WsBugreportEventReportedDefaultTypeInternalandroid::os::statsd::wearservices::WsBugreportEventReportedDefaultTypeInternal281 PROTOBUF_CONSTEXPR WsBugreportEventReportedDefaultTypeInternal()
282 : _instance(::_pbi::ConstantInitialized{}) {}
~WsBugreportEventReportedDefaultTypeInternalandroid::os::statsd::wearservices::WsBugreportEventReportedDefaultTypeInternal283 ~WsBugreportEventReportedDefaultTypeInternal() {}
284 union { // NOLINT(misc-non-private-member-variables-in-classes)
285 WsBugreportEventReported _instance;
286 };
287 };
288 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 WsBugreportEventReportedDefaultTypeInternal _WsBugreportEventReported_default_instance_;
WsNotificationManagedDismissalSync(::_pbi::ConstantInitialized)289 PROTOBUF_CONSTEXPR WsNotificationManagedDismissalSync::WsNotificationManagedDismissalSync(
290 ::_pbi::ConstantInitialized): _impl_{
291 /*decltype(_impl_._has_bits_)*/{}
292 , /*decltype(_impl_._cached_size_)*/{}
293 , /*decltype(_impl_.package_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
294 , /*decltype(_impl_.source_device_)*/0
295 , /*decltype(_impl_.payload_size_bytes_)*/0} {}
296 struct WsNotificationManagedDismissalSyncDefaultTypeInternal {
WsNotificationManagedDismissalSyncDefaultTypeInternalandroid::os::statsd::wearservices::WsNotificationManagedDismissalSyncDefaultTypeInternal297 PROTOBUF_CONSTEXPR WsNotificationManagedDismissalSyncDefaultTypeInternal()
298 : _instance(::_pbi::ConstantInitialized{}) {}
~WsNotificationManagedDismissalSyncDefaultTypeInternalandroid::os::statsd::wearservices::WsNotificationManagedDismissalSyncDefaultTypeInternal299 ~WsNotificationManagedDismissalSyncDefaultTypeInternal() {}
300 union { // NOLINT(misc-non-private-member-variables-in-classes)
301 WsNotificationManagedDismissalSync _instance;
302 };
303 };
304 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 WsNotificationManagedDismissalSyncDefaultTypeInternal _WsNotificationManagedDismissalSync_default_instance_;
305 } // namespace wearservices
306 } // namespace statsd
307 } // namespace os
308 } // namespace android
309 static ::_pb::Metadata file_level_metadata_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto[17];
310 static const ::_pb::EnumDescriptor* file_level_enum_descriptors_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto[1];
311 static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto = nullptr;
312
313 const ::uint32_t TableStruct_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
314 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsIncomingCallActionReported, _impl_._has_bits_),
315 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsIncomingCallActionReported, _internal_metadata_),
316 ~0u, // no _extensions_
317 ~0u, // no _oneof_case_
318 ~0u, // no _weak_field_map_
319 ~0u, // no _inlined_string_donated_
320 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsIncomingCallActionReported, _impl_.action_),
321 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsIncomingCallActionReported, _impl_.call_source_),
322 0,
323 1,
324 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsCallDisconnectionReported, _impl_._has_bits_),
325 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsCallDisconnectionReported, _internal_metadata_),
326 ~0u, // no _extensions_
327 ~0u, // no _oneof_case_
328 ~0u, // no _weak_field_map_
329 ~0u, // no _inlined_string_donated_
330 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsCallDisconnectionReported, _impl_.reason_),
331 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsCallDisconnectionReported, _impl_.error_code_),
332 0,
333 1,
334 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsCallDurationReported, _impl_._has_bits_),
335 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsCallDurationReported, _internal_metadata_),
336 ~0u, // no _extensions_
337 ~0u, // no _oneof_case_
338 ~0u, // no _weak_field_map_
339 ~0u, // no _inlined_string_donated_
340 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsCallDurationReported, _impl_.call_type_),
341 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsCallDurationReported, _impl_.is_initiated_or_accepted_on_watch_),
342 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsCallDurationReported, _impl_.call_source_),
343 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsCallDurationReported, _impl_.call_duration_millis_),
344 0,
345 1,
346 2,
347 3,
348 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsCallUserExperienceLatencyReported, _impl_._has_bits_),
349 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsCallUserExperienceLatencyReported, _internal_metadata_),
350 ~0u, // no _extensions_
351 ~0u, // no _oneof_case_
352 ~0u, // no _weak_field_map_
353 ~0u, // no _inlined_string_donated_
354 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsCallUserExperienceLatencyReported, _impl_.latency_action_),
355 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsCallUserExperienceLatencyReported, _impl_.result_),
356 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsCallUserExperienceLatencyReported, _impl_.latency_duration_millis_),
357 0,
358 1,
359 2,
360 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsCallInteractionReported, _impl_._has_bits_),
361 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsCallInteractionReported, _internal_metadata_),
362 ~0u, // no _extensions_
363 ~0u, // no _oneof_case_
364 ~0u, // no _weak_field_map_
365 ~0u, // no _inlined_string_donated_
366 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsCallInteractionReported, _impl_.interaction_),
367 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsCallInteractionReported, _impl_.call_source_),
368 0,
369 1,
370 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsWearTimeSession, _impl_._has_bits_),
371 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsWearTimeSession, _internal_metadata_),
372 ~0u, // no _extensions_
373 ~0u, // no _oneof_case_
374 ~0u, // no _weak_field_map_
375 ~0u, // no _inlined_string_donated_
376 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsWearTimeSession, _impl_.session_duration_millis_),
377 0,
378 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsOnBodyStateChanged, _impl_._has_bits_),
379 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsOnBodyStateChanged, _internal_metadata_),
380 ~0u, // no _extensions_
381 ~0u, // no _oneof_case_
382 ~0u, // no _weak_field_map_
383 ~0u, // no _inlined_string_donated_
384 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsOnBodyStateChanged, _impl_.on_body_state_),
385 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsOnBodyStateChanged, _impl_.sensor_event_timestamp_nanos_),
386 1,
387 0,
388 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsStandaloneModeSnapshot, _impl_._has_bits_),
389 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsStandaloneModeSnapshot, _internal_metadata_),
390 ~0u, // no _extensions_
391 ~0u, // no _oneof_case_
392 ~0u, // no _weak_field_map_
393 ~0u, // no _inlined_string_donated_
394 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsStandaloneModeSnapshot, _impl_.tether_configuration_status_),
395 0,
396 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsWatchFaceRestrictedComplicationsImpacted, _impl_._has_bits_),
397 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsWatchFaceRestrictedComplicationsImpacted, _internal_metadata_),
398 ~0u, // no _extensions_
399 ~0u, // no _oneof_case_
400 ~0u, // no _weak_field_map_
401 ~0u, // no _inlined_string_donated_
402 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsWatchFaceRestrictedComplicationsImpacted, _impl_.watch_face_package_uid_),
403 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsWatchFaceRestrictedComplicationsImpacted, _impl_.watch_face_component_class_name_),
404 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsWatchFaceRestrictedComplicationsImpacted, _impl_.complication_component_package_uid_),
405 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsWatchFaceRestrictedComplicationsImpacted, _impl_.complication_component_class_name_),
406 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsWatchFaceRestrictedComplicationsImpacted, _impl_.complication_type_),
407 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsWatchFaceRestrictedComplicationsImpacted, _impl_.is_current_active_),
408 1,
409 0,
410 ~0u,
411 ~0u,
412 ~0u,
413 2,
414 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsFavouriteWatchFaceSnapshot, _impl_._has_bits_),
415 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsFavouriteWatchFaceSnapshot, _internal_metadata_),
416 ~0u, // no _extensions_
417 ~0u, // no _oneof_case_
418 ~0u, // no _weak_field_map_
419 ~0u, // no _inlined_string_donated_
420 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsFavouriteWatchFaceSnapshot, _impl_.watch_face_package_uid_),
421 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsFavouriteWatchFaceSnapshot, _impl_.watch_face_class_name_),
422 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsFavouriteWatchFaceSnapshot, _impl_.favorite_id_),
423 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsFavouriteWatchFaceSnapshot, _impl_.complication_component_package_uid_),
424 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsFavouriteWatchFaceSnapshot, _impl_.complication_component_class_name_),
425 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsFavouriteWatchFaceSnapshot, _impl_.complication_type_),
426 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsFavouriteWatchFaceSnapshot, _impl_.is_current_active_),
427 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsFavouriteWatchFaceSnapshot, _impl_.is_restricted_),
428 1,
429 0,
430 2,
431 ~0u,
432 ~0u,
433 ~0u,
434 3,
435 4,
436 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsWatchFaceCustomizationSnapshot, _impl_._has_bits_),
437 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsWatchFaceCustomizationSnapshot, _internal_metadata_),
438 ~0u, // no _extensions_
439 ~0u, // no _oneof_case_
440 ~0u, // no _weak_field_map_
441 ~0u, // no _inlined_string_donated_
442 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsWatchFaceCustomizationSnapshot, _impl_.customized_wf_),
443 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsWatchFaceCustomizationSnapshot, _impl_.switched_to_pre_installed_wf_),
444 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsWatchFaceCustomizationSnapshot, _impl_.switched_to_non_preinstalled_wf_),
445 0,
446 1,
447 2,
448 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsPhotosWatchFaceFeatureSnapshot, _impl_._has_bits_),
449 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsPhotosWatchFaceFeatureSnapshot, _internal_metadata_),
450 ~0u, // no _extensions_
451 ~0u, // no _oneof_case_
452 ~0u, // no _weak_field_map_
453 ~0u, // no _inlined_string_donated_
454 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsPhotosWatchFaceFeatureSnapshot, _impl_.watch_face_package_uid_),
455 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsPhotosWatchFaceFeatureSnapshot, _impl_.favorite_id_),
456 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsPhotosWatchFaceFeatureSnapshot, _impl_.photo_selection_type_),
457 0,
458 1,
459 2,
460 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsWatchFaceDefaultRestrictedComplicationsRemoved, _impl_._has_bits_),
461 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsWatchFaceDefaultRestrictedComplicationsRemoved, _internal_metadata_),
462 ~0u, // no _extensions_
463 ~0u, // no _oneof_case_
464 ~0u, // no _weak_field_map_
465 ~0u, // no _inlined_string_donated_
466 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsWatchFaceDefaultRestrictedComplicationsRemoved, _impl_.watch_face_package_uid_),
467 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsWatchFaceDefaultRestrictedComplicationsRemoved, _impl_.watch_face_component_class_name_),
468 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsWatchFaceDefaultRestrictedComplicationsRemoved, _impl_.complication_component_package_uid_),
469 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsWatchFaceDefaultRestrictedComplicationsRemoved, _impl_.complication_component_class_name_),
470 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsWatchFaceDefaultRestrictedComplicationsRemoved, _impl_.complication_type_),
471 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsWatchFaceDefaultRestrictedComplicationsRemoved, _impl_.slot_id_),
472 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsWatchFaceDefaultRestrictedComplicationsRemoved, _impl_.watch_face_type_),
473 1,
474 0,
475 ~0u,
476 ~0u,
477 ~0u,
478 ~0u,
479 2,
480 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsComplicationsImpactedNotificationEventReported, _impl_._has_bits_),
481 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsComplicationsImpactedNotificationEventReported, _internal_metadata_),
482 ~0u, // no _extensions_
483 ~0u, // no _oneof_case_
484 ~0u, // no _weak_field_map_
485 ~0u, // no _inlined_string_donated_
486 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsComplicationsImpactedNotificationEventReported, _impl_.event_),
487 0,
488 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsRemoteEventUsageReported, _impl_._has_bits_),
489 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsRemoteEventUsageReported, _internal_metadata_),
490 ~0u, // no _extensions_
491 ~0u, // no _oneof_case_
492 ~0u, // no _weak_field_map_
493 ~0u, // no _inlined_string_donated_
494 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsRemoteEventUsageReported, _impl_.remote_event_type_),
495 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsRemoteEventUsageReported, _impl_.is_successful_),
496 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsRemoteEventUsageReported, _impl_.remote_event_state_),
497 0,
498 1,
499 2,
500 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsBugreportEventReported, _impl_._has_bits_),
501 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsBugreportEventReported, _internal_metadata_),
502 ~0u, // no _extensions_
503 ~0u, // no _oneof_case_
504 ~0u, // no _weak_field_map_
505 ~0u, // no _inlined_string_donated_
506 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsBugreportEventReported, _impl_.event_),
507 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsBugreportEventReported, _impl_.component_),
508 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsBugreportEventReported, _impl_.result_),
509 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsBugreportEventReported, _impl_.bugreport_size_kilobytes_),
510 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsBugreportEventReported, _impl_.bugreport_event_duration_seconds_),
511 0,
512 1,
513 2,
514 3,
515 4,
516 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsNotificationManagedDismissalSync, _impl_._has_bits_),
517 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsNotificationManagedDismissalSync, _internal_metadata_),
518 ~0u, // no _extensions_
519 ~0u, // no _oneof_case_
520 ~0u, // no _weak_field_map_
521 ~0u, // no _inlined_string_donated_
522 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsNotificationManagedDismissalSync, _impl_.package_name_),
523 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsNotificationManagedDismissalSync, _impl_.source_device_),
524 PROTOBUF_FIELD_OFFSET(::android::os::statsd::wearservices::WsNotificationManagedDismissalSync, _impl_.payload_size_bytes_),
525 0,
526 1,
527 2,
528 };
529 static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
530 { 0, 8, -1, sizeof(::android::os::statsd::wearservices::WsIncomingCallActionReported)},
531 { 10, 18, -1, sizeof(::android::os::statsd::wearservices::WsCallDisconnectionReported)},
532 { 20, 30, -1, sizeof(::android::os::statsd::wearservices::WsCallDurationReported)},
533 { 34, 43, -1, sizeof(::android::os::statsd::wearservices::WsCallUserExperienceLatencyReported)},
534 { 46, 54, -1, sizeof(::android::os::statsd::wearservices::WsCallInteractionReported)},
535 { 56, 63, -1, sizeof(::android::os::statsd::wearservices::WsWearTimeSession)},
536 { 64, 72, -1, sizeof(::android::os::statsd::wearservices::WsOnBodyStateChanged)},
537 { 74, 81, -1, sizeof(::android::os::statsd::wearservices::WsStandaloneModeSnapshot)},
538 { 82, 94, -1, sizeof(::android::os::statsd::wearservices::WsWatchFaceRestrictedComplicationsImpacted)},
539 { 100, 114, -1, sizeof(::android::os::statsd::wearservices::WsFavouriteWatchFaceSnapshot)},
540 { 122, 131, -1, sizeof(::android::os::statsd::wearservices::WsWatchFaceCustomizationSnapshot)},
541 { 134, 143, -1, sizeof(::android::os::statsd::wearservices::WsPhotosWatchFaceFeatureSnapshot)},
542 { 146, 159, -1, sizeof(::android::os::statsd::wearservices::WsWatchFaceDefaultRestrictedComplicationsRemoved)},
543 { 166, 173, -1, sizeof(::android::os::statsd::wearservices::WsComplicationsImpactedNotificationEventReported)},
544 { 174, 183, -1, sizeof(::android::os::statsd::wearservices::WsRemoteEventUsageReported)},
545 { 186, 197, -1, sizeof(::android::os::statsd::wearservices::WsBugreportEventReported)},
546 { 202, 211, -1, sizeof(::android::os::statsd::wearservices::WsNotificationManagedDismissalSync)},
547 };
548
549 static const ::_pb::Message* const file_default_instances[] = {
550 &::android::os::statsd::wearservices::_WsIncomingCallActionReported_default_instance_._instance,
551 &::android::os::statsd::wearservices::_WsCallDisconnectionReported_default_instance_._instance,
552 &::android::os::statsd::wearservices::_WsCallDurationReported_default_instance_._instance,
553 &::android::os::statsd::wearservices::_WsCallUserExperienceLatencyReported_default_instance_._instance,
554 &::android::os::statsd::wearservices::_WsCallInteractionReported_default_instance_._instance,
555 &::android::os::statsd::wearservices::_WsWearTimeSession_default_instance_._instance,
556 &::android::os::statsd::wearservices::_WsOnBodyStateChanged_default_instance_._instance,
557 &::android::os::statsd::wearservices::_WsStandaloneModeSnapshot_default_instance_._instance,
558 &::android::os::statsd::wearservices::_WsWatchFaceRestrictedComplicationsImpacted_default_instance_._instance,
559 &::android::os::statsd::wearservices::_WsFavouriteWatchFaceSnapshot_default_instance_._instance,
560 &::android::os::statsd::wearservices::_WsWatchFaceCustomizationSnapshot_default_instance_._instance,
561 &::android::os::statsd::wearservices::_WsPhotosWatchFaceFeatureSnapshot_default_instance_._instance,
562 &::android::os::statsd::wearservices::_WsWatchFaceDefaultRestrictedComplicationsRemoved_default_instance_._instance,
563 &::android::os::statsd::wearservices::_WsComplicationsImpactedNotificationEventReported_default_instance_._instance,
564 &::android::os::statsd::wearservices::_WsRemoteEventUsageReported_default_instance_._instance,
565 &::android::os::statsd::wearservices::_WsBugreportEventReported_default_instance_._instance,
566 &::android::os::statsd::wearservices::_WsNotificationManagedDismissalSync_default_instance_._instance,
567 };
568
569 const char descriptor_table_protodef_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
570 "\nTframeworks/proto_logging/stats/atoms/w"
571 "earservices/wearservices_extension_atoms"
572 ".proto\022\036android.os.statsd.wearservices\032*"
573 "frameworks/proto_logging/stats/atoms.pro"
574 "to\0327frameworks/proto_logging/stats/atom_"
575 "field_options.proto\032Nframeworks/proto_lo"
576 "gging/stats/enums/app/wearservices/wears"
577 "ervices_enums.proto\"\217\001\n\034WsIncomingCallAc"
578 "tionReported\0224\n\006action\030\001 \001(\0162$.android.a"
579 "pp.wearservices.CallAction\0229\n\013call_sourc"
580 "e\030\002 \001(\0162$.android.app.wearservices.CallS"
581 "ource\"\242\001\n\033WsCallDisconnectionReported\022=\n"
582 "\006reason\030\001 \001(\0162-.android.app.wearservices"
583 ".DisconnectionReason\022D\n\nerror_code\030\002 \001(\016"
584 "20.android.app.wearservices.Disconnectio"
585 "nErrorCode\"\323\001\n\026WsCallDurationReported\0225\n"
586 "\tcall_type\030\001 \001(\0162\".android.app.wearservi"
587 "ces.CallType\022)\n!is_initiated_or_accepted"
588 "_on_watch\030\002 \001(\010\0229\n\013call_source\030\003 \001(\0162$.a"
589 "ndroid.app.wearservices.CallSource\022\034\n\024ca"
590 "ll_duration_millis\030\004 \001(\005\"\275\001\n#WsCallUserE"
591 "xperienceLatencyReported\022\?\n\016latency_acti"
592 "on\030\001 \001(\0162\'.android.app.wearservices.Late"
593 "ncyAction\0224\n\006result\030\002 \001(\0162$.android.app."
594 "wearservices.CallResult\022\037\n\027latency_durat"
595 "ion_millis\030\003 \001(\005\"\226\001\n\031WsCallInteractionRe"
596 "ported\022>\n\013interaction\030\001 \001(\0162).android.ap"
597 "p.wearservices.CallInteraction\0229\n\013call_s"
598 "ource\030\002 \001(\0162$.android.app.wearservices.C"
599 "allSource\"4\n\021WsWearTimeSession\022\037\n\027sessio"
600 "n_duration_millis\030\001 \001(\003\"z\n\024WsOnBodyState"
601 "Changed\022<\n\ron_body_state\030\001 \001(\0162%.android"
602 ".app.wearservices.OnBodyState\022$\n\034sensor_"
603 "event_timestamp_nanos\030\002 \001(\003\"t\n\030WsStandal"
604 "oneModeSnapshot\022X\n\033tether_configuration_"
605 "status\030\001 \001(\01623.android.app.wearservices."
606 "TetherConfigurationStatus\"\216\002\n*WsWatchFac"
607 "eRestrictedComplicationsImpacted\022$\n\026watc"
608 "h_face_package_uid\030\001 \001(\005B\004\210\265\030\001\022\'\n\037watch_"
609 "face_component_class_name\030\002 \001(\t\0220\n\"compl"
610 "ication_component_package_uid\030\003 \003(\005B\004\210\265\030"
611 "\001\022)\n!complication_component_class_name\030\004"
612 " \003(\t\022\031\n\021complication_type\030\005 \003(\005\022\031\n\021is_cu"
613 "rrent_active\030\006 \001(\010\"\242\002\n\034WsFavouriteWatchF"
614 "aceSnapshot\022$\n\026watch_face_package_uid\030\001 "
615 "\001(\005B\004\210\265\030\001\022\035\n\025watch_face_class_name\030\002 \001(\t"
616 "\022\023\n\013favorite_id\030\003 \001(\005\0220\n\"complication_co"
617 "mponent_package_uid\030\004 \003(\005B\004\210\265\030\001\022)\n!compl"
618 "ication_component_class_name\030\005 \003(\t\022\031\n\021co"
619 "mplication_type\030\006 \003(\005\022\031\n\021is_current_acti"
620 "ve\030\007 \001(\010\022\025\n\ris_restricted\030\010 \001(\010\"\210\001\n WsWa"
621 "tchFaceCustomizationSnapshot\022\025\n\rcustomiz"
622 "ed_wf\030\001 \001(\010\022$\n\034switched_to_pre_installed"
623 "_wf\030\002 \001(\010\022\'\n\037switched_to_non_preinstalle"
624 "d_wf\030\003 \001(\010\"\251\001\n WsPhotosWatchFaceFeatureS"
625 "napshot\022$\n\026watch_face_package_uid\030\001 \001(\005B"
626 "\004\210\265\030\001\022\023\n\013favorite_id\030\002 \001(\005\022J\n\024photo_sele"
627 "ction_type\030\003 \001(\0162,.android.app.wearservi"
628 "ces.PhotoSelectionType\"\314\002\n0WsWatchFaceDe"
629 "faultRestrictedComplicationsRemoved\022$\n\026w"
630 "atch_face_package_uid\030\001 \001(\005B\004\210\265\030\001\022\'\n\037wat"
631 "ch_face_component_class_name\030\002 \001(\t\0220\n\"co"
632 "mplication_component_package_uid\030\003 \003(\005B\004"
633 "\210\265\030\001\022)\n!complication_component_class_nam"
634 "e\030\004 \003(\t\022\031\n\021complication_type\030\005 \003(\005\022\017\n\007sl"
635 "ot_id\030\006 \003(\005\022@\n\017watch_face_type\030\007 \001(\0162\'.a"
636 "ndroid.app.wearservices.WatchFaceType\"\312\001"
637 "\n0WsComplicationsImpactedNotificationEve"
638 "ntReported\022e\n\005event\030\001 \001(\0162V.android.os.s"
639 "tatsd.wearservices.WsComplicationsImpact"
640 "edNotificationEventReported.Event\"/\n\005Eve"
641 "nt\022\017\n\013UNSPECIFIED\020\000\022\010\n\004SENT\020\001\022\013\n\007CLICKED"
642 "\020\002\"\305\001\n\032WsRemoteEventUsageReported\022D\n\021rem"
643 "ote_event_type\030\001 \001(\0162).android.app.wears"
644 "ervices.RemoteEventType\022\031\n\ris_successful"
645 "\030\002 \001(\010B\002\030\001\022F\n\022remote_event_state\030\003 \001(\0162*"
646 ".android.app.wearservices.RemoteEventSta"
647 "te\"\233\002\n\030WsBugreportEventReported\0227\n\005event"
648 "\030\001 \001(\0162(.android.app.wearservices.Bugrep"
649 "ortEvent\022\?\n\tcomponent\030\002 \001(\0162,.android.ap"
650 "p.wearservices.BugreportComponent\0229\n\006res"
651 "ult\030\003 \001(\0162).android.app.wearservices.Bug"
652 "reportResult\022 \n\030bugreport_size_kilobytes"
653 "\030\004 \001(\005\022(\n bugreport_event_duration_secon"
654 "ds\030\005 \001(\005\"\226\001\n\"WsNotificationManagedDismis"
655 "salSync\022\024\n\014package_name\030\001 \001(\t\022>\n\rsource_"
656 "device\030\002 \001(\0162\'.android.app.wearservices."
657 "RequestSource\022\032\n\022payload_size_bytes\030\003 \001("
658 "\005:{\n\024ws_wear_time_session\022\027.android.os.s"
659 "tatsd.Atom\030\342\004 \001(\01321.android.os.statsd.we"
660 "arservices.WsWearTimeSessionB\020\242\265\030\014wearse"
661 "rvices:\222\001\n ws_incoming_call_action_repor"
662 "ted\022\027.android.os.statsd.Atom\030\362\004 \001(\0132<.an"
663 "droid.os.statsd.wearservices.WsIncomingC"
664 "allActionReportedB\020\242\265\030\014wearservices:\217\001\n\036"
665 "ws_call_disconnection_reported\022\027.android"
666 ".os.statsd.Atom\030\363\004 \001(\0132;.android.os.stat"
667 "sd.wearservices.WsCallDisconnectionRepor"
668 "tedB\020\242\265\030\014wearservices:\205\001\n\031ws_call_durati"
669 "on_reported\022\027.android.os.statsd.Atom\030\364\004 "
670 "\001(\01326.android.os.statsd.wearservices.WsC"
671 "allDurationReportedB\020\242\265\030\014wearservices:\241\001"
672 "\n(ws_call_user_experience_latency_report"
673 "ed\022\027.android.os.statsd.Atom\030\365\004 \001(\0132C.and"
674 "roid.os.statsd.wearservices.WsCallUserEx"
675 "perienceLatencyReportedB\020\242\265\030\014wearservice"
676 "s:\213\001\n\034ws_call_interaction_reported\022\027.and"
677 "roid.os.statsd.Atom\030\366\004 \001(\01329.android.os."
678 "statsd.wearservices.WsCallInteractionRep"
679 "ortedB\020\242\265\030\014wearservices:\202\001\n\030ws_on_body_s"
680 "tate_changed\022\027.android.os.statsd.Atom\030\223\006"
681 " \001(\01324.android.os.statsd.wearservices.Ws"
682 "OnBodyStateChangedB\020\242\265\030\014wearservices:\257\001\n"
683 "/ws_watch_face_restricted_complications_"
684 "impacted\022\027.android.os.statsd.Atom\030\242\006 \001(\013"
685 "2J.android.os.statsd.wearservices.WsWatc"
686 "hFaceRestrictedComplicationsImpactedB\020\242\265"
687 "\030\014wearservices:\274\001\n6ws_watch_face_default"
688 "_restricted_complications_removed\022\027.andr"
689 "oid.os.statsd.Atom\030\243\006 \001(\0132P.android.os.s"
690 "tatsd.wearservices.WsWatchFaceDefaultRes"
691 "trictedComplicationsRemovedB\020\242\265\030\014wearser"
692 "vices:\273\001\n5ws_complications_impacted_noti"
693 "fication_event_reported\022\027.android.os.sta"
694 "tsd.Atom\030\244\006 \001(\0132P.android.os.statsd.wear"
695 "services.WsComplicationsImpactedNotifica"
696 "tionEventReportedB\020\242\265\030\014wearservices:\216\001\n\036"
697 "ws_remote_event_usage_reported\022\027.android"
698 ".os.statsd.Atom\030\230\007 \001(\0132:.android.os.stat"
699 "sd.wearservices.WsRemoteEventUsageReport"
700 "edB\020\242\265\030\014wearservices:\236\001\n&ws_notification"
701 "_managed_dismissal_sync\022\027.android.os.sta"
702 "tsd.Atom\030\255\007 \001(\0132B.android.os.statsd.wear"
703 "services.WsNotificationManagedDismissalS"
704 "yncB\020\242\265\030\014wearservices:\211\001\n\033ws_bugreport_e"
705 "vent_reported\022\027.android.os.statsd.Atom\030\304"
706 "\007 \001(\01328.android.os.statsd.wearservices.W"
707 "sBugreportEventReportedB\020\242\265\030\014wearservice"
708 "s:\211\001\n\033ws_standalone_mode_snapshot\022\027.andr"
709 "oid.os.statsd.Atom\030\325O \001(\01328.android.os.s"
710 "tatsd.wearservices.WsStandaloneModeSnaps"
711 "hotB\020\242\265\030\014wearservices:\221\001\n\037ws_favorite_wa"
712 "tch_face_snapshot\022\027.android.os.statsd.At"
713 "om\030\336O \001(\0132<.android.os.statsd.wearservic"
714 "es.WsFavouriteWatchFaceSnapshotB\020\242\265\030\014wea"
715 "rservices:\233\001\n%ws_photos_watch_face_featu"
716 "re_snapshot\022\027.android.os.statsd.Atom\030\361O "
717 "\001(\[email protected]"
718 "hotosWatchFaceFeatureSnapshotB\020\242\265\030\014wears"
719 "ervices:\232\001\n$ws_watch_face_customization_"
720 "snapshot\022\027.android.os.statsd.Atom\030\363O \001(\013"
721 "[email protected]"
722 "hFaceCustomizationSnapshotB\020\242\265\030\014wearserv"
723 "icesB\037\n\033com.android.os.wearservicesP\001"
724 ;
725 static const ::_pbi::DescriptorTable* const descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto_deps[3] = {
726 &::descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatom_5ffield_5foptions_2eproto,
727 &::descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2eproto,
728 &::descriptor_table_frameworks_2fproto_5flogging_2fstats_2fenums_2fapp_2fwearservices_2fwearservices_5fenums_2eproto,
729 };
730 static ::_pbi::once_flag descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto_once;
731 const ::_pbi::DescriptorTable descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto = {
732 false, false, 6157, descriptor_table_protodef_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto,
733 "frameworks/proto_logging/stats/atoms/wearservices/wearservices_extension_atoms.proto",
734 &descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto_once, descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto_deps, 3, 17,
735 schemas, file_default_instances, TableStruct_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto::offsets,
736 file_level_metadata_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto, file_level_enum_descriptors_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto,
737 file_level_service_descriptors_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto,
738 };
descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto_getter()739 PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto_getter() {
740 return &descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto;
741 }
742
743 // Force running AddDescriptors() at dynamic initialization time.
744 PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto(&descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto);
745 namespace android {
746 namespace os {
747 namespace statsd {
748 namespace wearservices {
WsComplicationsImpactedNotificationEventReported_Event_descriptor()749 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* WsComplicationsImpactedNotificationEventReported_Event_descriptor() {
750 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto);
751 return file_level_enum_descriptors_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto[0];
752 }
WsComplicationsImpactedNotificationEventReported_Event_IsValid(int value)753 bool WsComplicationsImpactedNotificationEventReported_Event_IsValid(int value) {
754 switch (value) {
755 case 0:
756 case 1:
757 case 2:
758 return true;
759 default:
760 return false;
761 }
762 }
763
764 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
765 constexpr WsComplicationsImpactedNotificationEventReported_Event WsComplicationsImpactedNotificationEventReported::UNSPECIFIED;
766 constexpr WsComplicationsImpactedNotificationEventReported_Event WsComplicationsImpactedNotificationEventReported::SENT;
767 constexpr WsComplicationsImpactedNotificationEventReported_Event WsComplicationsImpactedNotificationEventReported::CLICKED;
768 constexpr WsComplicationsImpactedNotificationEventReported_Event WsComplicationsImpactedNotificationEventReported::Event_MIN;
769 constexpr WsComplicationsImpactedNotificationEventReported_Event WsComplicationsImpactedNotificationEventReported::Event_MAX;
770 constexpr int WsComplicationsImpactedNotificationEventReported::Event_ARRAYSIZE;
771 #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
772
773 // ===================================================================
774
775 class WsIncomingCallActionReported::_Internal {
776 public:
777 using HasBits = decltype(std::declval<WsIncomingCallActionReported>()._impl_._has_bits_);
set_has_action(HasBits * has_bits)778 static void set_has_action(HasBits* has_bits) {
779 (*has_bits)[0] |= 1u;
780 }
set_has_call_source(HasBits * has_bits)781 static void set_has_call_source(HasBits* has_bits) {
782 (*has_bits)[0] |= 2u;
783 }
784 };
785
WsIncomingCallActionReported(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)786 WsIncomingCallActionReported::WsIncomingCallActionReported(::PROTOBUF_NAMESPACE_ID::Arena* arena,
787 bool is_message_owned)
788 : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
789 SharedCtor(arena, is_message_owned);
790 // @@protoc_insertion_point(arena_constructor:android.os.statsd.wearservices.WsIncomingCallActionReported)
791 }
WsIncomingCallActionReported(const WsIncomingCallActionReported & from)792 WsIncomingCallActionReported::WsIncomingCallActionReported(const WsIncomingCallActionReported& from)
793 : ::PROTOBUF_NAMESPACE_ID::Message() {
794 WsIncomingCallActionReported* const _this = this; (void)_this;
795 new (&_impl_) Impl_{
796 decltype(_impl_._has_bits_){from._impl_._has_bits_}
797 , /*decltype(_impl_._cached_size_)*/{}
798 , decltype(_impl_.action_){}
799 , decltype(_impl_.call_source_){}};
800
801 _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
802 ::memcpy(&_impl_.action_, &from._impl_.action_,
803 static_cast<size_t>(reinterpret_cast<char*>(&_impl_.call_source_) -
804 reinterpret_cast<char*>(&_impl_.action_)) + sizeof(_impl_.call_source_));
805 // @@protoc_insertion_point(copy_constructor:android.os.statsd.wearservices.WsIncomingCallActionReported)
806 }
807
SharedCtor(::_pb::Arena * arena,bool is_message_owned)808 inline void WsIncomingCallActionReported::SharedCtor(
809 ::_pb::Arena* arena, bool is_message_owned) {
810 (void)arena;
811 (void)is_message_owned;
812 new (&_impl_) Impl_{
813 decltype(_impl_._has_bits_){}
814 , /*decltype(_impl_._cached_size_)*/{}
815 , decltype(_impl_.action_){0}
816 , decltype(_impl_.call_source_){0}
817 };
818 }
819
~WsIncomingCallActionReported()820 WsIncomingCallActionReported::~WsIncomingCallActionReported() {
821 // @@protoc_insertion_point(destructor:android.os.statsd.wearservices.WsIncomingCallActionReported)
822 if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
823 (void)arena;
824 return;
825 }
826 SharedDtor();
827 }
828
SharedDtor()829 inline void WsIncomingCallActionReported::SharedDtor() {
830 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
831 }
832
SetCachedSize(int size) const833 void WsIncomingCallActionReported::SetCachedSize(int size) const {
834 _impl_._cached_size_.Set(size);
835 }
836
Clear()837 void WsIncomingCallActionReported::Clear() {
838 // @@protoc_insertion_point(message_clear_start:android.os.statsd.wearservices.WsIncomingCallActionReported)
839 ::uint32_t cached_has_bits = 0;
840 // Prevent compiler warnings about cached_has_bits being unused
841 (void) cached_has_bits;
842
843 cached_has_bits = _impl_._has_bits_[0];
844 if (cached_has_bits & 0x00000003u) {
845 ::memset(&_impl_.action_, 0, static_cast<size_t>(
846 reinterpret_cast<char*>(&_impl_.call_source_) -
847 reinterpret_cast<char*>(&_impl_.action_)) + sizeof(_impl_.call_source_));
848 }
849 _impl_._has_bits_.Clear();
850 _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
851 }
852
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)853 const char* WsIncomingCallActionReported::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
854 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
855 _Internal::HasBits has_bits{};
856 while (!ctx->Done(&ptr)) {
857 ::uint32_t tag;
858 ptr = ::_pbi::ReadTag(ptr, &tag);
859 switch (tag >> 3) {
860 // optional .android.app.wearservices.CallAction action = 1;
861 case 1:
862 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
863 ::uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
864 CHK_(ptr);
865 if (PROTOBUF_PREDICT_TRUE(::android::app::wearservices::CallAction_IsValid(val))) {
866 _internal_set_action(static_cast<::android::app::wearservices::CallAction>(val));
867 } else {
868 ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields());
869 }
870 } else {
871 goto handle_unusual;
872 }
873 continue;
874 // optional .android.app.wearservices.CallSource call_source = 2;
875 case 2:
876 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
877 ::uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
878 CHK_(ptr);
879 if (PROTOBUF_PREDICT_TRUE(::android::app::wearservices::CallSource_IsValid(val))) {
880 _internal_set_call_source(static_cast<::android::app::wearservices::CallSource>(val));
881 } else {
882 ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields());
883 }
884 } else {
885 goto handle_unusual;
886 }
887 continue;
888 default:
889 goto handle_unusual;
890 } // switch
891 handle_unusual:
892 if ((tag == 0) || ((tag & 7) == 4)) {
893 CHK_(ptr);
894 ctx->SetLastTag(tag);
895 goto message_done;
896 }
897 ptr = UnknownFieldParse(
898 tag,
899 _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
900 ptr, ctx);
901 CHK_(ptr != nullptr);
902 } // while
903 message_done:
904 _impl_._has_bits_.Or(has_bits);
905 return ptr;
906 failure:
907 ptr = nullptr;
908 goto message_done;
909 #undef CHK_
910 }
911
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const912 ::uint8_t* WsIncomingCallActionReported::_InternalSerialize(
913 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
914 // @@protoc_insertion_point(serialize_to_array_start:android.os.statsd.wearservices.WsIncomingCallActionReported)
915 ::uint32_t cached_has_bits = 0;
916 (void) cached_has_bits;
917
918 cached_has_bits = _impl_._has_bits_[0];
919 // optional .android.app.wearservices.CallAction action = 1;
920 if (cached_has_bits & 0x00000001u) {
921 target = stream->EnsureSpace(target);
922 target = ::_pbi::WireFormatLite::WriteEnumToArray(
923 1, this->_internal_action(), target);
924 }
925
926 // optional .android.app.wearservices.CallSource call_source = 2;
927 if (cached_has_bits & 0x00000002u) {
928 target = stream->EnsureSpace(target);
929 target = ::_pbi::WireFormatLite::WriteEnumToArray(
930 2, this->_internal_call_source(), target);
931 }
932
933 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
934 target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
935 _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
936 }
937 // @@protoc_insertion_point(serialize_to_array_end:android.os.statsd.wearservices.WsIncomingCallActionReported)
938 return target;
939 }
940
ByteSizeLong() const941 size_t WsIncomingCallActionReported::ByteSizeLong() const {
942 // @@protoc_insertion_point(message_byte_size_start:android.os.statsd.wearservices.WsIncomingCallActionReported)
943 size_t total_size = 0;
944
945 ::uint32_t cached_has_bits = 0;
946 // Prevent compiler warnings about cached_has_bits being unused
947 (void) cached_has_bits;
948
949 cached_has_bits = _impl_._has_bits_[0];
950 if (cached_has_bits & 0x00000003u) {
951 // optional .android.app.wearservices.CallAction action = 1;
952 if (cached_has_bits & 0x00000001u) {
953 total_size += 1 +
954 ::_pbi::WireFormatLite::EnumSize(this->_internal_action());
955 }
956
957 // optional .android.app.wearservices.CallSource call_source = 2;
958 if (cached_has_bits & 0x00000002u) {
959 total_size += 1 +
960 ::_pbi::WireFormatLite::EnumSize(this->_internal_call_source());
961 }
962
963 }
964 return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
965 }
966
967 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData WsIncomingCallActionReported::_class_data_ = {
968 ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
969 WsIncomingCallActionReported::MergeImpl
970 };
GetClassData() const971 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*WsIncomingCallActionReported::GetClassData() const { return &_class_data_; }
972
973
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)974 void WsIncomingCallActionReported::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
975 auto* const _this = static_cast<WsIncomingCallActionReported*>(&to_msg);
976 auto& from = static_cast<const WsIncomingCallActionReported&>(from_msg);
977 // @@protoc_insertion_point(class_specific_merge_from_start:android.os.statsd.wearservices.WsIncomingCallActionReported)
978 GOOGLE_DCHECK_NE(&from, _this);
979 ::uint32_t cached_has_bits = 0;
980 (void) cached_has_bits;
981
982 cached_has_bits = from._impl_._has_bits_[0];
983 if (cached_has_bits & 0x00000003u) {
984 if (cached_has_bits & 0x00000001u) {
985 _this->_impl_.action_ = from._impl_.action_;
986 }
987 if (cached_has_bits & 0x00000002u) {
988 _this->_impl_.call_source_ = from._impl_.call_source_;
989 }
990 _this->_impl_._has_bits_[0] |= cached_has_bits;
991 }
992 _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
993 }
994
CopyFrom(const WsIncomingCallActionReported & from)995 void WsIncomingCallActionReported::CopyFrom(const WsIncomingCallActionReported& from) {
996 // @@protoc_insertion_point(class_specific_copy_from_start:android.os.statsd.wearservices.WsIncomingCallActionReported)
997 if (&from == this) return;
998 Clear();
999 MergeFrom(from);
1000 }
1001
IsInitialized() const1002 bool WsIncomingCallActionReported::IsInitialized() const {
1003 return true;
1004 }
1005
InternalSwap(WsIncomingCallActionReported * other)1006 void WsIncomingCallActionReported::InternalSwap(WsIncomingCallActionReported* other) {
1007 using std::swap;
1008 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1009 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1010 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
1011 PROTOBUF_FIELD_OFFSET(WsIncomingCallActionReported, _impl_.call_source_)
1012 + sizeof(WsIncomingCallActionReported::_impl_.call_source_) // NOLINT
1013 - PROTOBUF_FIELD_OFFSET(WsIncomingCallActionReported, _impl_.action_)>(
1014 reinterpret_cast<char*>(&_impl_.action_),
1015 reinterpret_cast<char*>(&other->_impl_.action_));
1016 }
1017
GetMetadata() const1018 ::PROTOBUF_NAMESPACE_ID::Metadata WsIncomingCallActionReported::GetMetadata() const {
1019 return ::_pbi::AssignDescriptors(
1020 &descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto_getter, &descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto_once,
1021 file_level_metadata_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto[0]);
1022 }
1023
1024 // ===================================================================
1025
1026 class WsCallDisconnectionReported::_Internal {
1027 public:
1028 using HasBits = decltype(std::declval<WsCallDisconnectionReported>()._impl_._has_bits_);
set_has_reason(HasBits * has_bits)1029 static void set_has_reason(HasBits* has_bits) {
1030 (*has_bits)[0] |= 1u;
1031 }
set_has_error_code(HasBits * has_bits)1032 static void set_has_error_code(HasBits* has_bits) {
1033 (*has_bits)[0] |= 2u;
1034 }
1035 };
1036
WsCallDisconnectionReported(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)1037 WsCallDisconnectionReported::WsCallDisconnectionReported(::PROTOBUF_NAMESPACE_ID::Arena* arena,
1038 bool is_message_owned)
1039 : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
1040 SharedCtor(arena, is_message_owned);
1041 // @@protoc_insertion_point(arena_constructor:android.os.statsd.wearservices.WsCallDisconnectionReported)
1042 }
WsCallDisconnectionReported(const WsCallDisconnectionReported & from)1043 WsCallDisconnectionReported::WsCallDisconnectionReported(const WsCallDisconnectionReported& from)
1044 : ::PROTOBUF_NAMESPACE_ID::Message() {
1045 WsCallDisconnectionReported* const _this = this; (void)_this;
1046 new (&_impl_) Impl_{
1047 decltype(_impl_._has_bits_){from._impl_._has_bits_}
1048 , /*decltype(_impl_._cached_size_)*/{}
1049 , decltype(_impl_.reason_){}
1050 , decltype(_impl_.error_code_){}};
1051
1052 _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1053 ::memcpy(&_impl_.reason_, &from._impl_.reason_,
1054 static_cast<size_t>(reinterpret_cast<char*>(&_impl_.error_code_) -
1055 reinterpret_cast<char*>(&_impl_.reason_)) + sizeof(_impl_.error_code_));
1056 // @@protoc_insertion_point(copy_constructor:android.os.statsd.wearservices.WsCallDisconnectionReported)
1057 }
1058
SharedCtor(::_pb::Arena * arena,bool is_message_owned)1059 inline void WsCallDisconnectionReported::SharedCtor(
1060 ::_pb::Arena* arena, bool is_message_owned) {
1061 (void)arena;
1062 (void)is_message_owned;
1063 new (&_impl_) Impl_{
1064 decltype(_impl_._has_bits_){}
1065 , /*decltype(_impl_._cached_size_)*/{}
1066 , decltype(_impl_.reason_){0}
1067 , decltype(_impl_.error_code_){0}
1068 };
1069 }
1070
~WsCallDisconnectionReported()1071 WsCallDisconnectionReported::~WsCallDisconnectionReported() {
1072 // @@protoc_insertion_point(destructor:android.os.statsd.wearservices.WsCallDisconnectionReported)
1073 if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
1074 (void)arena;
1075 return;
1076 }
1077 SharedDtor();
1078 }
1079
SharedDtor()1080 inline void WsCallDisconnectionReported::SharedDtor() {
1081 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
1082 }
1083
SetCachedSize(int size) const1084 void WsCallDisconnectionReported::SetCachedSize(int size) const {
1085 _impl_._cached_size_.Set(size);
1086 }
1087
Clear()1088 void WsCallDisconnectionReported::Clear() {
1089 // @@protoc_insertion_point(message_clear_start:android.os.statsd.wearservices.WsCallDisconnectionReported)
1090 ::uint32_t cached_has_bits = 0;
1091 // Prevent compiler warnings about cached_has_bits being unused
1092 (void) cached_has_bits;
1093
1094 cached_has_bits = _impl_._has_bits_[0];
1095 if (cached_has_bits & 0x00000003u) {
1096 ::memset(&_impl_.reason_, 0, static_cast<size_t>(
1097 reinterpret_cast<char*>(&_impl_.error_code_) -
1098 reinterpret_cast<char*>(&_impl_.reason_)) + sizeof(_impl_.error_code_));
1099 }
1100 _impl_._has_bits_.Clear();
1101 _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
1102 }
1103
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)1104 const char* WsCallDisconnectionReported::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
1105 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1106 _Internal::HasBits has_bits{};
1107 while (!ctx->Done(&ptr)) {
1108 ::uint32_t tag;
1109 ptr = ::_pbi::ReadTag(ptr, &tag);
1110 switch (tag >> 3) {
1111 // optional .android.app.wearservices.DisconnectionReason reason = 1;
1112 case 1:
1113 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
1114 ::uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
1115 CHK_(ptr);
1116 if (PROTOBUF_PREDICT_TRUE(::android::app::wearservices::DisconnectionReason_IsValid(val))) {
1117 _internal_set_reason(static_cast<::android::app::wearservices::DisconnectionReason>(val));
1118 } else {
1119 ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields());
1120 }
1121 } else {
1122 goto handle_unusual;
1123 }
1124 continue;
1125 // optional .android.app.wearservices.DisconnectionErrorCode error_code = 2;
1126 case 2:
1127 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
1128 ::uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
1129 CHK_(ptr);
1130 if (PROTOBUF_PREDICT_TRUE(::android::app::wearservices::DisconnectionErrorCode_IsValid(val))) {
1131 _internal_set_error_code(static_cast<::android::app::wearservices::DisconnectionErrorCode>(val));
1132 } else {
1133 ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields());
1134 }
1135 } else {
1136 goto handle_unusual;
1137 }
1138 continue;
1139 default:
1140 goto handle_unusual;
1141 } // switch
1142 handle_unusual:
1143 if ((tag == 0) || ((tag & 7) == 4)) {
1144 CHK_(ptr);
1145 ctx->SetLastTag(tag);
1146 goto message_done;
1147 }
1148 ptr = UnknownFieldParse(
1149 tag,
1150 _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
1151 ptr, ctx);
1152 CHK_(ptr != nullptr);
1153 } // while
1154 message_done:
1155 _impl_._has_bits_.Or(has_bits);
1156 return ptr;
1157 failure:
1158 ptr = nullptr;
1159 goto message_done;
1160 #undef CHK_
1161 }
1162
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const1163 ::uint8_t* WsCallDisconnectionReported::_InternalSerialize(
1164 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
1165 // @@protoc_insertion_point(serialize_to_array_start:android.os.statsd.wearservices.WsCallDisconnectionReported)
1166 ::uint32_t cached_has_bits = 0;
1167 (void) cached_has_bits;
1168
1169 cached_has_bits = _impl_._has_bits_[0];
1170 // optional .android.app.wearservices.DisconnectionReason reason = 1;
1171 if (cached_has_bits & 0x00000001u) {
1172 target = stream->EnsureSpace(target);
1173 target = ::_pbi::WireFormatLite::WriteEnumToArray(
1174 1, this->_internal_reason(), target);
1175 }
1176
1177 // optional .android.app.wearservices.DisconnectionErrorCode error_code = 2;
1178 if (cached_has_bits & 0x00000002u) {
1179 target = stream->EnsureSpace(target);
1180 target = ::_pbi::WireFormatLite::WriteEnumToArray(
1181 2, this->_internal_error_code(), target);
1182 }
1183
1184 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1185 target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1186 _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
1187 }
1188 // @@protoc_insertion_point(serialize_to_array_end:android.os.statsd.wearservices.WsCallDisconnectionReported)
1189 return target;
1190 }
1191
ByteSizeLong() const1192 size_t WsCallDisconnectionReported::ByteSizeLong() const {
1193 // @@protoc_insertion_point(message_byte_size_start:android.os.statsd.wearservices.WsCallDisconnectionReported)
1194 size_t total_size = 0;
1195
1196 ::uint32_t cached_has_bits = 0;
1197 // Prevent compiler warnings about cached_has_bits being unused
1198 (void) cached_has_bits;
1199
1200 cached_has_bits = _impl_._has_bits_[0];
1201 if (cached_has_bits & 0x00000003u) {
1202 // optional .android.app.wearservices.DisconnectionReason reason = 1;
1203 if (cached_has_bits & 0x00000001u) {
1204 total_size += 1 +
1205 ::_pbi::WireFormatLite::EnumSize(this->_internal_reason());
1206 }
1207
1208 // optional .android.app.wearservices.DisconnectionErrorCode error_code = 2;
1209 if (cached_has_bits & 0x00000002u) {
1210 total_size += 1 +
1211 ::_pbi::WireFormatLite::EnumSize(this->_internal_error_code());
1212 }
1213
1214 }
1215 return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
1216 }
1217
1218 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData WsCallDisconnectionReported::_class_data_ = {
1219 ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
1220 WsCallDisconnectionReported::MergeImpl
1221 };
GetClassData() const1222 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*WsCallDisconnectionReported::GetClassData() const { return &_class_data_; }
1223
1224
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)1225 void WsCallDisconnectionReported::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
1226 auto* const _this = static_cast<WsCallDisconnectionReported*>(&to_msg);
1227 auto& from = static_cast<const WsCallDisconnectionReported&>(from_msg);
1228 // @@protoc_insertion_point(class_specific_merge_from_start:android.os.statsd.wearservices.WsCallDisconnectionReported)
1229 GOOGLE_DCHECK_NE(&from, _this);
1230 ::uint32_t cached_has_bits = 0;
1231 (void) cached_has_bits;
1232
1233 cached_has_bits = from._impl_._has_bits_[0];
1234 if (cached_has_bits & 0x00000003u) {
1235 if (cached_has_bits & 0x00000001u) {
1236 _this->_impl_.reason_ = from._impl_.reason_;
1237 }
1238 if (cached_has_bits & 0x00000002u) {
1239 _this->_impl_.error_code_ = from._impl_.error_code_;
1240 }
1241 _this->_impl_._has_bits_[0] |= cached_has_bits;
1242 }
1243 _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1244 }
1245
CopyFrom(const WsCallDisconnectionReported & from)1246 void WsCallDisconnectionReported::CopyFrom(const WsCallDisconnectionReported& from) {
1247 // @@protoc_insertion_point(class_specific_copy_from_start:android.os.statsd.wearservices.WsCallDisconnectionReported)
1248 if (&from == this) return;
1249 Clear();
1250 MergeFrom(from);
1251 }
1252
IsInitialized() const1253 bool WsCallDisconnectionReported::IsInitialized() const {
1254 return true;
1255 }
1256
InternalSwap(WsCallDisconnectionReported * other)1257 void WsCallDisconnectionReported::InternalSwap(WsCallDisconnectionReported* other) {
1258 using std::swap;
1259 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1260 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1261 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
1262 PROTOBUF_FIELD_OFFSET(WsCallDisconnectionReported, _impl_.error_code_)
1263 + sizeof(WsCallDisconnectionReported::_impl_.error_code_) // NOLINT
1264 - PROTOBUF_FIELD_OFFSET(WsCallDisconnectionReported, _impl_.reason_)>(
1265 reinterpret_cast<char*>(&_impl_.reason_),
1266 reinterpret_cast<char*>(&other->_impl_.reason_));
1267 }
1268
GetMetadata() const1269 ::PROTOBUF_NAMESPACE_ID::Metadata WsCallDisconnectionReported::GetMetadata() const {
1270 return ::_pbi::AssignDescriptors(
1271 &descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto_getter, &descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto_once,
1272 file_level_metadata_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto[1]);
1273 }
1274
1275 // ===================================================================
1276
1277 class WsCallDurationReported::_Internal {
1278 public:
1279 using HasBits = decltype(std::declval<WsCallDurationReported>()._impl_._has_bits_);
set_has_call_type(HasBits * has_bits)1280 static void set_has_call_type(HasBits* has_bits) {
1281 (*has_bits)[0] |= 1u;
1282 }
set_has_is_initiated_or_accepted_on_watch(HasBits * has_bits)1283 static void set_has_is_initiated_or_accepted_on_watch(HasBits* has_bits) {
1284 (*has_bits)[0] |= 2u;
1285 }
set_has_call_source(HasBits * has_bits)1286 static void set_has_call_source(HasBits* has_bits) {
1287 (*has_bits)[0] |= 4u;
1288 }
set_has_call_duration_millis(HasBits * has_bits)1289 static void set_has_call_duration_millis(HasBits* has_bits) {
1290 (*has_bits)[0] |= 8u;
1291 }
1292 };
1293
WsCallDurationReported(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)1294 WsCallDurationReported::WsCallDurationReported(::PROTOBUF_NAMESPACE_ID::Arena* arena,
1295 bool is_message_owned)
1296 : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
1297 SharedCtor(arena, is_message_owned);
1298 // @@protoc_insertion_point(arena_constructor:android.os.statsd.wearservices.WsCallDurationReported)
1299 }
WsCallDurationReported(const WsCallDurationReported & from)1300 WsCallDurationReported::WsCallDurationReported(const WsCallDurationReported& from)
1301 : ::PROTOBUF_NAMESPACE_ID::Message() {
1302 WsCallDurationReported* const _this = this; (void)_this;
1303 new (&_impl_) Impl_{
1304 decltype(_impl_._has_bits_){from._impl_._has_bits_}
1305 , /*decltype(_impl_._cached_size_)*/{}
1306 , decltype(_impl_.call_type_){}
1307 , decltype(_impl_.is_initiated_or_accepted_on_watch_){}
1308 , decltype(_impl_.call_source_){}
1309 , decltype(_impl_.call_duration_millis_){}};
1310
1311 _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1312 ::memcpy(&_impl_.call_type_, &from._impl_.call_type_,
1313 static_cast<size_t>(reinterpret_cast<char*>(&_impl_.call_duration_millis_) -
1314 reinterpret_cast<char*>(&_impl_.call_type_)) + sizeof(_impl_.call_duration_millis_));
1315 // @@protoc_insertion_point(copy_constructor:android.os.statsd.wearservices.WsCallDurationReported)
1316 }
1317
SharedCtor(::_pb::Arena * arena,bool is_message_owned)1318 inline void WsCallDurationReported::SharedCtor(
1319 ::_pb::Arena* arena, bool is_message_owned) {
1320 (void)arena;
1321 (void)is_message_owned;
1322 new (&_impl_) Impl_{
1323 decltype(_impl_._has_bits_){}
1324 , /*decltype(_impl_._cached_size_)*/{}
1325 , decltype(_impl_.call_type_){0}
1326 , decltype(_impl_.is_initiated_or_accepted_on_watch_){false}
1327 , decltype(_impl_.call_source_){0}
1328 , decltype(_impl_.call_duration_millis_){0}
1329 };
1330 }
1331
~WsCallDurationReported()1332 WsCallDurationReported::~WsCallDurationReported() {
1333 // @@protoc_insertion_point(destructor:android.os.statsd.wearservices.WsCallDurationReported)
1334 if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
1335 (void)arena;
1336 return;
1337 }
1338 SharedDtor();
1339 }
1340
SharedDtor()1341 inline void WsCallDurationReported::SharedDtor() {
1342 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
1343 }
1344
SetCachedSize(int size) const1345 void WsCallDurationReported::SetCachedSize(int size) const {
1346 _impl_._cached_size_.Set(size);
1347 }
1348
Clear()1349 void WsCallDurationReported::Clear() {
1350 // @@protoc_insertion_point(message_clear_start:android.os.statsd.wearservices.WsCallDurationReported)
1351 ::uint32_t cached_has_bits = 0;
1352 // Prevent compiler warnings about cached_has_bits being unused
1353 (void) cached_has_bits;
1354
1355 cached_has_bits = _impl_._has_bits_[0];
1356 if (cached_has_bits & 0x0000000fu) {
1357 ::memset(&_impl_.call_type_, 0, static_cast<size_t>(
1358 reinterpret_cast<char*>(&_impl_.call_duration_millis_) -
1359 reinterpret_cast<char*>(&_impl_.call_type_)) + sizeof(_impl_.call_duration_millis_));
1360 }
1361 _impl_._has_bits_.Clear();
1362 _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
1363 }
1364
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)1365 const char* WsCallDurationReported::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
1366 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1367 _Internal::HasBits has_bits{};
1368 while (!ctx->Done(&ptr)) {
1369 ::uint32_t tag;
1370 ptr = ::_pbi::ReadTag(ptr, &tag);
1371 switch (tag >> 3) {
1372 // optional .android.app.wearservices.CallType call_type = 1;
1373 case 1:
1374 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
1375 ::uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
1376 CHK_(ptr);
1377 if (PROTOBUF_PREDICT_TRUE(::android::app::wearservices::CallType_IsValid(val))) {
1378 _internal_set_call_type(static_cast<::android::app::wearservices::CallType>(val));
1379 } else {
1380 ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields());
1381 }
1382 } else {
1383 goto handle_unusual;
1384 }
1385 continue;
1386 // optional bool is_initiated_or_accepted_on_watch = 2;
1387 case 2:
1388 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
1389 _Internal::set_has_is_initiated_or_accepted_on_watch(&has_bits);
1390 _impl_.is_initiated_or_accepted_on_watch_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
1391 CHK_(ptr);
1392 } else {
1393 goto handle_unusual;
1394 }
1395 continue;
1396 // optional .android.app.wearservices.CallSource call_source = 3;
1397 case 3:
1398 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
1399 ::uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
1400 CHK_(ptr);
1401 if (PROTOBUF_PREDICT_TRUE(::android::app::wearservices::CallSource_IsValid(val))) {
1402 _internal_set_call_source(static_cast<::android::app::wearservices::CallSource>(val));
1403 } else {
1404 ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(3, val, mutable_unknown_fields());
1405 }
1406 } else {
1407 goto handle_unusual;
1408 }
1409 continue;
1410 // optional int32 call_duration_millis = 4;
1411 case 4:
1412 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) {
1413 _Internal::set_has_call_duration_millis(&has_bits);
1414 _impl_.call_duration_millis_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1415 CHK_(ptr);
1416 } else {
1417 goto handle_unusual;
1418 }
1419 continue;
1420 default:
1421 goto handle_unusual;
1422 } // switch
1423 handle_unusual:
1424 if ((tag == 0) || ((tag & 7) == 4)) {
1425 CHK_(ptr);
1426 ctx->SetLastTag(tag);
1427 goto message_done;
1428 }
1429 ptr = UnknownFieldParse(
1430 tag,
1431 _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
1432 ptr, ctx);
1433 CHK_(ptr != nullptr);
1434 } // while
1435 message_done:
1436 _impl_._has_bits_.Or(has_bits);
1437 return ptr;
1438 failure:
1439 ptr = nullptr;
1440 goto message_done;
1441 #undef CHK_
1442 }
1443
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const1444 ::uint8_t* WsCallDurationReported::_InternalSerialize(
1445 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
1446 // @@protoc_insertion_point(serialize_to_array_start:android.os.statsd.wearservices.WsCallDurationReported)
1447 ::uint32_t cached_has_bits = 0;
1448 (void) cached_has_bits;
1449
1450 cached_has_bits = _impl_._has_bits_[0];
1451 // optional .android.app.wearservices.CallType call_type = 1;
1452 if (cached_has_bits & 0x00000001u) {
1453 target = stream->EnsureSpace(target);
1454 target = ::_pbi::WireFormatLite::WriteEnumToArray(
1455 1, this->_internal_call_type(), target);
1456 }
1457
1458 // optional bool is_initiated_or_accepted_on_watch = 2;
1459 if (cached_has_bits & 0x00000002u) {
1460 target = stream->EnsureSpace(target);
1461 target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_is_initiated_or_accepted_on_watch(), target);
1462 }
1463
1464 // optional .android.app.wearservices.CallSource call_source = 3;
1465 if (cached_has_bits & 0x00000004u) {
1466 target = stream->EnsureSpace(target);
1467 target = ::_pbi::WireFormatLite::WriteEnumToArray(
1468 3, this->_internal_call_source(), target);
1469 }
1470
1471 // optional int32 call_duration_millis = 4;
1472 if (cached_has_bits & 0x00000008u) {
1473 target = stream->EnsureSpace(target);
1474 target = ::_pbi::WireFormatLite::WriteInt32ToArray(4, this->_internal_call_duration_millis(), target);
1475 }
1476
1477 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1478 target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1479 _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
1480 }
1481 // @@protoc_insertion_point(serialize_to_array_end:android.os.statsd.wearservices.WsCallDurationReported)
1482 return target;
1483 }
1484
ByteSizeLong() const1485 size_t WsCallDurationReported::ByteSizeLong() const {
1486 // @@protoc_insertion_point(message_byte_size_start:android.os.statsd.wearservices.WsCallDurationReported)
1487 size_t total_size = 0;
1488
1489 ::uint32_t cached_has_bits = 0;
1490 // Prevent compiler warnings about cached_has_bits being unused
1491 (void) cached_has_bits;
1492
1493 cached_has_bits = _impl_._has_bits_[0];
1494 if (cached_has_bits & 0x0000000fu) {
1495 // optional .android.app.wearservices.CallType call_type = 1;
1496 if (cached_has_bits & 0x00000001u) {
1497 total_size += 1 +
1498 ::_pbi::WireFormatLite::EnumSize(this->_internal_call_type());
1499 }
1500
1501 // optional bool is_initiated_or_accepted_on_watch = 2;
1502 if (cached_has_bits & 0x00000002u) {
1503 total_size += 1 + 1;
1504 }
1505
1506 // optional .android.app.wearservices.CallSource call_source = 3;
1507 if (cached_has_bits & 0x00000004u) {
1508 total_size += 1 +
1509 ::_pbi::WireFormatLite::EnumSize(this->_internal_call_source());
1510 }
1511
1512 // optional int32 call_duration_millis = 4;
1513 if (cached_has_bits & 0x00000008u) {
1514 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_call_duration_millis());
1515 }
1516
1517 }
1518 return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
1519 }
1520
1521 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData WsCallDurationReported::_class_data_ = {
1522 ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
1523 WsCallDurationReported::MergeImpl
1524 };
GetClassData() const1525 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*WsCallDurationReported::GetClassData() const { return &_class_data_; }
1526
1527
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)1528 void WsCallDurationReported::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
1529 auto* const _this = static_cast<WsCallDurationReported*>(&to_msg);
1530 auto& from = static_cast<const WsCallDurationReported&>(from_msg);
1531 // @@protoc_insertion_point(class_specific_merge_from_start:android.os.statsd.wearservices.WsCallDurationReported)
1532 GOOGLE_DCHECK_NE(&from, _this);
1533 ::uint32_t cached_has_bits = 0;
1534 (void) cached_has_bits;
1535
1536 cached_has_bits = from._impl_._has_bits_[0];
1537 if (cached_has_bits & 0x0000000fu) {
1538 if (cached_has_bits & 0x00000001u) {
1539 _this->_impl_.call_type_ = from._impl_.call_type_;
1540 }
1541 if (cached_has_bits & 0x00000002u) {
1542 _this->_impl_.is_initiated_or_accepted_on_watch_ = from._impl_.is_initiated_or_accepted_on_watch_;
1543 }
1544 if (cached_has_bits & 0x00000004u) {
1545 _this->_impl_.call_source_ = from._impl_.call_source_;
1546 }
1547 if (cached_has_bits & 0x00000008u) {
1548 _this->_impl_.call_duration_millis_ = from._impl_.call_duration_millis_;
1549 }
1550 _this->_impl_._has_bits_[0] |= cached_has_bits;
1551 }
1552 _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1553 }
1554
CopyFrom(const WsCallDurationReported & from)1555 void WsCallDurationReported::CopyFrom(const WsCallDurationReported& from) {
1556 // @@protoc_insertion_point(class_specific_copy_from_start:android.os.statsd.wearservices.WsCallDurationReported)
1557 if (&from == this) return;
1558 Clear();
1559 MergeFrom(from);
1560 }
1561
IsInitialized() const1562 bool WsCallDurationReported::IsInitialized() const {
1563 return true;
1564 }
1565
InternalSwap(WsCallDurationReported * other)1566 void WsCallDurationReported::InternalSwap(WsCallDurationReported* other) {
1567 using std::swap;
1568 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1569 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1570 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
1571 PROTOBUF_FIELD_OFFSET(WsCallDurationReported, _impl_.call_duration_millis_)
1572 + sizeof(WsCallDurationReported::_impl_.call_duration_millis_) // NOLINT
1573 - PROTOBUF_FIELD_OFFSET(WsCallDurationReported, _impl_.call_type_)>(
1574 reinterpret_cast<char*>(&_impl_.call_type_),
1575 reinterpret_cast<char*>(&other->_impl_.call_type_));
1576 }
1577
GetMetadata() const1578 ::PROTOBUF_NAMESPACE_ID::Metadata WsCallDurationReported::GetMetadata() const {
1579 return ::_pbi::AssignDescriptors(
1580 &descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto_getter, &descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto_once,
1581 file_level_metadata_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto[2]);
1582 }
1583
1584 // ===================================================================
1585
1586 class WsCallUserExperienceLatencyReported::_Internal {
1587 public:
1588 using HasBits = decltype(std::declval<WsCallUserExperienceLatencyReported>()._impl_._has_bits_);
set_has_latency_action(HasBits * has_bits)1589 static void set_has_latency_action(HasBits* has_bits) {
1590 (*has_bits)[0] |= 1u;
1591 }
set_has_result(HasBits * has_bits)1592 static void set_has_result(HasBits* has_bits) {
1593 (*has_bits)[0] |= 2u;
1594 }
set_has_latency_duration_millis(HasBits * has_bits)1595 static void set_has_latency_duration_millis(HasBits* has_bits) {
1596 (*has_bits)[0] |= 4u;
1597 }
1598 };
1599
WsCallUserExperienceLatencyReported(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)1600 WsCallUserExperienceLatencyReported::WsCallUserExperienceLatencyReported(::PROTOBUF_NAMESPACE_ID::Arena* arena,
1601 bool is_message_owned)
1602 : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
1603 SharedCtor(arena, is_message_owned);
1604 // @@protoc_insertion_point(arena_constructor:android.os.statsd.wearservices.WsCallUserExperienceLatencyReported)
1605 }
WsCallUserExperienceLatencyReported(const WsCallUserExperienceLatencyReported & from)1606 WsCallUserExperienceLatencyReported::WsCallUserExperienceLatencyReported(const WsCallUserExperienceLatencyReported& from)
1607 : ::PROTOBUF_NAMESPACE_ID::Message() {
1608 WsCallUserExperienceLatencyReported* const _this = this; (void)_this;
1609 new (&_impl_) Impl_{
1610 decltype(_impl_._has_bits_){from._impl_._has_bits_}
1611 , /*decltype(_impl_._cached_size_)*/{}
1612 , decltype(_impl_.latency_action_){}
1613 , decltype(_impl_.result_){}
1614 , decltype(_impl_.latency_duration_millis_){}};
1615
1616 _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1617 ::memcpy(&_impl_.latency_action_, &from._impl_.latency_action_,
1618 static_cast<size_t>(reinterpret_cast<char*>(&_impl_.latency_duration_millis_) -
1619 reinterpret_cast<char*>(&_impl_.latency_action_)) + sizeof(_impl_.latency_duration_millis_));
1620 // @@protoc_insertion_point(copy_constructor:android.os.statsd.wearservices.WsCallUserExperienceLatencyReported)
1621 }
1622
SharedCtor(::_pb::Arena * arena,bool is_message_owned)1623 inline void WsCallUserExperienceLatencyReported::SharedCtor(
1624 ::_pb::Arena* arena, bool is_message_owned) {
1625 (void)arena;
1626 (void)is_message_owned;
1627 new (&_impl_) Impl_{
1628 decltype(_impl_._has_bits_){}
1629 , /*decltype(_impl_._cached_size_)*/{}
1630 , decltype(_impl_.latency_action_){0}
1631 , decltype(_impl_.result_){0}
1632 , decltype(_impl_.latency_duration_millis_){0}
1633 };
1634 }
1635
~WsCallUserExperienceLatencyReported()1636 WsCallUserExperienceLatencyReported::~WsCallUserExperienceLatencyReported() {
1637 // @@protoc_insertion_point(destructor:android.os.statsd.wearservices.WsCallUserExperienceLatencyReported)
1638 if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
1639 (void)arena;
1640 return;
1641 }
1642 SharedDtor();
1643 }
1644
SharedDtor()1645 inline void WsCallUserExperienceLatencyReported::SharedDtor() {
1646 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
1647 }
1648
SetCachedSize(int size) const1649 void WsCallUserExperienceLatencyReported::SetCachedSize(int size) const {
1650 _impl_._cached_size_.Set(size);
1651 }
1652
Clear()1653 void WsCallUserExperienceLatencyReported::Clear() {
1654 // @@protoc_insertion_point(message_clear_start:android.os.statsd.wearservices.WsCallUserExperienceLatencyReported)
1655 ::uint32_t cached_has_bits = 0;
1656 // Prevent compiler warnings about cached_has_bits being unused
1657 (void) cached_has_bits;
1658
1659 cached_has_bits = _impl_._has_bits_[0];
1660 if (cached_has_bits & 0x00000007u) {
1661 ::memset(&_impl_.latency_action_, 0, static_cast<size_t>(
1662 reinterpret_cast<char*>(&_impl_.latency_duration_millis_) -
1663 reinterpret_cast<char*>(&_impl_.latency_action_)) + sizeof(_impl_.latency_duration_millis_));
1664 }
1665 _impl_._has_bits_.Clear();
1666 _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
1667 }
1668
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)1669 const char* WsCallUserExperienceLatencyReported::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
1670 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1671 _Internal::HasBits has_bits{};
1672 while (!ctx->Done(&ptr)) {
1673 ::uint32_t tag;
1674 ptr = ::_pbi::ReadTag(ptr, &tag);
1675 switch (tag >> 3) {
1676 // optional .android.app.wearservices.LatencyAction latency_action = 1;
1677 case 1:
1678 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
1679 ::uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
1680 CHK_(ptr);
1681 if (PROTOBUF_PREDICT_TRUE(::android::app::wearservices::LatencyAction_IsValid(val))) {
1682 _internal_set_latency_action(static_cast<::android::app::wearservices::LatencyAction>(val));
1683 } else {
1684 ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields());
1685 }
1686 } else {
1687 goto handle_unusual;
1688 }
1689 continue;
1690 // optional .android.app.wearservices.CallResult result = 2;
1691 case 2:
1692 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
1693 ::uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
1694 CHK_(ptr);
1695 if (PROTOBUF_PREDICT_TRUE(::android::app::wearservices::CallResult_IsValid(val))) {
1696 _internal_set_result(static_cast<::android::app::wearservices::CallResult>(val));
1697 } else {
1698 ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields());
1699 }
1700 } else {
1701 goto handle_unusual;
1702 }
1703 continue;
1704 // optional int32 latency_duration_millis = 3;
1705 case 3:
1706 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
1707 _Internal::set_has_latency_duration_millis(&has_bits);
1708 _impl_.latency_duration_millis_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1709 CHK_(ptr);
1710 } else {
1711 goto handle_unusual;
1712 }
1713 continue;
1714 default:
1715 goto handle_unusual;
1716 } // switch
1717 handle_unusual:
1718 if ((tag == 0) || ((tag & 7) == 4)) {
1719 CHK_(ptr);
1720 ctx->SetLastTag(tag);
1721 goto message_done;
1722 }
1723 ptr = UnknownFieldParse(
1724 tag,
1725 _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
1726 ptr, ctx);
1727 CHK_(ptr != nullptr);
1728 } // while
1729 message_done:
1730 _impl_._has_bits_.Or(has_bits);
1731 return ptr;
1732 failure:
1733 ptr = nullptr;
1734 goto message_done;
1735 #undef CHK_
1736 }
1737
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const1738 ::uint8_t* WsCallUserExperienceLatencyReported::_InternalSerialize(
1739 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
1740 // @@protoc_insertion_point(serialize_to_array_start:android.os.statsd.wearservices.WsCallUserExperienceLatencyReported)
1741 ::uint32_t cached_has_bits = 0;
1742 (void) cached_has_bits;
1743
1744 cached_has_bits = _impl_._has_bits_[0];
1745 // optional .android.app.wearservices.LatencyAction latency_action = 1;
1746 if (cached_has_bits & 0x00000001u) {
1747 target = stream->EnsureSpace(target);
1748 target = ::_pbi::WireFormatLite::WriteEnumToArray(
1749 1, this->_internal_latency_action(), target);
1750 }
1751
1752 // optional .android.app.wearservices.CallResult result = 2;
1753 if (cached_has_bits & 0x00000002u) {
1754 target = stream->EnsureSpace(target);
1755 target = ::_pbi::WireFormatLite::WriteEnumToArray(
1756 2, this->_internal_result(), target);
1757 }
1758
1759 // optional int32 latency_duration_millis = 3;
1760 if (cached_has_bits & 0x00000004u) {
1761 target = stream->EnsureSpace(target);
1762 target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_latency_duration_millis(), target);
1763 }
1764
1765 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1766 target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1767 _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
1768 }
1769 // @@protoc_insertion_point(serialize_to_array_end:android.os.statsd.wearservices.WsCallUserExperienceLatencyReported)
1770 return target;
1771 }
1772
ByteSizeLong() const1773 size_t WsCallUserExperienceLatencyReported::ByteSizeLong() const {
1774 // @@protoc_insertion_point(message_byte_size_start:android.os.statsd.wearservices.WsCallUserExperienceLatencyReported)
1775 size_t total_size = 0;
1776
1777 ::uint32_t cached_has_bits = 0;
1778 // Prevent compiler warnings about cached_has_bits being unused
1779 (void) cached_has_bits;
1780
1781 cached_has_bits = _impl_._has_bits_[0];
1782 if (cached_has_bits & 0x00000007u) {
1783 // optional .android.app.wearservices.LatencyAction latency_action = 1;
1784 if (cached_has_bits & 0x00000001u) {
1785 total_size += 1 +
1786 ::_pbi::WireFormatLite::EnumSize(this->_internal_latency_action());
1787 }
1788
1789 // optional .android.app.wearservices.CallResult result = 2;
1790 if (cached_has_bits & 0x00000002u) {
1791 total_size += 1 +
1792 ::_pbi::WireFormatLite::EnumSize(this->_internal_result());
1793 }
1794
1795 // optional int32 latency_duration_millis = 3;
1796 if (cached_has_bits & 0x00000004u) {
1797 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_latency_duration_millis());
1798 }
1799
1800 }
1801 return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
1802 }
1803
1804 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData WsCallUserExperienceLatencyReported::_class_data_ = {
1805 ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
1806 WsCallUserExperienceLatencyReported::MergeImpl
1807 };
GetClassData() const1808 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*WsCallUserExperienceLatencyReported::GetClassData() const { return &_class_data_; }
1809
1810
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)1811 void WsCallUserExperienceLatencyReported::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
1812 auto* const _this = static_cast<WsCallUserExperienceLatencyReported*>(&to_msg);
1813 auto& from = static_cast<const WsCallUserExperienceLatencyReported&>(from_msg);
1814 // @@protoc_insertion_point(class_specific_merge_from_start:android.os.statsd.wearservices.WsCallUserExperienceLatencyReported)
1815 GOOGLE_DCHECK_NE(&from, _this);
1816 ::uint32_t cached_has_bits = 0;
1817 (void) cached_has_bits;
1818
1819 cached_has_bits = from._impl_._has_bits_[0];
1820 if (cached_has_bits & 0x00000007u) {
1821 if (cached_has_bits & 0x00000001u) {
1822 _this->_impl_.latency_action_ = from._impl_.latency_action_;
1823 }
1824 if (cached_has_bits & 0x00000002u) {
1825 _this->_impl_.result_ = from._impl_.result_;
1826 }
1827 if (cached_has_bits & 0x00000004u) {
1828 _this->_impl_.latency_duration_millis_ = from._impl_.latency_duration_millis_;
1829 }
1830 _this->_impl_._has_bits_[0] |= cached_has_bits;
1831 }
1832 _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1833 }
1834
CopyFrom(const WsCallUserExperienceLatencyReported & from)1835 void WsCallUserExperienceLatencyReported::CopyFrom(const WsCallUserExperienceLatencyReported& from) {
1836 // @@protoc_insertion_point(class_specific_copy_from_start:android.os.statsd.wearservices.WsCallUserExperienceLatencyReported)
1837 if (&from == this) return;
1838 Clear();
1839 MergeFrom(from);
1840 }
1841
IsInitialized() const1842 bool WsCallUserExperienceLatencyReported::IsInitialized() const {
1843 return true;
1844 }
1845
InternalSwap(WsCallUserExperienceLatencyReported * other)1846 void WsCallUserExperienceLatencyReported::InternalSwap(WsCallUserExperienceLatencyReported* other) {
1847 using std::swap;
1848 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1849 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1850 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
1851 PROTOBUF_FIELD_OFFSET(WsCallUserExperienceLatencyReported, _impl_.latency_duration_millis_)
1852 + sizeof(WsCallUserExperienceLatencyReported::_impl_.latency_duration_millis_) // NOLINT
1853 - PROTOBUF_FIELD_OFFSET(WsCallUserExperienceLatencyReported, _impl_.latency_action_)>(
1854 reinterpret_cast<char*>(&_impl_.latency_action_),
1855 reinterpret_cast<char*>(&other->_impl_.latency_action_));
1856 }
1857
GetMetadata() const1858 ::PROTOBUF_NAMESPACE_ID::Metadata WsCallUserExperienceLatencyReported::GetMetadata() const {
1859 return ::_pbi::AssignDescriptors(
1860 &descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto_getter, &descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto_once,
1861 file_level_metadata_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto[3]);
1862 }
1863
1864 // ===================================================================
1865
1866 class WsCallInteractionReported::_Internal {
1867 public:
1868 using HasBits = decltype(std::declval<WsCallInteractionReported>()._impl_._has_bits_);
set_has_interaction(HasBits * has_bits)1869 static void set_has_interaction(HasBits* has_bits) {
1870 (*has_bits)[0] |= 1u;
1871 }
set_has_call_source(HasBits * has_bits)1872 static void set_has_call_source(HasBits* has_bits) {
1873 (*has_bits)[0] |= 2u;
1874 }
1875 };
1876
WsCallInteractionReported(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)1877 WsCallInteractionReported::WsCallInteractionReported(::PROTOBUF_NAMESPACE_ID::Arena* arena,
1878 bool is_message_owned)
1879 : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
1880 SharedCtor(arena, is_message_owned);
1881 // @@protoc_insertion_point(arena_constructor:android.os.statsd.wearservices.WsCallInteractionReported)
1882 }
WsCallInteractionReported(const WsCallInteractionReported & from)1883 WsCallInteractionReported::WsCallInteractionReported(const WsCallInteractionReported& from)
1884 : ::PROTOBUF_NAMESPACE_ID::Message() {
1885 WsCallInteractionReported* const _this = this; (void)_this;
1886 new (&_impl_) Impl_{
1887 decltype(_impl_._has_bits_){from._impl_._has_bits_}
1888 , /*decltype(_impl_._cached_size_)*/{}
1889 , decltype(_impl_.interaction_){}
1890 , decltype(_impl_.call_source_){}};
1891
1892 _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1893 ::memcpy(&_impl_.interaction_, &from._impl_.interaction_,
1894 static_cast<size_t>(reinterpret_cast<char*>(&_impl_.call_source_) -
1895 reinterpret_cast<char*>(&_impl_.interaction_)) + sizeof(_impl_.call_source_));
1896 // @@protoc_insertion_point(copy_constructor:android.os.statsd.wearservices.WsCallInteractionReported)
1897 }
1898
SharedCtor(::_pb::Arena * arena,bool is_message_owned)1899 inline void WsCallInteractionReported::SharedCtor(
1900 ::_pb::Arena* arena, bool is_message_owned) {
1901 (void)arena;
1902 (void)is_message_owned;
1903 new (&_impl_) Impl_{
1904 decltype(_impl_._has_bits_){}
1905 , /*decltype(_impl_._cached_size_)*/{}
1906 , decltype(_impl_.interaction_){0}
1907 , decltype(_impl_.call_source_){0}
1908 };
1909 }
1910
~WsCallInteractionReported()1911 WsCallInteractionReported::~WsCallInteractionReported() {
1912 // @@protoc_insertion_point(destructor:android.os.statsd.wearservices.WsCallInteractionReported)
1913 if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
1914 (void)arena;
1915 return;
1916 }
1917 SharedDtor();
1918 }
1919
SharedDtor()1920 inline void WsCallInteractionReported::SharedDtor() {
1921 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
1922 }
1923
SetCachedSize(int size) const1924 void WsCallInteractionReported::SetCachedSize(int size) const {
1925 _impl_._cached_size_.Set(size);
1926 }
1927
Clear()1928 void WsCallInteractionReported::Clear() {
1929 // @@protoc_insertion_point(message_clear_start:android.os.statsd.wearservices.WsCallInteractionReported)
1930 ::uint32_t cached_has_bits = 0;
1931 // Prevent compiler warnings about cached_has_bits being unused
1932 (void) cached_has_bits;
1933
1934 cached_has_bits = _impl_._has_bits_[0];
1935 if (cached_has_bits & 0x00000003u) {
1936 ::memset(&_impl_.interaction_, 0, static_cast<size_t>(
1937 reinterpret_cast<char*>(&_impl_.call_source_) -
1938 reinterpret_cast<char*>(&_impl_.interaction_)) + sizeof(_impl_.call_source_));
1939 }
1940 _impl_._has_bits_.Clear();
1941 _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
1942 }
1943
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)1944 const char* WsCallInteractionReported::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
1945 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1946 _Internal::HasBits has_bits{};
1947 while (!ctx->Done(&ptr)) {
1948 ::uint32_t tag;
1949 ptr = ::_pbi::ReadTag(ptr, &tag);
1950 switch (tag >> 3) {
1951 // optional .android.app.wearservices.CallInteraction interaction = 1;
1952 case 1:
1953 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
1954 ::uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
1955 CHK_(ptr);
1956 if (PROTOBUF_PREDICT_TRUE(::android::app::wearservices::CallInteraction_IsValid(val))) {
1957 _internal_set_interaction(static_cast<::android::app::wearservices::CallInteraction>(val));
1958 } else {
1959 ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields());
1960 }
1961 } else {
1962 goto handle_unusual;
1963 }
1964 continue;
1965 // optional .android.app.wearservices.CallSource call_source = 2;
1966 case 2:
1967 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
1968 ::uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
1969 CHK_(ptr);
1970 if (PROTOBUF_PREDICT_TRUE(::android::app::wearservices::CallSource_IsValid(val))) {
1971 _internal_set_call_source(static_cast<::android::app::wearservices::CallSource>(val));
1972 } else {
1973 ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields());
1974 }
1975 } else {
1976 goto handle_unusual;
1977 }
1978 continue;
1979 default:
1980 goto handle_unusual;
1981 } // switch
1982 handle_unusual:
1983 if ((tag == 0) || ((tag & 7) == 4)) {
1984 CHK_(ptr);
1985 ctx->SetLastTag(tag);
1986 goto message_done;
1987 }
1988 ptr = UnknownFieldParse(
1989 tag,
1990 _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
1991 ptr, ctx);
1992 CHK_(ptr != nullptr);
1993 } // while
1994 message_done:
1995 _impl_._has_bits_.Or(has_bits);
1996 return ptr;
1997 failure:
1998 ptr = nullptr;
1999 goto message_done;
2000 #undef CHK_
2001 }
2002
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const2003 ::uint8_t* WsCallInteractionReported::_InternalSerialize(
2004 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
2005 // @@protoc_insertion_point(serialize_to_array_start:android.os.statsd.wearservices.WsCallInteractionReported)
2006 ::uint32_t cached_has_bits = 0;
2007 (void) cached_has_bits;
2008
2009 cached_has_bits = _impl_._has_bits_[0];
2010 // optional .android.app.wearservices.CallInteraction interaction = 1;
2011 if (cached_has_bits & 0x00000001u) {
2012 target = stream->EnsureSpace(target);
2013 target = ::_pbi::WireFormatLite::WriteEnumToArray(
2014 1, this->_internal_interaction(), target);
2015 }
2016
2017 // optional .android.app.wearservices.CallSource call_source = 2;
2018 if (cached_has_bits & 0x00000002u) {
2019 target = stream->EnsureSpace(target);
2020 target = ::_pbi::WireFormatLite::WriteEnumToArray(
2021 2, this->_internal_call_source(), target);
2022 }
2023
2024 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2025 target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
2026 _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
2027 }
2028 // @@protoc_insertion_point(serialize_to_array_end:android.os.statsd.wearservices.WsCallInteractionReported)
2029 return target;
2030 }
2031
ByteSizeLong() const2032 size_t WsCallInteractionReported::ByteSizeLong() const {
2033 // @@protoc_insertion_point(message_byte_size_start:android.os.statsd.wearservices.WsCallInteractionReported)
2034 size_t total_size = 0;
2035
2036 ::uint32_t cached_has_bits = 0;
2037 // Prevent compiler warnings about cached_has_bits being unused
2038 (void) cached_has_bits;
2039
2040 cached_has_bits = _impl_._has_bits_[0];
2041 if (cached_has_bits & 0x00000003u) {
2042 // optional .android.app.wearservices.CallInteraction interaction = 1;
2043 if (cached_has_bits & 0x00000001u) {
2044 total_size += 1 +
2045 ::_pbi::WireFormatLite::EnumSize(this->_internal_interaction());
2046 }
2047
2048 // optional .android.app.wearservices.CallSource call_source = 2;
2049 if (cached_has_bits & 0x00000002u) {
2050 total_size += 1 +
2051 ::_pbi::WireFormatLite::EnumSize(this->_internal_call_source());
2052 }
2053
2054 }
2055 return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
2056 }
2057
2058 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData WsCallInteractionReported::_class_data_ = {
2059 ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
2060 WsCallInteractionReported::MergeImpl
2061 };
GetClassData() const2062 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*WsCallInteractionReported::GetClassData() const { return &_class_data_; }
2063
2064
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)2065 void WsCallInteractionReported::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
2066 auto* const _this = static_cast<WsCallInteractionReported*>(&to_msg);
2067 auto& from = static_cast<const WsCallInteractionReported&>(from_msg);
2068 // @@protoc_insertion_point(class_specific_merge_from_start:android.os.statsd.wearservices.WsCallInteractionReported)
2069 GOOGLE_DCHECK_NE(&from, _this);
2070 ::uint32_t cached_has_bits = 0;
2071 (void) cached_has_bits;
2072
2073 cached_has_bits = from._impl_._has_bits_[0];
2074 if (cached_has_bits & 0x00000003u) {
2075 if (cached_has_bits & 0x00000001u) {
2076 _this->_impl_.interaction_ = from._impl_.interaction_;
2077 }
2078 if (cached_has_bits & 0x00000002u) {
2079 _this->_impl_.call_source_ = from._impl_.call_source_;
2080 }
2081 _this->_impl_._has_bits_[0] |= cached_has_bits;
2082 }
2083 _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
2084 }
2085
CopyFrom(const WsCallInteractionReported & from)2086 void WsCallInteractionReported::CopyFrom(const WsCallInteractionReported& from) {
2087 // @@protoc_insertion_point(class_specific_copy_from_start:android.os.statsd.wearservices.WsCallInteractionReported)
2088 if (&from == this) return;
2089 Clear();
2090 MergeFrom(from);
2091 }
2092
IsInitialized() const2093 bool WsCallInteractionReported::IsInitialized() const {
2094 return true;
2095 }
2096
InternalSwap(WsCallInteractionReported * other)2097 void WsCallInteractionReported::InternalSwap(WsCallInteractionReported* other) {
2098 using std::swap;
2099 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2100 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
2101 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
2102 PROTOBUF_FIELD_OFFSET(WsCallInteractionReported, _impl_.call_source_)
2103 + sizeof(WsCallInteractionReported::_impl_.call_source_) // NOLINT
2104 - PROTOBUF_FIELD_OFFSET(WsCallInteractionReported, _impl_.interaction_)>(
2105 reinterpret_cast<char*>(&_impl_.interaction_),
2106 reinterpret_cast<char*>(&other->_impl_.interaction_));
2107 }
2108
GetMetadata() const2109 ::PROTOBUF_NAMESPACE_ID::Metadata WsCallInteractionReported::GetMetadata() const {
2110 return ::_pbi::AssignDescriptors(
2111 &descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto_getter, &descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto_once,
2112 file_level_metadata_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto[4]);
2113 }
2114
2115 // ===================================================================
2116
2117 class WsWearTimeSession::_Internal {
2118 public:
2119 using HasBits = decltype(std::declval<WsWearTimeSession>()._impl_._has_bits_);
set_has_session_duration_millis(HasBits * has_bits)2120 static void set_has_session_duration_millis(HasBits* has_bits) {
2121 (*has_bits)[0] |= 1u;
2122 }
2123 };
2124
WsWearTimeSession(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)2125 WsWearTimeSession::WsWearTimeSession(::PROTOBUF_NAMESPACE_ID::Arena* arena,
2126 bool is_message_owned)
2127 : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
2128 SharedCtor(arena, is_message_owned);
2129 // @@protoc_insertion_point(arena_constructor:android.os.statsd.wearservices.WsWearTimeSession)
2130 }
WsWearTimeSession(const WsWearTimeSession & from)2131 WsWearTimeSession::WsWearTimeSession(const WsWearTimeSession& from)
2132 : ::PROTOBUF_NAMESPACE_ID::Message() {
2133 WsWearTimeSession* const _this = this; (void)_this;
2134 new (&_impl_) Impl_{
2135 decltype(_impl_._has_bits_){from._impl_._has_bits_}
2136 , /*decltype(_impl_._cached_size_)*/{}
2137 , decltype(_impl_.session_duration_millis_){}};
2138
2139 _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
2140 _this->_impl_.session_duration_millis_ = from._impl_.session_duration_millis_;
2141 // @@protoc_insertion_point(copy_constructor:android.os.statsd.wearservices.WsWearTimeSession)
2142 }
2143
SharedCtor(::_pb::Arena * arena,bool is_message_owned)2144 inline void WsWearTimeSession::SharedCtor(
2145 ::_pb::Arena* arena, bool is_message_owned) {
2146 (void)arena;
2147 (void)is_message_owned;
2148 new (&_impl_) Impl_{
2149 decltype(_impl_._has_bits_){}
2150 , /*decltype(_impl_._cached_size_)*/{}
2151 , decltype(_impl_.session_duration_millis_){::int64_t{0}}
2152 };
2153 }
2154
~WsWearTimeSession()2155 WsWearTimeSession::~WsWearTimeSession() {
2156 // @@protoc_insertion_point(destructor:android.os.statsd.wearservices.WsWearTimeSession)
2157 if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
2158 (void)arena;
2159 return;
2160 }
2161 SharedDtor();
2162 }
2163
SharedDtor()2164 inline void WsWearTimeSession::SharedDtor() {
2165 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
2166 }
2167
SetCachedSize(int size) const2168 void WsWearTimeSession::SetCachedSize(int size) const {
2169 _impl_._cached_size_.Set(size);
2170 }
2171
Clear()2172 void WsWearTimeSession::Clear() {
2173 // @@protoc_insertion_point(message_clear_start:android.os.statsd.wearservices.WsWearTimeSession)
2174 ::uint32_t cached_has_bits = 0;
2175 // Prevent compiler warnings about cached_has_bits being unused
2176 (void) cached_has_bits;
2177
2178 _impl_.session_duration_millis_ = ::int64_t{0};
2179 _impl_._has_bits_.Clear();
2180 _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
2181 }
2182
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)2183 const char* WsWearTimeSession::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
2184 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
2185 _Internal::HasBits has_bits{};
2186 while (!ctx->Done(&ptr)) {
2187 ::uint32_t tag;
2188 ptr = ::_pbi::ReadTag(ptr, &tag);
2189 switch (tag >> 3) {
2190 // optional int64 session_duration_millis = 1;
2191 case 1:
2192 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
2193 _Internal::set_has_session_duration_millis(&has_bits);
2194 _impl_.session_duration_millis_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
2195 CHK_(ptr);
2196 } else {
2197 goto handle_unusual;
2198 }
2199 continue;
2200 default:
2201 goto handle_unusual;
2202 } // switch
2203 handle_unusual:
2204 if ((tag == 0) || ((tag & 7) == 4)) {
2205 CHK_(ptr);
2206 ctx->SetLastTag(tag);
2207 goto message_done;
2208 }
2209 ptr = UnknownFieldParse(
2210 tag,
2211 _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
2212 ptr, ctx);
2213 CHK_(ptr != nullptr);
2214 } // while
2215 message_done:
2216 _impl_._has_bits_.Or(has_bits);
2217 return ptr;
2218 failure:
2219 ptr = nullptr;
2220 goto message_done;
2221 #undef CHK_
2222 }
2223
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const2224 ::uint8_t* WsWearTimeSession::_InternalSerialize(
2225 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
2226 // @@protoc_insertion_point(serialize_to_array_start:android.os.statsd.wearservices.WsWearTimeSession)
2227 ::uint32_t cached_has_bits = 0;
2228 (void) cached_has_bits;
2229
2230 cached_has_bits = _impl_._has_bits_[0];
2231 // optional int64 session_duration_millis = 1;
2232 if (cached_has_bits & 0x00000001u) {
2233 target = stream->EnsureSpace(target);
2234 target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_session_duration_millis(), target);
2235 }
2236
2237 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2238 target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
2239 _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
2240 }
2241 // @@protoc_insertion_point(serialize_to_array_end:android.os.statsd.wearservices.WsWearTimeSession)
2242 return target;
2243 }
2244
ByteSizeLong() const2245 size_t WsWearTimeSession::ByteSizeLong() const {
2246 // @@protoc_insertion_point(message_byte_size_start:android.os.statsd.wearservices.WsWearTimeSession)
2247 size_t total_size = 0;
2248
2249 ::uint32_t cached_has_bits = 0;
2250 // Prevent compiler warnings about cached_has_bits being unused
2251 (void) cached_has_bits;
2252
2253 // optional int64 session_duration_millis = 1;
2254 cached_has_bits = _impl_._has_bits_[0];
2255 if (cached_has_bits & 0x00000001u) {
2256 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_session_duration_millis());
2257 }
2258
2259 return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
2260 }
2261
2262 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData WsWearTimeSession::_class_data_ = {
2263 ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
2264 WsWearTimeSession::MergeImpl
2265 };
GetClassData() const2266 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*WsWearTimeSession::GetClassData() const { return &_class_data_; }
2267
2268
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)2269 void WsWearTimeSession::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
2270 auto* const _this = static_cast<WsWearTimeSession*>(&to_msg);
2271 auto& from = static_cast<const WsWearTimeSession&>(from_msg);
2272 // @@protoc_insertion_point(class_specific_merge_from_start:android.os.statsd.wearservices.WsWearTimeSession)
2273 GOOGLE_DCHECK_NE(&from, _this);
2274 ::uint32_t cached_has_bits = 0;
2275 (void) cached_has_bits;
2276
2277 if (from._internal_has_session_duration_millis()) {
2278 _this->_internal_set_session_duration_millis(from._internal_session_duration_millis());
2279 }
2280 _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
2281 }
2282
CopyFrom(const WsWearTimeSession & from)2283 void WsWearTimeSession::CopyFrom(const WsWearTimeSession& from) {
2284 // @@protoc_insertion_point(class_specific_copy_from_start:android.os.statsd.wearservices.WsWearTimeSession)
2285 if (&from == this) return;
2286 Clear();
2287 MergeFrom(from);
2288 }
2289
IsInitialized() const2290 bool WsWearTimeSession::IsInitialized() const {
2291 return true;
2292 }
2293
InternalSwap(WsWearTimeSession * other)2294 void WsWearTimeSession::InternalSwap(WsWearTimeSession* other) {
2295 using std::swap;
2296 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2297 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
2298 swap(_impl_.session_duration_millis_, other->_impl_.session_duration_millis_);
2299 }
2300
GetMetadata() const2301 ::PROTOBUF_NAMESPACE_ID::Metadata WsWearTimeSession::GetMetadata() const {
2302 return ::_pbi::AssignDescriptors(
2303 &descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto_getter, &descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto_once,
2304 file_level_metadata_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto[5]);
2305 }
2306
2307 // ===================================================================
2308
2309 class WsOnBodyStateChanged::_Internal {
2310 public:
2311 using HasBits = decltype(std::declval<WsOnBodyStateChanged>()._impl_._has_bits_);
set_has_on_body_state(HasBits * has_bits)2312 static void set_has_on_body_state(HasBits* has_bits) {
2313 (*has_bits)[0] |= 2u;
2314 }
set_has_sensor_event_timestamp_nanos(HasBits * has_bits)2315 static void set_has_sensor_event_timestamp_nanos(HasBits* has_bits) {
2316 (*has_bits)[0] |= 1u;
2317 }
2318 };
2319
WsOnBodyStateChanged(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)2320 WsOnBodyStateChanged::WsOnBodyStateChanged(::PROTOBUF_NAMESPACE_ID::Arena* arena,
2321 bool is_message_owned)
2322 : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
2323 SharedCtor(arena, is_message_owned);
2324 // @@protoc_insertion_point(arena_constructor:android.os.statsd.wearservices.WsOnBodyStateChanged)
2325 }
WsOnBodyStateChanged(const WsOnBodyStateChanged & from)2326 WsOnBodyStateChanged::WsOnBodyStateChanged(const WsOnBodyStateChanged& from)
2327 : ::PROTOBUF_NAMESPACE_ID::Message() {
2328 WsOnBodyStateChanged* const _this = this; (void)_this;
2329 new (&_impl_) Impl_{
2330 decltype(_impl_._has_bits_){from._impl_._has_bits_}
2331 , /*decltype(_impl_._cached_size_)*/{}
2332 , decltype(_impl_.sensor_event_timestamp_nanos_){}
2333 , decltype(_impl_.on_body_state_){}};
2334
2335 _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
2336 ::memcpy(&_impl_.sensor_event_timestamp_nanos_, &from._impl_.sensor_event_timestamp_nanos_,
2337 static_cast<size_t>(reinterpret_cast<char*>(&_impl_.on_body_state_) -
2338 reinterpret_cast<char*>(&_impl_.sensor_event_timestamp_nanos_)) + sizeof(_impl_.on_body_state_));
2339 // @@protoc_insertion_point(copy_constructor:android.os.statsd.wearservices.WsOnBodyStateChanged)
2340 }
2341
SharedCtor(::_pb::Arena * arena,bool is_message_owned)2342 inline void WsOnBodyStateChanged::SharedCtor(
2343 ::_pb::Arena* arena, bool is_message_owned) {
2344 (void)arena;
2345 (void)is_message_owned;
2346 new (&_impl_) Impl_{
2347 decltype(_impl_._has_bits_){}
2348 , /*decltype(_impl_._cached_size_)*/{}
2349 , decltype(_impl_.sensor_event_timestamp_nanos_){::int64_t{0}}
2350 , decltype(_impl_.on_body_state_){0}
2351 };
2352 }
2353
~WsOnBodyStateChanged()2354 WsOnBodyStateChanged::~WsOnBodyStateChanged() {
2355 // @@protoc_insertion_point(destructor:android.os.statsd.wearservices.WsOnBodyStateChanged)
2356 if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
2357 (void)arena;
2358 return;
2359 }
2360 SharedDtor();
2361 }
2362
SharedDtor()2363 inline void WsOnBodyStateChanged::SharedDtor() {
2364 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
2365 }
2366
SetCachedSize(int size) const2367 void WsOnBodyStateChanged::SetCachedSize(int size) const {
2368 _impl_._cached_size_.Set(size);
2369 }
2370
Clear()2371 void WsOnBodyStateChanged::Clear() {
2372 // @@protoc_insertion_point(message_clear_start:android.os.statsd.wearservices.WsOnBodyStateChanged)
2373 ::uint32_t cached_has_bits = 0;
2374 // Prevent compiler warnings about cached_has_bits being unused
2375 (void) cached_has_bits;
2376
2377 cached_has_bits = _impl_._has_bits_[0];
2378 if (cached_has_bits & 0x00000003u) {
2379 ::memset(&_impl_.sensor_event_timestamp_nanos_, 0, static_cast<size_t>(
2380 reinterpret_cast<char*>(&_impl_.on_body_state_) -
2381 reinterpret_cast<char*>(&_impl_.sensor_event_timestamp_nanos_)) + sizeof(_impl_.on_body_state_));
2382 }
2383 _impl_._has_bits_.Clear();
2384 _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
2385 }
2386
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)2387 const char* WsOnBodyStateChanged::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
2388 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
2389 _Internal::HasBits has_bits{};
2390 while (!ctx->Done(&ptr)) {
2391 ::uint32_t tag;
2392 ptr = ::_pbi::ReadTag(ptr, &tag);
2393 switch (tag >> 3) {
2394 // optional .android.app.wearservices.OnBodyState on_body_state = 1;
2395 case 1:
2396 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
2397 ::uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
2398 CHK_(ptr);
2399 if (PROTOBUF_PREDICT_TRUE(::android::app::wearservices::OnBodyState_IsValid(val))) {
2400 _internal_set_on_body_state(static_cast<::android::app::wearservices::OnBodyState>(val));
2401 } else {
2402 ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields());
2403 }
2404 } else {
2405 goto handle_unusual;
2406 }
2407 continue;
2408 // optional int64 sensor_event_timestamp_nanos = 2;
2409 case 2:
2410 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
2411 _Internal::set_has_sensor_event_timestamp_nanos(&has_bits);
2412 _impl_.sensor_event_timestamp_nanos_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
2413 CHK_(ptr);
2414 } else {
2415 goto handle_unusual;
2416 }
2417 continue;
2418 default:
2419 goto handle_unusual;
2420 } // switch
2421 handle_unusual:
2422 if ((tag == 0) || ((tag & 7) == 4)) {
2423 CHK_(ptr);
2424 ctx->SetLastTag(tag);
2425 goto message_done;
2426 }
2427 ptr = UnknownFieldParse(
2428 tag,
2429 _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
2430 ptr, ctx);
2431 CHK_(ptr != nullptr);
2432 } // while
2433 message_done:
2434 _impl_._has_bits_.Or(has_bits);
2435 return ptr;
2436 failure:
2437 ptr = nullptr;
2438 goto message_done;
2439 #undef CHK_
2440 }
2441
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const2442 ::uint8_t* WsOnBodyStateChanged::_InternalSerialize(
2443 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
2444 // @@protoc_insertion_point(serialize_to_array_start:android.os.statsd.wearservices.WsOnBodyStateChanged)
2445 ::uint32_t cached_has_bits = 0;
2446 (void) cached_has_bits;
2447
2448 cached_has_bits = _impl_._has_bits_[0];
2449 // optional .android.app.wearservices.OnBodyState on_body_state = 1;
2450 if (cached_has_bits & 0x00000002u) {
2451 target = stream->EnsureSpace(target);
2452 target = ::_pbi::WireFormatLite::WriteEnumToArray(
2453 1, this->_internal_on_body_state(), target);
2454 }
2455
2456 // optional int64 sensor_event_timestamp_nanos = 2;
2457 if (cached_has_bits & 0x00000001u) {
2458 target = stream->EnsureSpace(target);
2459 target = ::_pbi::WireFormatLite::WriteInt64ToArray(2, this->_internal_sensor_event_timestamp_nanos(), target);
2460 }
2461
2462 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2463 target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
2464 _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
2465 }
2466 // @@protoc_insertion_point(serialize_to_array_end:android.os.statsd.wearservices.WsOnBodyStateChanged)
2467 return target;
2468 }
2469
ByteSizeLong() const2470 size_t WsOnBodyStateChanged::ByteSizeLong() const {
2471 // @@protoc_insertion_point(message_byte_size_start:android.os.statsd.wearservices.WsOnBodyStateChanged)
2472 size_t total_size = 0;
2473
2474 ::uint32_t cached_has_bits = 0;
2475 // Prevent compiler warnings about cached_has_bits being unused
2476 (void) cached_has_bits;
2477
2478 cached_has_bits = _impl_._has_bits_[0];
2479 if (cached_has_bits & 0x00000003u) {
2480 // optional int64 sensor_event_timestamp_nanos = 2;
2481 if (cached_has_bits & 0x00000001u) {
2482 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_sensor_event_timestamp_nanos());
2483 }
2484
2485 // optional .android.app.wearservices.OnBodyState on_body_state = 1;
2486 if (cached_has_bits & 0x00000002u) {
2487 total_size += 1 +
2488 ::_pbi::WireFormatLite::EnumSize(this->_internal_on_body_state());
2489 }
2490
2491 }
2492 return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
2493 }
2494
2495 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData WsOnBodyStateChanged::_class_data_ = {
2496 ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
2497 WsOnBodyStateChanged::MergeImpl
2498 };
GetClassData() const2499 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*WsOnBodyStateChanged::GetClassData() const { return &_class_data_; }
2500
2501
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)2502 void WsOnBodyStateChanged::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
2503 auto* const _this = static_cast<WsOnBodyStateChanged*>(&to_msg);
2504 auto& from = static_cast<const WsOnBodyStateChanged&>(from_msg);
2505 // @@protoc_insertion_point(class_specific_merge_from_start:android.os.statsd.wearservices.WsOnBodyStateChanged)
2506 GOOGLE_DCHECK_NE(&from, _this);
2507 ::uint32_t cached_has_bits = 0;
2508 (void) cached_has_bits;
2509
2510 cached_has_bits = from._impl_._has_bits_[0];
2511 if (cached_has_bits & 0x00000003u) {
2512 if (cached_has_bits & 0x00000001u) {
2513 _this->_impl_.sensor_event_timestamp_nanos_ = from._impl_.sensor_event_timestamp_nanos_;
2514 }
2515 if (cached_has_bits & 0x00000002u) {
2516 _this->_impl_.on_body_state_ = from._impl_.on_body_state_;
2517 }
2518 _this->_impl_._has_bits_[0] |= cached_has_bits;
2519 }
2520 _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
2521 }
2522
CopyFrom(const WsOnBodyStateChanged & from)2523 void WsOnBodyStateChanged::CopyFrom(const WsOnBodyStateChanged& from) {
2524 // @@protoc_insertion_point(class_specific_copy_from_start:android.os.statsd.wearservices.WsOnBodyStateChanged)
2525 if (&from == this) return;
2526 Clear();
2527 MergeFrom(from);
2528 }
2529
IsInitialized() const2530 bool WsOnBodyStateChanged::IsInitialized() const {
2531 return true;
2532 }
2533
InternalSwap(WsOnBodyStateChanged * other)2534 void WsOnBodyStateChanged::InternalSwap(WsOnBodyStateChanged* other) {
2535 using std::swap;
2536 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2537 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
2538 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
2539 PROTOBUF_FIELD_OFFSET(WsOnBodyStateChanged, _impl_.on_body_state_)
2540 + sizeof(WsOnBodyStateChanged::_impl_.on_body_state_) // NOLINT
2541 - PROTOBUF_FIELD_OFFSET(WsOnBodyStateChanged, _impl_.sensor_event_timestamp_nanos_)>(
2542 reinterpret_cast<char*>(&_impl_.sensor_event_timestamp_nanos_),
2543 reinterpret_cast<char*>(&other->_impl_.sensor_event_timestamp_nanos_));
2544 }
2545
GetMetadata() const2546 ::PROTOBUF_NAMESPACE_ID::Metadata WsOnBodyStateChanged::GetMetadata() const {
2547 return ::_pbi::AssignDescriptors(
2548 &descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto_getter, &descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto_once,
2549 file_level_metadata_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto[6]);
2550 }
2551
2552 // ===================================================================
2553
2554 class WsStandaloneModeSnapshot::_Internal {
2555 public:
2556 using HasBits = decltype(std::declval<WsStandaloneModeSnapshot>()._impl_._has_bits_);
set_has_tether_configuration_status(HasBits * has_bits)2557 static void set_has_tether_configuration_status(HasBits* has_bits) {
2558 (*has_bits)[0] |= 1u;
2559 }
2560 };
2561
WsStandaloneModeSnapshot(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)2562 WsStandaloneModeSnapshot::WsStandaloneModeSnapshot(::PROTOBUF_NAMESPACE_ID::Arena* arena,
2563 bool is_message_owned)
2564 : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
2565 SharedCtor(arena, is_message_owned);
2566 // @@protoc_insertion_point(arena_constructor:android.os.statsd.wearservices.WsStandaloneModeSnapshot)
2567 }
WsStandaloneModeSnapshot(const WsStandaloneModeSnapshot & from)2568 WsStandaloneModeSnapshot::WsStandaloneModeSnapshot(const WsStandaloneModeSnapshot& from)
2569 : ::PROTOBUF_NAMESPACE_ID::Message() {
2570 WsStandaloneModeSnapshot* const _this = this; (void)_this;
2571 new (&_impl_) Impl_{
2572 decltype(_impl_._has_bits_){from._impl_._has_bits_}
2573 , /*decltype(_impl_._cached_size_)*/{}
2574 , decltype(_impl_.tether_configuration_status_){}};
2575
2576 _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
2577 _this->_impl_.tether_configuration_status_ = from._impl_.tether_configuration_status_;
2578 // @@protoc_insertion_point(copy_constructor:android.os.statsd.wearservices.WsStandaloneModeSnapshot)
2579 }
2580
SharedCtor(::_pb::Arena * arena,bool is_message_owned)2581 inline void WsStandaloneModeSnapshot::SharedCtor(
2582 ::_pb::Arena* arena, bool is_message_owned) {
2583 (void)arena;
2584 (void)is_message_owned;
2585 new (&_impl_) Impl_{
2586 decltype(_impl_._has_bits_){}
2587 , /*decltype(_impl_._cached_size_)*/{}
2588 , decltype(_impl_.tether_configuration_status_){0}
2589 };
2590 }
2591
~WsStandaloneModeSnapshot()2592 WsStandaloneModeSnapshot::~WsStandaloneModeSnapshot() {
2593 // @@protoc_insertion_point(destructor:android.os.statsd.wearservices.WsStandaloneModeSnapshot)
2594 if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
2595 (void)arena;
2596 return;
2597 }
2598 SharedDtor();
2599 }
2600
SharedDtor()2601 inline void WsStandaloneModeSnapshot::SharedDtor() {
2602 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
2603 }
2604
SetCachedSize(int size) const2605 void WsStandaloneModeSnapshot::SetCachedSize(int size) const {
2606 _impl_._cached_size_.Set(size);
2607 }
2608
Clear()2609 void WsStandaloneModeSnapshot::Clear() {
2610 // @@protoc_insertion_point(message_clear_start:android.os.statsd.wearservices.WsStandaloneModeSnapshot)
2611 ::uint32_t cached_has_bits = 0;
2612 // Prevent compiler warnings about cached_has_bits being unused
2613 (void) cached_has_bits;
2614
2615 _impl_.tether_configuration_status_ = 0;
2616 _impl_._has_bits_.Clear();
2617 _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
2618 }
2619
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)2620 const char* WsStandaloneModeSnapshot::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
2621 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
2622 _Internal::HasBits has_bits{};
2623 while (!ctx->Done(&ptr)) {
2624 ::uint32_t tag;
2625 ptr = ::_pbi::ReadTag(ptr, &tag);
2626 switch (tag >> 3) {
2627 // optional .android.app.wearservices.TetherConfigurationStatus tether_configuration_status = 1;
2628 case 1:
2629 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
2630 ::uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
2631 CHK_(ptr);
2632 if (PROTOBUF_PREDICT_TRUE(::android::app::wearservices::TetherConfigurationStatus_IsValid(val))) {
2633 _internal_set_tether_configuration_status(static_cast<::android::app::wearservices::TetherConfigurationStatus>(val));
2634 } else {
2635 ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields());
2636 }
2637 } else {
2638 goto handle_unusual;
2639 }
2640 continue;
2641 default:
2642 goto handle_unusual;
2643 } // switch
2644 handle_unusual:
2645 if ((tag == 0) || ((tag & 7) == 4)) {
2646 CHK_(ptr);
2647 ctx->SetLastTag(tag);
2648 goto message_done;
2649 }
2650 ptr = UnknownFieldParse(
2651 tag,
2652 _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
2653 ptr, ctx);
2654 CHK_(ptr != nullptr);
2655 } // while
2656 message_done:
2657 _impl_._has_bits_.Or(has_bits);
2658 return ptr;
2659 failure:
2660 ptr = nullptr;
2661 goto message_done;
2662 #undef CHK_
2663 }
2664
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const2665 ::uint8_t* WsStandaloneModeSnapshot::_InternalSerialize(
2666 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
2667 // @@protoc_insertion_point(serialize_to_array_start:android.os.statsd.wearservices.WsStandaloneModeSnapshot)
2668 ::uint32_t cached_has_bits = 0;
2669 (void) cached_has_bits;
2670
2671 cached_has_bits = _impl_._has_bits_[0];
2672 // optional .android.app.wearservices.TetherConfigurationStatus tether_configuration_status = 1;
2673 if (cached_has_bits & 0x00000001u) {
2674 target = stream->EnsureSpace(target);
2675 target = ::_pbi::WireFormatLite::WriteEnumToArray(
2676 1, this->_internal_tether_configuration_status(), target);
2677 }
2678
2679 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2680 target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
2681 _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
2682 }
2683 // @@protoc_insertion_point(serialize_to_array_end:android.os.statsd.wearservices.WsStandaloneModeSnapshot)
2684 return target;
2685 }
2686
ByteSizeLong() const2687 size_t WsStandaloneModeSnapshot::ByteSizeLong() const {
2688 // @@protoc_insertion_point(message_byte_size_start:android.os.statsd.wearservices.WsStandaloneModeSnapshot)
2689 size_t total_size = 0;
2690
2691 ::uint32_t cached_has_bits = 0;
2692 // Prevent compiler warnings about cached_has_bits being unused
2693 (void) cached_has_bits;
2694
2695 // optional .android.app.wearservices.TetherConfigurationStatus tether_configuration_status = 1;
2696 cached_has_bits = _impl_._has_bits_[0];
2697 if (cached_has_bits & 0x00000001u) {
2698 total_size += 1 +
2699 ::_pbi::WireFormatLite::EnumSize(this->_internal_tether_configuration_status());
2700 }
2701
2702 return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
2703 }
2704
2705 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData WsStandaloneModeSnapshot::_class_data_ = {
2706 ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
2707 WsStandaloneModeSnapshot::MergeImpl
2708 };
GetClassData() const2709 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*WsStandaloneModeSnapshot::GetClassData() const { return &_class_data_; }
2710
2711
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)2712 void WsStandaloneModeSnapshot::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
2713 auto* const _this = static_cast<WsStandaloneModeSnapshot*>(&to_msg);
2714 auto& from = static_cast<const WsStandaloneModeSnapshot&>(from_msg);
2715 // @@protoc_insertion_point(class_specific_merge_from_start:android.os.statsd.wearservices.WsStandaloneModeSnapshot)
2716 GOOGLE_DCHECK_NE(&from, _this);
2717 ::uint32_t cached_has_bits = 0;
2718 (void) cached_has_bits;
2719
2720 if (from._internal_has_tether_configuration_status()) {
2721 _this->_internal_set_tether_configuration_status(from._internal_tether_configuration_status());
2722 }
2723 _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
2724 }
2725
CopyFrom(const WsStandaloneModeSnapshot & from)2726 void WsStandaloneModeSnapshot::CopyFrom(const WsStandaloneModeSnapshot& from) {
2727 // @@protoc_insertion_point(class_specific_copy_from_start:android.os.statsd.wearservices.WsStandaloneModeSnapshot)
2728 if (&from == this) return;
2729 Clear();
2730 MergeFrom(from);
2731 }
2732
IsInitialized() const2733 bool WsStandaloneModeSnapshot::IsInitialized() const {
2734 return true;
2735 }
2736
InternalSwap(WsStandaloneModeSnapshot * other)2737 void WsStandaloneModeSnapshot::InternalSwap(WsStandaloneModeSnapshot* other) {
2738 using std::swap;
2739 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2740 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
2741 swap(_impl_.tether_configuration_status_, other->_impl_.tether_configuration_status_);
2742 }
2743
GetMetadata() const2744 ::PROTOBUF_NAMESPACE_ID::Metadata WsStandaloneModeSnapshot::GetMetadata() const {
2745 return ::_pbi::AssignDescriptors(
2746 &descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto_getter, &descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto_once,
2747 file_level_metadata_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto[7]);
2748 }
2749
2750 // ===================================================================
2751
2752 class WsWatchFaceRestrictedComplicationsImpacted::_Internal {
2753 public:
2754 using HasBits = decltype(std::declval<WsWatchFaceRestrictedComplicationsImpacted>()._impl_._has_bits_);
set_has_watch_face_package_uid(HasBits * has_bits)2755 static void set_has_watch_face_package_uid(HasBits* has_bits) {
2756 (*has_bits)[0] |= 2u;
2757 }
set_has_watch_face_component_class_name(HasBits * has_bits)2758 static void set_has_watch_face_component_class_name(HasBits* has_bits) {
2759 (*has_bits)[0] |= 1u;
2760 }
set_has_is_current_active(HasBits * has_bits)2761 static void set_has_is_current_active(HasBits* has_bits) {
2762 (*has_bits)[0] |= 4u;
2763 }
2764 };
2765
WsWatchFaceRestrictedComplicationsImpacted(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)2766 WsWatchFaceRestrictedComplicationsImpacted::WsWatchFaceRestrictedComplicationsImpacted(::PROTOBUF_NAMESPACE_ID::Arena* arena,
2767 bool is_message_owned)
2768 : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
2769 SharedCtor(arena, is_message_owned);
2770 // @@protoc_insertion_point(arena_constructor:android.os.statsd.wearservices.WsWatchFaceRestrictedComplicationsImpacted)
2771 }
WsWatchFaceRestrictedComplicationsImpacted(const WsWatchFaceRestrictedComplicationsImpacted & from)2772 WsWatchFaceRestrictedComplicationsImpacted::WsWatchFaceRestrictedComplicationsImpacted(const WsWatchFaceRestrictedComplicationsImpacted& from)
2773 : ::PROTOBUF_NAMESPACE_ID::Message() {
2774 WsWatchFaceRestrictedComplicationsImpacted* const _this = this; (void)_this;
2775 new (&_impl_) Impl_{
2776 decltype(_impl_._has_bits_){from._impl_._has_bits_}
2777 , /*decltype(_impl_._cached_size_)*/{}
2778 , decltype(_impl_.complication_component_package_uid_){from._impl_.complication_component_package_uid_}
2779 , decltype(_impl_.complication_component_class_name_){from._impl_.complication_component_class_name_}
2780 , decltype(_impl_.complication_type_){from._impl_.complication_type_}
2781 , decltype(_impl_.watch_face_component_class_name_){}
2782 , decltype(_impl_.watch_face_package_uid_){}
2783 , decltype(_impl_.is_current_active_){}};
2784
2785 _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
2786 _impl_.watch_face_component_class_name_.InitDefault();
2787 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
2788 _impl_.watch_face_component_class_name_.Set("", GetArenaForAllocation());
2789 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
2790 if (from._internal_has_watch_face_component_class_name()) {
2791 _this->_impl_.watch_face_component_class_name_.Set(from._internal_watch_face_component_class_name(),
2792 _this->GetArenaForAllocation());
2793 }
2794 ::memcpy(&_impl_.watch_face_package_uid_, &from._impl_.watch_face_package_uid_,
2795 static_cast<size_t>(reinterpret_cast<char*>(&_impl_.is_current_active_) -
2796 reinterpret_cast<char*>(&_impl_.watch_face_package_uid_)) + sizeof(_impl_.is_current_active_));
2797 // @@protoc_insertion_point(copy_constructor:android.os.statsd.wearservices.WsWatchFaceRestrictedComplicationsImpacted)
2798 }
2799
SharedCtor(::_pb::Arena * arena,bool is_message_owned)2800 inline void WsWatchFaceRestrictedComplicationsImpacted::SharedCtor(
2801 ::_pb::Arena* arena, bool is_message_owned) {
2802 (void)arena;
2803 (void)is_message_owned;
2804 new (&_impl_) Impl_{
2805 decltype(_impl_._has_bits_){}
2806 , /*decltype(_impl_._cached_size_)*/{}
2807 , decltype(_impl_.complication_component_package_uid_){arena}
2808 , decltype(_impl_.complication_component_class_name_){arena}
2809 , decltype(_impl_.complication_type_){arena}
2810 , decltype(_impl_.watch_face_component_class_name_){}
2811 , decltype(_impl_.watch_face_package_uid_){0}
2812 , decltype(_impl_.is_current_active_){false}
2813 };
2814 _impl_.watch_face_component_class_name_.InitDefault();
2815 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
2816 _impl_.watch_face_component_class_name_.Set("", GetArenaForAllocation());
2817 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
2818 }
2819
~WsWatchFaceRestrictedComplicationsImpacted()2820 WsWatchFaceRestrictedComplicationsImpacted::~WsWatchFaceRestrictedComplicationsImpacted() {
2821 // @@protoc_insertion_point(destructor:android.os.statsd.wearservices.WsWatchFaceRestrictedComplicationsImpacted)
2822 if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
2823 (void)arena;
2824 return;
2825 }
2826 SharedDtor();
2827 }
2828
SharedDtor()2829 inline void WsWatchFaceRestrictedComplicationsImpacted::SharedDtor() {
2830 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
2831 _impl_.complication_component_package_uid_.~RepeatedField();
2832 _impl_.complication_component_class_name_.~RepeatedPtrField();
2833 _impl_.complication_type_.~RepeatedField();
2834 _impl_.watch_face_component_class_name_.Destroy();
2835 }
2836
SetCachedSize(int size) const2837 void WsWatchFaceRestrictedComplicationsImpacted::SetCachedSize(int size) const {
2838 _impl_._cached_size_.Set(size);
2839 }
2840
Clear()2841 void WsWatchFaceRestrictedComplicationsImpacted::Clear() {
2842 // @@protoc_insertion_point(message_clear_start:android.os.statsd.wearservices.WsWatchFaceRestrictedComplicationsImpacted)
2843 ::uint32_t cached_has_bits = 0;
2844 // Prevent compiler warnings about cached_has_bits being unused
2845 (void) cached_has_bits;
2846
2847 _impl_.complication_component_package_uid_.Clear();
2848 _impl_.complication_component_class_name_.Clear();
2849 _impl_.complication_type_.Clear();
2850 cached_has_bits = _impl_._has_bits_[0];
2851 if (cached_has_bits & 0x00000001u) {
2852 _impl_.watch_face_component_class_name_.ClearNonDefaultToEmpty();
2853 }
2854 if (cached_has_bits & 0x00000006u) {
2855 ::memset(&_impl_.watch_face_package_uid_, 0, static_cast<size_t>(
2856 reinterpret_cast<char*>(&_impl_.is_current_active_) -
2857 reinterpret_cast<char*>(&_impl_.watch_face_package_uid_)) + sizeof(_impl_.is_current_active_));
2858 }
2859 _impl_._has_bits_.Clear();
2860 _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
2861 }
2862
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)2863 const char* WsWatchFaceRestrictedComplicationsImpacted::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
2864 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
2865 _Internal::HasBits has_bits{};
2866 while (!ctx->Done(&ptr)) {
2867 ::uint32_t tag;
2868 ptr = ::_pbi::ReadTag(ptr, &tag);
2869 switch (tag >> 3) {
2870 // optional int32 watch_face_package_uid = 1 [(.android.os.statsd.is_uid) = true];
2871 case 1:
2872 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
2873 _Internal::set_has_watch_face_package_uid(&has_bits);
2874 _impl_.watch_face_package_uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
2875 CHK_(ptr);
2876 } else {
2877 goto handle_unusual;
2878 }
2879 continue;
2880 // optional string watch_face_component_class_name = 2;
2881 case 2:
2882 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
2883 auto str = _internal_mutable_watch_face_component_class_name();
2884 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
2885 CHK_(ptr);
2886 #ifndef NDEBUG
2887 ::_pbi::VerifyUTF8(str, "android.os.statsd.wearservices.WsWatchFaceRestrictedComplicationsImpacted.watch_face_component_class_name");
2888 #endif // !NDEBUG
2889 } else {
2890 goto handle_unusual;
2891 }
2892 continue;
2893 // repeated int32 complication_component_package_uid = 3 [(.android.os.statsd.is_uid) = true];
2894 case 3:
2895 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
2896 ptr -= 1;
2897 do {
2898 ptr += 1;
2899 _internal_add_complication_component_package_uid(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr));
2900 CHK_(ptr);
2901 if (!ctx->DataAvailable(ptr)) break;
2902 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<24>(ptr));
2903 } else if (static_cast<::uint8_t>(tag) == 26) {
2904 ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(_internal_mutable_complication_component_package_uid(), ptr, ctx);
2905 CHK_(ptr);
2906 } else {
2907 goto handle_unusual;
2908 }
2909 continue;
2910 // repeated string complication_component_class_name = 4;
2911 case 4:
2912 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) {
2913 ptr -= 1;
2914 do {
2915 ptr += 1;
2916 auto str = _internal_add_complication_component_class_name();
2917 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
2918 CHK_(ptr);
2919 #ifndef NDEBUG
2920 ::_pbi::VerifyUTF8(str, "android.os.statsd.wearservices.WsWatchFaceRestrictedComplicationsImpacted.complication_component_class_name");
2921 #endif // !NDEBUG
2922 if (!ctx->DataAvailable(ptr)) break;
2923 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr));
2924 } else {
2925 goto handle_unusual;
2926 }
2927 continue;
2928 // repeated int32 complication_type = 5;
2929 case 5:
2930 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 40)) {
2931 ptr -= 1;
2932 do {
2933 ptr += 1;
2934 _internal_add_complication_type(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr));
2935 CHK_(ptr);
2936 if (!ctx->DataAvailable(ptr)) break;
2937 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<40>(ptr));
2938 } else if (static_cast<::uint8_t>(tag) == 42) {
2939 ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(_internal_mutable_complication_type(), ptr, ctx);
2940 CHK_(ptr);
2941 } else {
2942 goto handle_unusual;
2943 }
2944 continue;
2945 // optional bool is_current_active = 6;
2946 case 6:
2947 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 48)) {
2948 _Internal::set_has_is_current_active(&has_bits);
2949 _impl_.is_current_active_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
2950 CHK_(ptr);
2951 } else {
2952 goto handle_unusual;
2953 }
2954 continue;
2955 default:
2956 goto handle_unusual;
2957 } // switch
2958 handle_unusual:
2959 if ((tag == 0) || ((tag & 7) == 4)) {
2960 CHK_(ptr);
2961 ctx->SetLastTag(tag);
2962 goto message_done;
2963 }
2964 ptr = UnknownFieldParse(
2965 tag,
2966 _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
2967 ptr, ctx);
2968 CHK_(ptr != nullptr);
2969 } // while
2970 message_done:
2971 _impl_._has_bits_.Or(has_bits);
2972 return ptr;
2973 failure:
2974 ptr = nullptr;
2975 goto message_done;
2976 #undef CHK_
2977 }
2978
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const2979 ::uint8_t* WsWatchFaceRestrictedComplicationsImpacted::_InternalSerialize(
2980 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
2981 // @@protoc_insertion_point(serialize_to_array_start:android.os.statsd.wearservices.WsWatchFaceRestrictedComplicationsImpacted)
2982 ::uint32_t cached_has_bits = 0;
2983 (void) cached_has_bits;
2984
2985 cached_has_bits = _impl_._has_bits_[0];
2986 // optional int32 watch_face_package_uid = 1 [(.android.os.statsd.is_uid) = true];
2987 if (cached_has_bits & 0x00000002u) {
2988 target = stream->EnsureSpace(target);
2989 target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_watch_face_package_uid(), target);
2990 }
2991
2992 // optional string watch_face_component_class_name = 2;
2993 if (cached_has_bits & 0x00000001u) {
2994 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
2995 this->_internal_watch_face_component_class_name().data(), static_cast<int>(this->_internal_watch_face_component_class_name().length()),
2996 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
2997 "android.os.statsd.wearservices.WsWatchFaceRestrictedComplicationsImpacted.watch_face_component_class_name");
2998 target = stream->WriteStringMaybeAliased(
2999 2, this->_internal_watch_face_component_class_name(), target);
3000 }
3001
3002 // repeated int32 complication_component_package_uid = 3 [(.android.os.statsd.is_uid) = true];
3003 for (int i = 0, n = this->_internal_complication_component_package_uid_size(); i < n; i++) {
3004 target = stream->EnsureSpace(target);
3005 target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_complication_component_package_uid(i), target);
3006 }
3007
3008 // repeated string complication_component_class_name = 4;
3009 for (int i = 0, n = this->_internal_complication_component_class_name_size(); i < n; i++) {
3010 const auto& s = this->_internal_complication_component_class_name(i);
3011 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
3012 s.data(), static_cast<int>(s.length()),
3013 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
3014 "android.os.statsd.wearservices.WsWatchFaceRestrictedComplicationsImpacted.complication_component_class_name");
3015 target = stream->WriteString(4, s, target);
3016 }
3017
3018 // repeated int32 complication_type = 5;
3019 for (int i = 0, n = this->_internal_complication_type_size(); i < n; i++) {
3020 target = stream->EnsureSpace(target);
3021 target = ::_pbi::WireFormatLite::WriteInt32ToArray(5, this->_internal_complication_type(i), target);
3022 }
3023
3024 // optional bool is_current_active = 6;
3025 if (cached_has_bits & 0x00000004u) {
3026 target = stream->EnsureSpace(target);
3027 target = ::_pbi::WireFormatLite::WriteBoolToArray(6, this->_internal_is_current_active(), target);
3028 }
3029
3030 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
3031 target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
3032 _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
3033 }
3034 // @@protoc_insertion_point(serialize_to_array_end:android.os.statsd.wearservices.WsWatchFaceRestrictedComplicationsImpacted)
3035 return target;
3036 }
3037
ByteSizeLong() const3038 size_t WsWatchFaceRestrictedComplicationsImpacted::ByteSizeLong() const {
3039 // @@protoc_insertion_point(message_byte_size_start:android.os.statsd.wearservices.WsWatchFaceRestrictedComplicationsImpacted)
3040 size_t total_size = 0;
3041
3042 ::uint32_t cached_has_bits = 0;
3043 // Prevent compiler warnings about cached_has_bits being unused
3044 (void) cached_has_bits;
3045
3046 // repeated int32 complication_component_package_uid = 3 [(.android.os.statsd.is_uid) = true];
3047 {
3048 size_t data_size = ::_pbi::WireFormatLite::
3049 Int32Size(this->_impl_.complication_component_package_uid_);
3050 total_size += 1 *
3051 ::_pbi::FromIntSize(this->_internal_complication_component_package_uid_size());
3052 total_size += data_size;
3053 }
3054
3055 // repeated string complication_component_class_name = 4;
3056 total_size += 1 *
3057 ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.complication_component_class_name_.size());
3058 for (int i = 0, n = _impl_.complication_component_class_name_.size(); i < n; i++) {
3059 total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
3060 _impl_.complication_component_class_name_.Get(i));
3061 }
3062
3063 // repeated int32 complication_type = 5;
3064 {
3065 size_t data_size = ::_pbi::WireFormatLite::
3066 Int32Size(this->_impl_.complication_type_);
3067 total_size += 1 *
3068 ::_pbi::FromIntSize(this->_internal_complication_type_size());
3069 total_size += data_size;
3070 }
3071
3072 cached_has_bits = _impl_._has_bits_[0];
3073 if (cached_has_bits & 0x00000007u) {
3074 // optional string watch_face_component_class_name = 2;
3075 if (cached_has_bits & 0x00000001u) {
3076 total_size += 1 +
3077 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
3078 this->_internal_watch_face_component_class_name());
3079 }
3080
3081 // optional int32 watch_face_package_uid = 1 [(.android.os.statsd.is_uid) = true];
3082 if (cached_has_bits & 0x00000002u) {
3083 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_watch_face_package_uid());
3084 }
3085
3086 // optional bool is_current_active = 6;
3087 if (cached_has_bits & 0x00000004u) {
3088 total_size += 1 + 1;
3089 }
3090
3091 }
3092 return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
3093 }
3094
3095 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData WsWatchFaceRestrictedComplicationsImpacted::_class_data_ = {
3096 ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
3097 WsWatchFaceRestrictedComplicationsImpacted::MergeImpl
3098 };
GetClassData() const3099 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*WsWatchFaceRestrictedComplicationsImpacted::GetClassData() const { return &_class_data_; }
3100
3101
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)3102 void WsWatchFaceRestrictedComplicationsImpacted::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
3103 auto* const _this = static_cast<WsWatchFaceRestrictedComplicationsImpacted*>(&to_msg);
3104 auto& from = static_cast<const WsWatchFaceRestrictedComplicationsImpacted&>(from_msg);
3105 // @@protoc_insertion_point(class_specific_merge_from_start:android.os.statsd.wearservices.WsWatchFaceRestrictedComplicationsImpacted)
3106 GOOGLE_DCHECK_NE(&from, _this);
3107 ::uint32_t cached_has_bits = 0;
3108 (void) cached_has_bits;
3109
3110 _this->_impl_.complication_component_package_uid_.MergeFrom(from._impl_.complication_component_package_uid_);
3111 _this->_impl_.complication_component_class_name_.MergeFrom(from._impl_.complication_component_class_name_);
3112 _this->_impl_.complication_type_.MergeFrom(from._impl_.complication_type_);
3113 cached_has_bits = from._impl_._has_bits_[0];
3114 if (cached_has_bits & 0x00000007u) {
3115 if (cached_has_bits & 0x00000001u) {
3116 _this->_internal_set_watch_face_component_class_name(from._internal_watch_face_component_class_name());
3117 }
3118 if (cached_has_bits & 0x00000002u) {
3119 _this->_impl_.watch_face_package_uid_ = from._impl_.watch_face_package_uid_;
3120 }
3121 if (cached_has_bits & 0x00000004u) {
3122 _this->_impl_.is_current_active_ = from._impl_.is_current_active_;
3123 }
3124 _this->_impl_._has_bits_[0] |= cached_has_bits;
3125 }
3126 _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
3127 }
3128
CopyFrom(const WsWatchFaceRestrictedComplicationsImpacted & from)3129 void WsWatchFaceRestrictedComplicationsImpacted::CopyFrom(const WsWatchFaceRestrictedComplicationsImpacted& from) {
3130 // @@protoc_insertion_point(class_specific_copy_from_start:android.os.statsd.wearservices.WsWatchFaceRestrictedComplicationsImpacted)
3131 if (&from == this) return;
3132 Clear();
3133 MergeFrom(from);
3134 }
3135
IsInitialized() const3136 bool WsWatchFaceRestrictedComplicationsImpacted::IsInitialized() const {
3137 return true;
3138 }
3139
InternalSwap(WsWatchFaceRestrictedComplicationsImpacted * other)3140 void WsWatchFaceRestrictedComplicationsImpacted::InternalSwap(WsWatchFaceRestrictedComplicationsImpacted* other) {
3141 using std::swap;
3142 auto* lhs_arena = GetArenaForAllocation();
3143 auto* rhs_arena = other->GetArenaForAllocation();
3144 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
3145 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
3146 _impl_.complication_component_package_uid_.InternalSwap(&other->_impl_.complication_component_package_uid_);
3147 _impl_.complication_component_class_name_.InternalSwap(&other->_impl_.complication_component_class_name_);
3148 _impl_.complication_type_.InternalSwap(&other->_impl_.complication_type_);
3149 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
3150 &_impl_.watch_face_component_class_name_, lhs_arena,
3151 &other->_impl_.watch_face_component_class_name_, rhs_arena
3152 );
3153 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
3154 PROTOBUF_FIELD_OFFSET(WsWatchFaceRestrictedComplicationsImpacted, _impl_.is_current_active_)
3155 + sizeof(WsWatchFaceRestrictedComplicationsImpacted::_impl_.is_current_active_) // NOLINT
3156 - PROTOBUF_FIELD_OFFSET(WsWatchFaceRestrictedComplicationsImpacted, _impl_.watch_face_package_uid_)>(
3157 reinterpret_cast<char*>(&_impl_.watch_face_package_uid_),
3158 reinterpret_cast<char*>(&other->_impl_.watch_face_package_uid_));
3159 }
3160
GetMetadata() const3161 ::PROTOBUF_NAMESPACE_ID::Metadata WsWatchFaceRestrictedComplicationsImpacted::GetMetadata() const {
3162 return ::_pbi::AssignDescriptors(
3163 &descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto_getter, &descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto_once,
3164 file_level_metadata_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto[8]);
3165 }
3166
3167 // ===================================================================
3168
3169 class WsFavouriteWatchFaceSnapshot::_Internal {
3170 public:
3171 using HasBits = decltype(std::declval<WsFavouriteWatchFaceSnapshot>()._impl_._has_bits_);
set_has_watch_face_package_uid(HasBits * has_bits)3172 static void set_has_watch_face_package_uid(HasBits* has_bits) {
3173 (*has_bits)[0] |= 2u;
3174 }
set_has_watch_face_class_name(HasBits * has_bits)3175 static void set_has_watch_face_class_name(HasBits* has_bits) {
3176 (*has_bits)[0] |= 1u;
3177 }
set_has_favorite_id(HasBits * has_bits)3178 static void set_has_favorite_id(HasBits* has_bits) {
3179 (*has_bits)[0] |= 4u;
3180 }
set_has_is_current_active(HasBits * has_bits)3181 static void set_has_is_current_active(HasBits* has_bits) {
3182 (*has_bits)[0] |= 8u;
3183 }
set_has_is_restricted(HasBits * has_bits)3184 static void set_has_is_restricted(HasBits* has_bits) {
3185 (*has_bits)[0] |= 16u;
3186 }
3187 };
3188
WsFavouriteWatchFaceSnapshot(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)3189 WsFavouriteWatchFaceSnapshot::WsFavouriteWatchFaceSnapshot(::PROTOBUF_NAMESPACE_ID::Arena* arena,
3190 bool is_message_owned)
3191 : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
3192 SharedCtor(arena, is_message_owned);
3193 // @@protoc_insertion_point(arena_constructor:android.os.statsd.wearservices.WsFavouriteWatchFaceSnapshot)
3194 }
WsFavouriteWatchFaceSnapshot(const WsFavouriteWatchFaceSnapshot & from)3195 WsFavouriteWatchFaceSnapshot::WsFavouriteWatchFaceSnapshot(const WsFavouriteWatchFaceSnapshot& from)
3196 : ::PROTOBUF_NAMESPACE_ID::Message() {
3197 WsFavouriteWatchFaceSnapshot* const _this = this; (void)_this;
3198 new (&_impl_) Impl_{
3199 decltype(_impl_._has_bits_){from._impl_._has_bits_}
3200 , /*decltype(_impl_._cached_size_)*/{}
3201 , decltype(_impl_.complication_component_package_uid_){from._impl_.complication_component_package_uid_}
3202 , decltype(_impl_.complication_component_class_name_){from._impl_.complication_component_class_name_}
3203 , decltype(_impl_.complication_type_){from._impl_.complication_type_}
3204 , decltype(_impl_.watch_face_class_name_){}
3205 , decltype(_impl_.watch_face_package_uid_){}
3206 , decltype(_impl_.favorite_id_){}
3207 , decltype(_impl_.is_current_active_){}
3208 , decltype(_impl_.is_restricted_){}};
3209
3210 _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
3211 _impl_.watch_face_class_name_.InitDefault();
3212 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
3213 _impl_.watch_face_class_name_.Set("", GetArenaForAllocation());
3214 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
3215 if (from._internal_has_watch_face_class_name()) {
3216 _this->_impl_.watch_face_class_name_.Set(from._internal_watch_face_class_name(),
3217 _this->GetArenaForAllocation());
3218 }
3219 ::memcpy(&_impl_.watch_face_package_uid_, &from._impl_.watch_face_package_uid_,
3220 static_cast<size_t>(reinterpret_cast<char*>(&_impl_.is_restricted_) -
3221 reinterpret_cast<char*>(&_impl_.watch_face_package_uid_)) + sizeof(_impl_.is_restricted_));
3222 // @@protoc_insertion_point(copy_constructor:android.os.statsd.wearservices.WsFavouriteWatchFaceSnapshot)
3223 }
3224
SharedCtor(::_pb::Arena * arena,bool is_message_owned)3225 inline void WsFavouriteWatchFaceSnapshot::SharedCtor(
3226 ::_pb::Arena* arena, bool is_message_owned) {
3227 (void)arena;
3228 (void)is_message_owned;
3229 new (&_impl_) Impl_{
3230 decltype(_impl_._has_bits_){}
3231 , /*decltype(_impl_._cached_size_)*/{}
3232 , decltype(_impl_.complication_component_package_uid_){arena}
3233 , decltype(_impl_.complication_component_class_name_){arena}
3234 , decltype(_impl_.complication_type_){arena}
3235 , decltype(_impl_.watch_face_class_name_){}
3236 , decltype(_impl_.watch_face_package_uid_){0}
3237 , decltype(_impl_.favorite_id_){0}
3238 , decltype(_impl_.is_current_active_){false}
3239 , decltype(_impl_.is_restricted_){false}
3240 };
3241 _impl_.watch_face_class_name_.InitDefault();
3242 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
3243 _impl_.watch_face_class_name_.Set("", GetArenaForAllocation());
3244 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
3245 }
3246
~WsFavouriteWatchFaceSnapshot()3247 WsFavouriteWatchFaceSnapshot::~WsFavouriteWatchFaceSnapshot() {
3248 // @@protoc_insertion_point(destructor:android.os.statsd.wearservices.WsFavouriteWatchFaceSnapshot)
3249 if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
3250 (void)arena;
3251 return;
3252 }
3253 SharedDtor();
3254 }
3255
SharedDtor()3256 inline void WsFavouriteWatchFaceSnapshot::SharedDtor() {
3257 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
3258 _impl_.complication_component_package_uid_.~RepeatedField();
3259 _impl_.complication_component_class_name_.~RepeatedPtrField();
3260 _impl_.complication_type_.~RepeatedField();
3261 _impl_.watch_face_class_name_.Destroy();
3262 }
3263
SetCachedSize(int size) const3264 void WsFavouriteWatchFaceSnapshot::SetCachedSize(int size) const {
3265 _impl_._cached_size_.Set(size);
3266 }
3267
Clear()3268 void WsFavouriteWatchFaceSnapshot::Clear() {
3269 // @@protoc_insertion_point(message_clear_start:android.os.statsd.wearservices.WsFavouriteWatchFaceSnapshot)
3270 ::uint32_t cached_has_bits = 0;
3271 // Prevent compiler warnings about cached_has_bits being unused
3272 (void) cached_has_bits;
3273
3274 _impl_.complication_component_package_uid_.Clear();
3275 _impl_.complication_component_class_name_.Clear();
3276 _impl_.complication_type_.Clear();
3277 cached_has_bits = _impl_._has_bits_[0];
3278 if (cached_has_bits & 0x00000001u) {
3279 _impl_.watch_face_class_name_.ClearNonDefaultToEmpty();
3280 }
3281 if (cached_has_bits & 0x0000001eu) {
3282 ::memset(&_impl_.watch_face_package_uid_, 0, static_cast<size_t>(
3283 reinterpret_cast<char*>(&_impl_.is_restricted_) -
3284 reinterpret_cast<char*>(&_impl_.watch_face_package_uid_)) + sizeof(_impl_.is_restricted_));
3285 }
3286 _impl_._has_bits_.Clear();
3287 _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
3288 }
3289
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)3290 const char* WsFavouriteWatchFaceSnapshot::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
3291 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
3292 _Internal::HasBits has_bits{};
3293 while (!ctx->Done(&ptr)) {
3294 ::uint32_t tag;
3295 ptr = ::_pbi::ReadTag(ptr, &tag);
3296 switch (tag >> 3) {
3297 // optional int32 watch_face_package_uid = 1 [(.android.os.statsd.is_uid) = true];
3298 case 1:
3299 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
3300 _Internal::set_has_watch_face_package_uid(&has_bits);
3301 _impl_.watch_face_package_uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
3302 CHK_(ptr);
3303 } else {
3304 goto handle_unusual;
3305 }
3306 continue;
3307 // optional string watch_face_class_name = 2;
3308 case 2:
3309 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
3310 auto str = _internal_mutable_watch_face_class_name();
3311 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
3312 CHK_(ptr);
3313 #ifndef NDEBUG
3314 ::_pbi::VerifyUTF8(str, "android.os.statsd.wearservices.WsFavouriteWatchFaceSnapshot.watch_face_class_name");
3315 #endif // !NDEBUG
3316 } else {
3317 goto handle_unusual;
3318 }
3319 continue;
3320 // optional int32 favorite_id = 3;
3321 case 3:
3322 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
3323 _Internal::set_has_favorite_id(&has_bits);
3324 _impl_.favorite_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
3325 CHK_(ptr);
3326 } else {
3327 goto handle_unusual;
3328 }
3329 continue;
3330 // repeated int32 complication_component_package_uid = 4 [(.android.os.statsd.is_uid) = true];
3331 case 4:
3332 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) {
3333 ptr -= 1;
3334 do {
3335 ptr += 1;
3336 _internal_add_complication_component_package_uid(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr));
3337 CHK_(ptr);
3338 if (!ctx->DataAvailable(ptr)) break;
3339 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<32>(ptr));
3340 } else if (static_cast<::uint8_t>(tag) == 34) {
3341 ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(_internal_mutable_complication_component_package_uid(), ptr, ctx);
3342 CHK_(ptr);
3343 } else {
3344 goto handle_unusual;
3345 }
3346 continue;
3347 // repeated string complication_component_class_name = 5;
3348 case 5:
3349 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 42)) {
3350 ptr -= 1;
3351 do {
3352 ptr += 1;
3353 auto str = _internal_add_complication_component_class_name();
3354 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
3355 CHK_(ptr);
3356 #ifndef NDEBUG
3357 ::_pbi::VerifyUTF8(str, "android.os.statsd.wearservices.WsFavouriteWatchFaceSnapshot.complication_component_class_name");
3358 #endif // !NDEBUG
3359 if (!ctx->DataAvailable(ptr)) break;
3360 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr));
3361 } else {
3362 goto handle_unusual;
3363 }
3364 continue;
3365 // repeated int32 complication_type = 6;
3366 case 6:
3367 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 48)) {
3368 ptr -= 1;
3369 do {
3370 ptr += 1;
3371 _internal_add_complication_type(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr));
3372 CHK_(ptr);
3373 if (!ctx->DataAvailable(ptr)) break;
3374 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<48>(ptr));
3375 } else if (static_cast<::uint8_t>(tag) == 50) {
3376 ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(_internal_mutable_complication_type(), ptr, ctx);
3377 CHK_(ptr);
3378 } else {
3379 goto handle_unusual;
3380 }
3381 continue;
3382 // optional bool is_current_active = 7;
3383 case 7:
3384 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 56)) {
3385 _Internal::set_has_is_current_active(&has_bits);
3386 _impl_.is_current_active_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
3387 CHK_(ptr);
3388 } else {
3389 goto handle_unusual;
3390 }
3391 continue;
3392 // optional bool is_restricted = 8;
3393 case 8:
3394 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 64)) {
3395 _Internal::set_has_is_restricted(&has_bits);
3396 _impl_.is_restricted_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
3397 CHK_(ptr);
3398 } else {
3399 goto handle_unusual;
3400 }
3401 continue;
3402 default:
3403 goto handle_unusual;
3404 } // switch
3405 handle_unusual:
3406 if ((tag == 0) || ((tag & 7) == 4)) {
3407 CHK_(ptr);
3408 ctx->SetLastTag(tag);
3409 goto message_done;
3410 }
3411 ptr = UnknownFieldParse(
3412 tag,
3413 _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
3414 ptr, ctx);
3415 CHK_(ptr != nullptr);
3416 } // while
3417 message_done:
3418 _impl_._has_bits_.Or(has_bits);
3419 return ptr;
3420 failure:
3421 ptr = nullptr;
3422 goto message_done;
3423 #undef CHK_
3424 }
3425
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const3426 ::uint8_t* WsFavouriteWatchFaceSnapshot::_InternalSerialize(
3427 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
3428 // @@protoc_insertion_point(serialize_to_array_start:android.os.statsd.wearservices.WsFavouriteWatchFaceSnapshot)
3429 ::uint32_t cached_has_bits = 0;
3430 (void) cached_has_bits;
3431
3432 cached_has_bits = _impl_._has_bits_[0];
3433 // optional int32 watch_face_package_uid = 1 [(.android.os.statsd.is_uid) = true];
3434 if (cached_has_bits & 0x00000002u) {
3435 target = stream->EnsureSpace(target);
3436 target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_watch_face_package_uid(), target);
3437 }
3438
3439 // optional string watch_face_class_name = 2;
3440 if (cached_has_bits & 0x00000001u) {
3441 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
3442 this->_internal_watch_face_class_name().data(), static_cast<int>(this->_internal_watch_face_class_name().length()),
3443 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
3444 "android.os.statsd.wearservices.WsFavouriteWatchFaceSnapshot.watch_face_class_name");
3445 target = stream->WriteStringMaybeAliased(
3446 2, this->_internal_watch_face_class_name(), target);
3447 }
3448
3449 // optional int32 favorite_id = 3;
3450 if (cached_has_bits & 0x00000004u) {
3451 target = stream->EnsureSpace(target);
3452 target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_favorite_id(), target);
3453 }
3454
3455 // repeated int32 complication_component_package_uid = 4 [(.android.os.statsd.is_uid) = true];
3456 for (int i = 0, n = this->_internal_complication_component_package_uid_size(); i < n; i++) {
3457 target = stream->EnsureSpace(target);
3458 target = ::_pbi::WireFormatLite::WriteInt32ToArray(4, this->_internal_complication_component_package_uid(i), target);
3459 }
3460
3461 // repeated string complication_component_class_name = 5;
3462 for (int i = 0, n = this->_internal_complication_component_class_name_size(); i < n; i++) {
3463 const auto& s = this->_internal_complication_component_class_name(i);
3464 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
3465 s.data(), static_cast<int>(s.length()),
3466 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
3467 "android.os.statsd.wearservices.WsFavouriteWatchFaceSnapshot.complication_component_class_name");
3468 target = stream->WriteString(5, s, target);
3469 }
3470
3471 // repeated int32 complication_type = 6;
3472 for (int i = 0, n = this->_internal_complication_type_size(); i < n; i++) {
3473 target = stream->EnsureSpace(target);
3474 target = ::_pbi::WireFormatLite::WriteInt32ToArray(6, this->_internal_complication_type(i), target);
3475 }
3476
3477 // optional bool is_current_active = 7;
3478 if (cached_has_bits & 0x00000008u) {
3479 target = stream->EnsureSpace(target);
3480 target = ::_pbi::WireFormatLite::WriteBoolToArray(7, this->_internal_is_current_active(), target);
3481 }
3482
3483 // optional bool is_restricted = 8;
3484 if (cached_has_bits & 0x00000010u) {
3485 target = stream->EnsureSpace(target);
3486 target = ::_pbi::WireFormatLite::WriteBoolToArray(8, this->_internal_is_restricted(), target);
3487 }
3488
3489 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
3490 target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
3491 _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
3492 }
3493 // @@protoc_insertion_point(serialize_to_array_end:android.os.statsd.wearservices.WsFavouriteWatchFaceSnapshot)
3494 return target;
3495 }
3496
ByteSizeLong() const3497 size_t WsFavouriteWatchFaceSnapshot::ByteSizeLong() const {
3498 // @@protoc_insertion_point(message_byte_size_start:android.os.statsd.wearservices.WsFavouriteWatchFaceSnapshot)
3499 size_t total_size = 0;
3500
3501 ::uint32_t cached_has_bits = 0;
3502 // Prevent compiler warnings about cached_has_bits being unused
3503 (void) cached_has_bits;
3504
3505 // repeated int32 complication_component_package_uid = 4 [(.android.os.statsd.is_uid) = true];
3506 {
3507 size_t data_size = ::_pbi::WireFormatLite::
3508 Int32Size(this->_impl_.complication_component_package_uid_);
3509 total_size += 1 *
3510 ::_pbi::FromIntSize(this->_internal_complication_component_package_uid_size());
3511 total_size += data_size;
3512 }
3513
3514 // repeated string complication_component_class_name = 5;
3515 total_size += 1 *
3516 ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.complication_component_class_name_.size());
3517 for (int i = 0, n = _impl_.complication_component_class_name_.size(); i < n; i++) {
3518 total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
3519 _impl_.complication_component_class_name_.Get(i));
3520 }
3521
3522 // repeated int32 complication_type = 6;
3523 {
3524 size_t data_size = ::_pbi::WireFormatLite::
3525 Int32Size(this->_impl_.complication_type_);
3526 total_size += 1 *
3527 ::_pbi::FromIntSize(this->_internal_complication_type_size());
3528 total_size += data_size;
3529 }
3530
3531 cached_has_bits = _impl_._has_bits_[0];
3532 if (cached_has_bits & 0x0000001fu) {
3533 // optional string watch_face_class_name = 2;
3534 if (cached_has_bits & 0x00000001u) {
3535 total_size += 1 +
3536 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
3537 this->_internal_watch_face_class_name());
3538 }
3539
3540 // optional int32 watch_face_package_uid = 1 [(.android.os.statsd.is_uid) = true];
3541 if (cached_has_bits & 0x00000002u) {
3542 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_watch_face_package_uid());
3543 }
3544
3545 // optional int32 favorite_id = 3;
3546 if (cached_has_bits & 0x00000004u) {
3547 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_favorite_id());
3548 }
3549
3550 // optional bool is_current_active = 7;
3551 if (cached_has_bits & 0x00000008u) {
3552 total_size += 1 + 1;
3553 }
3554
3555 // optional bool is_restricted = 8;
3556 if (cached_has_bits & 0x00000010u) {
3557 total_size += 1 + 1;
3558 }
3559
3560 }
3561 return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
3562 }
3563
3564 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData WsFavouriteWatchFaceSnapshot::_class_data_ = {
3565 ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
3566 WsFavouriteWatchFaceSnapshot::MergeImpl
3567 };
GetClassData() const3568 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*WsFavouriteWatchFaceSnapshot::GetClassData() const { return &_class_data_; }
3569
3570
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)3571 void WsFavouriteWatchFaceSnapshot::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
3572 auto* const _this = static_cast<WsFavouriteWatchFaceSnapshot*>(&to_msg);
3573 auto& from = static_cast<const WsFavouriteWatchFaceSnapshot&>(from_msg);
3574 // @@protoc_insertion_point(class_specific_merge_from_start:android.os.statsd.wearservices.WsFavouriteWatchFaceSnapshot)
3575 GOOGLE_DCHECK_NE(&from, _this);
3576 ::uint32_t cached_has_bits = 0;
3577 (void) cached_has_bits;
3578
3579 _this->_impl_.complication_component_package_uid_.MergeFrom(from._impl_.complication_component_package_uid_);
3580 _this->_impl_.complication_component_class_name_.MergeFrom(from._impl_.complication_component_class_name_);
3581 _this->_impl_.complication_type_.MergeFrom(from._impl_.complication_type_);
3582 cached_has_bits = from._impl_._has_bits_[0];
3583 if (cached_has_bits & 0x0000001fu) {
3584 if (cached_has_bits & 0x00000001u) {
3585 _this->_internal_set_watch_face_class_name(from._internal_watch_face_class_name());
3586 }
3587 if (cached_has_bits & 0x00000002u) {
3588 _this->_impl_.watch_face_package_uid_ = from._impl_.watch_face_package_uid_;
3589 }
3590 if (cached_has_bits & 0x00000004u) {
3591 _this->_impl_.favorite_id_ = from._impl_.favorite_id_;
3592 }
3593 if (cached_has_bits & 0x00000008u) {
3594 _this->_impl_.is_current_active_ = from._impl_.is_current_active_;
3595 }
3596 if (cached_has_bits & 0x00000010u) {
3597 _this->_impl_.is_restricted_ = from._impl_.is_restricted_;
3598 }
3599 _this->_impl_._has_bits_[0] |= cached_has_bits;
3600 }
3601 _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
3602 }
3603
CopyFrom(const WsFavouriteWatchFaceSnapshot & from)3604 void WsFavouriteWatchFaceSnapshot::CopyFrom(const WsFavouriteWatchFaceSnapshot& from) {
3605 // @@protoc_insertion_point(class_specific_copy_from_start:android.os.statsd.wearservices.WsFavouriteWatchFaceSnapshot)
3606 if (&from == this) return;
3607 Clear();
3608 MergeFrom(from);
3609 }
3610
IsInitialized() const3611 bool WsFavouriteWatchFaceSnapshot::IsInitialized() const {
3612 return true;
3613 }
3614
InternalSwap(WsFavouriteWatchFaceSnapshot * other)3615 void WsFavouriteWatchFaceSnapshot::InternalSwap(WsFavouriteWatchFaceSnapshot* other) {
3616 using std::swap;
3617 auto* lhs_arena = GetArenaForAllocation();
3618 auto* rhs_arena = other->GetArenaForAllocation();
3619 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
3620 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
3621 _impl_.complication_component_package_uid_.InternalSwap(&other->_impl_.complication_component_package_uid_);
3622 _impl_.complication_component_class_name_.InternalSwap(&other->_impl_.complication_component_class_name_);
3623 _impl_.complication_type_.InternalSwap(&other->_impl_.complication_type_);
3624 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
3625 &_impl_.watch_face_class_name_, lhs_arena,
3626 &other->_impl_.watch_face_class_name_, rhs_arena
3627 );
3628 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
3629 PROTOBUF_FIELD_OFFSET(WsFavouriteWatchFaceSnapshot, _impl_.is_restricted_)
3630 + sizeof(WsFavouriteWatchFaceSnapshot::_impl_.is_restricted_) // NOLINT
3631 - PROTOBUF_FIELD_OFFSET(WsFavouriteWatchFaceSnapshot, _impl_.watch_face_package_uid_)>(
3632 reinterpret_cast<char*>(&_impl_.watch_face_package_uid_),
3633 reinterpret_cast<char*>(&other->_impl_.watch_face_package_uid_));
3634 }
3635
GetMetadata() const3636 ::PROTOBUF_NAMESPACE_ID::Metadata WsFavouriteWatchFaceSnapshot::GetMetadata() const {
3637 return ::_pbi::AssignDescriptors(
3638 &descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto_getter, &descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto_once,
3639 file_level_metadata_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto[9]);
3640 }
3641
3642 // ===================================================================
3643
3644 class WsWatchFaceCustomizationSnapshot::_Internal {
3645 public:
3646 using HasBits = decltype(std::declval<WsWatchFaceCustomizationSnapshot>()._impl_._has_bits_);
set_has_customized_wf(HasBits * has_bits)3647 static void set_has_customized_wf(HasBits* has_bits) {
3648 (*has_bits)[0] |= 1u;
3649 }
set_has_switched_to_pre_installed_wf(HasBits * has_bits)3650 static void set_has_switched_to_pre_installed_wf(HasBits* has_bits) {
3651 (*has_bits)[0] |= 2u;
3652 }
set_has_switched_to_non_preinstalled_wf(HasBits * has_bits)3653 static void set_has_switched_to_non_preinstalled_wf(HasBits* has_bits) {
3654 (*has_bits)[0] |= 4u;
3655 }
3656 };
3657
WsWatchFaceCustomizationSnapshot(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)3658 WsWatchFaceCustomizationSnapshot::WsWatchFaceCustomizationSnapshot(::PROTOBUF_NAMESPACE_ID::Arena* arena,
3659 bool is_message_owned)
3660 : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
3661 SharedCtor(arena, is_message_owned);
3662 // @@protoc_insertion_point(arena_constructor:android.os.statsd.wearservices.WsWatchFaceCustomizationSnapshot)
3663 }
WsWatchFaceCustomizationSnapshot(const WsWatchFaceCustomizationSnapshot & from)3664 WsWatchFaceCustomizationSnapshot::WsWatchFaceCustomizationSnapshot(const WsWatchFaceCustomizationSnapshot& from)
3665 : ::PROTOBUF_NAMESPACE_ID::Message() {
3666 WsWatchFaceCustomizationSnapshot* const _this = this; (void)_this;
3667 new (&_impl_) Impl_{
3668 decltype(_impl_._has_bits_){from._impl_._has_bits_}
3669 , /*decltype(_impl_._cached_size_)*/{}
3670 , decltype(_impl_.customized_wf_){}
3671 , decltype(_impl_.switched_to_pre_installed_wf_){}
3672 , decltype(_impl_.switched_to_non_preinstalled_wf_){}};
3673
3674 _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
3675 ::memcpy(&_impl_.customized_wf_, &from._impl_.customized_wf_,
3676 static_cast<size_t>(reinterpret_cast<char*>(&_impl_.switched_to_non_preinstalled_wf_) -
3677 reinterpret_cast<char*>(&_impl_.customized_wf_)) + sizeof(_impl_.switched_to_non_preinstalled_wf_));
3678 // @@protoc_insertion_point(copy_constructor:android.os.statsd.wearservices.WsWatchFaceCustomizationSnapshot)
3679 }
3680
SharedCtor(::_pb::Arena * arena,bool is_message_owned)3681 inline void WsWatchFaceCustomizationSnapshot::SharedCtor(
3682 ::_pb::Arena* arena, bool is_message_owned) {
3683 (void)arena;
3684 (void)is_message_owned;
3685 new (&_impl_) Impl_{
3686 decltype(_impl_._has_bits_){}
3687 , /*decltype(_impl_._cached_size_)*/{}
3688 , decltype(_impl_.customized_wf_){false}
3689 , decltype(_impl_.switched_to_pre_installed_wf_){false}
3690 , decltype(_impl_.switched_to_non_preinstalled_wf_){false}
3691 };
3692 }
3693
~WsWatchFaceCustomizationSnapshot()3694 WsWatchFaceCustomizationSnapshot::~WsWatchFaceCustomizationSnapshot() {
3695 // @@protoc_insertion_point(destructor:android.os.statsd.wearservices.WsWatchFaceCustomizationSnapshot)
3696 if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
3697 (void)arena;
3698 return;
3699 }
3700 SharedDtor();
3701 }
3702
SharedDtor()3703 inline void WsWatchFaceCustomizationSnapshot::SharedDtor() {
3704 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
3705 }
3706
SetCachedSize(int size) const3707 void WsWatchFaceCustomizationSnapshot::SetCachedSize(int size) const {
3708 _impl_._cached_size_.Set(size);
3709 }
3710
Clear()3711 void WsWatchFaceCustomizationSnapshot::Clear() {
3712 // @@protoc_insertion_point(message_clear_start:android.os.statsd.wearservices.WsWatchFaceCustomizationSnapshot)
3713 ::uint32_t cached_has_bits = 0;
3714 // Prevent compiler warnings about cached_has_bits being unused
3715 (void) cached_has_bits;
3716
3717 ::memset(&_impl_.customized_wf_, 0, static_cast<size_t>(
3718 reinterpret_cast<char*>(&_impl_.switched_to_non_preinstalled_wf_) -
3719 reinterpret_cast<char*>(&_impl_.customized_wf_)) + sizeof(_impl_.switched_to_non_preinstalled_wf_));
3720 _impl_._has_bits_.Clear();
3721 _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
3722 }
3723
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)3724 const char* WsWatchFaceCustomizationSnapshot::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
3725 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
3726 _Internal::HasBits has_bits{};
3727 while (!ctx->Done(&ptr)) {
3728 ::uint32_t tag;
3729 ptr = ::_pbi::ReadTag(ptr, &tag);
3730 switch (tag >> 3) {
3731 // optional bool customized_wf = 1;
3732 case 1:
3733 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
3734 _Internal::set_has_customized_wf(&has_bits);
3735 _impl_.customized_wf_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
3736 CHK_(ptr);
3737 } else {
3738 goto handle_unusual;
3739 }
3740 continue;
3741 // optional bool switched_to_pre_installed_wf = 2;
3742 case 2:
3743 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
3744 _Internal::set_has_switched_to_pre_installed_wf(&has_bits);
3745 _impl_.switched_to_pre_installed_wf_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
3746 CHK_(ptr);
3747 } else {
3748 goto handle_unusual;
3749 }
3750 continue;
3751 // optional bool switched_to_non_preinstalled_wf = 3;
3752 case 3:
3753 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
3754 _Internal::set_has_switched_to_non_preinstalled_wf(&has_bits);
3755 _impl_.switched_to_non_preinstalled_wf_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
3756 CHK_(ptr);
3757 } else {
3758 goto handle_unusual;
3759 }
3760 continue;
3761 default:
3762 goto handle_unusual;
3763 } // switch
3764 handle_unusual:
3765 if ((tag == 0) || ((tag & 7) == 4)) {
3766 CHK_(ptr);
3767 ctx->SetLastTag(tag);
3768 goto message_done;
3769 }
3770 ptr = UnknownFieldParse(
3771 tag,
3772 _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
3773 ptr, ctx);
3774 CHK_(ptr != nullptr);
3775 } // while
3776 message_done:
3777 _impl_._has_bits_.Or(has_bits);
3778 return ptr;
3779 failure:
3780 ptr = nullptr;
3781 goto message_done;
3782 #undef CHK_
3783 }
3784
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const3785 ::uint8_t* WsWatchFaceCustomizationSnapshot::_InternalSerialize(
3786 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
3787 // @@protoc_insertion_point(serialize_to_array_start:android.os.statsd.wearservices.WsWatchFaceCustomizationSnapshot)
3788 ::uint32_t cached_has_bits = 0;
3789 (void) cached_has_bits;
3790
3791 cached_has_bits = _impl_._has_bits_[0];
3792 // optional bool customized_wf = 1;
3793 if (cached_has_bits & 0x00000001u) {
3794 target = stream->EnsureSpace(target);
3795 target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_customized_wf(), target);
3796 }
3797
3798 // optional bool switched_to_pre_installed_wf = 2;
3799 if (cached_has_bits & 0x00000002u) {
3800 target = stream->EnsureSpace(target);
3801 target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_switched_to_pre_installed_wf(), target);
3802 }
3803
3804 // optional bool switched_to_non_preinstalled_wf = 3;
3805 if (cached_has_bits & 0x00000004u) {
3806 target = stream->EnsureSpace(target);
3807 target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_switched_to_non_preinstalled_wf(), target);
3808 }
3809
3810 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
3811 target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
3812 _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
3813 }
3814 // @@protoc_insertion_point(serialize_to_array_end:android.os.statsd.wearservices.WsWatchFaceCustomizationSnapshot)
3815 return target;
3816 }
3817
ByteSizeLong() const3818 size_t WsWatchFaceCustomizationSnapshot::ByteSizeLong() const {
3819 // @@protoc_insertion_point(message_byte_size_start:android.os.statsd.wearservices.WsWatchFaceCustomizationSnapshot)
3820 size_t total_size = 0;
3821
3822 ::uint32_t cached_has_bits = 0;
3823 // Prevent compiler warnings about cached_has_bits being unused
3824 (void) cached_has_bits;
3825
3826 cached_has_bits = _impl_._has_bits_[0];
3827 if (cached_has_bits & 0x00000007u) {
3828 // optional bool customized_wf = 1;
3829 if (cached_has_bits & 0x00000001u) {
3830 total_size += 1 + 1;
3831 }
3832
3833 // optional bool switched_to_pre_installed_wf = 2;
3834 if (cached_has_bits & 0x00000002u) {
3835 total_size += 1 + 1;
3836 }
3837
3838 // optional bool switched_to_non_preinstalled_wf = 3;
3839 if (cached_has_bits & 0x00000004u) {
3840 total_size += 1 + 1;
3841 }
3842
3843 }
3844 return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
3845 }
3846
3847 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData WsWatchFaceCustomizationSnapshot::_class_data_ = {
3848 ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
3849 WsWatchFaceCustomizationSnapshot::MergeImpl
3850 };
GetClassData() const3851 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*WsWatchFaceCustomizationSnapshot::GetClassData() const { return &_class_data_; }
3852
3853
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)3854 void WsWatchFaceCustomizationSnapshot::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
3855 auto* const _this = static_cast<WsWatchFaceCustomizationSnapshot*>(&to_msg);
3856 auto& from = static_cast<const WsWatchFaceCustomizationSnapshot&>(from_msg);
3857 // @@protoc_insertion_point(class_specific_merge_from_start:android.os.statsd.wearservices.WsWatchFaceCustomizationSnapshot)
3858 GOOGLE_DCHECK_NE(&from, _this);
3859 ::uint32_t cached_has_bits = 0;
3860 (void) cached_has_bits;
3861
3862 cached_has_bits = from._impl_._has_bits_[0];
3863 if (cached_has_bits & 0x00000007u) {
3864 if (cached_has_bits & 0x00000001u) {
3865 _this->_impl_.customized_wf_ = from._impl_.customized_wf_;
3866 }
3867 if (cached_has_bits & 0x00000002u) {
3868 _this->_impl_.switched_to_pre_installed_wf_ = from._impl_.switched_to_pre_installed_wf_;
3869 }
3870 if (cached_has_bits & 0x00000004u) {
3871 _this->_impl_.switched_to_non_preinstalled_wf_ = from._impl_.switched_to_non_preinstalled_wf_;
3872 }
3873 _this->_impl_._has_bits_[0] |= cached_has_bits;
3874 }
3875 _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
3876 }
3877
CopyFrom(const WsWatchFaceCustomizationSnapshot & from)3878 void WsWatchFaceCustomizationSnapshot::CopyFrom(const WsWatchFaceCustomizationSnapshot& from) {
3879 // @@protoc_insertion_point(class_specific_copy_from_start:android.os.statsd.wearservices.WsWatchFaceCustomizationSnapshot)
3880 if (&from == this) return;
3881 Clear();
3882 MergeFrom(from);
3883 }
3884
IsInitialized() const3885 bool WsWatchFaceCustomizationSnapshot::IsInitialized() const {
3886 return true;
3887 }
3888
InternalSwap(WsWatchFaceCustomizationSnapshot * other)3889 void WsWatchFaceCustomizationSnapshot::InternalSwap(WsWatchFaceCustomizationSnapshot* other) {
3890 using std::swap;
3891 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
3892 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
3893 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
3894 PROTOBUF_FIELD_OFFSET(WsWatchFaceCustomizationSnapshot, _impl_.switched_to_non_preinstalled_wf_)
3895 + sizeof(WsWatchFaceCustomizationSnapshot::_impl_.switched_to_non_preinstalled_wf_) // NOLINT
3896 - PROTOBUF_FIELD_OFFSET(WsWatchFaceCustomizationSnapshot, _impl_.customized_wf_)>(
3897 reinterpret_cast<char*>(&_impl_.customized_wf_),
3898 reinterpret_cast<char*>(&other->_impl_.customized_wf_));
3899 }
3900
GetMetadata() const3901 ::PROTOBUF_NAMESPACE_ID::Metadata WsWatchFaceCustomizationSnapshot::GetMetadata() const {
3902 return ::_pbi::AssignDescriptors(
3903 &descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto_getter, &descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto_once,
3904 file_level_metadata_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto[10]);
3905 }
3906
3907 // ===================================================================
3908
3909 class WsPhotosWatchFaceFeatureSnapshot::_Internal {
3910 public:
3911 using HasBits = decltype(std::declval<WsPhotosWatchFaceFeatureSnapshot>()._impl_._has_bits_);
set_has_watch_face_package_uid(HasBits * has_bits)3912 static void set_has_watch_face_package_uid(HasBits* has_bits) {
3913 (*has_bits)[0] |= 1u;
3914 }
set_has_favorite_id(HasBits * has_bits)3915 static void set_has_favorite_id(HasBits* has_bits) {
3916 (*has_bits)[0] |= 2u;
3917 }
set_has_photo_selection_type(HasBits * has_bits)3918 static void set_has_photo_selection_type(HasBits* has_bits) {
3919 (*has_bits)[0] |= 4u;
3920 }
3921 };
3922
WsPhotosWatchFaceFeatureSnapshot(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)3923 WsPhotosWatchFaceFeatureSnapshot::WsPhotosWatchFaceFeatureSnapshot(::PROTOBUF_NAMESPACE_ID::Arena* arena,
3924 bool is_message_owned)
3925 : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
3926 SharedCtor(arena, is_message_owned);
3927 // @@protoc_insertion_point(arena_constructor:android.os.statsd.wearservices.WsPhotosWatchFaceFeatureSnapshot)
3928 }
WsPhotosWatchFaceFeatureSnapshot(const WsPhotosWatchFaceFeatureSnapshot & from)3929 WsPhotosWatchFaceFeatureSnapshot::WsPhotosWatchFaceFeatureSnapshot(const WsPhotosWatchFaceFeatureSnapshot& from)
3930 : ::PROTOBUF_NAMESPACE_ID::Message() {
3931 WsPhotosWatchFaceFeatureSnapshot* const _this = this; (void)_this;
3932 new (&_impl_) Impl_{
3933 decltype(_impl_._has_bits_){from._impl_._has_bits_}
3934 , /*decltype(_impl_._cached_size_)*/{}
3935 , decltype(_impl_.watch_face_package_uid_){}
3936 , decltype(_impl_.favorite_id_){}
3937 , decltype(_impl_.photo_selection_type_){}};
3938
3939 _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
3940 ::memcpy(&_impl_.watch_face_package_uid_, &from._impl_.watch_face_package_uid_,
3941 static_cast<size_t>(reinterpret_cast<char*>(&_impl_.photo_selection_type_) -
3942 reinterpret_cast<char*>(&_impl_.watch_face_package_uid_)) + sizeof(_impl_.photo_selection_type_));
3943 // @@protoc_insertion_point(copy_constructor:android.os.statsd.wearservices.WsPhotosWatchFaceFeatureSnapshot)
3944 }
3945
SharedCtor(::_pb::Arena * arena,bool is_message_owned)3946 inline void WsPhotosWatchFaceFeatureSnapshot::SharedCtor(
3947 ::_pb::Arena* arena, bool is_message_owned) {
3948 (void)arena;
3949 (void)is_message_owned;
3950 new (&_impl_) Impl_{
3951 decltype(_impl_._has_bits_){}
3952 , /*decltype(_impl_._cached_size_)*/{}
3953 , decltype(_impl_.watch_face_package_uid_){0}
3954 , decltype(_impl_.favorite_id_){0}
3955 , decltype(_impl_.photo_selection_type_){0}
3956 };
3957 }
3958
~WsPhotosWatchFaceFeatureSnapshot()3959 WsPhotosWatchFaceFeatureSnapshot::~WsPhotosWatchFaceFeatureSnapshot() {
3960 // @@protoc_insertion_point(destructor:android.os.statsd.wearservices.WsPhotosWatchFaceFeatureSnapshot)
3961 if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
3962 (void)arena;
3963 return;
3964 }
3965 SharedDtor();
3966 }
3967
SharedDtor()3968 inline void WsPhotosWatchFaceFeatureSnapshot::SharedDtor() {
3969 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
3970 }
3971
SetCachedSize(int size) const3972 void WsPhotosWatchFaceFeatureSnapshot::SetCachedSize(int size) const {
3973 _impl_._cached_size_.Set(size);
3974 }
3975
Clear()3976 void WsPhotosWatchFaceFeatureSnapshot::Clear() {
3977 // @@protoc_insertion_point(message_clear_start:android.os.statsd.wearservices.WsPhotosWatchFaceFeatureSnapshot)
3978 ::uint32_t cached_has_bits = 0;
3979 // Prevent compiler warnings about cached_has_bits being unused
3980 (void) cached_has_bits;
3981
3982 cached_has_bits = _impl_._has_bits_[0];
3983 if (cached_has_bits & 0x00000007u) {
3984 ::memset(&_impl_.watch_face_package_uid_, 0, static_cast<size_t>(
3985 reinterpret_cast<char*>(&_impl_.photo_selection_type_) -
3986 reinterpret_cast<char*>(&_impl_.watch_face_package_uid_)) + sizeof(_impl_.photo_selection_type_));
3987 }
3988 _impl_._has_bits_.Clear();
3989 _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
3990 }
3991
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)3992 const char* WsPhotosWatchFaceFeatureSnapshot::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
3993 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
3994 _Internal::HasBits has_bits{};
3995 while (!ctx->Done(&ptr)) {
3996 ::uint32_t tag;
3997 ptr = ::_pbi::ReadTag(ptr, &tag);
3998 switch (tag >> 3) {
3999 // optional int32 watch_face_package_uid = 1 [(.android.os.statsd.is_uid) = true];
4000 case 1:
4001 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
4002 _Internal::set_has_watch_face_package_uid(&has_bits);
4003 _impl_.watch_face_package_uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
4004 CHK_(ptr);
4005 } else {
4006 goto handle_unusual;
4007 }
4008 continue;
4009 // optional int32 favorite_id = 2;
4010 case 2:
4011 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
4012 _Internal::set_has_favorite_id(&has_bits);
4013 _impl_.favorite_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
4014 CHK_(ptr);
4015 } else {
4016 goto handle_unusual;
4017 }
4018 continue;
4019 // optional .android.app.wearservices.PhotoSelectionType photo_selection_type = 3;
4020 case 3:
4021 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
4022 ::uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
4023 CHK_(ptr);
4024 if (PROTOBUF_PREDICT_TRUE(::android::app::wearservices::PhotoSelectionType_IsValid(val))) {
4025 _internal_set_photo_selection_type(static_cast<::android::app::wearservices::PhotoSelectionType>(val));
4026 } else {
4027 ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(3, val, mutable_unknown_fields());
4028 }
4029 } else {
4030 goto handle_unusual;
4031 }
4032 continue;
4033 default:
4034 goto handle_unusual;
4035 } // switch
4036 handle_unusual:
4037 if ((tag == 0) || ((tag & 7) == 4)) {
4038 CHK_(ptr);
4039 ctx->SetLastTag(tag);
4040 goto message_done;
4041 }
4042 ptr = UnknownFieldParse(
4043 tag,
4044 _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
4045 ptr, ctx);
4046 CHK_(ptr != nullptr);
4047 } // while
4048 message_done:
4049 _impl_._has_bits_.Or(has_bits);
4050 return ptr;
4051 failure:
4052 ptr = nullptr;
4053 goto message_done;
4054 #undef CHK_
4055 }
4056
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const4057 ::uint8_t* WsPhotosWatchFaceFeatureSnapshot::_InternalSerialize(
4058 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
4059 // @@protoc_insertion_point(serialize_to_array_start:android.os.statsd.wearservices.WsPhotosWatchFaceFeatureSnapshot)
4060 ::uint32_t cached_has_bits = 0;
4061 (void) cached_has_bits;
4062
4063 cached_has_bits = _impl_._has_bits_[0];
4064 // optional int32 watch_face_package_uid = 1 [(.android.os.statsd.is_uid) = true];
4065 if (cached_has_bits & 0x00000001u) {
4066 target = stream->EnsureSpace(target);
4067 target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_watch_face_package_uid(), target);
4068 }
4069
4070 // optional int32 favorite_id = 2;
4071 if (cached_has_bits & 0x00000002u) {
4072 target = stream->EnsureSpace(target);
4073 target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_favorite_id(), target);
4074 }
4075
4076 // optional .android.app.wearservices.PhotoSelectionType photo_selection_type = 3;
4077 if (cached_has_bits & 0x00000004u) {
4078 target = stream->EnsureSpace(target);
4079 target = ::_pbi::WireFormatLite::WriteEnumToArray(
4080 3, this->_internal_photo_selection_type(), target);
4081 }
4082
4083 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
4084 target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
4085 _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
4086 }
4087 // @@protoc_insertion_point(serialize_to_array_end:android.os.statsd.wearservices.WsPhotosWatchFaceFeatureSnapshot)
4088 return target;
4089 }
4090
ByteSizeLong() const4091 size_t WsPhotosWatchFaceFeatureSnapshot::ByteSizeLong() const {
4092 // @@protoc_insertion_point(message_byte_size_start:android.os.statsd.wearservices.WsPhotosWatchFaceFeatureSnapshot)
4093 size_t total_size = 0;
4094
4095 ::uint32_t cached_has_bits = 0;
4096 // Prevent compiler warnings about cached_has_bits being unused
4097 (void) cached_has_bits;
4098
4099 cached_has_bits = _impl_._has_bits_[0];
4100 if (cached_has_bits & 0x00000007u) {
4101 // optional int32 watch_face_package_uid = 1 [(.android.os.statsd.is_uid) = true];
4102 if (cached_has_bits & 0x00000001u) {
4103 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_watch_face_package_uid());
4104 }
4105
4106 // optional int32 favorite_id = 2;
4107 if (cached_has_bits & 0x00000002u) {
4108 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_favorite_id());
4109 }
4110
4111 // optional .android.app.wearservices.PhotoSelectionType photo_selection_type = 3;
4112 if (cached_has_bits & 0x00000004u) {
4113 total_size += 1 +
4114 ::_pbi::WireFormatLite::EnumSize(this->_internal_photo_selection_type());
4115 }
4116
4117 }
4118 return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
4119 }
4120
4121 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData WsPhotosWatchFaceFeatureSnapshot::_class_data_ = {
4122 ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
4123 WsPhotosWatchFaceFeatureSnapshot::MergeImpl
4124 };
GetClassData() const4125 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*WsPhotosWatchFaceFeatureSnapshot::GetClassData() const { return &_class_data_; }
4126
4127
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)4128 void WsPhotosWatchFaceFeatureSnapshot::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
4129 auto* const _this = static_cast<WsPhotosWatchFaceFeatureSnapshot*>(&to_msg);
4130 auto& from = static_cast<const WsPhotosWatchFaceFeatureSnapshot&>(from_msg);
4131 // @@protoc_insertion_point(class_specific_merge_from_start:android.os.statsd.wearservices.WsPhotosWatchFaceFeatureSnapshot)
4132 GOOGLE_DCHECK_NE(&from, _this);
4133 ::uint32_t cached_has_bits = 0;
4134 (void) cached_has_bits;
4135
4136 cached_has_bits = from._impl_._has_bits_[0];
4137 if (cached_has_bits & 0x00000007u) {
4138 if (cached_has_bits & 0x00000001u) {
4139 _this->_impl_.watch_face_package_uid_ = from._impl_.watch_face_package_uid_;
4140 }
4141 if (cached_has_bits & 0x00000002u) {
4142 _this->_impl_.favorite_id_ = from._impl_.favorite_id_;
4143 }
4144 if (cached_has_bits & 0x00000004u) {
4145 _this->_impl_.photo_selection_type_ = from._impl_.photo_selection_type_;
4146 }
4147 _this->_impl_._has_bits_[0] |= cached_has_bits;
4148 }
4149 _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
4150 }
4151
CopyFrom(const WsPhotosWatchFaceFeatureSnapshot & from)4152 void WsPhotosWatchFaceFeatureSnapshot::CopyFrom(const WsPhotosWatchFaceFeatureSnapshot& from) {
4153 // @@protoc_insertion_point(class_specific_copy_from_start:android.os.statsd.wearservices.WsPhotosWatchFaceFeatureSnapshot)
4154 if (&from == this) return;
4155 Clear();
4156 MergeFrom(from);
4157 }
4158
IsInitialized() const4159 bool WsPhotosWatchFaceFeatureSnapshot::IsInitialized() const {
4160 return true;
4161 }
4162
InternalSwap(WsPhotosWatchFaceFeatureSnapshot * other)4163 void WsPhotosWatchFaceFeatureSnapshot::InternalSwap(WsPhotosWatchFaceFeatureSnapshot* other) {
4164 using std::swap;
4165 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
4166 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
4167 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
4168 PROTOBUF_FIELD_OFFSET(WsPhotosWatchFaceFeatureSnapshot, _impl_.photo_selection_type_)
4169 + sizeof(WsPhotosWatchFaceFeatureSnapshot::_impl_.photo_selection_type_) // NOLINT
4170 - PROTOBUF_FIELD_OFFSET(WsPhotosWatchFaceFeatureSnapshot, _impl_.watch_face_package_uid_)>(
4171 reinterpret_cast<char*>(&_impl_.watch_face_package_uid_),
4172 reinterpret_cast<char*>(&other->_impl_.watch_face_package_uid_));
4173 }
4174
GetMetadata() const4175 ::PROTOBUF_NAMESPACE_ID::Metadata WsPhotosWatchFaceFeatureSnapshot::GetMetadata() const {
4176 return ::_pbi::AssignDescriptors(
4177 &descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto_getter, &descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto_once,
4178 file_level_metadata_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto[11]);
4179 }
4180
4181 // ===================================================================
4182
4183 class WsWatchFaceDefaultRestrictedComplicationsRemoved::_Internal {
4184 public:
4185 using HasBits = decltype(std::declval<WsWatchFaceDefaultRestrictedComplicationsRemoved>()._impl_._has_bits_);
set_has_watch_face_package_uid(HasBits * has_bits)4186 static void set_has_watch_face_package_uid(HasBits* has_bits) {
4187 (*has_bits)[0] |= 2u;
4188 }
set_has_watch_face_component_class_name(HasBits * has_bits)4189 static void set_has_watch_face_component_class_name(HasBits* has_bits) {
4190 (*has_bits)[0] |= 1u;
4191 }
set_has_watch_face_type(HasBits * has_bits)4192 static void set_has_watch_face_type(HasBits* has_bits) {
4193 (*has_bits)[0] |= 4u;
4194 }
4195 };
4196
WsWatchFaceDefaultRestrictedComplicationsRemoved(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)4197 WsWatchFaceDefaultRestrictedComplicationsRemoved::WsWatchFaceDefaultRestrictedComplicationsRemoved(::PROTOBUF_NAMESPACE_ID::Arena* arena,
4198 bool is_message_owned)
4199 : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
4200 SharedCtor(arena, is_message_owned);
4201 // @@protoc_insertion_point(arena_constructor:android.os.statsd.wearservices.WsWatchFaceDefaultRestrictedComplicationsRemoved)
4202 }
WsWatchFaceDefaultRestrictedComplicationsRemoved(const WsWatchFaceDefaultRestrictedComplicationsRemoved & from)4203 WsWatchFaceDefaultRestrictedComplicationsRemoved::WsWatchFaceDefaultRestrictedComplicationsRemoved(const WsWatchFaceDefaultRestrictedComplicationsRemoved& from)
4204 : ::PROTOBUF_NAMESPACE_ID::Message() {
4205 WsWatchFaceDefaultRestrictedComplicationsRemoved* const _this = this; (void)_this;
4206 new (&_impl_) Impl_{
4207 decltype(_impl_._has_bits_){from._impl_._has_bits_}
4208 , /*decltype(_impl_._cached_size_)*/{}
4209 , decltype(_impl_.complication_component_package_uid_){from._impl_.complication_component_package_uid_}
4210 , decltype(_impl_.complication_component_class_name_){from._impl_.complication_component_class_name_}
4211 , decltype(_impl_.complication_type_){from._impl_.complication_type_}
4212 , decltype(_impl_.slot_id_){from._impl_.slot_id_}
4213 , decltype(_impl_.watch_face_component_class_name_){}
4214 , decltype(_impl_.watch_face_package_uid_){}
4215 , decltype(_impl_.watch_face_type_){}};
4216
4217 _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
4218 _impl_.watch_face_component_class_name_.InitDefault();
4219 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
4220 _impl_.watch_face_component_class_name_.Set("", GetArenaForAllocation());
4221 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
4222 if (from._internal_has_watch_face_component_class_name()) {
4223 _this->_impl_.watch_face_component_class_name_.Set(from._internal_watch_face_component_class_name(),
4224 _this->GetArenaForAllocation());
4225 }
4226 ::memcpy(&_impl_.watch_face_package_uid_, &from._impl_.watch_face_package_uid_,
4227 static_cast<size_t>(reinterpret_cast<char*>(&_impl_.watch_face_type_) -
4228 reinterpret_cast<char*>(&_impl_.watch_face_package_uid_)) + sizeof(_impl_.watch_face_type_));
4229 // @@protoc_insertion_point(copy_constructor:android.os.statsd.wearservices.WsWatchFaceDefaultRestrictedComplicationsRemoved)
4230 }
4231
SharedCtor(::_pb::Arena * arena,bool is_message_owned)4232 inline void WsWatchFaceDefaultRestrictedComplicationsRemoved::SharedCtor(
4233 ::_pb::Arena* arena, bool is_message_owned) {
4234 (void)arena;
4235 (void)is_message_owned;
4236 new (&_impl_) Impl_{
4237 decltype(_impl_._has_bits_){}
4238 , /*decltype(_impl_._cached_size_)*/{}
4239 , decltype(_impl_.complication_component_package_uid_){arena}
4240 , decltype(_impl_.complication_component_class_name_){arena}
4241 , decltype(_impl_.complication_type_){arena}
4242 , decltype(_impl_.slot_id_){arena}
4243 , decltype(_impl_.watch_face_component_class_name_){}
4244 , decltype(_impl_.watch_face_package_uid_){0}
4245 , decltype(_impl_.watch_face_type_){0}
4246 };
4247 _impl_.watch_face_component_class_name_.InitDefault();
4248 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
4249 _impl_.watch_face_component_class_name_.Set("", GetArenaForAllocation());
4250 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
4251 }
4252
~WsWatchFaceDefaultRestrictedComplicationsRemoved()4253 WsWatchFaceDefaultRestrictedComplicationsRemoved::~WsWatchFaceDefaultRestrictedComplicationsRemoved() {
4254 // @@protoc_insertion_point(destructor:android.os.statsd.wearservices.WsWatchFaceDefaultRestrictedComplicationsRemoved)
4255 if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
4256 (void)arena;
4257 return;
4258 }
4259 SharedDtor();
4260 }
4261
SharedDtor()4262 inline void WsWatchFaceDefaultRestrictedComplicationsRemoved::SharedDtor() {
4263 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
4264 _impl_.complication_component_package_uid_.~RepeatedField();
4265 _impl_.complication_component_class_name_.~RepeatedPtrField();
4266 _impl_.complication_type_.~RepeatedField();
4267 _impl_.slot_id_.~RepeatedField();
4268 _impl_.watch_face_component_class_name_.Destroy();
4269 }
4270
SetCachedSize(int size) const4271 void WsWatchFaceDefaultRestrictedComplicationsRemoved::SetCachedSize(int size) const {
4272 _impl_._cached_size_.Set(size);
4273 }
4274
Clear()4275 void WsWatchFaceDefaultRestrictedComplicationsRemoved::Clear() {
4276 // @@protoc_insertion_point(message_clear_start:android.os.statsd.wearservices.WsWatchFaceDefaultRestrictedComplicationsRemoved)
4277 ::uint32_t cached_has_bits = 0;
4278 // Prevent compiler warnings about cached_has_bits being unused
4279 (void) cached_has_bits;
4280
4281 _impl_.complication_component_package_uid_.Clear();
4282 _impl_.complication_component_class_name_.Clear();
4283 _impl_.complication_type_.Clear();
4284 _impl_.slot_id_.Clear();
4285 cached_has_bits = _impl_._has_bits_[0];
4286 if (cached_has_bits & 0x00000001u) {
4287 _impl_.watch_face_component_class_name_.ClearNonDefaultToEmpty();
4288 }
4289 if (cached_has_bits & 0x00000006u) {
4290 ::memset(&_impl_.watch_face_package_uid_, 0, static_cast<size_t>(
4291 reinterpret_cast<char*>(&_impl_.watch_face_type_) -
4292 reinterpret_cast<char*>(&_impl_.watch_face_package_uid_)) + sizeof(_impl_.watch_face_type_));
4293 }
4294 _impl_._has_bits_.Clear();
4295 _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
4296 }
4297
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)4298 const char* WsWatchFaceDefaultRestrictedComplicationsRemoved::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
4299 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
4300 _Internal::HasBits has_bits{};
4301 while (!ctx->Done(&ptr)) {
4302 ::uint32_t tag;
4303 ptr = ::_pbi::ReadTag(ptr, &tag);
4304 switch (tag >> 3) {
4305 // optional int32 watch_face_package_uid = 1 [(.android.os.statsd.is_uid) = true];
4306 case 1:
4307 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
4308 _Internal::set_has_watch_face_package_uid(&has_bits);
4309 _impl_.watch_face_package_uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
4310 CHK_(ptr);
4311 } else {
4312 goto handle_unusual;
4313 }
4314 continue;
4315 // optional string watch_face_component_class_name = 2;
4316 case 2:
4317 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
4318 auto str = _internal_mutable_watch_face_component_class_name();
4319 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
4320 CHK_(ptr);
4321 #ifndef NDEBUG
4322 ::_pbi::VerifyUTF8(str, "android.os.statsd.wearservices.WsWatchFaceDefaultRestrictedComplicationsRemoved.watch_face_component_class_name");
4323 #endif // !NDEBUG
4324 } else {
4325 goto handle_unusual;
4326 }
4327 continue;
4328 // repeated int32 complication_component_package_uid = 3 [(.android.os.statsd.is_uid) = true];
4329 case 3:
4330 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
4331 ptr -= 1;
4332 do {
4333 ptr += 1;
4334 _internal_add_complication_component_package_uid(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr));
4335 CHK_(ptr);
4336 if (!ctx->DataAvailable(ptr)) break;
4337 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<24>(ptr));
4338 } else if (static_cast<::uint8_t>(tag) == 26) {
4339 ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(_internal_mutable_complication_component_package_uid(), ptr, ctx);
4340 CHK_(ptr);
4341 } else {
4342 goto handle_unusual;
4343 }
4344 continue;
4345 // repeated string complication_component_class_name = 4;
4346 case 4:
4347 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) {
4348 ptr -= 1;
4349 do {
4350 ptr += 1;
4351 auto str = _internal_add_complication_component_class_name();
4352 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
4353 CHK_(ptr);
4354 #ifndef NDEBUG
4355 ::_pbi::VerifyUTF8(str, "android.os.statsd.wearservices.WsWatchFaceDefaultRestrictedComplicationsRemoved.complication_component_class_name");
4356 #endif // !NDEBUG
4357 if (!ctx->DataAvailable(ptr)) break;
4358 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr));
4359 } else {
4360 goto handle_unusual;
4361 }
4362 continue;
4363 // repeated int32 complication_type = 5;
4364 case 5:
4365 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 40)) {
4366 ptr -= 1;
4367 do {
4368 ptr += 1;
4369 _internal_add_complication_type(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr));
4370 CHK_(ptr);
4371 if (!ctx->DataAvailable(ptr)) break;
4372 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<40>(ptr));
4373 } else if (static_cast<::uint8_t>(tag) == 42) {
4374 ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(_internal_mutable_complication_type(), ptr, ctx);
4375 CHK_(ptr);
4376 } else {
4377 goto handle_unusual;
4378 }
4379 continue;
4380 // repeated int32 slot_id = 6;
4381 case 6:
4382 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 48)) {
4383 ptr -= 1;
4384 do {
4385 ptr += 1;
4386 _internal_add_slot_id(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr));
4387 CHK_(ptr);
4388 if (!ctx->DataAvailable(ptr)) break;
4389 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<48>(ptr));
4390 } else if (static_cast<::uint8_t>(tag) == 50) {
4391 ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(_internal_mutable_slot_id(), ptr, ctx);
4392 CHK_(ptr);
4393 } else {
4394 goto handle_unusual;
4395 }
4396 continue;
4397 // optional .android.app.wearservices.WatchFaceType watch_face_type = 7;
4398 case 7:
4399 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 56)) {
4400 ::uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
4401 CHK_(ptr);
4402 if (PROTOBUF_PREDICT_TRUE(::android::app::wearservices::WatchFaceType_IsValid(val))) {
4403 _internal_set_watch_face_type(static_cast<::android::app::wearservices::WatchFaceType>(val));
4404 } else {
4405 ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(7, val, mutable_unknown_fields());
4406 }
4407 } else {
4408 goto handle_unusual;
4409 }
4410 continue;
4411 default:
4412 goto handle_unusual;
4413 } // switch
4414 handle_unusual:
4415 if ((tag == 0) || ((tag & 7) == 4)) {
4416 CHK_(ptr);
4417 ctx->SetLastTag(tag);
4418 goto message_done;
4419 }
4420 ptr = UnknownFieldParse(
4421 tag,
4422 _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
4423 ptr, ctx);
4424 CHK_(ptr != nullptr);
4425 } // while
4426 message_done:
4427 _impl_._has_bits_.Or(has_bits);
4428 return ptr;
4429 failure:
4430 ptr = nullptr;
4431 goto message_done;
4432 #undef CHK_
4433 }
4434
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const4435 ::uint8_t* WsWatchFaceDefaultRestrictedComplicationsRemoved::_InternalSerialize(
4436 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
4437 // @@protoc_insertion_point(serialize_to_array_start:android.os.statsd.wearservices.WsWatchFaceDefaultRestrictedComplicationsRemoved)
4438 ::uint32_t cached_has_bits = 0;
4439 (void) cached_has_bits;
4440
4441 cached_has_bits = _impl_._has_bits_[0];
4442 // optional int32 watch_face_package_uid = 1 [(.android.os.statsd.is_uid) = true];
4443 if (cached_has_bits & 0x00000002u) {
4444 target = stream->EnsureSpace(target);
4445 target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_watch_face_package_uid(), target);
4446 }
4447
4448 // optional string watch_face_component_class_name = 2;
4449 if (cached_has_bits & 0x00000001u) {
4450 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
4451 this->_internal_watch_face_component_class_name().data(), static_cast<int>(this->_internal_watch_face_component_class_name().length()),
4452 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
4453 "android.os.statsd.wearservices.WsWatchFaceDefaultRestrictedComplicationsRemoved.watch_face_component_class_name");
4454 target = stream->WriteStringMaybeAliased(
4455 2, this->_internal_watch_face_component_class_name(), target);
4456 }
4457
4458 // repeated int32 complication_component_package_uid = 3 [(.android.os.statsd.is_uid) = true];
4459 for (int i = 0, n = this->_internal_complication_component_package_uid_size(); i < n; i++) {
4460 target = stream->EnsureSpace(target);
4461 target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_complication_component_package_uid(i), target);
4462 }
4463
4464 // repeated string complication_component_class_name = 4;
4465 for (int i = 0, n = this->_internal_complication_component_class_name_size(); i < n; i++) {
4466 const auto& s = this->_internal_complication_component_class_name(i);
4467 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
4468 s.data(), static_cast<int>(s.length()),
4469 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
4470 "android.os.statsd.wearservices.WsWatchFaceDefaultRestrictedComplicationsRemoved.complication_component_class_name");
4471 target = stream->WriteString(4, s, target);
4472 }
4473
4474 // repeated int32 complication_type = 5;
4475 for (int i = 0, n = this->_internal_complication_type_size(); i < n; i++) {
4476 target = stream->EnsureSpace(target);
4477 target = ::_pbi::WireFormatLite::WriteInt32ToArray(5, this->_internal_complication_type(i), target);
4478 }
4479
4480 // repeated int32 slot_id = 6;
4481 for (int i = 0, n = this->_internal_slot_id_size(); i < n; i++) {
4482 target = stream->EnsureSpace(target);
4483 target = ::_pbi::WireFormatLite::WriteInt32ToArray(6, this->_internal_slot_id(i), target);
4484 }
4485
4486 // optional .android.app.wearservices.WatchFaceType watch_face_type = 7;
4487 if (cached_has_bits & 0x00000004u) {
4488 target = stream->EnsureSpace(target);
4489 target = ::_pbi::WireFormatLite::WriteEnumToArray(
4490 7, this->_internal_watch_face_type(), target);
4491 }
4492
4493 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
4494 target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
4495 _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
4496 }
4497 // @@protoc_insertion_point(serialize_to_array_end:android.os.statsd.wearservices.WsWatchFaceDefaultRestrictedComplicationsRemoved)
4498 return target;
4499 }
4500
ByteSizeLong() const4501 size_t WsWatchFaceDefaultRestrictedComplicationsRemoved::ByteSizeLong() const {
4502 // @@protoc_insertion_point(message_byte_size_start:android.os.statsd.wearservices.WsWatchFaceDefaultRestrictedComplicationsRemoved)
4503 size_t total_size = 0;
4504
4505 ::uint32_t cached_has_bits = 0;
4506 // Prevent compiler warnings about cached_has_bits being unused
4507 (void) cached_has_bits;
4508
4509 // repeated int32 complication_component_package_uid = 3 [(.android.os.statsd.is_uid) = true];
4510 {
4511 size_t data_size = ::_pbi::WireFormatLite::
4512 Int32Size(this->_impl_.complication_component_package_uid_);
4513 total_size += 1 *
4514 ::_pbi::FromIntSize(this->_internal_complication_component_package_uid_size());
4515 total_size += data_size;
4516 }
4517
4518 // repeated string complication_component_class_name = 4;
4519 total_size += 1 *
4520 ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.complication_component_class_name_.size());
4521 for (int i = 0, n = _impl_.complication_component_class_name_.size(); i < n; i++) {
4522 total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
4523 _impl_.complication_component_class_name_.Get(i));
4524 }
4525
4526 // repeated int32 complication_type = 5;
4527 {
4528 size_t data_size = ::_pbi::WireFormatLite::
4529 Int32Size(this->_impl_.complication_type_);
4530 total_size += 1 *
4531 ::_pbi::FromIntSize(this->_internal_complication_type_size());
4532 total_size += data_size;
4533 }
4534
4535 // repeated int32 slot_id = 6;
4536 {
4537 size_t data_size = ::_pbi::WireFormatLite::
4538 Int32Size(this->_impl_.slot_id_);
4539 total_size += 1 *
4540 ::_pbi::FromIntSize(this->_internal_slot_id_size());
4541 total_size += data_size;
4542 }
4543
4544 cached_has_bits = _impl_._has_bits_[0];
4545 if (cached_has_bits & 0x00000007u) {
4546 // optional string watch_face_component_class_name = 2;
4547 if (cached_has_bits & 0x00000001u) {
4548 total_size += 1 +
4549 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
4550 this->_internal_watch_face_component_class_name());
4551 }
4552
4553 // optional int32 watch_face_package_uid = 1 [(.android.os.statsd.is_uid) = true];
4554 if (cached_has_bits & 0x00000002u) {
4555 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_watch_face_package_uid());
4556 }
4557
4558 // optional .android.app.wearservices.WatchFaceType watch_face_type = 7;
4559 if (cached_has_bits & 0x00000004u) {
4560 total_size += 1 +
4561 ::_pbi::WireFormatLite::EnumSize(this->_internal_watch_face_type());
4562 }
4563
4564 }
4565 return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
4566 }
4567
4568 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData WsWatchFaceDefaultRestrictedComplicationsRemoved::_class_data_ = {
4569 ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
4570 WsWatchFaceDefaultRestrictedComplicationsRemoved::MergeImpl
4571 };
GetClassData() const4572 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*WsWatchFaceDefaultRestrictedComplicationsRemoved::GetClassData() const { return &_class_data_; }
4573
4574
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)4575 void WsWatchFaceDefaultRestrictedComplicationsRemoved::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
4576 auto* const _this = static_cast<WsWatchFaceDefaultRestrictedComplicationsRemoved*>(&to_msg);
4577 auto& from = static_cast<const WsWatchFaceDefaultRestrictedComplicationsRemoved&>(from_msg);
4578 // @@protoc_insertion_point(class_specific_merge_from_start:android.os.statsd.wearservices.WsWatchFaceDefaultRestrictedComplicationsRemoved)
4579 GOOGLE_DCHECK_NE(&from, _this);
4580 ::uint32_t cached_has_bits = 0;
4581 (void) cached_has_bits;
4582
4583 _this->_impl_.complication_component_package_uid_.MergeFrom(from._impl_.complication_component_package_uid_);
4584 _this->_impl_.complication_component_class_name_.MergeFrom(from._impl_.complication_component_class_name_);
4585 _this->_impl_.complication_type_.MergeFrom(from._impl_.complication_type_);
4586 _this->_impl_.slot_id_.MergeFrom(from._impl_.slot_id_);
4587 cached_has_bits = from._impl_._has_bits_[0];
4588 if (cached_has_bits & 0x00000007u) {
4589 if (cached_has_bits & 0x00000001u) {
4590 _this->_internal_set_watch_face_component_class_name(from._internal_watch_face_component_class_name());
4591 }
4592 if (cached_has_bits & 0x00000002u) {
4593 _this->_impl_.watch_face_package_uid_ = from._impl_.watch_face_package_uid_;
4594 }
4595 if (cached_has_bits & 0x00000004u) {
4596 _this->_impl_.watch_face_type_ = from._impl_.watch_face_type_;
4597 }
4598 _this->_impl_._has_bits_[0] |= cached_has_bits;
4599 }
4600 _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
4601 }
4602
CopyFrom(const WsWatchFaceDefaultRestrictedComplicationsRemoved & from)4603 void WsWatchFaceDefaultRestrictedComplicationsRemoved::CopyFrom(const WsWatchFaceDefaultRestrictedComplicationsRemoved& from) {
4604 // @@protoc_insertion_point(class_specific_copy_from_start:android.os.statsd.wearservices.WsWatchFaceDefaultRestrictedComplicationsRemoved)
4605 if (&from == this) return;
4606 Clear();
4607 MergeFrom(from);
4608 }
4609
IsInitialized() const4610 bool WsWatchFaceDefaultRestrictedComplicationsRemoved::IsInitialized() const {
4611 return true;
4612 }
4613
InternalSwap(WsWatchFaceDefaultRestrictedComplicationsRemoved * other)4614 void WsWatchFaceDefaultRestrictedComplicationsRemoved::InternalSwap(WsWatchFaceDefaultRestrictedComplicationsRemoved* other) {
4615 using std::swap;
4616 auto* lhs_arena = GetArenaForAllocation();
4617 auto* rhs_arena = other->GetArenaForAllocation();
4618 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
4619 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
4620 _impl_.complication_component_package_uid_.InternalSwap(&other->_impl_.complication_component_package_uid_);
4621 _impl_.complication_component_class_name_.InternalSwap(&other->_impl_.complication_component_class_name_);
4622 _impl_.complication_type_.InternalSwap(&other->_impl_.complication_type_);
4623 _impl_.slot_id_.InternalSwap(&other->_impl_.slot_id_);
4624 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
4625 &_impl_.watch_face_component_class_name_, lhs_arena,
4626 &other->_impl_.watch_face_component_class_name_, rhs_arena
4627 );
4628 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
4629 PROTOBUF_FIELD_OFFSET(WsWatchFaceDefaultRestrictedComplicationsRemoved, _impl_.watch_face_type_)
4630 + sizeof(WsWatchFaceDefaultRestrictedComplicationsRemoved::_impl_.watch_face_type_) // NOLINT
4631 - PROTOBUF_FIELD_OFFSET(WsWatchFaceDefaultRestrictedComplicationsRemoved, _impl_.watch_face_package_uid_)>(
4632 reinterpret_cast<char*>(&_impl_.watch_face_package_uid_),
4633 reinterpret_cast<char*>(&other->_impl_.watch_face_package_uid_));
4634 }
4635
GetMetadata() const4636 ::PROTOBUF_NAMESPACE_ID::Metadata WsWatchFaceDefaultRestrictedComplicationsRemoved::GetMetadata() const {
4637 return ::_pbi::AssignDescriptors(
4638 &descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto_getter, &descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto_once,
4639 file_level_metadata_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto[12]);
4640 }
4641
4642 // ===================================================================
4643
4644 class WsComplicationsImpactedNotificationEventReported::_Internal {
4645 public:
4646 using HasBits = decltype(std::declval<WsComplicationsImpactedNotificationEventReported>()._impl_._has_bits_);
set_has_event(HasBits * has_bits)4647 static void set_has_event(HasBits* has_bits) {
4648 (*has_bits)[0] |= 1u;
4649 }
4650 };
4651
WsComplicationsImpactedNotificationEventReported(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)4652 WsComplicationsImpactedNotificationEventReported::WsComplicationsImpactedNotificationEventReported(::PROTOBUF_NAMESPACE_ID::Arena* arena,
4653 bool is_message_owned)
4654 : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
4655 SharedCtor(arena, is_message_owned);
4656 // @@protoc_insertion_point(arena_constructor:android.os.statsd.wearservices.WsComplicationsImpactedNotificationEventReported)
4657 }
WsComplicationsImpactedNotificationEventReported(const WsComplicationsImpactedNotificationEventReported & from)4658 WsComplicationsImpactedNotificationEventReported::WsComplicationsImpactedNotificationEventReported(const WsComplicationsImpactedNotificationEventReported& from)
4659 : ::PROTOBUF_NAMESPACE_ID::Message() {
4660 WsComplicationsImpactedNotificationEventReported* const _this = this; (void)_this;
4661 new (&_impl_) Impl_{
4662 decltype(_impl_._has_bits_){from._impl_._has_bits_}
4663 , /*decltype(_impl_._cached_size_)*/{}
4664 , decltype(_impl_.event_){}};
4665
4666 _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
4667 _this->_impl_.event_ = from._impl_.event_;
4668 // @@protoc_insertion_point(copy_constructor:android.os.statsd.wearservices.WsComplicationsImpactedNotificationEventReported)
4669 }
4670
SharedCtor(::_pb::Arena * arena,bool is_message_owned)4671 inline void WsComplicationsImpactedNotificationEventReported::SharedCtor(
4672 ::_pb::Arena* arena, bool is_message_owned) {
4673 (void)arena;
4674 (void)is_message_owned;
4675 new (&_impl_) Impl_{
4676 decltype(_impl_._has_bits_){}
4677 , /*decltype(_impl_._cached_size_)*/{}
4678 , decltype(_impl_.event_){0}
4679 };
4680 }
4681
~WsComplicationsImpactedNotificationEventReported()4682 WsComplicationsImpactedNotificationEventReported::~WsComplicationsImpactedNotificationEventReported() {
4683 // @@protoc_insertion_point(destructor:android.os.statsd.wearservices.WsComplicationsImpactedNotificationEventReported)
4684 if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
4685 (void)arena;
4686 return;
4687 }
4688 SharedDtor();
4689 }
4690
SharedDtor()4691 inline void WsComplicationsImpactedNotificationEventReported::SharedDtor() {
4692 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
4693 }
4694
SetCachedSize(int size) const4695 void WsComplicationsImpactedNotificationEventReported::SetCachedSize(int size) const {
4696 _impl_._cached_size_.Set(size);
4697 }
4698
Clear()4699 void WsComplicationsImpactedNotificationEventReported::Clear() {
4700 // @@protoc_insertion_point(message_clear_start:android.os.statsd.wearservices.WsComplicationsImpactedNotificationEventReported)
4701 ::uint32_t cached_has_bits = 0;
4702 // Prevent compiler warnings about cached_has_bits being unused
4703 (void) cached_has_bits;
4704
4705 _impl_.event_ = 0;
4706 _impl_._has_bits_.Clear();
4707 _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
4708 }
4709
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)4710 const char* WsComplicationsImpactedNotificationEventReported::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
4711 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
4712 _Internal::HasBits has_bits{};
4713 while (!ctx->Done(&ptr)) {
4714 ::uint32_t tag;
4715 ptr = ::_pbi::ReadTag(ptr, &tag);
4716 switch (tag >> 3) {
4717 // optional .android.os.statsd.wearservices.WsComplicationsImpactedNotificationEventReported.Event event = 1;
4718 case 1:
4719 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
4720 ::uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
4721 CHK_(ptr);
4722 if (PROTOBUF_PREDICT_TRUE(::android::os::statsd::wearservices::WsComplicationsImpactedNotificationEventReported_Event_IsValid(val))) {
4723 _internal_set_event(static_cast<::android::os::statsd::wearservices::WsComplicationsImpactedNotificationEventReported_Event>(val));
4724 } else {
4725 ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields());
4726 }
4727 } else {
4728 goto handle_unusual;
4729 }
4730 continue;
4731 default:
4732 goto handle_unusual;
4733 } // switch
4734 handle_unusual:
4735 if ((tag == 0) || ((tag & 7) == 4)) {
4736 CHK_(ptr);
4737 ctx->SetLastTag(tag);
4738 goto message_done;
4739 }
4740 ptr = UnknownFieldParse(
4741 tag,
4742 _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
4743 ptr, ctx);
4744 CHK_(ptr != nullptr);
4745 } // while
4746 message_done:
4747 _impl_._has_bits_.Or(has_bits);
4748 return ptr;
4749 failure:
4750 ptr = nullptr;
4751 goto message_done;
4752 #undef CHK_
4753 }
4754
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const4755 ::uint8_t* WsComplicationsImpactedNotificationEventReported::_InternalSerialize(
4756 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
4757 // @@protoc_insertion_point(serialize_to_array_start:android.os.statsd.wearservices.WsComplicationsImpactedNotificationEventReported)
4758 ::uint32_t cached_has_bits = 0;
4759 (void) cached_has_bits;
4760
4761 cached_has_bits = _impl_._has_bits_[0];
4762 // optional .android.os.statsd.wearservices.WsComplicationsImpactedNotificationEventReported.Event event = 1;
4763 if (cached_has_bits & 0x00000001u) {
4764 target = stream->EnsureSpace(target);
4765 target = ::_pbi::WireFormatLite::WriteEnumToArray(
4766 1, this->_internal_event(), target);
4767 }
4768
4769 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
4770 target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
4771 _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
4772 }
4773 // @@protoc_insertion_point(serialize_to_array_end:android.os.statsd.wearservices.WsComplicationsImpactedNotificationEventReported)
4774 return target;
4775 }
4776
ByteSizeLong() const4777 size_t WsComplicationsImpactedNotificationEventReported::ByteSizeLong() const {
4778 // @@protoc_insertion_point(message_byte_size_start:android.os.statsd.wearservices.WsComplicationsImpactedNotificationEventReported)
4779 size_t total_size = 0;
4780
4781 ::uint32_t cached_has_bits = 0;
4782 // Prevent compiler warnings about cached_has_bits being unused
4783 (void) cached_has_bits;
4784
4785 // optional .android.os.statsd.wearservices.WsComplicationsImpactedNotificationEventReported.Event event = 1;
4786 cached_has_bits = _impl_._has_bits_[0];
4787 if (cached_has_bits & 0x00000001u) {
4788 total_size += 1 +
4789 ::_pbi::WireFormatLite::EnumSize(this->_internal_event());
4790 }
4791
4792 return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
4793 }
4794
4795 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData WsComplicationsImpactedNotificationEventReported::_class_data_ = {
4796 ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
4797 WsComplicationsImpactedNotificationEventReported::MergeImpl
4798 };
GetClassData() const4799 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*WsComplicationsImpactedNotificationEventReported::GetClassData() const { return &_class_data_; }
4800
4801
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)4802 void WsComplicationsImpactedNotificationEventReported::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
4803 auto* const _this = static_cast<WsComplicationsImpactedNotificationEventReported*>(&to_msg);
4804 auto& from = static_cast<const WsComplicationsImpactedNotificationEventReported&>(from_msg);
4805 // @@protoc_insertion_point(class_specific_merge_from_start:android.os.statsd.wearservices.WsComplicationsImpactedNotificationEventReported)
4806 GOOGLE_DCHECK_NE(&from, _this);
4807 ::uint32_t cached_has_bits = 0;
4808 (void) cached_has_bits;
4809
4810 if (from._internal_has_event()) {
4811 _this->_internal_set_event(from._internal_event());
4812 }
4813 _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
4814 }
4815
CopyFrom(const WsComplicationsImpactedNotificationEventReported & from)4816 void WsComplicationsImpactedNotificationEventReported::CopyFrom(const WsComplicationsImpactedNotificationEventReported& from) {
4817 // @@protoc_insertion_point(class_specific_copy_from_start:android.os.statsd.wearservices.WsComplicationsImpactedNotificationEventReported)
4818 if (&from == this) return;
4819 Clear();
4820 MergeFrom(from);
4821 }
4822
IsInitialized() const4823 bool WsComplicationsImpactedNotificationEventReported::IsInitialized() const {
4824 return true;
4825 }
4826
InternalSwap(WsComplicationsImpactedNotificationEventReported * other)4827 void WsComplicationsImpactedNotificationEventReported::InternalSwap(WsComplicationsImpactedNotificationEventReported* other) {
4828 using std::swap;
4829 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
4830 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
4831 swap(_impl_.event_, other->_impl_.event_);
4832 }
4833
GetMetadata() const4834 ::PROTOBUF_NAMESPACE_ID::Metadata WsComplicationsImpactedNotificationEventReported::GetMetadata() const {
4835 return ::_pbi::AssignDescriptors(
4836 &descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto_getter, &descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto_once,
4837 file_level_metadata_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto[13]);
4838 }
4839
4840 // ===================================================================
4841
4842 class WsRemoteEventUsageReported::_Internal {
4843 public:
4844 using HasBits = decltype(std::declval<WsRemoteEventUsageReported>()._impl_._has_bits_);
set_has_remote_event_type(HasBits * has_bits)4845 static void set_has_remote_event_type(HasBits* has_bits) {
4846 (*has_bits)[0] |= 1u;
4847 }
set_has_is_successful(HasBits * has_bits)4848 static void set_has_is_successful(HasBits* has_bits) {
4849 (*has_bits)[0] |= 2u;
4850 }
set_has_remote_event_state(HasBits * has_bits)4851 static void set_has_remote_event_state(HasBits* has_bits) {
4852 (*has_bits)[0] |= 4u;
4853 }
4854 };
4855
WsRemoteEventUsageReported(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)4856 WsRemoteEventUsageReported::WsRemoteEventUsageReported(::PROTOBUF_NAMESPACE_ID::Arena* arena,
4857 bool is_message_owned)
4858 : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
4859 SharedCtor(arena, is_message_owned);
4860 // @@protoc_insertion_point(arena_constructor:android.os.statsd.wearservices.WsRemoteEventUsageReported)
4861 }
WsRemoteEventUsageReported(const WsRemoteEventUsageReported & from)4862 WsRemoteEventUsageReported::WsRemoteEventUsageReported(const WsRemoteEventUsageReported& from)
4863 : ::PROTOBUF_NAMESPACE_ID::Message() {
4864 WsRemoteEventUsageReported* const _this = this; (void)_this;
4865 new (&_impl_) Impl_{
4866 decltype(_impl_._has_bits_){from._impl_._has_bits_}
4867 , /*decltype(_impl_._cached_size_)*/{}
4868 , decltype(_impl_.remote_event_type_){}
4869 , decltype(_impl_.is_successful_){}
4870 , decltype(_impl_.remote_event_state_){}};
4871
4872 _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
4873 ::memcpy(&_impl_.remote_event_type_, &from._impl_.remote_event_type_,
4874 static_cast<size_t>(reinterpret_cast<char*>(&_impl_.remote_event_state_) -
4875 reinterpret_cast<char*>(&_impl_.remote_event_type_)) + sizeof(_impl_.remote_event_state_));
4876 // @@protoc_insertion_point(copy_constructor:android.os.statsd.wearservices.WsRemoteEventUsageReported)
4877 }
4878
SharedCtor(::_pb::Arena * arena,bool is_message_owned)4879 inline void WsRemoteEventUsageReported::SharedCtor(
4880 ::_pb::Arena* arena, bool is_message_owned) {
4881 (void)arena;
4882 (void)is_message_owned;
4883 new (&_impl_) Impl_{
4884 decltype(_impl_._has_bits_){}
4885 , /*decltype(_impl_._cached_size_)*/{}
4886 , decltype(_impl_.remote_event_type_){0}
4887 , decltype(_impl_.is_successful_){false}
4888 , decltype(_impl_.remote_event_state_){0}
4889 };
4890 }
4891
~WsRemoteEventUsageReported()4892 WsRemoteEventUsageReported::~WsRemoteEventUsageReported() {
4893 // @@protoc_insertion_point(destructor:android.os.statsd.wearservices.WsRemoteEventUsageReported)
4894 if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
4895 (void)arena;
4896 return;
4897 }
4898 SharedDtor();
4899 }
4900
SharedDtor()4901 inline void WsRemoteEventUsageReported::SharedDtor() {
4902 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
4903 }
4904
SetCachedSize(int size) const4905 void WsRemoteEventUsageReported::SetCachedSize(int size) const {
4906 _impl_._cached_size_.Set(size);
4907 }
4908
Clear()4909 void WsRemoteEventUsageReported::Clear() {
4910 // @@protoc_insertion_point(message_clear_start:android.os.statsd.wearservices.WsRemoteEventUsageReported)
4911 ::uint32_t cached_has_bits = 0;
4912 // Prevent compiler warnings about cached_has_bits being unused
4913 (void) cached_has_bits;
4914
4915 cached_has_bits = _impl_._has_bits_[0];
4916 if (cached_has_bits & 0x00000007u) {
4917 ::memset(&_impl_.remote_event_type_, 0, static_cast<size_t>(
4918 reinterpret_cast<char*>(&_impl_.remote_event_state_) -
4919 reinterpret_cast<char*>(&_impl_.remote_event_type_)) + sizeof(_impl_.remote_event_state_));
4920 }
4921 _impl_._has_bits_.Clear();
4922 _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
4923 }
4924
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)4925 const char* WsRemoteEventUsageReported::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
4926 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
4927 _Internal::HasBits has_bits{};
4928 while (!ctx->Done(&ptr)) {
4929 ::uint32_t tag;
4930 ptr = ::_pbi::ReadTag(ptr, &tag);
4931 switch (tag >> 3) {
4932 // optional .android.app.wearservices.RemoteEventType remote_event_type = 1;
4933 case 1:
4934 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
4935 ::uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
4936 CHK_(ptr);
4937 if (PROTOBUF_PREDICT_TRUE(::android::app::wearservices::RemoteEventType_IsValid(val))) {
4938 _internal_set_remote_event_type(static_cast<::android::app::wearservices::RemoteEventType>(val));
4939 } else {
4940 ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields());
4941 }
4942 } else {
4943 goto handle_unusual;
4944 }
4945 continue;
4946 // optional bool is_successful = 2 [deprecated = true];
4947 case 2:
4948 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
4949 _Internal::set_has_is_successful(&has_bits);
4950 _impl_.is_successful_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
4951 CHK_(ptr);
4952 } else {
4953 goto handle_unusual;
4954 }
4955 continue;
4956 // optional .android.app.wearservices.RemoteEventState remote_event_state = 3;
4957 case 3:
4958 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
4959 ::uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
4960 CHK_(ptr);
4961 if (PROTOBUF_PREDICT_TRUE(::android::app::wearservices::RemoteEventState_IsValid(val))) {
4962 _internal_set_remote_event_state(static_cast<::android::app::wearservices::RemoteEventState>(val));
4963 } else {
4964 ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(3, val, mutable_unknown_fields());
4965 }
4966 } else {
4967 goto handle_unusual;
4968 }
4969 continue;
4970 default:
4971 goto handle_unusual;
4972 } // switch
4973 handle_unusual:
4974 if ((tag == 0) || ((tag & 7) == 4)) {
4975 CHK_(ptr);
4976 ctx->SetLastTag(tag);
4977 goto message_done;
4978 }
4979 ptr = UnknownFieldParse(
4980 tag,
4981 _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
4982 ptr, ctx);
4983 CHK_(ptr != nullptr);
4984 } // while
4985 message_done:
4986 _impl_._has_bits_.Or(has_bits);
4987 return ptr;
4988 failure:
4989 ptr = nullptr;
4990 goto message_done;
4991 #undef CHK_
4992 }
4993
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const4994 ::uint8_t* WsRemoteEventUsageReported::_InternalSerialize(
4995 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
4996 // @@protoc_insertion_point(serialize_to_array_start:android.os.statsd.wearservices.WsRemoteEventUsageReported)
4997 ::uint32_t cached_has_bits = 0;
4998 (void) cached_has_bits;
4999
5000 cached_has_bits = _impl_._has_bits_[0];
5001 // optional .android.app.wearservices.RemoteEventType remote_event_type = 1;
5002 if (cached_has_bits & 0x00000001u) {
5003 target = stream->EnsureSpace(target);
5004 target = ::_pbi::WireFormatLite::WriteEnumToArray(
5005 1, this->_internal_remote_event_type(), target);
5006 }
5007
5008 // optional bool is_successful = 2 [deprecated = true];
5009 if (cached_has_bits & 0x00000002u) {
5010 target = stream->EnsureSpace(target);
5011 target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_is_successful(), target);
5012 }
5013
5014 // optional .android.app.wearservices.RemoteEventState remote_event_state = 3;
5015 if (cached_has_bits & 0x00000004u) {
5016 target = stream->EnsureSpace(target);
5017 target = ::_pbi::WireFormatLite::WriteEnumToArray(
5018 3, this->_internal_remote_event_state(), target);
5019 }
5020
5021 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
5022 target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
5023 _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
5024 }
5025 // @@protoc_insertion_point(serialize_to_array_end:android.os.statsd.wearservices.WsRemoteEventUsageReported)
5026 return target;
5027 }
5028
ByteSizeLong() const5029 size_t WsRemoteEventUsageReported::ByteSizeLong() const {
5030 // @@protoc_insertion_point(message_byte_size_start:android.os.statsd.wearservices.WsRemoteEventUsageReported)
5031 size_t total_size = 0;
5032
5033 ::uint32_t cached_has_bits = 0;
5034 // Prevent compiler warnings about cached_has_bits being unused
5035 (void) cached_has_bits;
5036
5037 cached_has_bits = _impl_._has_bits_[0];
5038 if (cached_has_bits & 0x00000007u) {
5039 // optional .android.app.wearservices.RemoteEventType remote_event_type = 1;
5040 if (cached_has_bits & 0x00000001u) {
5041 total_size += 1 +
5042 ::_pbi::WireFormatLite::EnumSize(this->_internal_remote_event_type());
5043 }
5044
5045 // optional bool is_successful = 2 [deprecated = true];
5046 if (cached_has_bits & 0x00000002u) {
5047 total_size += 1 + 1;
5048 }
5049
5050 // optional .android.app.wearservices.RemoteEventState remote_event_state = 3;
5051 if (cached_has_bits & 0x00000004u) {
5052 total_size += 1 +
5053 ::_pbi::WireFormatLite::EnumSize(this->_internal_remote_event_state());
5054 }
5055
5056 }
5057 return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
5058 }
5059
5060 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData WsRemoteEventUsageReported::_class_data_ = {
5061 ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
5062 WsRemoteEventUsageReported::MergeImpl
5063 };
GetClassData() const5064 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*WsRemoteEventUsageReported::GetClassData() const { return &_class_data_; }
5065
5066
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)5067 void WsRemoteEventUsageReported::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
5068 auto* const _this = static_cast<WsRemoteEventUsageReported*>(&to_msg);
5069 auto& from = static_cast<const WsRemoteEventUsageReported&>(from_msg);
5070 // @@protoc_insertion_point(class_specific_merge_from_start:android.os.statsd.wearservices.WsRemoteEventUsageReported)
5071 GOOGLE_DCHECK_NE(&from, _this);
5072 ::uint32_t cached_has_bits = 0;
5073 (void) cached_has_bits;
5074
5075 cached_has_bits = from._impl_._has_bits_[0];
5076 if (cached_has_bits & 0x00000007u) {
5077 if (cached_has_bits & 0x00000001u) {
5078 _this->_impl_.remote_event_type_ = from._impl_.remote_event_type_;
5079 }
5080 if (cached_has_bits & 0x00000002u) {
5081 _this->_impl_.is_successful_ = from._impl_.is_successful_;
5082 }
5083 if (cached_has_bits & 0x00000004u) {
5084 _this->_impl_.remote_event_state_ = from._impl_.remote_event_state_;
5085 }
5086 _this->_impl_._has_bits_[0] |= cached_has_bits;
5087 }
5088 _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
5089 }
5090
CopyFrom(const WsRemoteEventUsageReported & from)5091 void WsRemoteEventUsageReported::CopyFrom(const WsRemoteEventUsageReported& from) {
5092 // @@protoc_insertion_point(class_specific_copy_from_start:android.os.statsd.wearservices.WsRemoteEventUsageReported)
5093 if (&from == this) return;
5094 Clear();
5095 MergeFrom(from);
5096 }
5097
IsInitialized() const5098 bool WsRemoteEventUsageReported::IsInitialized() const {
5099 return true;
5100 }
5101
InternalSwap(WsRemoteEventUsageReported * other)5102 void WsRemoteEventUsageReported::InternalSwap(WsRemoteEventUsageReported* other) {
5103 using std::swap;
5104 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
5105 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
5106 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
5107 PROTOBUF_FIELD_OFFSET(WsRemoteEventUsageReported, _impl_.remote_event_state_)
5108 + sizeof(WsRemoteEventUsageReported::_impl_.remote_event_state_) // NOLINT
5109 - PROTOBUF_FIELD_OFFSET(WsRemoteEventUsageReported, _impl_.remote_event_type_)>(
5110 reinterpret_cast<char*>(&_impl_.remote_event_type_),
5111 reinterpret_cast<char*>(&other->_impl_.remote_event_type_));
5112 }
5113
GetMetadata() const5114 ::PROTOBUF_NAMESPACE_ID::Metadata WsRemoteEventUsageReported::GetMetadata() const {
5115 return ::_pbi::AssignDescriptors(
5116 &descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto_getter, &descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto_once,
5117 file_level_metadata_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto[14]);
5118 }
5119
5120 // ===================================================================
5121
5122 class WsBugreportEventReported::_Internal {
5123 public:
5124 using HasBits = decltype(std::declval<WsBugreportEventReported>()._impl_._has_bits_);
set_has_event(HasBits * has_bits)5125 static void set_has_event(HasBits* has_bits) {
5126 (*has_bits)[0] |= 1u;
5127 }
set_has_component(HasBits * has_bits)5128 static void set_has_component(HasBits* has_bits) {
5129 (*has_bits)[0] |= 2u;
5130 }
set_has_result(HasBits * has_bits)5131 static void set_has_result(HasBits* has_bits) {
5132 (*has_bits)[0] |= 4u;
5133 }
set_has_bugreport_size_kilobytes(HasBits * has_bits)5134 static void set_has_bugreport_size_kilobytes(HasBits* has_bits) {
5135 (*has_bits)[0] |= 8u;
5136 }
set_has_bugreport_event_duration_seconds(HasBits * has_bits)5137 static void set_has_bugreport_event_duration_seconds(HasBits* has_bits) {
5138 (*has_bits)[0] |= 16u;
5139 }
5140 };
5141
WsBugreportEventReported(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)5142 WsBugreportEventReported::WsBugreportEventReported(::PROTOBUF_NAMESPACE_ID::Arena* arena,
5143 bool is_message_owned)
5144 : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
5145 SharedCtor(arena, is_message_owned);
5146 // @@protoc_insertion_point(arena_constructor:android.os.statsd.wearservices.WsBugreportEventReported)
5147 }
WsBugreportEventReported(const WsBugreportEventReported & from)5148 WsBugreportEventReported::WsBugreportEventReported(const WsBugreportEventReported& from)
5149 : ::PROTOBUF_NAMESPACE_ID::Message() {
5150 WsBugreportEventReported* const _this = this; (void)_this;
5151 new (&_impl_) Impl_{
5152 decltype(_impl_._has_bits_){from._impl_._has_bits_}
5153 , /*decltype(_impl_._cached_size_)*/{}
5154 , decltype(_impl_.event_){}
5155 , decltype(_impl_.component_){}
5156 , decltype(_impl_.result_){}
5157 , decltype(_impl_.bugreport_size_kilobytes_){}
5158 , decltype(_impl_.bugreport_event_duration_seconds_){}};
5159
5160 _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
5161 ::memcpy(&_impl_.event_, &from._impl_.event_,
5162 static_cast<size_t>(reinterpret_cast<char*>(&_impl_.bugreport_event_duration_seconds_) -
5163 reinterpret_cast<char*>(&_impl_.event_)) + sizeof(_impl_.bugreport_event_duration_seconds_));
5164 // @@protoc_insertion_point(copy_constructor:android.os.statsd.wearservices.WsBugreportEventReported)
5165 }
5166
SharedCtor(::_pb::Arena * arena,bool is_message_owned)5167 inline void WsBugreportEventReported::SharedCtor(
5168 ::_pb::Arena* arena, bool is_message_owned) {
5169 (void)arena;
5170 (void)is_message_owned;
5171 new (&_impl_) Impl_{
5172 decltype(_impl_._has_bits_){}
5173 , /*decltype(_impl_._cached_size_)*/{}
5174 , decltype(_impl_.event_){0}
5175 , decltype(_impl_.component_){0}
5176 , decltype(_impl_.result_){0}
5177 , decltype(_impl_.bugreport_size_kilobytes_){0}
5178 , decltype(_impl_.bugreport_event_duration_seconds_){0}
5179 };
5180 }
5181
~WsBugreportEventReported()5182 WsBugreportEventReported::~WsBugreportEventReported() {
5183 // @@protoc_insertion_point(destructor:android.os.statsd.wearservices.WsBugreportEventReported)
5184 if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
5185 (void)arena;
5186 return;
5187 }
5188 SharedDtor();
5189 }
5190
SharedDtor()5191 inline void WsBugreportEventReported::SharedDtor() {
5192 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
5193 }
5194
SetCachedSize(int size) const5195 void WsBugreportEventReported::SetCachedSize(int size) const {
5196 _impl_._cached_size_.Set(size);
5197 }
5198
Clear()5199 void WsBugreportEventReported::Clear() {
5200 // @@protoc_insertion_point(message_clear_start:android.os.statsd.wearservices.WsBugreportEventReported)
5201 ::uint32_t cached_has_bits = 0;
5202 // Prevent compiler warnings about cached_has_bits being unused
5203 (void) cached_has_bits;
5204
5205 cached_has_bits = _impl_._has_bits_[0];
5206 if (cached_has_bits & 0x0000001fu) {
5207 ::memset(&_impl_.event_, 0, static_cast<size_t>(
5208 reinterpret_cast<char*>(&_impl_.bugreport_event_duration_seconds_) -
5209 reinterpret_cast<char*>(&_impl_.event_)) + sizeof(_impl_.bugreport_event_duration_seconds_));
5210 }
5211 _impl_._has_bits_.Clear();
5212 _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
5213 }
5214
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)5215 const char* WsBugreportEventReported::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
5216 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
5217 _Internal::HasBits has_bits{};
5218 while (!ctx->Done(&ptr)) {
5219 ::uint32_t tag;
5220 ptr = ::_pbi::ReadTag(ptr, &tag);
5221 switch (tag >> 3) {
5222 // optional .android.app.wearservices.BugreportEvent event = 1;
5223 case 1:
5224 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
5225 ::uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
5226 CHK_(ptr);
5227 if (PROTOBUF_PREDICT_TRUE(::android::app::wearservices::BugreportEvent_IsValid(val))) {
5228 _internal_set_event(static_cast<::android::app::wearservices::BugreportEvent>(val));
5229 } else {
5230 ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields());
5231 }
5232 } else {
5233 goto handle_unusual;
5234 }
5235 continue;
5236 // optional .android.app.wearservices.BugreportComponent component = 2;
5237 case 2:
5238 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
5239 ::uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
5240 CHK_(ptr);
5241 if (PROTOBUF_PREDICT_TRUE(::android::app::wearservices::BugreportComponent_IsValid(val))) {
5242 _internal_set_component(static_cast<::android::app::wearservices::BugreportComponent>(val));
5243 } else {
5244 ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields());
5245 }
5246 } else {
5247 goto handle_unusual;
5248 }
5249 continue;
5250 // optional .android.app.wearservices.BugreportResult result = 3;
5251 case 3:
5252 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
5253 ::uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
5254 CHK_(ptr);
5255 if (PROTOBUF_PREDICT_TRUE(::android::app::wearservices::BugreportResult_IsValid(val))) {
5256 _internal_set_result(static_cast<::android::app::wearservices::BugreportResult>(val));
5257 } else {
5258 ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(3, val, mutable_unknown_fields());
5259 }
5260 } else {
5261 goto handle_unusual;
5262 }
5263 continue;
5264 // optional int32 bugreport_size_kilobytes = 4;
5265 case 4:
5266 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) {
5267 _Internal::set_has_bugreport_size_kilobytes(&has_bits);
5268 _impl_.bugreport_size_kilobytes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
5269 CHK_(ptr);
5270 } else {
5271 goto handle_unusual;
5272 }
5273 continue;
5274 // optional int32 bugreport_event_duration_seconds = 5;
5275 case 5:
5276 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 40)) {
5277 _Internal::set_has_bugreport_event_duration_seconds(&has_bits);
5278 _impl_.bugreport_event_duration_seconds_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
5279 CHK_(ptr);
5280 } else {
5281 goto handle_unusual;
5282 }
5283 continue;
5284 default:
5285 goto handle_unusual;
5286 } // switch
5287 handle_unusual:
5288 if ((tag == 0) || ((tag & 7) == 4)) {
5289 CHK_(ptr);
5290 ctx->SetLastTag(tag);
5291 goto message_done;
5292 }
5293 ptr = UnknownFieldParse(
5294 tag,
5295 _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
5296 ptr, ctx);
5297 CHK_(ptr != nullptr);
5298 } // while
5299 message_done:
5300 _impl_._has_bits_.Or(has_bits);
5301 return ptr;
5302 failure:
5303 ptr = nullptr;
5304 goto message_done;
5305 #undef CHK_
5306 }
5307
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const5308 ::uint8_t* WsBugreportEventReported::_InternalSerialize(
5309 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
5310 // @@protoc_insertion_point(serialize_to_array_start:android.os.statsd.wearservices.WsBugreportEventReported)
5311 ::uint32_t cached_has_bits = 0;
5312 (void) cached_has_bits;
5313
5314 cached_has_bits = _impl_._has_bits_[0];
5315 // optional .android.app.wearservices.BugreportEvent event = 1;
5316 if (cached_has_bits & 0x00000001u) {
5317 target = stream->EnsureSpace(target);
5318 target = ::_pbi::WireFormatLite::WriteEnumToArray(
5319 1, this->_internal_event(), target);
5320 }
5321
5322 // optional .android.app.wearservices.BugreportComponent component = 2;
5323 if (cached_has_bits & 0x00000002u) {
5324 target = stream->EnsureSpace(target);
5325 target = ::_pbi::WireFormatLite::WriteEnumToArray(
5326 2, this->_internal_component(), target);
5327 }
5328
5329 // optional .android.app.wearservices.BugreportResult result = 3;
5330 if (cached_has_bits & 0x00000004u) {
5331 target = stream->EnsureSpace(target);
5332 target = ::_pbi::WireFormatLite::WriteEnumToArray(
5333 3, this->_internal_result(), target);
5334 }
5335
5336 // optional int32 bugreport_size_kilobytes = 4;
5337 if (cached_has_bits & 0x00000008u) {
5338 target = stream->EnsureSpace(target);
5339 target = ::_pbi::WireFormatLite::WriteInt32ToArray(4, this->_internal_bugreport_size_kilobytes(), target);
5340 }
5341
5342 // optional int32 bugreport_event_duration_seconds = 5;
5343 if (cached_has_bits & 0x00000010u) {
5344 target = stream->EnsureSpace(target);
5345 target = ::_pbi::WireFormatLite::WriteInt32ToArray(5, this->_internal_bugreport_event_duration_seconds(), target);
5346 }
5347
5348 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
5349 target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
5350 _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
5351 }
5352 // @@protoc_insertion_point(serialize_to_array_end:android.os.statsd.wearservices.WsBugreportEventReported)
5353 return target;
5354 }
5355
ByteSizeLong() const5356 size_t WsBugreportEventReported::ByteSizeLong() const {
5357 // @@protoc_insertion_point(message_byte_size_start:android.os.statsd.wearservices.WsBugreportEventReported)
5358 size_t total_size = 0;
5359
5360 ::uint32_t cached_has_bits = 0;
5361 // Prevent compiler warnings about cached_has_bits being unused
5362 (void) cached_has_bits;
5363
5364 cached_has_bits = _impl_._has_bits_[0];
5365 if (cached_has_bits & 0x0000001fu) {
5366 // optional .android.app.wearservices.BugreportEvent event = 1;
5367 if (cached_has_bits & 0x00000001u) {
5368 total_size += 1 +
5369 ::_pbi::WireFormatLite::EnumSize(this->_internal_event());
5370 }
5371
5372 // optional .android.app.wearservices.BugreportComponent component = 2;
5373 if (cached_has_bits & 0x00000002u) {
5374 total_size += 1 +
5375 ::_pbi::WireFormatLite::EnumSize(this->_internal_component());
5376 }
5377
5378 // optional .android.app.wearservices.BugreportResult result = 3;
5379 if (cached_has_bits & 0x00000004u) {
5380 total_size += 1 +
5381 ::_pbi::WireFormatLite::EnumSize(this->_internal_result());
5382 }
5383
5384 // optional int32 bugreport_size_kilobytes = 4;
5385 if (cached_has_bits & 0x00000008u) {
5386 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_bugreport_size_kilobytes());
5387 }
5388
5389 // optional int32 bugreport_event_duration_seconds = 5;
5390 if (cached_has_bits & 0x00000010u) {
5391 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_bugreport_event_duration_seconds());
5392 }
5393
5394 }
5395 return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
5396 }
5397
5398 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData WsBugreportEventReported::_class_data_ = {
5399 ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
5400 WsBugreportEventReported::MergeImpl
5401 };
GetClassData() const5402 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*WsBugreportEventReported::GetClassData() const { return &_class_data_; }
5403
5404
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)5405 void WsBugreportEventReported::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
5406 auto* const _this = static_cast<WsBugreportEventReported*>(&to_msg);
5407 auto& from = static_cast<const WsBugreportEventReported&>(from_msg);
5408 // @@protoc_insertion_point(class_specific_merge_from_start:android.os.statsd.wearservices.WsBugreportEventReported)
5409 GOOGLE_DCHECK_NE(&from, _this);
5410 ::uint32_t cached_has_bits = 0;
5411 (void) cached_has_bits;
5412
5413 cached_has_bits = from._impl_._has_bits_[0];
5414 if (cached_has_bits & 0x0000001fu) {
5415 if (cached_has_bits & 0x00000001u) {
5416 _this->_impl_.event_ = from._impl_.event_;
5417 }
5418 if (cached_has_bits & 0x00000002u) {
5419 _this->_impl_.component_ = from._impl_.component_;
5420 }
5421 if (cached_has_bits & 0x00000004u) {
5422 _this->_impl_.result_ = from._impl_.result_;
5423 }
5424 if (cached_has_bits & 0x00000008u) {
5425 _this->_impl_.bugreport_size_kilobytes_ = from._impl_.bugreport_size_kilobytes_;
5426 }
5427 if (cached_has_bits & 0x00000010u) {
5428 _this->_impl_.bugreport_event_duration_seconds_ = from._impl_.bugreport_event_duration_seconds_;
5429 }
5430 _this->_impl_._has_bits_[0] |= cached_has_bits;
5431 }
5432 _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
5433 }
5434
CopyFrom(const WsBugreportEventReported & from)5435 void WsBugreportEventReported::CopyFrom(const WsBugreportEventReported& from) {
5436 // @@protoc_insertion_point(class_specific_copy_from_start:android.os.statsd.wearservices.WsBugreportEventReported)
5437 if (&from == this) return;
5438 Clear();
5439 MergeFrom(from);
5440 }
5441
IsInitialized() const5442 bool WsBugreportEventReported::IsInitialized() const {
5443 return true;
5444 }
5445
InternalSwap(WsBugreportEventReported * other)5446 void WsBugreportEventReported::InternalSwap(WsBugreportEventReported* other) {
5447 using std::swap;
5448 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
5449 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
5450 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
5451 PROTOBUF_FIELD_OFFSET(WsBugreportEventReported, _impl_.bugreport_event_duration_seconds_)
5452 + sizeof(WsBugreportEventReported::_impl_.bugreport_event_duration_seconds_) // NOLINT
5453 - PROTOBUF_FIELD_OFFSET(WsBugreportEventReported, _impl_.event_)>(
5454 reinterpret_cast<char*>(&_impl_.event_),
5455 reinterpret_cast<char*>(&other->_impl_.event_));
5456 }
5457
GetMetadata() const5458 ::PROTOBUF_NAMESPACE_ID::Metadata WsBugreportEventReported::GetMetadata() const {
5459 return ::_pbi::AssignDescriptors(
5460 &descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto_getter, &descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto_once,
5461 file_level_metadata_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto[15]);
5462 }
5463
5464 // ===================================================================
5465
5466 class WsNotificationManagedDismissalSync::_Internal {
5467 public:
5468 using HasBits = decltype(std::declval<WsNotificationManagedDismissalSync>()._impl_._has_bits_);
set_has_package_name(HasBits * has_bits)5469 static void set_has_package_name(HasBits* has_bits) {
5470 (*has_bits)[0] |= 1u;
5471 }
set_has_source_device(HasBits * has_bits)5472 static void set_has_source_device(HasBits* has_bits) {
5473 (*has_bits)[0] |= 2u;
5474 }
set_has_payload_size_bytes(HasBits * has_bits)5475 static void set_has_payload_size_bytes(HasBits* has_bits) {
5476 (*has_bits)[0] |= 4u;
5477 }
5478 };
5479
WsNotificationManagedDismissalSync(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)5480 WsNotificationManagedDismissalSync::WsNotificationManagedDismissalSync(::PROTOBUF_NAMESPACE_ID::Arena* arena,
5481 bool is_message_owned)
5482 : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
5483 SharedCtor(arena, is_message_owned);
5484 // @@protoc_insertion_point(arena_constructor:android.os.statsd.wearservices.WsNotificationManagedDismissalSync)
5485 }
WsNotificationManagedDismissalSync(const WsNotificationManagedDismissalSync & from)5486 WsNotificationManagedDismissalSync::WsNotificationManagedDismissalSync(const WsNotificationManagedDismissalSync& from)
5487 : ::PROTOBUF_NAMESPACE_ID::Message() {
5488 WsNotificationManagedDismissalSync* const _this = this; (void)_this;
5489 new (&_impl_) Impl_{
5490 decltype(_impl_._has_bits_){from._impl_._has_bits_}
5491 , /*decltype(_impl_._cached_size_)*/{}
5492 , decltype(_impl_.package_name_){}
5493 , decltype(_impl_.source_device_){}
5494 , decltype(_impl_.payload_size_bytes_){}};
5495
5496 _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
5497 _impl_.package_name_.InitDefault();
5498 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
5499 _impl_.package_name_.Set("", GetArenaForAllocation());
5500 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
5501 if (from._internal_has_package_name()) {
5502 _this->_impl_.package_name_.Set(from._internal_package_name(),
5503 _this->GetArenaForAllocation());
5504 }
5505 ::memcpy(&_impl_.source_device_, &from._impl_.source_device_,
5506 static_cast<size_t>(reinterpret_cast<char*>(&_impl_.payload_size_bytes_) -
5507 reinterpret_cast<char*>(&_impl_.source_device_)) + sizeof(_impl_.payload_size_bytes_));
5508 // @@protoc_insertion_point(copy_constructor:android.os.statsd.wearservices.WsNotificationManagedDismissalSync)
5509 }
5510
SharedCtor(::_pb::Arena * arena,bool is_message_owned)5511 inline void WsNotificationManagedDismissalSync::SharedCtor(
5512 ::_pb::Arena* arena, bool is_message_owned) {
5513 (void)arena;
5514 (void)is_message_owned;
5515 new (&_impl_) Impl_{
5516 decltype(_impl_._has_bits_){}
5517 , /*decltype(_impl_._cached_size_)*/{}
5518 , decltype(_impl_.package_name_){}
5519 , decltype(_impl_.source_device_){0}
5520 , decltype(_impl_.payload_size_bytes_){0}
5521 };
5522 _impl_.package_name_.InitDefault();
5523 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
5524 _impl_.package_name_.Set("", GetArenaForAllocation());
5525 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
5526 }
5527
~WsNotificationManagedDismissalSync()5528 WsNotificationManagedDismissalSync::~WsNotificationManagedDismissalSync() {
5529 // @@protoc_insertion_point(destructor:android.os.statsd.wearservices.WsNotificationManagedDismissalSync)
5530 if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
5531 (void)arena;
5532 return;
5533 }
5534 SharedDtor();
5535 }
5536
SharedDtor()5537 inline void WsNotificationManagedDismissalSync::SharedDtor() {
5538 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
5539 _impl_.package_name_.Destroy();
5540 }
5541
SetCachedSize(int size) const5542 void WsNotificationManagedDismissalSync::SetCachedSize(int size) const {
5543 _impl_._cached_size_.Set(size);
5544 }
5545
Clear()5546 void WsNotificationManagedDismissalSync::Clear() {
5547 // @@protoc_insertion_point(message_clear_start:android.os.statsd.wearservices.WsNotificationManagedDismissalSync)
5548 ::uint32_t cached_has_bits = 0;
5549 // Prevent compiler warnings about cached_has_bits being unused
5550 (void) cached_has_bits;
5551
5552 cached_has_bits = _impl_._has_bits_[0];
5553 if (cached_has_bits & 0x00000001u) {
5554 _impl_.package_name_.ClearNonDefaultToEmpty();
5555 }
5556 if (cached_has_bits & 0x00000006u) {
5557 ::memset(&_impl_.source_device_, 0, static_cast<size_t>(
5558 reinterpret_cast<char*>(&_impl_.payload_size_bytes_) -
5559 reinterpret_cast<char*>(&_impl_.source_device_)) + sizeof(_impl_.payload_size_bytes_));
5560 }
5561 _impl_._has_bits_.Clear();
5562 _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
5563 }
5564
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)5565 const char* WsNotificationManagedDismissalSync::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
5566 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
5567 _Internal::HasBits has_bits{};
5568 while (!ctx->Done(&ptr)) {
5569 ::uint32_t tag;
5570 ptr = ::_pbi::ReadTag(ptr, &tag);
5571 switch (tag >> 3) {
5572 // optional string package_name = 1;
5573 case 1:
5574 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
5575 auto str = _internal_mutable_package_name();
5576 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
5577 CHK_(ptr);
5578 #ifndef NDEBUG
5579 ::_pbi::VerifyUTF8(str, "android.os.statsd.wearservices.WsNotificationManagedDismissalSync.package_name");
5580 #endif // !NDEBUG
5581 } else {
5582 goto handle_unusual;
5583 }
5584 continue;
5585 // optional .android.app.wearservices.RequestSource source_device = 2;
5586 case 2:
5587 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
5588 ::uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
5589 CHK_(ptr);
5590 if (PROTOBUF_PREDICT_TRUE(::android::app::wearservices::RequestSource_IsValid(val))) {
5591 _internal_set_source_device(static_cast<::android::app::wearservices::RequestSource>(val));
5592 } else {
5593 ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields());
5594 }
5595 } else {
5596 goto handle_unusual;
5597 }
5598 continue;
5599 // optional int32 payload_size_bytes = 3;
5600 case 3:
5601 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
5602 _Internal::set_has_payload_size_bytes(&has_bits);
5603 _impl_.payload_size_bytes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
5604 CHK_(ptr);
5605 } else {
5606 goto handle_unusual;
5607 }
5608 continue;
5609 default:
5610 goto handle_unusual;
5611 } // switch
5612 handle_unusual:
5613 if ((tag == 0) || ((tag & 7) == 4)) {
5614 CHK_(ptr);
5615 ctx->SetLastTag(tag);
5616 goto message_done;
5617 }
5618 ptr = UnknownFieldParse(
5619 tag,
5620 _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
5621 ptr, ctx);
5622 CHK_(ptr != nullptr);
5623 } // while
5624 message_done:
5625 _impl_._has_bits_.Or(has_bits);
5626 return ptr;
5627 failure:
5628 ptr = nullptr;
5629 goto message_done;
5630 #undef CHK_
5631 }
5632
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const5633 ::uint8_t* WsNotificationManagedDismissalSync::_InternalSerialize(
5634 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
5635 // @@protoc_insertion_point(serialize_to_array_start:android.os.statsd.wearservices.WsNotificationManagedDismissalSync)
5636 ::uint32_t cached_has_bits = 0;
5637 (void) cached_has_bits;
5638
5639 cached_has_bits = _impl_._has_bits_[0];
5640 // optional string package_name = 1;
5641 if (cached_has_bits & 0x00000001u) {
5642 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
5643 this->_internal_package_name().data(), static_cast<int>(this->_internal_package_name().length()),
5644 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
5645 "android.os.statsd.wearservices.WsNotificationManagedDismissalSync.package_name");
5646 target = stream->WriteStringMaybeAliased(
5647 1, this->_internal_package_name(), target);
5648 }
5649
5650 // optional .android.app.wearservices.RequestSource source_device = 2;
5651 if (cached_has_bits & 0x00000002u) {
5652 target = stream->EnsureSpace(target);
5653 target = ::_pbi::WireFormatLite::WriteEnumToArray(
5654 2, this->_internal_source_device(), target);
5655 }
5656
5657 // optional int32 payload_size_bytes = 3;
5658 if (cached_has_bits & 0x00000004u) {
5659 target = stream->EnsureSpace(target);
5660 target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_payload_size_bytes(), target);
5661 }
5662
5663 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
5664 target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
5665 _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
5666 }
5667 // @@protoc_insertion_point(serialize_to_array_end:android.os.statsd.wearservices.WsNotificationManagedDismissalSync)
5668 return target;
5669 }
5670
ByteSizeLong() const5671 size_t WsNotificationManagedDismissalSync::ByteSizeLong() const {
5672 // @@protoc_insertion_point(message_byte_size_start:android.os.statsd.wearservices.WsNotificationManagedDismissalSync)
5673 size_t total_size = 0;
5674
5675 ::uint32_t cached_has_bits = 0;
5676 // Prevent compiler warnings about cached_has_bits being unused
5677 (void) cached_has_bits;
5678
5679 cached_has_bits = _impl_._has_bits_[0];
5680 if (cached_has_bits & 0x00000007u) {
5681 // optional string package_name = 1;
5682 if (cached_has_bits & 0x00000001u) {
5683 total_size += 1 +
5684 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
5685 this->_internal_package_name());
5686 }
5687
5688 // optional .android.app.wearservices.RequestSource source_device = 2;
5689 if (cached_has_bits & 0x00000002u) {
5690 total_size += 1 +
5691 ::_pbi::WireFormatLite::EnumSize(this->_internal_source_device());
5692 }
5693
5694 // optional int32 payload_size_bytes = 3;
5695 if (cached_has_bits & 0x00000004u) {
5696 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_payload_size_bytes());
5697 }
5698
5699 }
5700 return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
5701 }
5702
5703 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData WsNotificationManagedDismissalSync::_class_data_ = {
5704 ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
5705 WsNotificationManagedDismissalSync::MergeImpl
5706 };
GetClassData() const5707 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*WsNotificationManagedDismissalSync::GetClassData() const { return &_class_data_; }
5708
5709
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)5710 void WsNotificationManagedDismissalSync::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
5711 auto* const _this = static_cast<WsNotificationManagedDismissalSync*>(&to_msg);
5712 auto& from = static_cast<const WsNotificationManagedDismissalSync&>(from_msg);
5713 // @@protoc_insertion_point(class_specific_merge_from_start:android.os.statsd.wearservices.WsNotificationManagedDismissalSync)
5714 GOOGLE_DCHECK_NE(&from, _this);
5715 ::uint32_t cached_has_bits = 0;
5716 (void) cached_has_bits;
5717
5718 cached_has_bits = from._impl_._has_bits_[0];
5719 if (cached_has_bits & 0x00000007u) {
5720 if (cached_has_bits & 0x00000001u) {
5721 _this->_internal_set_package_name(from._internal_package_name());
5722 }
5723 if (cached_has_bits & 0x00000002u) {
5724 _this->_impl_.source_device_ = from._impl_.source_device_;
5725 }
5726 if (cached_has_bits & 0x00000004u) {
5727 _this->_impl_.payload_size_bytes_ = from._impl_.payload_size_bytes_;
5728 }
5729 _this->_impl_._has_bits_[0] |= cached_has_bits;
5730 }
5731 _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
5732 }
5733
CopyFrom(const WsNotificationManagedDismissalSync & from)5734 void WsNotificationManagedDismissalSync::CopyFrom(const WsNotificationManagedDismissalSync& from) {
5735 // @@protoc_insertion_point(class_specific_copy_from_start:android.os.statsd.wearservices.WsNotificationManagedDismissalSync)
5736 if (&from == this) return;
5737 Clear();
5738 MergeFrom(from);
5739 }
5740
IsInitialized() const5741 bool WsNotificationManagedDismissalSync::IsInitialized() const {
5742 return true;
5743 }
5744
InternalSwap(WsNotificationManagedDismissalSync * other)5745 void WsNotificationManagedDismissalSync::InternalSwap(WsNotificationManagedDismissalSync* other) {
5746 using std::swap;
5747 auto* lhs_arena = GetArenaForAllocation();
5748 auto* rhs_arena = other->GetArenaForAllocation();
5749 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
5750 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
5751 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
5752 &_impl_.package_name_, lhs_arena,
5753 &other->_impl_.package_name_, rhs_arena
5754 );
5755 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
5756 PROTOBUF_FIELD_OFFSET(WsNotificationManagedDismissalSync, _impl_.payload_size_bytes_)
5757 + sizeof(WsNotificationManagedDismissalSync::_impl_.payload_size_bytes_) // NOLINT
5758 - PROTOBUF_FIELD_OFFSET(WsNotificationManagedDismissalSync, _impl_.source_device_)>(
5759 reinterpret_cast<char*>(&_impl_.source_device_),
5760 reinterpret_cast<char*>(&other->_impl_.source_device_));
5761 }
5762
GetMetadata() const5763 ::PROTOBUF_NAMESPACE_ID::Metadata WsNotificationManagedDismissalSync::GetMetadata() const {
5764 return ::_pbi::AssignDescriptors(
5765 &descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto_getter, &descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto_once,
5766 file_level_metadata_frameworks_2fproto_5flogging_2fstats_2fatoms_2fwearservices_2fwearservices_5fextension_5fatoms_2eproto[16]);
5767 }
5768 PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::android::os::statsd::Atom,
5769 ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::android::os::statsd::wearservices::WsWearTimeSession >, 11, false>
5770 ws_wear_time_session(kWsWearTimeSessionFieldNumber, ::android::os::statsd::wearservices::WsWearTimeSession::default_instance(), nullptr);
5771 PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::android::os::statsd::Atom,
5772 ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::android::os::statsd::wearservices::WsIncomingCallActionReported >, 11, false>
5773 ws_incoming_call_action_reported(kWsIncomingCallActionReportedFieldNumber, ::android::os::statsd::wearservices::WsIncomingCallActionReported::default_instance(), nullptr);
5774 PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::android::os::statsd::Atom,
5775 ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::android::os::statsd::wearservices::WsCallDisconnectionReported >, 11, false>
5776 ws_call_disconnection_reported(kWsCallDisconnectionReportedFieldNumber, ::android::os::statsd::wearservices::WsCallDisconnectionReported::default_instance(), nullptr);
5777 PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::android::os::statsd::Atom,
5778 ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::android::os::statsd::wearservices::WsCallDurationReported >, 11, false>
5779 ws_call_duration_reported(kWsCallDurationReportedFieldNumber, ::android::os::statsd::wearservices::WsCallDurationReported::default_instance(), nullptr);
5780 PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::android::os::statsd::Atom,
5781 ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::android::os::statsd::wearservices::WsCallUserExperienceLatencyReported >, 11, false>
5782 ws_call_user_experience_latency_reported(kWsCallUserExperienceLatencyReportedFieldNumber, ::android::os::statsd::wearservices::WsCallUserExperienceLatencyReported::default_instance(), nullptr);
5783 PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::android::os::statsd::Atom,
5784 ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::android::os::statsd::wearservices::WsCallInteractionReported >, 11, false>
5785 ws_call_interaction_reported(kWsCallInteractionReportedFieldNumber, ::android::os::statsd::wearservices::WsCallInteractionReported::default_instance(), nullptr);
5786 PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::android::os::statsd::Atom,
5787 ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::android::os::statsd::wearservices::WsOnBodyStateChanged >, 11, false>
5788 ws_on_body_state_changed(kWsOnBodyStateChangedFieldNumber, ::android::os::statsd::wearservices::WsOnBodyStateChanged::default_instance(), nullptr);
5789 PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::android::os::statsd::Atom,
5790 ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::android::os::statsd::wearservices::WsWatchFaceRestrictedComplicationsImpacted >, 11, false>
5791 ws_watch_face_restricted_complications_impacted(kWsWatchFaceRestrictedComplicationsImpactedFieldNumber, ::android::os::statsd::wearservices::WsWatchFaceRestrictedComplicationsImpacted::default_instance(), nullptr);
5792 PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::android::os::statsd::Atom,
5793 ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::android::os::statsd::wearservices::WsWatchFaceDefaultRestrictedComplicationsRemoved >, 11, false>
5794 ws_watch_face_default_restricted_complications_removed(kWsWatchFaceDefaultRestrictedComplicationsRemovedFieldNumber, ::android::os::statsd::wearservices::WsWatchFaceDefaultRestrictedComplicationsRemoved::default_instance(), nullptr);
5795 PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::android::os::statsd::Atom,
5796 ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::android::os::statsd::wearservices::WsComplicationsImpactedNotificationEventReported >, 11, false>
5797 ws_complications_impacted_notification_event_reported(kWsComplicationsImpactedNotificationEventReportedFieldNumber, ::android::os::statsd::wearservices::WsComplicationsImpactedNotificationEventReported::default_instance(), nullptr);
5798 PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::android::os::statsd::Atom,
5799 ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::android::os::statsd::wearservices::WsRemoteEventUsageReported >, 11, false>
5800 ws_remote_event_usage_reported(kWsRemoteEventUsageReportedFieldNumber, ::android::os::statsd::wearservices::WsRemoteEventUsageReported::default_instance(), nullptr);
5801 PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::android::os::statsd::Atom,
5802 ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::android::os::statsd::wearservices::WsNotificationManagedDismissalSync >, 11, false>
5803 ws_notification_managed_dismissal_sync(kWsNotificationManagedDismissalSyncFieldNumber, ::android::os::statsd::wearservices::WsNotificationManagedDismissalSync::default_instance(), nullptr);
5804 PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::android::os::statsd::Atom,
5805 ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::android::os::statsd::wearservices::WsBugreportEventReported >, 11, false>
5806 ws_bugreport_event_reported(kWsBugreportEventReportedFieldNumber, ::android::os::statsd::wearservices::WsBugreportEventReported::default_instance(), nullptr);
5807 PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::android::os::statsd::Atom,
5808 ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::android::os::statsd::wearservices::WsStandaloneModeSnapshot >, 11, false>
5809 ws_standalone_mode_snapshot(kWsStandaloneModeSnapshotFieldNumber, ::android::os::statsd::wearservices::WsStandaloneModeSnapshot::default_instance(), nullptr);
5810 PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::android::os::statsd::Atom,
5811 ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::android::os::statsd::wearservices::WsFavouriteWatchFaceSnapshot >, 11, false>
5812 ws_favorite_watch_face_snapshot(kWsFavoriteWatchFaceSnapshotFieldNumber, ::android::os::statsd::wearservices::WsFavouriteWatchFaceSnapshot::default_instance(), nullptr);
5813 PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::android::os::statsd::Atom,
5814 ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::android::os::statsd::wearservices::WsPhotosWatchFaceFeatureSnapshot >, 11, false>
5815 ws_photos_watch_face_feature_snapshot(kWsPhotosWatchFaceFeatureSnapshotFieldNumber, ::android::os::statsd::wearservices::WsPhotosWatchFaceFeatureSnapshot::default_instance(), nullptr);
5816 PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::android::os::statsd::Atom,
5817 ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::android::os::statsd::wearservices::WsWatchFaceCustomizationSnapshot >, 11, false>
5818 ws_watch_face_customization_snapshot(kWsWatchFaceCustomizationSnapshotFieldNumber, ::android::os::statsd::wearservices::WsWatchFaceCustomizationSnapshot::default_instance(), nullptr);
5819
5820 // @@protoc_insertion_point(namespace_scope)
5821 } // namespace wearservices
5822 } // namespace statsd
5823 } // namespace os
5824 } // namespace android
5825 PROTOBUF_NAMESPACE_OPEN
5826 template<> PROTOBUF_NOINLINE ::android::os::statsd::wearservices::WsIncomingCallActionReported*
CreateMaybeMessage(Arena * arena)5827 Arena::CreateMaybeMessage< ::android::os::statsd::wearservices::WsIncomingCallActionReported >(Arena* arena) {
5828 return Arena::CreateMessageInternal< ::android::os::statsd::wearservices::WsIncomingCallActionReported >(arena);
5829 }
5830 template<> PROTOBUF_NOINLINE ::android::os::statsd::wearservices::WsCallDisconnectionReported*
CreateMaybeMessage(Arena * arena)5831 Arena::CreateMaybeMessage< ::android::os::statsd::wearservices::WsCallDisconnectionReported >(Arena* arena) {
5832 return Arena::CreateMessageInternal< ::android::os::statsd::wearservices::WsCallDisconnectionReported >(arena);
5833 }
5834 template<> PROTOBUF_NOINLINE ::android::os::statsd::wearservices::WsCallDurationReported*
CreateMaybeMessage(Arena * arena)5835 Arena::CreateMaybeMessage< ::android::os::statsd::wearservices::WsCallDurationReported >(Arena* arena) {
5836 return Arena::CreateMessageInternal< ::android::os::statsd::wearservices::WsCallDurationReported >(arena);
5837 }
5838 template<> PROTOBUF_NOINLINE ::android::os::statsd::wearservices::WsCallUserExperienceLatencyReported*
CreateMaybeMessage(Arena * arena)5839 Arena::CreateMaybeMessage< ::android::os::statsd::wearservices::WsCallUserExperienceLatencyReported >(Arena* arena) {
5840 return Arena::CreateMessageInternal< ::android::os::statsd::wearservices::WsCallUserExperienceLatencyReported >(arena);
5841 }
5842 template<> PROTOBUF_NOINLINE ::android::os::statsd::wearservices::WsCallInteractionReported*
CreateMaybeMessage(Arena * arena)5843 Arena::CreateMaybeMessage< ::android::os::statsd::wearservices::WsCallInteractionReported >(Arena* arena) {
5844 return Arena::CreateMessageInternal< ::android::os::statsd::wearservices::WsCallInteractionReported >(arena);
5845 }
5846 template<> PROTOBUF_NOINLINE ::android::os::statsd::wearservices::WsWearTimeSession*
CreateMaybeMessage(Arena * arena)5847 Arena::CreateMaybeMessage< ::android::os::statsd::wearservices::WsWearTimeSession >(Arena* arena) {
5848 return Arena::CreateMessageInternal< ::android::os::statsd::wearservices::WsWearTimeSession >(arena);
5849 }
5850 template<> PROTOBUF_NOINLINE ::android::os::statsd::wearservices::WsOnBodyStateChanged*
CreateMaybeMessage(Arena * arena)5851 Arena::CreateMaybeMessage< ::android::os::statsd::wearservices::WsOnBodyStateChanged >(Arena* arena) {
5852 return Arena::CreateMessageInternal< ::android::os::statsd::wearservices::WsOnBodyStateChanged >(arena);
5853 }
5854 template<> PROTOBUF_NOINLINE ::android::os::statsd::wearservices::WsStandaloneModeSnapshot*
CreateMaybeMessage(Arena * arena)5855 Arena::CreateMaybeMessage< ::android::os::statsd::wearservices::WsStandaloneModeSnapshot >(Arena* arena) {
5856 return Arena::CreateMessageInternal< ::android::os::statsd::wearservices::WsStandaloneModeSnapshot >(arena);
5857 }
5858 template<> PROTOBUF_NOINLINE ::android::os::statsd::wearservices::WsWatchFaceRestrictedComplicationsImpacted*
CreateMaybeMessage(Arena * arena)5859 Arena::CreateMaybeMessage< ::android::os::statsd::wearservices::WsWatchFaceRestrictedComplicationsImpacted >(Arena* arena) {
5860 return Arena::CreateMessageInternal< ::android::os::statsd::wearservices::WsWatchFaceRestrictedComplicationsImpacted >(arena);
5861 }
5862 template<> PROTOBUF_NOINLINE ::android::os::statsd::wearservices::WsFavouriteWatchFaceSnapshot*
CreateMaybeMessage(Arena * arena)5863 Arena::CreateMaybeMessage< ::android::os::statsd::wearservices::WsFavouriteWatchFaceSnapshot >(Arena* arena) {
5864 return Arena::CreateMessageInternal< ::android::os::statsd::wearservices::WsFavouriteWatchFaceSnapshot >(arena);
5865 }
5866 template<> PROTOBUF_NOINLINE ::android::os::statsd::wearservices::WsWatchFaceCustomizationSnapshot*
CreateMaybeMessage(Arena * arena)5867 Arena::CreateMaybeMessage< ::android::os::statsd::wearservices::WsWatchFaceCustomizationSnapshot >(Arena* arena) {
5868 return Arena::CreateMessageInternal< ::android::os::statsd::wearservices::WsWatchFaceCustomizationSnapshot >(arena);
5869 }
5870 template<> PROTOBUF_NOINLINE ::android::os::statsd::wearservices::WsPhotosWatchFaceFeatureSnapshot*
CreateMaybeMessage(Arena * arena)5871 Arena::CreateMaybeMessage< ::android::os::statsd::wearservices::WsPhotosWatchFaceFeatureSnapshot >(Arena* arena) {
5872 return Arena::CreateMessageInternal< ::android::os::statsd::wearservices::WsPhotosWatchFaceFeatureSnapshot >(arena);
5873 }
5874 template<> PROTOBUF_NOINLINE ::android::os::statsd::wearservices::WsWatchFaceDefaultRestrictedComplicationsRemoved*
CreateMaybeMessage(Arena * arena)5875 Arena::CreateMaybeMessage< ::android::os::statsd::wearservices::WsWatchFaceDefaultRestrictedComplicationsRemoved >(Arena* arena) {
5876 return Arena::CreateMessageInternal< ::android::os::statsd::wearservices::WsWatchFaceDefaultRestrictedComplicationsRemoved >(arena);
5877 }
5878 template<> PROTOBUF_NOINLINE ::android::os::statsd::wearservices::WsComplicationsImpactedNotificationEventReported*
CreateMaybeMessage(Arena * arena)5879 Arena::CreateMaybeMessage< ::android::os::statsd::wearservices::WsComplicationsImpactedNotificationEventReported >(Arena* arena) {
5880 return Arena::CreateMessageInternal< ::android::os::statsd::wearservices::WsComplicationsImpactedNotificationEventReported >(arena);
5881 }
5882 template<> PROTOBUF_NOINLINE ::android::os::statsd::wearservices::WsRemoteEventUsageReported*
CreateMaybeMessage(Arena * arena)5883 Arena::CreateMaybeMessage< ::android::os::statsd::wearservices::WsRemoteEventUsageReported >(Arena* arena) {
5884 return Arena::CreateMessageInternal< ::android::os::statsd::wearservices::WsRemoteEventUsageReported >(arena);
5885 }
5886 template<> PROTOBUF_NOINLINE ::android::os::statsd::wearservices::WsBugreportEventReported*
CreateMaybeMessage(Arena * arena)5887 Arena::CreateMaybeMessage< ::android::os::statsd::wearservices::WsBugreportEventReported >(Arena* arena) {
5888 return Arena::CreateMessageInternal< ::android::os::statsd::wearservices::WsBugreportEventReported >(arena);
5889 }
5890 template<> PROTOBUF_NOINLINE ::android::os::statsd::wearservices::WsNotificationManagedDismissalSync*
CreateMaybeMessage(Arena * arena)5891 Arena::CreateMaybeMessage< ::android::os::statsd::wearservices::WsNotificationManagedDismissalSync >(Arena* arena) {
5892 return Arena::CreateMessageInternal< ::android::os::statsd::wearservices::WsNotificationManagedDismissalSync >(arena);
5893 }
5894 PROTOBUF_NAMESPACE_CLOSE
5895
5896 // @@protoc_insertion_point(global_scope)
5897 #include <google/protobuf/port_undef.inc>
5898