1 // Generated by the protocol buffer compiler.  DO NOT EDIT!
2 // source: frameworks/proto_logging/stats/atoms/autofill/autofill_extension_atoms.proto
3 
4 #include "frameworks/proto_logging/stats/atoms/autofill/autofill_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 autofill {
AutofillUiEventReported(::_pbi::ConstantInitialized)28 PROTOBUF_CONSTEXPR AutofillUiEventReported::AutofillUiEventReported(
29     ::_pbi::ConstantInitialized): _impl_{
30     /*decltype(_impl_._has_bits_)*/{}
31   , /*decltype(_impl_._cached_size_)*/{}
32   , /*decltype(_impl_.event_type_)*/0
33   , /*decltype(_impl_.autofill_service_uid_)*/0
34   , /*decltype(_impl_.app_package_uid_)*/0} {}
35 struct AutofillUiEventReportedDefaultTypeInternal {
AutofillUiEventReportedDefaultTypeInternalandroid::os::statsd::autofill::AutofillUiEventReportedDefaultTypeInternal36   PROTOBUF_CONSTEXPR AutofillUiEventReportedDefaultTypeInternal()
37       : _instance(::_pbi::ConstantInitialized{}) {}
~AutofillUiEventReportedDefaultTypeInternalandroid::os::statsd::autofill::AutofillUiEventReportedDefaultTypeInternal38   ~AutofillUiEventReportedDefaultTypeInternal() {}
39   union {  // NOLINT(misc-non-private-member-variables-in-classes)
40     AutofillUiEventReported _instance;
41   };
42 };
43 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AutofillUiEventReportedDefaultTypeInternal _AutofillUiEventReported_default_instance_;
AutofillFillRequestReported(::_pbi::ConstantInitialized)44 PROTOBUF_CONSTEXPR AutofillFillRequestReported::AutofillFillRequestReported(
45     ::_pbi::ConstantInitialized): _impl_{
46     /*decltype(_impl_._has_bits_)*/{}
47   , /*decltype(_impl_._cached_size_)*/{}
48   , /*decltype(_impl_.request_id_)*/0
49   , /*decltype(_impl_.session_id_)*/0
50   , /*decltype(_impl_.autofill_service_uid_)*/0
51   , /*decltype(_impl_.inline_suggestion_host_uid_)*/0
52   , /*decltype(_impl_.is_augmented_)*/false
53   , /*decltype(_impl_.is_client_suggestion_fallback_)*/false
54   , /*decltype(_impl_.is_fill_dialog_eligible_)*/false
55   , /*decltype(_impl_.request_trigger_reason_)*/0
56   , /*decltype(_impl_.flags_)*/::int64_t{0}
57   , /*decltype(_impl_.latency_fill_request_sent_millis_)*/0
58   , /*decltype(_impl_.app_package_uid_)*/0} {}
59 struct AutofillFillRequestReportedDefaultTypeInternal {
AutofillFillRequestReportedDefaultTypeInternalandroid::os::statsd::autofill::AutofillFillRequestReportedDefaultTypeInternal60   PROTOBUF_CONSTEXPR AutofillFillRequestReportedDefaultTypeInternal()
61       : _instance(::_pbi::ConstantInitialized{}) {}
~AutofillFillRequestReportedDefaultTypeInternalandroid::os::statsd::autofill::AutofillFillRequestReportedDefaultTypeInternal62   ~AutofillFillRequestReportedDefaultTypeInternal() {}
63   union {  // NOLINT(misc-non-private-member-variables-in-classes)
64     AutofillFillRequestReported _instance;
65   };
66 };
67 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AutofillFillRequestReportedDefaultTypeInternal _AutofillFillRequestReported_default_instance_;
AutofillFillResponseReported(::_pbi::ConstantInitialized)68 PROTOBUF_CONSTEXPR AutofillFillResponseReported::AutofillFillResponseReported(
69     ::_pbi::ConstantInitialized): _impl_{
70     /*decltype(_impl_._has_bits_)*/{}
71   , /*decltype(_impl_._cached_size_)*/{}
72   , /*decltype(_impl_.request_id_)*/0
73   , /*decltype(_impl_.session_id_)*/0
74   , /*decltype(_impl_.app_package_uid_)*/0
75   , /*decltype(_impl_.display_presentation_type_)*/0
76   , /*decltype(_impl_.save_ui_trigger_ids_)*/::int64_t{0}
77   , /*decltype(_impl_.available_count_)*/0
78   , /*decltype(_impl_.latency_fill_response_received_millis_)*/0
79   , /*decltype(_impl_.authentication_type_)*/0
80   , /*decltype(_impl_.authentication_result_)*/0
81   , /*decltype(_impl_.authentication_failure_reason_)*/::int64_t{0}
82   , /*decltype(_impl_.latency_authentication_ui_display_millis_)*/::int64_t{0}
83   , /*decltype(_impl_.latency_dataset_display_millis_)*/::int64_t{0}
84   , /*decltype(_impl_.latency_response_processing_millis_)*/::int64_t{0}
85   , /*decltype(_impl_.response_status_)*/0
86   , /*decltype(_impl_.available_pcc_count_)*/0
87   , /*decltype(_impl_.available_pcc_only_count_)*/0
88   , /*decltype(_impl_.total_datasets_provided_)*/0
89   , /*decltype(_impl_.detection_preference_)*/0} {}
90 struct AutofillFillResponseReportedDefaultTypeInternal {
AutofillFillResponseReportedDefaultTypeInternalandroid::os::statsd::autofill::AutofillFillResponseReportedDefaultTypeInternal91   PROTOBUF_CONSTEXPR AutofillFillResponseReportedDefaultTypeInternal()
92       : _instance(::_pbi::ConstantInitialized{}) {}
~AutofillFillResponseReportedDefaultTypeInternalandroid::os::statsd::autofill::AutofillFillResponseReportedDefaultTypeInternal93   ~AutofillFillResponseReportedDefaultTypeInternal() {}
94   union {  // NOLINT(misc-non-private-member-variables-in-classes)
95     AutofillFillResponseReported _instance;
96   };
97 };
98 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AutofillFillResponseReportedDefaultTypeInternal _AutofillFillResponseReported_default_instance_;
AutofillSaveEventReported(::_pbi::ConstantInitialized)99 PROTOBUF_CONSTEXPR AutofillSaveEventReported::AutofillSaveEventReported(
100     ::_pbi::ConstantInitialized): _impl_{
101     /*decltype(_impl_._has_bits_)*/{}
102   , /*decltype(_impl_._cached_size_)*/{}
103   , /*decltype(_impl_.request_id_)*/0
104   , /*decltype(_impl_.session_id_)*/0
105   , /*decltype(_impl_.save_ui_trigger_ids_)*/::int64_t{0}
106   , /*decltype(_impl_.flag_)*/::int64_t{0}
107   , /*decltype(_impl_.app_package_uid_)*/0
108   , /*decltype(_impl_.save_ui_shown_reason_)*/0
109   , /*decltype(_impl_.save_ui_not_shown_reason_)*/0
110   , /*decltype(_impl_.is_new_field_)*/false
111   , /*decltype(_impl_.save_button_clicked_)*/false
112   , /*decltype(_impl_.cancel_button_clicked_)*/false
113   , /*decltype(_impl_.dialog_dismissed_)*/false
114   , /*decltype(_impl_.latency_save_ui_display_millis_)*/::int64_t{0}
115   , /*decltype(_impl_.latency_save_request_millis_)*/::int64_t{0}
116   , /*decltype(_impl_.latency_save_finish_millis_)*/::int64_t{0}
117   , /*decltype(_impl_.is_saved_)*/false
118   , /*decltype(_impl_.is_framework_created_save_info_)*/false
119   , /*decltype(_impl_.autofill_service_uid_)*/0} {}
120 struct AutofillSaveEventReportedDefaultTypeInternal {
AutofillSaveEventReportedDefaultTypeInternalandroid::os::statsd::autofill::AutofillSaveEventReportedDefaultTypeInternal121   PROTOBUF_CONSTEXPR AutofillSaveEventReportedDefaultTypeInternal()
122       : _instance(::_pbi::ConstantInitialized{}) {}
~AutofillSaveEventReportedDefaultTypeInternalandroid::os::statsd::autofill::AutofillSaveEventReportedDefaultTypeInternal123   ~AutofillSaveEventReportedDefaultTypeInternal() {}
124   union {  // NOLINT(misc-non-private-member-variables-in-classes)
125     AutofillSaveEventReported _instance;
126   };
127 };
128 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AutofillSaveEventReportedDefaultTypeInternal _AutofillSaveEventReported_default_instance_;
AutofillSessionCommitted(::_pbi::ConstantInitialized)129 PROTOBUF_CONSTEXPR AutofillSessionCommitted::AutofillSessionCommitted(
130     ::_pbi::ConstantInitialized): _impl_{
131     /*decltype(_impl_._has_bits_)*/{}
132   , /*decltype(_impl_._cached_size_)*/{}
133   , /*decltype(_impl_.session_id_)*/0
134   , /*decltype(_impl_.component_package_uid_)*/0
135   , /*decltype(_impl_.request_count_)*/::int64_t{0}
136   , /*decltype(_impl_.session_duration_millis_)*/::int64_t{0}
137   , /*decltype(_impl_.commit_reason_)*/0
138   , /*decltype(_impl_.autofill_service_uid_)*/0
139   , /*decltype(_impl_.save_info_count_)*/0
140   , /*decltype(_impl_.save_data_types_count_)*/0
141   , /*decltype(_impl_.last_fill_response_has_save_info_)*/false} {}
142 struct AutofillSessionCommittedDefaultTypeInternal {
AutofillSessionCommittedDefaultTypeInternalandroid::os::statsd::autofill::AutofillSessionCommittedDefaultTypeInternal143   PROTOBUF_CONSTEXPR AutofillSessionCommittedDefaultTypeInternal()
144       : _instance(::_pbi::ConstantInitialized{}) {}
~AutofillSessionCommittedDefaultTypeInternalandroid::os::statsd::autofill::AutofillSessionCommittedDefaultTypeInternal145   ~AutofillSessionCommittedDefaultTypeInternal() {}
146   union {  // NOLINT(misc-non-private-member-variables-in-classes)
147     AutofillSessionCommitted _instance;
148   };
149 };
150 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AutofillSessionCommittedDefaultTypeInternal _AutofillSessionCommitted_default_instance_;
AutofillFieldClassificationEventReported(::_pbi::ConstantInitialized)151 PROTOBUF_CONSTEXPR AutofillFieldClassificationEventReported::AutofillFieldClassificationEventReported(
152     ::_pbi::ConstantInitialized): _impl_{
153     /*decltype(_impl_._has_bits_)*/{}
154   , /*decltype(_impl_._cached_size_)*/{}
155   , /*decltype(_impl_.latency_millis_)*/::int64_t{0}
156   , /*decltype(_impl_.count_classifications_)*/0
157   , /*decltype(_impl_.session_id_)*/0
158   , /*decltype(_impl_.request_id_)*/0
159   , /*decltype(_impl_.next_fill_request_id_)*/0
160   , /*decltype(_impl_.app_package_uid_)*/0
161   , /*decltype(_impl_.status_)*/0
162   , /*decltype(_impl_.is_session_gc_)*/false} {}
163 struct AutofillFieldClassificationEventReportedDefaultTypeInternal {
AutofillFieldClassificationEventReportedDefaultTypeInternalandroid::os::statsd::autofill::AutofillFieldClassificationEventReportedDefaultTypeInternal164   PROTOBUF_CONSTEXPR AutofillFieldClassificationEventReportedDefaultTypeInternal()
165       : _instance(::_pbi::ConstantInitialized{}) {}
~AutofillFieldClassificationEventReportedDefaultTypeInternalandroid::os::statsd::autofill::AutofillFieldClassificationEventReportedDefaultTypeInternal166   ~AutofillFieldClassificationEventReportedDefaultTypeInternal() {}
167   union {  // NOLINT(misc-non-private-member-variables-in-classes)
168     AutofillFieldClassificationEventReported _instance;
169   };
170 };
171 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AutofillFieldClassificationEventReportedDefaultTypeInternal _AutofillFieldClassificationEventReported_default_instance_;
172 }  // namespace autofill
173 }  // namespace statsd
174 }  // namespace os
175 }  // namespace android
176 static ::_pb::Metadata file_level_metadata_frameworks_2fproto_5flogging_2fstats_2fatoms_2fautofill_2fautofill_5fextension_5fatoms_2eproto[6];
177 static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_frameworks_2fproto_5flogging_2fstats_2fatoms_2fautofill_2fautofill_5fextension_5fatoms_2eproto = nullptr;
178 static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_frameworks_2fproto_5flogging_2fstats_2fatoms_2fautofill_2fautofill_5fextension_5fatoms_2eproto = nullptr;
179 
180 const ::uint32_t TableStruct_frameworks_2fproto_5flogging_2fstats_2fatoms_2fautofill_2fautofill_5fextension_5fatoms_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
181   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillUiEventReported, _impl_._has_bits_),
182   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillUiEventReported, _internal_metadata_),
183   ~0u,  // no _extensions_
184   ~0u,  // no _oneof_case_
185   ~0u,  // no _weak_field_map_
186   ~0u,  // no _inlined_string_donated_
187   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillUiEventReported, _impl_.event_type_),
188   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillUiEventReported, _impl_.autofill_service_uid_),
189   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillUiEventReported, _impl_.app_package_uid_),
190   0,
191   1,
192   2,
193   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillFillRequestReported, _impl_._has_bits_),
194   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillFillRequestReported, _internal_metadata_),
195   ~0u,  // no _extensions_
196   ~0u,  // no _oneof_case_
197   ~0u,  // no _weak_field_map_
198   ~0u,  // no _inlined_string_donated_
199   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillFillRequestReported, _impl_.request_id_),
200   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillFillRequestReported, _impl_.session_id_),
201   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillFillRequestReported, _impl_.app_package_uid_),
202   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillFillRequestReported, _impl_.autofill_service_uid_),
203   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillFillRequestReported, _impl_.inline_suggestion_host_uid_),
204   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillFillRequestReported, _impl_.is_augmented_),
205   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillFillRequestReported, _impl_.is_client_suggestion_fallback_),
206   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillFillRequestReported, _impl_.is_fill_dialog_eligible_),
207   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillFillRequestReported, _impl_.request_trigger_reason_),
208   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillFillRequestReported, _impl_.flags_),
209   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillFillRequestReported, _impl_.latency_fill_request_sent_millis_),
210   0,
211   1,
212   10,
213   2,
214   3,
215   4,
216   5,
217   6,
218   7,
219   8,
220   9,
221   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillFillResponseReported, _impl_._has_bits_),
222   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillFillResponseReported, _internal_metadata_),
223   ~0u,  // no _extensions_
224   ~0u,  // no _oneof_case_
225   ~0u,  // no _weak_field_map_
226   ~0u,  // no _inlined_string_donated_
227   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillFillResponseReported, _impl_.request_id_),
228   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillFillResponseReported, _impl_.session_id_),
229   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillFillResponseReported, _impl_.app_package_uid_),
230   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillFillResponseReported, _impl_.display_presentation_type_),
231   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillFillResponseReported, _impl_.available_count_),
232   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillFillResponseReported, _impl_.save_ui_trigger_ids_),
233   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillFillResponseReported, _impl_.latency_fill_response_received_millis_),
234   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillFillResponseReported, _impl_.authentication_type_),
235   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillFillResponseReported, _impl_.authentication_result_),
236   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillFillResponseReported, _impl_.authentication_failure_reason_),
237   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillFillResponseReported, _impl_.latency_authentication_ui_display_millis_),
238   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillFillResponseReported, _impl_.latency_dataset_display_millis_),
239   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillFillResponseReported, _impl_.response_status_),
240   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillFillResponseReported, _impl_.latency_response_processing_millis_),
241   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillFillResponseReported, _impl_.available_pcc_count_),
242   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillFillResponseReported, _impl_.available_pcc_only_count_),
243   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillFillResponseReported, _impl_.total_datasets_provided_),
244   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillFillResponseReported, _impl_.detection_preference_),
245   0,
246   1,
247   2,
248   3,
249   5,
250   4,
251   6,
252   7,
253   8,
254   9,
255   10,
256   11,
257   13,
258   12,
259   14,
260   15,
261   16,
262   17,
263   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillSaveEventReported, _impl_._has_bits_),
264   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillSaveEventReported, _internal_metadata_),
265   ~0u,  // no _extensions_
266   ~0u,  // no _oneof_case_
267   ~0u,  // no _weak_field_map_
268   ~0u,  // no _inlined_string_donated_
269   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillSaveEventReported, _impl_.request_id_),
270   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillSaveEventReported, _impl_.session_id_),
271   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillSaveEventReported, _impl_.app_package_uid_),
272   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillSaveEventReported, _impl_.save_ui_trigger_ids_),
273   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillSaveEventReported, _impl_.flag_),
274   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillSaveEventReported, _impl_.is_new_field_),
275   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillSaveEventReported, _impl_.save_ui_shown_reason_),
276   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillSaveEventReported, _impl_.save_ui_not_shown_reason_),
277   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillSaveEventReported, _impl_.save_button_clicked_),
278   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillSaveEventReported, _impl_.cancel_button_clicked_),
279   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillSaveEventReported, _impl_.dialog_dismissed_),
280   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillSaveEventReported, _impl_.is_saved_),
281   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillSaveEventReported, _impl_.latency_save_ui_display_millis_),
282   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillSaveEventReported, _impl_.latency_save_request_millis_),
283   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillSaveEventReported, _impl_.latency_save_finish_millis_),
284   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillSaveEventReported, _impl_.is_framework_created_save_info_),
285   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillSaveEventReported, _impl_.autofill_service_uid_),
286   0,
287   1,
288   4,
289   2,
290   3,
291   7,
292   5,
293   6,
294   8,
295   9,
296   10,
297   14,
298   11,
299   12,
300   13,
301   15,
302   16,
303   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillSessionCommitted, _impl_._has_bits_),
304   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillSessionCommitted, _internal_metadata_),
305   ~0u,  // no _extensions_
306   ~0u,  // no _oneof_case_
307   ~0u,  // no _weak_field_map_
308   ~0u,  // no _inlined_string_donated_
309   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillSessionCommitted, _impl_.session_id_),
310   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillSessionCommitted, _impl_.component_package_uid_),
311   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillSessionCommitted, _impl_.request_count_),
312   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillSessionCommitted, _impl_.commit_reason_),
313   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillSessionCommitted, _impl_.session_duration_millis_),
314   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillSessionCommitted, _impl_.autofill_service_uid_),
315   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillSessionCommitted, _impl_.save_info_count_),
316   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillSessionCommitted, _impl_.save_data_types_count_),
317   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillSessionCommitted, _impl_.last_fill_response_has_save_info_),
318   0,
319   1,
320   2,
321   4,
322   3,
323   5,
324   6,
325   7,
326   8,
327   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillFieldClassificationEventReported, _impl_._has_bits_),
328   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillFieldClassificationEventReported, _internal_metadata_),
329   ~0u,  // no _extensions_
330   ~0u,  // no _oneof_case_
331   ~0u,  // no _weak_field_map_
332   ~0u,  // no _inlined_string_donated_
333   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillFieldClassificationEventReported, _impl_.latency_millis_),
334   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillFieldClassificationEventReported, _impl_.count_classifications_),
335   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillFieldClassificationEventReported, _impl_.session_id_),
336   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillFieldClassificationEventReported, _impl_.request_id_),
337   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillFieldClassificationEventReported, _impl_.next_fill_request_id_),
338   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillFieldClassificationEventReported, _impl_.app_package_uid_),
339   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillFieldClassificationEventReported, _impl_.status_),
340   PROTOBUF_FIELD_OFFSET(::android::os::statsd::autofill::AutofillFieldClassificationEventReported, _impl_.is_session_gc_),
341   0,
342   1,
343   2,
344   3,
345   4,
346   5,
347   6,
348   7,
349 };
350 static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
351   { 0, 9, -1, sizeof(::android::os::statsd::autofill::AutofillUiEventReported)},
352   { 12, 29, -1, sizeof(::android::os::statsd::autofill::AutofillFillRequestReported)},
353   { 40, 64, -1, sizeof(::android::os::statsd::autofill::AutofillFillResponseReported)},
354   { 82, 105, -1, sizeof(::android::os::statsd::autofill::AutofillSaveEventReported)},
355   { 122, 137, -1, sizeof(::android::os::statsd::autofill::AutofillSessionCommitted)},
356   { 146, 160, -1, sizeof(::android::os::statsd::autofill::AutofillFieldClassificationEventReported)},
357 };
358 
359 static const ::_pb::Message* const file_default_instances[] = {
360   &::android::os::statsd::autofill::_AutofillUiEventReported_default_instance_._instance,
361   &::android::os::statsd::autofill::_AutofillFillRequestReported_default_instance_._instance,
362   &::android::os::statsd::autofill::_AutofillFillResponseReported_default_instance_._instance,
363   &::android::os::statsd::autofill::_AutofillSaveEventReported_default_instance_._instance,
364   &::android::os::statsd::autofill::_AutofillSessionCommitted_default_instance_._instance,
365   &::android::os::statsd::autofill::_AutofillFieldClassificationEventReported_default_instance_._instance,
366 };
367 
368 const char descriptor_table_protodef_frameworks_2fproto_5flogging_2fstats_2fatoms_2fautofill_2fautofill_5fextension_5fatoms_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
369   "\nLframeworks/proto_logging/stats/atoms/a"
370   "utofill/autofill_extension_atoms.proto\022\032"
371   "android.os.statsd.autofill\032*frameworks/p"
372   "roto_logging/stats/atoms.proto\0327framewor"
373   "ks/proto_logging/stats/atom_field_option"
374   "s.proto\0329frameworks/proto_logging/stats/"
375   "enums/autofill/enums.proto\"\231\001\n\027AutofillU"
376   "iEventReported\022;\n\nevent_type\030\001 \001(\0162\'.and"
377   "roid.os.statsd.autofill.UiEventType\022\"\n\024a"
378   "utofill_service_uid\030\002 \001(\005B\004\210\265\030\001\022\035\n\017app_p"
379   "ackage_uid\030\003 \001(\005B\004\210\265\030\001\"\237\003\n\033AutofillFillR"
380   "equestReported\022\022\n\nrequest_id\030\001 \001(\005\022\022\n\nse"
381   "ssion_id\030\002 \001(\005\022\035\n\017app_package_uid\030\013 \001(\005B"
382   "\004\210\265\030\001\022\"\n\024autofill_service_uid\030\003 \001(\005B\004\210\265\030"
383   "\001\022(\n\032inline_suggestion_host_uid\030\004 \001(\005B\004\210"
384   "\265\030\001\022\024\n\014is_augmented\030\005 \001(\010\022%\n\035is_client_s"
385   "uggestion_fallback\030\006 \001(\010\022\037\n\027is_fill_dial"
386   "og_eligible\030\007 \001(\010\022T\n\026request_trigger_rea"
387   "son\030\010 \001(\01624.android.os.statsd.autofill.F"
388   "illRequestTriggerReason\022\r\n\005flags\030\t \001(\003\022("
389   "\n latency_fill_request_sent_millis\030\n \001(\005"
390   "\"\201\007\n\034AutofillFillResponseReported\022\022\n\nreq"
391   "uest_id\030\001 \001(\005\022\022\n\nsession_id\030\002 \001(\005\022\035\n\017app"
392   "_package_uid\030\003 \001(\005B\004\210\265\030\001\022^\n\031display_pres"
393   "entation_type\030\004 \001(\0162;.android.os.statsd."
394   "autofill.AutofillDisplayPresentationType"
395   "\022\027\n\017available_count\030\005 \001(\005\022\033\n\023save_ui_tri"
396   "gger_ids\030\006 \001(\003\022-\n%latency_fill_response_"
397   "received_millis\030\007 \001(\005\022O\n\023authentication_"
398   "type\030\010 \001(\0162..android.os.statsd.autofill."
399   "AuthenticationTypeB\002\030\001\022S\n\025authentication"
400   "_result\030\t \001(\01620.android.os.statsd.autofi"
401   "ll.AuthenticationResultB\002\030\001\022)\n\035authentic"
402   "ation_failure_reason\030\n \001(\003B\002\030\001\0224\n(latenc"
403   "y_authentication_ui_display_millis\030\013 \001(\003"
404   "B\002\030\001\022*\n\036latency_dataset_display_millis\030\014"
405   " \001(\003B\002\030\001\022G\n\017response_status\030\r \001(\0162..andr"
406   "oid.os.statsd.autofill.FillResponseStatu"
407   "s\022*\n\"latency_response_processing_millis\030"
408   "\016 \001(\003\022\033\n\023available_pcc_count\030\017 \001(\005\022 \n\030av"
409   "ailable_pcc_only_count\030\020 \001(\005\022\037\n\027total_da"
410   "tasets_provided\030\021 \001(\005\022M\n\024detection_prefe"
411   "rence\030\022 \001(\0162/.android.os.statsd.autofill"
412   ".DetectionPreference\"\351\004\n\031AutofillSaveEve"
413   "ntReported\022\022\n\nrequest_id\030\001 \001(\005\022\022\n\nsessio"
414   "n_id\030\002 \001(\005\022\035\n\017app_package_uid\030\003 \001(\005B\004\210\265\030"
415   "\001\022\033\n\023save_ui_trigger_ids\030\004 \001(\003\022\014\n\004flag\030\005"
416   " \001(\003\022\024\n\014is_new_field\030\006 \001(\010\022K\n\024save_ui_sh"
417   "own_reason\030\007 \001(\0162-.android.os.statsd.aut"
418   "ofill.SaveUiShownReason\022R\n\030save_ui_not_s"
419   "hown_reason\030\010 \001(\01620.android.os.statsd.au"
420   "tofill.SaveUiNotShownReason\022\033\n\023save_butt"
421   "on_clicked\030\t \001(\010\022\035\n\025cancel_button_clicke"
422   "d\030\n \001(\010\022\030\n\020dialog_dismissed\030\013 \001(\010\022\020\n\010is_"
423   "saved\030\014 \001(\010\022&\n\036latency_save_ui_display_m"
424   "illis\030\r \001(\003\022#\n\033latency_save_request_mill"
425   "is\030\016 \001(\003\022\"\n\032latency_save_finish_millis\030\017"
426   " \001(\003\022&\n\036is_framework_created_save_info\030\020"
427   " \001(\010\022\"\n\024autofill_service_uid\030\021 \001(\005B\004\210\265\030\001"
428   "\"\332\002\n\030AutofillSessionCommitted\022\022\n\nsession"
429   "_id\030\001 \001(\005\022#\n\025component_package_uid\030\002 \001(\005"
430   "B\004\210\265\030\001\022\025\n\rrequest_count\030\003 \001(\003\022G\n\rcommit_"
431   "reason\030\004 \001(\01620.android.os.statsd.autofil"
432   "l.AutofillCommitReason\022\037\n\027session_durati"
433   "on_millis\030\005 \001(\003\022\"\n\024autofill_service_uid\030"
434   "\006 \001(\005B\004\210\265\030\001\022\027\n\017save_info_count\030\007 \001(\005\022\035\n\025"
435   "save_data_types_count\030\010 \001(\005\022(\n last_fill"
436   "_response_has_save_info\030\t \001(\010\"\253\002\n(Autofi"
437   "llFieldClassificationEventReported\022\026\n\016la"
438   "tency_millis\030\001 \001(\003\022\035\n\025count_classificati"
439   "ons\030\002 \001(\005\022\022\n\nsession_id\030\003 \001(\005\022\022\n\nrequest"
440   "_id\030\004 \001(\005\022\034\n\024next_fill_request_id\030\005 \001(\005\022"
441   "\035\n\017app_package_uid\030\006 \001(\005B\004\210\265\030\001\022L\n\006status"
442   "\030\007 \001(\0162<.android.os.statsd.autofill.Fiel"
443   "dClassificationRequestStatus\022\025\n\ris_sessi"
444   "on_gc\030\010 \001(\010:\200\001\n\032autofill_ui_event_report"
445   "ed\022\027.android.os.statsd.Atom\030\333\004 \001(\01323.and"
446   "roid.os.statsd.autofill.AutofillUiEventR"
447   "eportedB\r\242\265\030\tframework:\210\001\n\036autofill_fill"
448   "_request_reported\022\027.android.os.statsd.At"
449   "om\030\334\004 \001(\01327.android.os.statsd.autofill.A"
450   "utofillFillRequestReportedB\r\242\265\030\tframewor"
451   "k:\212\001\n\037autofill_fill_response_reported\022\027."
452   "android.os.statsd.Atom\030\335\004 \001(\01328.android."
453   "os.statsd.autofill.AutofillFillResponseR"
454   "eportedB\r\242\265\030\tframework:\204\001\n\034autofill_save"
455   "_event_reported\022\027.android.os.statsd.Atom"
456   "\030\336\004 \001(\01325.android.os.statsd.autofill.Aut"
457   "ofillSaveEventReportedB\r\242\265\030\tframework:\201\001"
458   "\n\032autofill_session_committed\022\027.android.o"
459   "s.statsd.Atom\030\337\004 \001(\01324.android.os.statsd"
460   ".autofill.AutofillSessionCommittedB\r\242\265\030\t"
461   "framework:\243\001\n,autofill_field_classificat"
462   "ion_event_reported\022\027.android.os.statsd.A"
463   "tom\030\223\005 \001(\0132D.android.os.statsd.autofill."
464   "AutofillFieldClassificationEventReported"
465   "B\r\242\265\030\tframeworkB\033\n\027com.android.os.autofi"
466   "llP\001"
467   ;
468 static const ::_pbi::DescriptorTable* const descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fautofill_2fautofill_5fextension_5fatoms_2eproto_deps[3] = {
469   &::descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatom_5ffield_5foptions_2eproto,
470   &::descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2eproto,
471   &::descriptor_table_frameworks_2fproto_5flogging_2fstats_2fenums_2fautofill_2fenums_2eproto,
472 };
473 static ::_pbi::once_flag descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fautofill_2fautofill_5fextension_5fatoms_2eproto_once;
474 const ::_pbi::DescriptorTable descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fautofill_2fautofill_5fextension_5fatoms_2eproto = {
475     false, false, 3884, descriptor_table_protodef_frameworks_2fproto_5flogging_2fstats_2fatoms_2fautofill_2fautofill_5fextension_5fatoms_2eproto,
476     "frameworks/proto_logging/stats/atoms/autofill/autofill_extension_atoms.proto",
477     &descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fautofill_2fautofill_5fextension_5fatoms_2eproto_once, descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fautofill_2fautofill_5fextension_5fatoms_2eproto_deps, 3, 6,
478     schemas, file_default_instances, TableStruct_frameworks_2fproto_5flogging_2fstats_2fatoms_2fautofill_2fautofill_5fextension_5fatoms_2eproto::offsets,
479     file_level_metadata_frameworks_2fproto_5flogging_2fstats_2fatoms_2fautofill_2fautofill_5fextension_5fatoms_2eproto, file_level_enum_descriptors_frameworks_2fproto_5flogging_2fstats_2fatoms_2fautofill_2fautofill_5fextension_5fatoms_2eproto,
480     file_level_service_descriptors_frameworks_2fproto_5flogging_2fstats_2fatoms_2fautofill_2fautofill_5fextension_5fatoms_2eproto,
481 };
descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fautofill_2fautofill_5fextension_5fatoms_2eproto_getter()482 PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fautofill_2fautofill_5fextension_5fatoms_2eproto_getter() {
483   return &descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fautofill_2fautofill_5fextension_5fatoms_2eproto;
484 }
485 
486 // Force running AddDescriptors() at dynamic initialization time.
487 PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_frameworks_2fproto_5flogging_2fstats_2fatoms_2fautofill_2fautofill_5fextension_5fatoms_2eproto(&descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fautofill_2fautofill_5fextension_5fatoms_2eproto);
488 namespace android {
489 namespace os {
490 namespace statsd {
491 namespace autofill {
492 
493 // ===================================================================
494 
495 class AutofillUiEventReported::_Internal {
496  public:
497   using HasBits = decltype(std::declval<AutofillUiEventReported>()._impl_._has_bits_);
set_has_event_type(HasBits * has_bits)498   static void set_has_event_type(HasBits* has_bits) {
499     (*has_bits)[0] |= 1u;
500   }
set_has_autofill_service_uid(HasBits * has_bits)501   static void set_has_autofill_service_uid(HasBits* has_bits) {
502     (*has_bits)[0] |= 2u;
503   }
set_has_app_package_uid(HasBits * has_bits)504   static void set_has_app_package_uid(HasBits* has_bits) {
505     (*has_bits)[0] |= 4u;
506   }
507 };
508 
AutofillUiEventReported(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)509 AutofillUiEventReported::AutofillUiEventReported(::PROTOBUF_NAMESPACE_ID::Arena* arena,
510                          bool is_message_owned)
511   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
512   SharedCtor(arena, is_message_owned);
513   // @@protoc_insertion_point(arena_constructor:android.os.statsd.autofill.AutofillUiEventReported)
514 }
AutofillUiEventReported(const AutofillUiEventReported & from)515 AutofillUiEventReported::AutofillUiEventReported(const AutofillUiEventReported& from)
516   : ::PROTOBUF_NAMESPACE_ID::Message() {
517   AutofillUiEventReported* const _this = this; (void)_this;
518   new (&_impl_) Impl_{
519       decltype(_impl_._has_bits_){from._impl_._has_bits_}
520     , /*decltype(_impl_._cached_size_)*/{}
521     , decltype(_impl_.event_type_){}
522     , decltype(_impl_.autofill_service_uid_){}
523     , decltype(_impl_.app_package_uid_){}};
524 
525   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
526   ::memcpy(&_impl_.event_type_, &from._impl_.event_type_,
527     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.app_package_uid_) -
528     reinterpret_cast<char*>(&_impl_.event_type_)) + sizeof(_impl_.app_package_uid_));
529   // @@protoc_insertion_point(copy_constructor:android.os.statsd.autofill.AutofillUiEventReported)
530 }
531 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)532 inline void AutofillUiEventReported::SharedCtor(
533     ::_pb::Arena* arena, bool is_message_owned) {
534   (void)arena;
535   (void)is_message_owned;
536   new (&_impl_) Impl_{
537       decltype(_impl_._has_bits_){}
538     , /*decltype(_impl_._cached_size_)*/{}
539     , decltype(_impl_.event_type_){0}
540     , decltype(_impl_.autofill_service_uid_){0}
541     , decltype(_impl_.app_package_uid_){0}
542   };
543 }
544 
~AutofillUiEventReported()545 AutofillUiEventReported::~AutofillUiEventReported() {
546   // @@protoc_insertion_point(destructor:android.os.statsd.autofill.AutofillUiEventReported)
547   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
548   (void)arena;
549     return;
550   }
551   SharedDtor();
552 }
553 
SharedDtor()554 inline void AutofillUiEventReported::SharedDtor() {
555   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
556 }
557 
SetCachedSize(int size) const558 void AutofillUiEventReported::SetCachedSize(int size) const {
559   _impl_._cached_size_.Set(size);
560 }
561 
Clear()562 void AutofillUiEventReported::Clear() {
563 // @@protoc_insertion_point(message_clear_start:android.os.statsd.autofill.AutofillUiEventReported)
564   ::uint32_t cached_has_bits = 0;
565   // Prevent compiler warnings about cached_has_bits being unused
566   (void) cached_has_bits;
567 
568   cached_has_bits = _impl_._has_bits_[0];
569   if (cached_has_bits & 0x00000007u) {
570     ::memset(&_impl_.event_type_, 0, static_cast<size_t>(
571         reinterpret_cast<char*>(&_impl_.app_package_uid_) -
572         reinterpret_cast<char*>(&_impl_.event_type_)) + sizeof(_impl_.app_package_uid_));
573   }
574   _impl_._has_bits_.Clear();
575   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
576 }
577 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)578 const char* AutofillUiEventReported::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
579 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
580   _Internal::HasBits has_bits{};
581   while (!ctx->Done(&ptr)) {
582     ::uint32_t tag;
583     ptr = ::_pbi::ReadTag(ptr, &tag);
584     switch (tag >> 3) {
585       // optional .android.os.statsd.autofill.UiEventType event_type = 1;
586       case 1:
587         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
588           ::uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
589           CHK_(ptr);
590           if (PROTOBUF_PREDICT_TRUE(::android::os::statsd::autofill::UiEventType_IsValid(val))) {
591             _internal_set_event_type(static_cast<::android::os::statsd::autofill::UiEventType>(val));
592           } else {
593             ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields());
594           }
595         } else {
596           goto handle_unusual;
597         }
598         continue;
599       // optional int32 autofill_service_uid = 2 [(.android.os.statsd.is_uid) = true];
600       case 2:
601         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
602           _Internal::set_has_autofill_service_uid(&has_bits);
603           _impl_.autofill_service_uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
604           CHK_(ptr);
605         } else {
606           goto handle_unusual;
607         }
608         continue;
609       // optional int32 app_package_uid = 3 [(.android.os.statsd.is_uid) = true];
610       case 3:
611         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
612           _Internal::set_has_app_package_uid(&has_bits);
613           _impl_.app_package_uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
614           CHK_(ptr);
615         } else {
616           goto handle_unusual;
617         }
618         continue;
619       default:
620         goto handle_unusual;
621     }  // switch
622   handle_unusual:
623     if ((tag == 0) || ((tag & 7) == 4)) {
624       CHK_(ptr);
625       ctx->SetLastTag(tag);
626       goto message_done;
627     }
628     ptr = UnknownFieldParse(
629         tag,
630         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
631         ptr, ctx);
632     CHK_(ptr != nullptr);
633   }  // while
634 message_done:
635   _impl_._has_bits_.Or(has_bits);
636   return ptr;
637 failure:
638   ptr = nullptr;
639   goto message_done;
640 #undef CHK_
641 }
642 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const643 ::uint8_t* AutofillUiEventReported::_InternalSerialize(
644     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
645   // @@protoc_insertion_point(serialize_to_array_start:android.os.statsd.autofill.AutofillUiEventReported)
646   ::uint32_t cached_has_bits = 0;
647   (void) cached_has_bits;
648 
649   cached_has_bits = _impl_._has_bits_[0];
650   // optional .android.os.statsd.autofill.UiEventType event_type = 1;
651   if (cached_has_bits & 0x00000001u) {
652     target = stream->EnsureSpace(target);
653     target = ::_pbi::WireFormatLite::WriteEnumToArray(
654       1, this->_internal_event_type(), target);
655   }
656 
657   // optional int32 autofill_service_uid = 2 [(.android.os.statsd.is_uid) = true];
658   if (cached_has_bits & 0x00000002u) {
659     target = stream->EnsureSpace(target);
660     target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_autofill_service_uid(), target);
661   }
662 
663   // optional int32 app_package_uid = 3 [(.android.os.statsd.is_uid) = true];
664   if (cached_has_bits & 0x00000004u) {
665     target = stream->EnsureSpace(target);
666     target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_app_package_uid(), target);
667   }
668 
669   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
670     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
671         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
672   }
673   // @@protoc_insertion_point(serialize_to_array_end:android.os.statsd.autofill.AutofillUiEventReported)
674   return target;
675 }
676 
ByteSizeLong() const677 size_t AutofillUiEventReported::ByteSizeLong() const {
678 // @@protoc_insertion_point(message_byte_size_start:android.os.statsd.autofill.AutofillUiEventReported)
679   size_t total_size = 0;
680 
681   ::uint32_t cached_has_bits = 0;
682   // Prevent compiler warnings about cached_has_bits being unused
683   (void) cached_has_bits;
684 
685   cached_has_bits = _impl_._has_bits_[0];
686   if (cached_has_bits & 0x00000007u) {
687     // optional .android.os.statsd.autofill.UiEventType event_type = 1;
688     if (cached_has_bits & 0x00000001u) {
689       total_size += 1 +
690         ::_pbi::WireFormatLite::EnumSize(this->_internal_event_type());
691     }
692 
693     // optional int32 autofill_service_uid = 2 [(.android.os.statsd.is_uid) = true];
694     if (cached_has_bits & 0x00000002u) {
695       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_autofill_service_uid());
696     }
697 
698     // optional int32 app_package_uid = 3 [(.android.os.statsd.is_uid) = true];
699     if (cached_has_bits & 0x00000004u) {
700       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_app_package_uid());
701     }
702 
703   }
704   return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
705 }
706 
707 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AutofillUiEventReported::_class_data_ = {
708     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
709     AutofillUiEventReported::MergeImpl
710 };
GetClassData() const711 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AutofillUiEventReported::GetClassData() const { return &_class_data_; }
712 
713 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)714 void AutofillUiEventReported::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
715   auto* const _this = static_cast<AutofillUiEventReported*>(&to_msg);
716   auto& from = static_cast<const AutofillUiEventReported&>(from_msg);
717   // @@protoc_insertion_point(class_specific_merge_from_start:android.os.statsd.autofill.AutofillUiEventReported)
718   GOOGLE_DCHECK_NE(&from, _this);
719   ::uint32_t cached_has_bits = 0;
720   (void) cached_has_bits;
721 
722   cached_has_bits = from._impl_._has_bits_[0];
723   if (cached_has_bits & 0x00000007u) {
724     if (cached_has_bits & 0x00000001u) {
725       _this->_impl_.event_type_ = from._impl_.event_type_;
726     }
727     if (cached_has_bits & 0x00000002u) {
728       _this->_impl_.autofill_service_uid_ = from._impl_.autofill_service_uid_;
729     }
730     if (cached_has_bits & 0x00000004u) {
731       _this->_impl_.app_package_uid_ = from._impl_.app_package_uid_;
732     }
733     _this->_impl_._has_bits_[0] |= cached_has_bits;
734   }
735   _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
736 }
737 
CopyFrom(const AutofillUiEventReported & from)738 void AutofillUiEventReported::CopyFrom(const AutofillUiEventReported& from) {
739 // @@protoc_insertion_point(class_specific_copy_from_start:android.os.statsd.autofill.AutofillUiEventReported)
740   if (&from == this) return;
741   Clear();
742   MergeFrom(from);
743 }
744 
IsInitialized() const745 bool AutofillUiEventReported::IsInitialized() const {
746   return true;
747 }
748 
InternalSwap(AutofillUiEventReported * other)749 void AutofillUiEventReported::InternalSwap(AutofillUiEventReported* other) {
750   using std::swap;
751   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
752   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
753   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
754       PROTOBUF_FIELD_OFFSET(AutofillUiEventReported, _impl_.app_package_uid_)
755       + sizeof(AutofillUiEventReported::_impl_.app_package_uid_)  // NOLINT
756       - PROTOBUF_FIELD_OFFSET(AutofillUiEventReported, _impl_.event_type_)>(
757           reinterpret_cast<char*>(&_impl_.event_type_),
758           reinterpret_cast<char*>(&other->_impl_.event_type_));
759 }
760 
GetMetadata() const761 ::PROTOBUF_NAMESPACE_ID::Metadata AutofillUiEventReported::GetMetadata() const {
762   return ::_pbi::AssignDescriptors(
763       &descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fautofill_2fautofill_5fextension_5fatoms_2eproto_getter, &descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fautofill_2fautofill_5fextension_5fatoms_2eproto_once,
764       file_level_metadata_frameworks_2fproto_5flogging_2fstats_2fatoms_2fautofill_2fautofill_5fextension_5fatoms_2eproto[0]);
765 }
766 
767 // ===================================================================
768 
769 class AutofillFillRequestReported::_Internal {
770  public:
771   using HasBits = decltype(std::declval<AutofillFillRequestReported>()._impl_._has_bits_);
set_has_request_id(HasBits * has_bits)772   static void set_has_request_id(HasBits* has_bits) {
773     (*has_bits)[0] |= 1u;
774   }
set_has_session_id(HasBits * has_bits)775   static void set_has_session_id(HasBits* has_bits) {
776     (*has_bits)[0] |= 2u;
777   }
set_has_app_package_uid(HasBits * has_bits)778   static void set_has_app_package_uid(HasBits* has_bits) {
779     (*has_bits)[0] |= 1024u;
780   }
set_has_autofill_service_uid(HasBits * has_bits)781   static void set_has_autofill_service_uid(HasBits* has_bits) {
782     (*has_bits)[0] |= 4u;
783   }
set_has_inline_suggestion_host_uid(HasBits * has_bits)784   static void set_has_inline_suggestion_host_uid(HasBits* has_bits) {
785     (*has_bits)[0] |= 8u;
786   }
set_has_is_augmented(HasBits * has_bits)787   static void set_has_is_augmented(HasBits* has_bits) {
788     (*has_bits)[0] |= 16u;
789   }
set_has_is_client_suggestion_fallback(HasBits * has_bits)790   static void set_has_is_client_suggestion_fallback(HasBits* has_bits) {
791     (*has_bits)[0] |= 32u;
792   }
set_has_is_fill_dialog_eligible(HasBits * has_bits)793   static void set_has_is_fill_dialog_eligible(HasBits* has_bits) {
794     (*has_bits)[0] |= 64u;
795   }
set_has_request_trigger_reason(HasBits * has_bits)796   static void set_has_request_trigger_reason(HasBits* has_bits) {
797     (*has_bits)[0] |= 128u;
798   }
set_has_flags(HasBits * has_bits)799   static void set_has_flags(HasBits* has_bits) {
800     (*has_bits)[0] |= 256u;
801   }
set_has_latency_fill_request_sent_millis(HasBits * has_bits)802   static void set_has_latency_fill_request_sent_millis(HasBits* has_bits) {
803     (*has_bits)[0] |= 512u;
804   }
805 };
806 
AutofillFillRequestReported(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)807 AutofillFillRequestReported::AutofillFillRequestReported(::PROTOBUF_NAMESPACE_ID::Arena* arena,
808                          bool is_message_owned)
809   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
810   SharedCtor(arena, is_message_owned);
811   // @@protoc_insertion_point(arena_constructor:android.os.statsd.autofill.AutofillFillRequestReported)
812 }
AutofillFillRequestReported(const AutofillFillRequestReported & from)813 AutofillFillRequestReported::AutofillFillRequestReported(const AutofillFillRequestReported& from)
814   : ::PROTOBUF_NAMESPACE_ID::Message() {
815   AutofillFillRequestReported* const _this = this; (void)_this;
816   new (&_impl_) Impl_{
817       decltype(_impl_._has_bits_){from._impl_._has_bits_}
818     , /*decltype(_impl_._cached_size_)*/{}
819     , decltype(_impl_.request_id_){}
820     , decltype(_impl_.session_id_){}
821     , decltype(_impl_.autofill_service_uid_){}
822     , decltype(_impl_.inline_suggestion_host_uid_){}
823     , decltype(_impl_.is_augmented_){}
824     , decltype(_impl_.is_client_suggestion_fallback_){}
825     , decltype(_impl_.is_fill_dialog_eligible_){}
826     , decltype(_impl_.request_trigger_reason_){}
827     , decltype(_impl_.flags_){}
828     , decltype(_impl_.latency_fill_request_sent_millis_){}
829     , decltype(_impl_.app_package_uid_){}};
830 
831   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
832   ::memcpy(&_impl_.request_id_, &from._impl_.request_id_,
833     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.app_package_uid_) -
834     reinterpret_cast<char*>(&_impl_.request_id_)) + sizeof(_impl_.app_package_uid_));
835   // @@protoc_insertion_point(copy_constructor:android.os.statsd.autofill.AutofillFillRequestReported)
836 }
837 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)838 inline void AutofillFillRequestReported::SharedCtor(
839     ::_pb::Arena* arena, bool is_message_owned) {
840   (void)arena;
841   (void)is_message_owned;
842   new (&_impl_) Impl_{
843       decltype(_impl_._has_bits_){}
844     , /*decltype(_impl_._cached_size_)*/{}
845     , decltype(_impl_.request_id_){0}
846     , decltype(_impl_.session_id_){0}
847     , decltype(_impl_.autofill_service_uid_){0}
848     , decltype(_impl_.inline_suggestion_host_uid_){0}
849     , decltype(_impl_.is_augmented_){false}
850     , decltype(_impl_.is_client_suggestion_fallback_){false}
851     , decltype(_impl_.is_fill_dialog_eligible_){false}
852     , decltype(_impl_.request_trigger_reason_){0}
853     , decltype(_impl_.flags_){::int64_t{0}}
854     , decltype(_impl_.latency_fill_request_sent_millis_){0}
855     , decltype(_impl_.app_package_uid_){0}
856   };
857 }
858 
~AutofillFillRequestReported()859 AutofillFillRequestReported::~AutofillFillRequestReported() {
860   // @@protoc_insertion_point(destructor:android.os.statsd.autofill.AutofillFillRequestReported)
861   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
862   (void)arena;
863     return;
864   }
865   SharedDtor();
866 }
867 
SharedDtor()868 inline void AutofillFillRequestReported::SharedDtor() {
869   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
870 }
871 
SetCachedSize(int size) const872 void AutofillFillRequestReported::SetCachedSize(int size) const {
873   _impl_._cached_size_.Set(size);
874 }
875 
Clear()876 void AutofillFillRequestReported::Clear() {
877 // @@protoc_insertion_point(message_clear_start:android.os.statsd.autofill.AutofillFillRequestReported)
878   ::uint32_t cached_has_bits = 0;
879   // Prevent compiler warnings about cached_has_bits being unused
880   (void) cached_has_bits;
881 
882   cached_has_bits = _impl_._has_bits_[0];
883   if (cached_has_bits & 0x000000ffu) {
884     ::memset(&_impl_.request_id_, 0, static_cast<size_t>(
885         reinterpret_cast<char*>(&_impl_.request_trigger_reason_) -
886         reinterpret_cast<char*>(&_impl_.request_id_)) + sizeof(_impl_.request_trigger_reason_));
887   }
888   if (cached_has_bits & 0x00000700u) {
889     ::memset(&_impl_.flags_, 0, static_cast<size_t>(
890         reinterpret_cast<char*>(&_impl_.app_package_uid_) -
891         reinterpret_cast<char*>(&_impl_.flags_)) + sizeof(_impl_.app_package_uid_));
892   }
893   _impl_._has_bits_.Clear();
894   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
895 }
896 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)897 const char* AutofillFillRequestReported::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
898 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
899   _Internal::HasBits has_bits{};
900   while (!ctx->Done(&ptr)) {
901     ::uint32_t tag;
902     ptr = ::_pbi::ReadTag(ptr, &tag);
903     switch (tag >> 3) {
904       // optional int32 request_id = 1;
905       case 1:
906         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
907           _Internal::set_has_request_id(&has_bits);
908           _impl_.request_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
909           CHK_(ptr);
910         } else {
911           goto handle_unusual;
912         }
913         continue;
914       // optional int32 session_id = 2;
915       case 2:
916         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
917           _Internal::set_has_session_id(&has_bits);
918           _impl_.session_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
919           CHK_(ptr);
920         } else {
921           goto handle_unusual;
922         }
923         continue;
924       // optional int32 autofill_service_uid = 3 [(.android.os.statsd.is_uid) = true];
925       case 3:
926         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
927           _Internal::set_has_autofill_service_uid(&has_bits);
928           _impl_.autofill_service_uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
929           CHK_(ptr);
930         } else {
931           goto handle_unusual;
932         }
933         continue;
934       // optional int32 inline_suggestion_host_uid = 4 [(.android.os.statsd.is_uid) = true];
935       case 4:
936         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) {
937           _Internal::set_has_inline_suggestion_host_uid(&has_bits);
938           _impl_.inline_suggestion_host_uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
939           CHK_(ptr);
940         } else {
941           goto handle_unusual;
942         }
943         continue;
944       // optional bool is_augmented = 5;
945       case 5:
946         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 40)) {
947           _Internal::set_has_is_augmented(&has_bits);
948           _impl_.is_augmented_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
949           CHK_(ptr);
950         } else {
951           goto handle_unusual;
952         }
953         continue;
954       // optional bool is_client_suggestion_fallback = 6;
955       case 6:
956         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 48)) {
957           _Internal::set_has_is_client_suggestion_fallback(&has_bits);
958           _impl_.is_client_suggestion_fallback_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
959           CHK_(ptr);
960         } else {
961           goto handle_unusual;
962         }
963         continue;
964       // optional bool is_fill_dialog_eligible = 7;
965       case 7:
966         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 56)) {
967           _Internal::set_has_is_fill_dialog_eligible(&has_bits);
968           _impl_.is_fill_dialog_eligible_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
969           CHK_(ptr);
970         } else {
971           goto handle_unusual;
972         }
973         continue;
974       // optional .android.os.statsd.autofill.FillRequestTriggerReason request_trigger_reason = 8;
975       case 8:
976         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 64)) {
977           ::uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
978           CHK_(ptr);
979           if (PROTOBUF_PREDICT_TRUE(::android::os::statsd::autofill::FillRequestTriggerReason_IsValid(val))) {
980             _internal_set_request_trigger_reason(static_cast<::android::os::statsd::autofill::FillRequestTriggerReason>(val));
981           } else {
982             ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(8, val, mutable_unknown_fields());
983           }
984         } else {
985           goto handle_unusual;
986         }
987         continue;
988       // optional int64 flags = 9;
989       case 9:
990         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 72)) {
991           _Internal::set_has_flags(&has_bits);
992           _impl_.flags_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
993           CHK_(ptr);
994         } else {
995           goto handle_unusual;
996         }
997         continue;
998       // optional int32 latency_fill_request_sent_millis = 10;
999       case 10:
1000         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 80)) {
1001           _Internal::set_has_latency_fill_request_sent_millis(&has_bits);
1002           _impl_.latency_fill_request_sent_millis_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1003           CHK_(ptr);
1004         } else {
1005           goto handle_unusual;
1006         }
1007         continue;
1008       // optional int32 app_package_uid = 11 [(.android.os.statsd.is_uid) = true];
1009       case 11:
1010         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 88)) {
1011           _Internal::set_has_app_package_uid(&has_bits);
1012           _impl_.app_package_uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1013           CHK_(ptr);
1014         } else {
1015           goto handle_unusual;
1016         }
1017         continue;
1018       default:
1019         goto handle_unusual;
1020     }  // switch
1021   handle_unusual:
1022     if ((tag == 0) || ((tag & 7) == 4)) {
1023       CHK_(ptr);
1024       ctx->SetLastTag(tag);
1025       goto message_done;
1026     }
1027     ptr = UnknownFieldParse(
1028         tag,
1029         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
1030         ptr, ctx);
1031     CHK_(ptr != nullptr);
1032   }  // while
1033 message_done:
1034   _impl_._has_bits_.Or(has_bits);
1035   return ptr;
1036 failure:
1037   ptr = nullptr;
1038   goto message_done;
1039 #undef CHK_
1040 }
1041 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const1042 ::uint8_t* AutofillFillRequestReported::_InternalSerialize(
1043     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
1044   // @@protoc_insertion_point(serialize_to_array_start:android.os.statsd.autofill.AutofillFillRequestReported)
1045   ::uint32_t cached_has_bits = 0;
1046   (void) cached_has_bits;
1047 
1048   cached_has_bits = _impl_._has_bits_[0];
1049   // optional int32 request_id = 1;
1050   if (cached_has_bits & 0x00000001u) {
1051     target = stream->EnsureSpace(target);
1052     target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_request_id(), target);
1053   }
1054 
1055   // optional int32 session_id = 2;
1056   if (cached_has_bits & 0x00000002u) {
1057     target = stream->EnsureSpace(target);
1058     target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_session_id(), target);
1059   }
1060 
1061   // optional int32 autofill_service_uid = 3 [(.android.os.statsd.is_uid) = true];
1062   if (cached_has_bits & 0x00000004u) {
1063     target = stream->EnsureSpace(target);
1064     target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_autofill_service_uid(), target);
1065   }
1066 
1067   // optional int32 inline_suggestion_host_uid = 4 [(.android.os.statsd.is_uid) = true];
1068   if (cached_has_bits & 0x00000008u) {
1069     target = stream->EnsureSpace(target);
1070     target = ::_pbi::WireFormatLite::WriteInt32ToArray(4, this->_internal_inline_suggestion_host_uid(), target);
1071   }
1072 
1073   // optional bool is_augmented = 5;
1074   if (cached_has_bits & 0x00000010u) {
1075     target = stream->EnsureSpace(target);
1076     target = ::_pbi::WireFormatLite::WriteBoolToArray(5, this->_internal_is_augmented(), target);
1077   }
1078 
1079   // optional bool is_client_suggestion_fallback = 6;
1080   if (cached_has_bits & 0x00000020u) {
1081     target = stream->EnsureSpace(target);
1082     target = ::_pbi::WireFormatLite::WriteBoolToArray(6, this->_internal_is_client_suggestion_fallback(), target);
1083   }
1084 
1085   // optional bool is_fill_dialog_eligible = 7;
1086   if (cached_has_bits & 0x00000040u) {
1087     target = stream->EnsureSpace(target);
1088     target = ::_pbi::WireFormatLite::WriteBoolToArray(7, this->_internal_is_fill_dialog_eligible(), target);
1089   }
1090 
1091   // optional .android.os.statsd.autofill.FillRequestTriggerReason request_trigger_reason = 8;
1092   if (cached_has_bits & 0x00000080u) {
1093     target = stream->EnsureSpace(target);
1094     target = ::_pbi::WireFormatLite::WriteEnumToArray(
1095       8, this->_internal_request_trigger_reason(), target);
1096   }
1097 
1098   // optional int64 flags = 9;
1099   if (cached_has_bits & 0x00000100u) {
1100     target = stream->EnsureSpace(target);
1101     target = ::_pbi::WireFormatLite::WriteInt64ToArray(9, this->_internal_flags(), target);
1102   }
1103 
1104   // optional int32 latency_fill_request_sent_millis = 10;
1105   if (cached_has_bits & 0x00000200u) {
1106     target = stream->EnsureSpace(target);
1107     target = ::_pbi::WireFormatLite::WriteInt32ToArray(10, this->_internal_latency_fill_request_sent_millis(), target);
1108   }
1109 
1110   // optional int32 app_package_uid = 11 [(.android.os.statsd.is_uid) = true];
1111   if (cached_has_bits & 0x00000400u) {
1112     target = stream->EnsureSpace(target);
1113     target = ::_pbi::WireFormatLite::WriteInt32ToArray(11, this->_internal_app_package_uid(), target);
1114   }
1115 
1116   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1117     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1118         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
1119   }
1120   // @@protoc_insertion_point(serialize_to_array_end:android.os.statsd.autofill.AutofillFillRequestReported)
1121   return target;
1122 }
1123 
ByteSizeLong() const1124 size_t AutofillFillRequestReported::ByteSizeLong() const {
1125 // @@protoc_insertion_point(message_byte_size_start:android.os.statsd.autofill.AutofillFillRequestReported)
1126   size_t total_size = 0;
1127 
1128   ::uint32_t cached_has_bits = 0;
1129   // Prevent compiler warnings about cached_has_bits being unused
1130   (void) cached_has_bits;
1131 
1132   cached_has_bits = _impl_._has_bits_[0];
1133   if (cached_has_bits & 0x000000ffu) {
1134     // optional int32 request_id = 1;
1135     if (cached_has_bits & 0x00000001u) {
1136       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_request_id());
1137     }
1138 
1139     // optional int32 session_id = 2;
1140     if (cached_has_bits & 0x00000002u) {
1141       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_session_id());
1142     }
1143 
1144     // optional int32 autofill_service_uid = 3 [(.android.os.statsd.is_uid) = true];
1145     if (cached_has_bits & 0x00000004u) {
1146       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_autofill_service_uid());
1147     }
1148 
1149     // optional int32 inline_suggestion_host_uid = 4 [(.android.os.statsd.is_uid) = true];
1150     if (cached_has_bits & 0x00000008u) {
1151       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_inline_suggestion_host_uid());
1152     }
1153 
1154     // optional bool is_augmented = 5;
1155     if (cached_has_bits & 0x00000010u) {
1156       total_size += 1 + 1;
1157     }
1158 
1159     // optional bool is_client_suggestion_fallback = 6;
1160     if (cached_has_bits & 0x00000020u) {
1161       total_size += 1 + 1;
1162     }
1163 
1164     // optional bool is_fill_dialog_eligible = 7;
1165     if (cached_has_bits & 0x00000040u) {
1166       total_size += 1 + 1;
1167     }
1168 
1169     // optional .android.os.statsd.autofill.FillRequestTriggerReason request_trigger_reason = 8;
1170     if (cached_has_bits & 0x00000080u) {
1171       total_size += 1 +
1172         ::_pbi::WireFormatLite::EnumSize(this->_internal_request_trigger_reason());
1173     }
1174 
1175   }
1176   if (cached_has_bits & 0x00000700u) {
1177     // optional int64 flags = 9;
1178     if (cached_has_bits & 0x00000100u) {
1179       total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_flags());
1180     }
1181 
1182     // optional int32 latency_fill_request_sent_millis = 10;
1183     if (cached_has_bits & 0x00000200u) {
1184       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_latency_fill_request_sent_millis());
1185     }
1186 
1187     // optional int32 app_package_uid = 11 [(.android.os.statsd.is_uid) = true];
1188     if (cached_has_bits & 0x00000400u) {
1189       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_app_package_uid());
1190     }
1191 
1192   }
1193   return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
1194 }
1195 
1196 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AutofillFillRequestReported::_class_data_ = {
1197     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
1198     AutofillFillRequestReported::MergeImpl
1199 };
GetClassData() const1200 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AutofillFillRequestReported::GetClassData() const { return &_class_data_; }
1201 
1202 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)1203 void AutofillFillRequestReported::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
1204   auto* const _this = static_cast<AutofillFillRequestReported*>(&to_msg);
1205   auto& from = static_cast<const AutofillFillRequestReported&>(from_msg);
1206   // @@protoc_insertion_point(class_specific_merge_from_start:android.os.statsd.autofill.AutofillFillRequestReported)
1207   GOOGLE_DCHECK_NE(&from, _this);
1208   ::uint32_t cached_has_bits = 0;
1209   (void) cached_has_bits;
1210 
1211   cached_has_bits = from._impl_._has_bits_[0];
1212   if (cached_has_bits & 0x000000ffu) {
1213     if (cached_has_bits & 0x00000001u) {
1214       _this->_impl_.request_id_ = from._impl_.request_id_;
1215     }
1216     if (cached_has_bits & 0x00000002u) {
1217       _this->_impl_.session_id_ = from._impl_.session_id_;
1218     }
1219     if (cached_has_bits & 0x00000004u) {
1220       _this->_impl_.autofill_service_uid_ = from._impl_.autofill_service_uid_;
1221     }
1222     if (cached_has_bits & 0x00000008u) {
1223       _this->_impl_.inline_suggestion_host_uid_ = from._impl_.inline_suggestion_host_uid_;
1224     }
1225     if (cached_has_bits & 0x00000010u) {
1226       _this->_impl_.is_augmented_ = from._impl_.is_augmented_;
1227     }
1228     if (cached_has_bits & 0x00000020u) {
1229       _this->_impl_.is_client_suggestion_fallback_ = from._impl_.is_client_suggestion_fallback_;
1230     }
1231     if (cached_has_bits & 0x00000040u) {
1232       _this->_impl_.is_fill_dialog_eligible_ = from._impl_.is_fill_dialog_eligible_;
1233     }
1234     if (cached_has_bits & 0x00000080u) {
1235       _this->_impl_.request_trigger_reason_ = from._impl_.request_trigger_reason_;
1236     }
1237     _this->_impl_._has_bits_[0] |= cached_has_bits;
1238   }
1239   if (cached_has_bits & 0x00000700u) {
1240     if (cached_has_bits & 0x00000100u) {
1241       _this->_impl_.flags_ = from._impl_.flags_;
1242     }
1243     if (cached_has_bits & 0x00000200u) {
1244       _this->_impl_.latency_fill_request_sent_millis_ = from._impl_.latency_fill_request_sent_millis_;
1245     }
1246     if (cached_has_bits & 0x00000400u) {
1247       _this->_impl_.app_package_uid_ = from._impl_.app_package_uid_;
1248     }
1249     _this->_impl_._has_bits_[0] |= cached_has_bits;
1250   }
1251   _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1252 }
1253 
CopyFrom(const AutofillFillRequestReported & from)1254 void AutofillFillRequestReported::CopyFrom(const AutofillFillRequestReported& from) {
1255 // @@protoc_insertion_point(class_specific_copy_from_start:android.os.statsd.autofill.AutofillFillRequestReported)
1256   if (&from == this) return;
1257   Clear();
1258   MergeFrom(from);
1259 }
1260 
IsInitialized() const1261 bool AutofillFillRequestReported::IsInitialized() const {
1262   return true;
1263 }
1264 
InternalSwap(AutofillFillRequestReported * other)1265 void AutofillFillRequestReported::InternalSwap(AutofillFillRequestReported* other) {
1266   using std::swap;
1267   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1268   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1269   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
1270       PROTOBUF_FIELD_OFFSET(AutofillFillRequestReported, _impl_.app_package_uid_)
1271       + sizeof(AutofillFillRequestReported::_impl_.app_package_uid_)  // NOLINT
1272       - PROTOBUF_FIELD_OFFSET(AutofillFillRequestReported, _impl_.request_id_)>(
1273           reinterpret_cast<char*>(&_impl_.request_id_),
1274           reinterpret_cast<char*>(&other->_impl_.request_id_));
1275 }
1276 
GetMetadata() const1277 ::PROTOBUF_NAMESPACE_ID::Metadata AutofillFillRequestReported::GetMetadata() const {
1278   return ::_pbi::AssignDescriptors(
1279       &descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fautofill_2fautofill_5fextension_5fatoms_2eproto_getter, &descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fautofill_2fautofill_5fextension_5fatoms_2eproto_once,
1280       file_level_metadata_frameworks_2fproto_5flogging_2fstats_2fatoms_2fautofill_2fautofill_5fextension_5fatoms_2eproto[1]);
1281 }
1282 
1283 // ===================================================================
1284 
1285 class AutofillFillResponseReported::_Internal {
1286  public:
1287   using HasBits = decltype(std::declval<AutofillFillResponseReported>()._impl_._has_bits_);
set_has_request_id(HasBits * has_bits)1288   static void set_has_request_id(HasBits* has_bits) {
1289     (*has_bits)[0] |= 1u;
1290   }
set_has_session_id(HasBits * has_bits)1291   static void set_has_session_id(HasBits* has_bits) {
1292     (*has_bits)[0] |= 2u;
1293   }
set_has_app_package_uid(HasBits * has_bits)1294   static void set_has_app_package_uid(HasBits* has_bits) {
1295     (*has_bits)[0] |= 4u;
1296   }
set_has_display_presentation_type(HasBits * has_bits)1297   static void set_has_display_presentation_type(HasBits* has_bits) {
1298     (*has_bits)[0] |= 8u;
1299   }
set_has_available_count(HasBits * has_bits)1300   static void set_has_available_count(HasBits* has_bits) {
1301     (*has_bits)[0] |= 32u;
1302   }
set_has_save_ui_trigger_ids(HasBits * has_bits)1303   static void set_has_save_ui_trigger_ids(HasBits* has_bits) {
1304     (*has_bits)[0] |= 16u;
1305   }
set_has_latency_fill_response_received_millis(HasBits * has_bits)1306   static void set_has_latency_fill_response_received_millis(HasBits* has_bits) {
1307     (*has_bits)[0] |= 64u;
1308   }
set_has_authentication_type(HasBits * has_bits)1309   static void set_has_authentication_type(HasBits* has_bits) {
1310     (*has_bits)[0] |= 128u;
1311   }
set_has_authentication_result(HasBits * has_bits)1312   static void set_has_authentication_result(HasBits* has_bits) {
1313     (*has_bits)[0] |= 256u;
1314   }
set_has_authentication_failure_reason(HasBits * has_bits)1315   static void set_has_authentication_failure_reason(HasBits* has_bits) {
1316     (*has_bits)[0] |= 512u;
1317   }
set_has_latency_authentication_ui_display_millis(HasBits * has_bits)1318   static void set_has_latency_authentication_ui_display_millis(HasBits* has_bits) {
1319     (*has_bits)[0] |= 1024u;
1320   }
set_has_latency_dataset_display_millis(HasBits * has_bits)1321   static void set_has_latency_dataset_display_millis(HasBits* has_bits) {
1322     (*has_bits)[0] |= 2048u;
1323   }
set_has_response_status(HasBits * has_bits)1324   static void set_has_response_status(HasBits* has_bits) {
1325     (*has_bits)[0] |= 8192u;
1326   }
set_has_latency_response_processing_millis(HasBits * has_bits)1327   static void set_has_latency_response_processing_millis(HasBits* has_bits) {
1328     (*has_bits)[0] |= 4096u;
1329   }
set_has_available_pcc_count(HasBits * has_bits)1330   static void set_has_available_pcc_count(HasBits* has_bits) {
1331     (*has_bits)[0] |= 16384u;
1332   }
set_has_available_pcc_only_count(HasBits * has_bits)1333   static void set_has_available_pcc_only_count(HasBits* has_bits) {
1334     (*has_bits)[0] |= 32768u;
1335   }
set_has_total_datasets_provided(HasBits * has_bits)1336   static void set_has_total_datasets_provided(HasBits* has_bits) {
1337     (*has_bits)[0] |= 65536u;
1338   }
set_has_detection_preference(HasBits * has_bits)1339   static void set_has_detection_preference(HasBits* has_bits) {
1340     (*has_bits)[0] |= 131072u;
1341   }
1342 };
1343 
AutofillFillResponseReported(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)1344 AutofillFillResponseReported::AutofillFillResponseReported(::PROTOBUF_NAMESPACE_ID::Arena* arena,
1345                          bool is_message_owned)
1346   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
1347   SharedCtor(arena, is_message_owned);
1348   // @@protoc_insertion_point(arena_constructor:android.os.statsd.autofill.AutofillFillResponseReported)
1349 }
AutofillFillResponseReported(const AutofillFillResponseReported & from)1350 AutofillFillResponseReported::AutofillFillResponseReported(const AutofillFillResponseReported& from)
1351   : ::PROTOBUF_NAMESPACE_ID::Message() {
1352   AutofillFillResponseReported* const _this = this; (void)_this;
1353   new (&_impl_) Impl_{
1354       decltype(_impl_._has_bits_){from._impl_._has_bits_}
1355     , /*decltype(_impl_._cached_size_)*/{}
1356     , decltype(_impl_.request_id_){}
1357     , decltype(_impl_.session_id_){}
1358     , decltype(_impl_.app_package_uid_){}
1359     , decltype(_impl_.display_presentation_type_){}
1360     , decltype(_impl_.save_ui_trigger_ids_){}
1361     , decltype(_impl_.available_count_){}
1362     , decltype(_impl_.latency_fill_response_received_millis_){}
1363     , decltype(_impl_.authentication_type_){}
1364     , decltype(_impl_.authentication_result_){}
1365     , decltype(_impl_.authentication_failure_reason_){}
1366     , decltype(_impl_.latency_authentication_ui_display_millis_){}
1367     , decltype(_impl_.latency_dataset_display_millis_){}
1368     , decltype(_impl_.latency_response_processing_millis_){}
1369     , decltype(_impl_.response_status_){}
1370     , decltype(_impl_.available_pcc_count_){}
1371     , decltype(_impl_.available_pcc_only_count_){}
1372     , decltype(_impl_.total_datasets_provided_){}
1373     , decltype(_impl_.detection_preference_){}};
1374 
1375   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1376   ::memcpy(&_impl_.request_id_, &from._impl_.request_id_,
1377     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.detection_preference_) -
1378     reinterpret_cast<char*>(&_impl_.request_id_)) + sizeof(_impl_.detection_preference_));
1379   // @@protoc_insertion_point(copy_constructor:android.os.statsd.autofill.AutofillFillResponseReported)
1380 }
1381 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)1382 inline void AutofillFillResponseReported::SharedCtor(
1383     ::_pb::Arena* arena, bool is_message_owned) {
1384   (void)arena;
1385   (void)is_message_owned;
1386   new (&_impl_) Impl_{
1387       decltype(_impl_._has_bits_){}
1388     , /*decltype(_impl_._cached_size_)*/{}
1389     , decltype(_impl_.request_id_){0}
1390     , decltype(_impl_.session_id_){0}
1391     , decltype(_impl_.app_package_uid_){0}
1392     , decltype(_impl_.display_presentation_type_){0}
1393     , decltype(_impl_.save_ui_trigger_ids_){::int64_t{0}}
1394     , decltype(_impl_.available_count_){0}
1395     , decltype(_impl_.latency_fill_response_received_millis_){0}
1396     , decltype(_impl_.authentication_type_){0}
1397     , decltype(_impl_.authentication_result_){0}
1398     , decltype(_impl_.authentication_failure_reason_){::int64_t{0}}
1399     , decltype(_impl_.latency_authentication_ui_display_millis_){::int64_t{0}}
1400     , decltype(_impl_.latency_dataset_display_millis_){::int64_t{0}}
1401     , decltype(_impl_.latency_response_processing_millis_){::int64_t{0}}
1402     , decltype(_impl_.response_status_){0}
1403     , decltype(_impl_.available_pcc_count_){0}
1404     , decltype(_impl_.available_pcc_only_count_){0}
1405     , decltype(_impl_.total_datasets_provided_){0}
1406     , decltype(_impl_.detection_preference_){0}
1407   };
1408 }
1409 
~AutofillFillResponseReported()1410 AutofillFillResponseReported::~AutofillFillResponseReported() {
1411   // @@protoc_insertion_point(destructor:android.os.statsd.autofill.AutofillFillResponseReported)
1412   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
1413   (void)arena;
1414     return;
1415   }
1416   SharedDtor();
1417 }
1418 
SharedDtor()1419 inline void AutofillFillResponseReported::SharedDtor() {
1420   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
1421 }
1422 
SetCachedSize(int size) const1423 void AutofillFillResponseReported::SetCachedSize(int size) const {
1424   _impl_._cached_size_.Set(size);
1425 }
1426 
Clear()1427 void AutofillFillResponseReported::Clear() {
1428 // @@protoc_insertion_point(message_clear_start:android.os.statsd.autofill.AutofillFillResponseReported)
1429   ::uint32_t cached_has_bits = 0;
1430   // Prevent compiler warnings about cached_has_bits being unused
1431   (void) cached_has_bits;
1432 
1433   cached_has_bits = _impl_._has_bits_[0];
1434   if (cached_has_bits & 0x000000ffu) {
1435     ::memset(&_impl_.request_id_, 0, static_cast<size_t>(
1436         reinterpret_cast<char*>(&_impl_.authentication_type_) -
1437         reinterpret_cast<char*>(&_impl_.request_id_)) + sizeof(_impl_.authentication_type_));
1438   }
1439   if (cached_has_bits & 0x0000ff00u) {
1440     ::memset(&_impl_.authentication_result_, 0, static_cast<size_t>(
1441         reinterpret_cast<char*>(&_impl_.available_pcc_only_count_) -
1442         reinterpret_cast<char*>(&_impl_.authentication_result_)) + sizeof(_impl_.available_pcc_only_count_));
1443   }
1444   if (cached_has_bits & 0x00030000u) {
1445     ::memset(&_impl_.total_datasets_provided_, 0, static_cast<size_t>(
1446         reinterpret_cast<char*>(&_impl_.detection_preference_) -
1447         reinterpret_cast<char*>(&_impl_.total_datasets_provided_)) + sizeof(_impl_.detection_preference_));
1448   }
1449   _impl_._has_bits_.Clear();
1450   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
1451 }
1452 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)1453 const char* AutofillFillResponseReported::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
1454 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1455   _Internal::HasBits has_bits{};
1456   while (!ctx->Done(&ptr)) {
1457     ::uint32_t tag;
1458     ptr = ::_pbi::ReadTag(ptr, &tag);
1459     switch (tag >> 3) {
1460       // optional int32 request_id = 1;
1461       case 1:
1462         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
1463           _Internal::set_has_request_id(&has_bits);
1464           _impl_.request_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1465           CHK_(ptr);
1466         } else {
1467           goto handle_unusual;
1468         }
1469         continue;
1470       // optional int32 session_id = 2;
1471       case 2:
1472         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
1473           _Internal::set_has_session_id(&has_bits);
1474           _impl_.session_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1475           CHK_(ptr);
1476         } else {
1477           goto handle_unusual;
1478         }
1479         continue;
1480       // optional int32 app_package_uid = 3 [(.android.os.statsd.is_uid) = true];
1481       case 3:
1482         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
1483           _Internal::set_has_app_package_uid(&has_bits);
1484           _impl_.app_package_uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1485           CHK_(ptr);
1486         } else {
1487           goto handle_unusual;
1488         }
1489         continue;
1490       // optional .android.os.statsd.autofill.AutofillDisplayPresentationType display_presentation_type = 4;
1491       case 4:
1492         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) {
1493           ::uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
1494           CHK_(ptr);
1495           if (PROTOBUF_PREDICT_TRUE(::android::os::statsd::autofill::AutofillDisplayPresentationType_IsValid(val))) {
1496             _internal_set_display_presentation_type(static_cast<::android::os::statsd::autofill::AutofillDisplayPresentationType>(val));
1497           } else {
1498             ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(4, val, mutable_unknown_fields());
1499           }
1500         } else {
1501           goto handle_unusual;
1502         }
1503         continue;
1504       // optional int32 available_count = 5;
1505       case 5:
1506         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 40)) {
1507           _Internal::set_has_available_count(&has_bits);
1508           _impl_.available_count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1509           CHK_(ptr);
1510         } else {
1511           goto handle_unusual;
1512         }
1513         continue;
1514       // optional int64 save_ui_trigger_ids = 6;
1515       case 6:
1516         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 48)) {
1517           _Internal::set_has_save_ui_trigger_ids(&has_bits);
1518           _impl_.save_ui_trigger_ids_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
1519           CHK_(ptr);
1520         } else {
1521           goto handle_unusual;
1522         }
1523         continue;
1524       // optional int32 latency_fill_response_received_millis = 7;
1525       case 7:
1526         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 56)) {
1527           _Internal::set_has_latency_fill_response_received_millis(&has_bits);
1528           _impl_.latency_fill_response_received_millis_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1529           CHK_(ptr);
1530         } else {
1531           goto handle_unusual;
1532         }
1533         continue;
1534       // optional .android.os.statsd.autofill.AuthenticationType authentication_type = 8 [deprecated = true];
1535       case 8:
1536         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 64)) {
1537           ::uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
1538           CHK_(ptr);
1539           if (PROTOBUF_PREDICT_TRUE(::android::os::statsd::autofill::AuthenticationType_IsValid(val))) {
1540             _internal_set_authentication_type(static_cast<::android::os::statsd::autofill::AuthenticationType>(val));
1541           } else {
1542             ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(8, val, mutable_unknown_fields());
1543           }
1544         } else {
1545           goto handle_unusual;
1546         }
1547         continue;
1548       // optional .android.os.statsd.autofill.AuthenticationResult authentication_result = 9 [deprecated = true];
1549       case 9:
1550         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 72)) {
1551           ::uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
1552           CHK_(ptr);
1553           if (PROTOBUF_PREDICT_TRUE(::android::os::statsd::autofill::AuthenticationResult_IsValid(val))) {
1554             _internal_set_authentication_result(static_cast<::android::os::statsd::autofill::AuthenticationResult>(val));
1555           } else {
1556             ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(9, val, mutable_unknown_fields());
1557           }
1558         } else {
1559           goto handle_unusual;
1560         }
1561         continue;
1562       // optional int64 authentication_failure_reason = 10 [deprecated = true];
1563       case 10:
1564         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 80)) {
1565           _Internal::set_has_authentication_failure_reason(&has_bits);
1566           _impl_.authentication_failure_reason_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
1567           CHK_(ptr);
1568         } else {
1569           goto handle_unusual;
1570         }
1571         continue;
1572       // optional int64 latency_authentication_ui_display_millis = 11 [deprecated = true];
1573       case 11:
1574         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 88)) {
1575           _Internal::set_has_latency_authentication_ui_display_millis(&has_bits);
1576           _impl_.latency_authentication_ui_display_millis_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
1577           CHK_(ptr);
1578         } else {
1579           goto handle_unusual;
1580         }
1581         continue;
1582       // optional int64 latency_dataset_display_millis = 12 [deprecated = true];
1583       case 12:
1584         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 96)) {
1585           _Internal::set_has_latency_dataset_display_millis(&has_bits);
1586           _impl_.latency_dataset_display_millis_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
1587           CHK_(ptr);
1588         } else {
1589           goto handle_unusual;
1590         }
1591         continue;
1592       // optional .android.os.statsd.autofill.FillResponseStatus response_status = 13;
1593       case 13:
1594         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 104)) {
1595           ::uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
1596           CHK_(ptr);
1597           if (PROTOBUF_PREDICT_TRUE(::android::os::statsd::autofill::FillResponseStatus_IsValid(val))) {
1598             _internal_set_response_status(static_cast<::android::os::statsd::autofill::FillResponseStatus>(val));
1599           } else {
1600             ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(13, val, mutable_unknown_fields());
1601           }
1602         } else {
1603           goto handle_unusual;
1604         }
1605         continue;
1606       // optional int64 latency_response_processing_millis = 14;
1607       case 14:
1608         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 112)) {
1609           _Internal::set_has_latency_response_processing_millis(&has_bits);
1610           _impl_.latency_response_processing_millis_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
1611           CHK_(ptr);
1612         } else {
1613           goto handle_unusual;
1614         }
1615         continue;
1616       // optional int32 available_pcc_count = 15;
1617       case 15:
1618         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 120)) {
1619           _Internal::set_has_available_pcc_count(&has_bits);
1620           _impl_.available_pcc_count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1621           CHK_(ptr);
1622         } else {
1623           goto handle_unusual;
1624         }
1625         continue;
1626       // optional int32 available_pcc_only_count = 16;
1627       case 16:
1628         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 128)) {
1629           _Internal::set_has_available_pcc_only_count(&has_bits);
1630           _impl_.available_pcc_only_count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1631           CHK_(ptr);
1632         } else {
1633           goto handle_unusual;
1634         }
1635         continue;
1636       // optional int32 total_datasets_provided = 17;
1637       case 17:
1638         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 136)) {
1639           _Internal::set_has_total_datasets_provided(&has_bits);
1640           _impl_.total_datasets_provided_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1641           CHK_(ptr);
1642         } else {
1643           goto handle_unusual;
1644         }
1645         continue;
1646       // optional .android.os.statsd.autofill.DetectionPreference detection_preference = 18;
1647       case 18:
1648         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 144)) {
1649           ::uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
1650           CHK_(ptr);
1651           if (PROTOBUF_PREDICT_TRUE(::android::os::statsd::autofill::DetectionPreference_IsValid(val))) {
1652             _internal_set_detection_preference(static_cast<::android::os::statsd::autofill::DetectionPreference>(val));
1653           } else {
1654             ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(18, val, mutable_unknown_fields());
1655           }
1656         } else {
1657           goto handle_unusual;
1658         }
1659         continue;
1660       default:
1661         goto handle_unusual;
1662     }  // switch
1663   handle_unusual:
1664     if ((tag == 0) || ((tag & 7) == 4)) {
1665       CHK_(ptr);
1666       ctx->SetLastTag(tag);
1667       goto message_done;
1668     }
1669     ptr = UnknownFieldParse(
1670         tag,
1671         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
1672         ptr, ctx);
1673     CHK_(ptr != nullptr);
1674   }  // while
1675 message_done:
1676   _impl_._has_bits_.Or(has_bits);
1677   return ptr;
1678 failure:
1679   ptr = nullptr;
1680   goto message_done;
1681 #undef CHK_
1682 }
1683 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const1684 ::uint8_t* AutofillFillResponseReported::_InternalSerialize(
1685     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
1686   // @@protoc_insertion_point(serialize_to_array_start:android.os.statsd.autofill.AutofillFillResponseReported)
1687   ::uint32_t cached_has_bits = 0;
1688   (void) cached_has_bits;
1689 
1690   cached_has_bits = _impl_._has_bits_[0];
1691   // optional int32 request_id = 1;
1692   if (cached_has_bits & 0x00000001u) {
1693     target = stream->EnsureSpace(target);
1694     target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_request_id(), target);
1695   }
1696 
1697   // optional int32 session_id = 2;
1698   if (cached_has_bits & 0x00000002u) {
1699     target = stream->EnsureSpace(target);
1700     target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_session_id(), target);
1701   }
1702 
1703   // optional int32 app_package_uid = 3 [(.android.os.statsd.is_uid) = true];
1704   if (cached_has_bits & 0x00000004u) {
1705     target = stream->EnsureSpace(target);
1706     target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_app_package_uid(), target);
1707   }
1708 
1709   // optional .android.os.statsd.autofill.AutofillDisplayPresentationType display_presentation_type = 4;
1710   if (cached_has_bits & 0x00000008u) {
1711     target = stream->EnsureSpace(target);
1712     target = ::_pbi::WireFormatLite::WriteEnumToArray(
1713       4, this->_internal_display_presentation_type(), target);
1714   }
1715 
1716   // optional int32 available_count = 5;
1717   if (cached_has_bits & 0x00000020u) {
1718     target = stream->EnsureSpace(target);
1719     target = ::_pbi::WireFormatLite::WriteInt32ToArray(5, this->_internal_available_count(), target);
1720   }
1721 
1722   // optional int64 save_ui_trigger_ids = 6;
1723   if (cached_has_bits & 0x00000010u) {
1724     target = stream->EnsureSpace(target);
1725     target = ::_pbi::WireFormatLite::WriteInt64ToArray(6, this->_internal_save_ui_trigger_ids(), target);
1726   }
1727 
1728   // optional int32 latency_fill_response_received_millis = 7;
1729   if (cached_has_bits & 0x00000040u) {
1730     target = stream->EnsureSpace(target);
1731     target = ::_pbi::WireFormatLite::WriteInt32ToArray(7, this->_internal_latency_fill_response_received_millis(), target);
1732   }
1733 
1734   // optional .android.os.statsd.autofill.AuthenticationType authentication_type = 8 [deprecated = true];
1735   if (cached_has_bits & 0x00000080u) {
1736     target = stream->EnsureSpace(target);
1737     target = ::_pbi::WireFormatLite::WriteEnumToArray(
1738       8, this->_internal_authentication_type(), target);
1739   }
1740 
1741   // optional .android.os.statsd.autofill.AuthenticationResult authentication_result = 9 [deprecated = true];
1742   if (cached_has_bits & 0x00000100u) {
1743     target = stream->EnsureSpace(target);
1744     target = ::_pbi::WireFormatLite::WriteEnumToArray(
1745       9, this->_internal_authentication_result(), target);
1746   }
1747 
1748   // optional int64 authentication_failure_reason = 10 [deprecated = true];
1749   if (cached_has_bits & 0x00000200u) {
1750     target = stream->EnsureSpace(target);
1751     target = ::_pbi::WireFormatLite::WriteInt64ToArray(10, this->_internal_authentication_failure_reason(), target);
1752   }
1753 
1754   // optional int64 latency_authentication_ui_display_millis = 11 [deprecated = true];
1755   if (cached_has_bits & 0x00000400u) {
1756     target = stream->EnsureSpace(target);
1757     target = ::_pbi::WireFormatLite::WriteInt64ToArray(11, this->_internal_latency_authentication_ui_display_millis(), target);
1758   }
1759 
1760   // optional int64 latency_dataset_display_millis = 12 [deprecated = true];
1761   if (cached_has_bits & 0x00000800u) {
1762     target = stream->EnsureSpace(target);
1763     target = ::_pbi::WireFormatLite::WriteInt64ToArray(12, this->_internal_latency_dataset_display_millis(), target);
1764   }
1765 
1766   // optional .android.os.statsd.autofill.FillResponseStatus response_status = 13;
1767   if (cached_has_bits & 0x00002000u) {
1768     target = stream->EnsureSpace(target);
1769     target = ::_pbi::WireFormatLite::WriteEnumToArray(
1770       13, this->_internal_response_status(), target);
1771   }
1772 
1773   // optional int64 latency_response_processing_millis = 14;
1774   if (cached_has_bits & 0x00001000u) {
1775     target = stream->EnsureSpace(target);
1776     target = ::_pbi::WireFormatLite::WriteInt64ToArray(14, this->_internal_latency_response_processing_millis(), target);
1777   }
1778 
1779   // optional int32 available_pcc_count = 15;
1780   if (cached_has_bits & 0x00004000u) {
1781     target = stream->EnsureSpace(target);
1782     target = ::_pbi::WireFormatLite::WriteInt32ToArray(15, this->_internal_available_pcc_count(), target);
1783   }
1784 
1785   // optional int32 available_pcc_only_count = 16;
1786   if (cached_has_bits & 0x00008000u) {
1787     target = stream->EnsureSpace(target);
1788     target = ::_pbi::WireFormatLite::WriteInt32ToArray(16, this->_internal_available_pcc_only_count(), target);
1789   }
1790 
1791   // optional int32 total_datasets_provided = 17;
1792   if (cached_has_bits & 0x00010000u) {
1793     target = stream->EnsureSpace(target);
1794     target = ::_pbi::WireFormatLite::WriteInt32ToArray(17, this->_internal_total_datasets_provided(), target);
1795   }
1796 
1797   // optional .android.os.statsd.autofill.DetectionPreference detection_preference = 18;
1798   if (cached_has_bits & 0x00020000u) {
1799     target = stream->EnsureSpace(target);
1800     target = ::_pbi::WireFormatLite::WriteEnumToArray(
1801       18, this->_internal_detection_preference(), target);
1802   }
1803 
1804   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1805     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1806         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
1807   }
1808   // @@protoc_insertion_point(serialize_to_array_end:android.os.statsd.autofill.AutofillFillResponseReported)
1809   return target;
1810 }
1811 
ByteSizeLong() const1812 size_t AutofillFillResponseReported::ByteSizeLong() const {
1813 // @@protoc_insertion_point(message_byte_size_start:android.os.statsd.autofill.AutofillFillResponseReported)
1814   size_t total_size = 0;
1815 
1816   ::uint32_t cached_has_bits = 0;
1817   // Prevent compiler warnings about cached_has_bits being unused
1818   (void) cached_has_bits;
1819 
1820   cached_has_bits = _impl_._has_bits_[0];
1821   if (cached_has_bits & 0x000000ffu) {
1822     // optional int32 request_id = 1;
1823     if (cached_has_bits & 0x00000001u) {
1824       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_request_id());
1825     }
1826 
1827     // optional int32 session_id = 2;
1828     if (cached_has_bits & 0x00000002u) {
1829       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_session_id());
1830     }
1831 
1832     // optional int32 app_package_uid = 3 [(.android.os.statsd.is_uid) = true];
1833     if (cached_has_bits & 0x00000004u) {
1834       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_app_package_uid());
1835     }
1836 
1837     // optional .android.os.statsd.autofill.AutofillDisplayPresentationType display_presentation_type = 4;
1838     if (cached_has_bits & 0x00000008u) {
1839       total_size += 1 +
1840         ::_pbi::WireFormatLite::EnumSize(this->_internal_display_presentation_type());
1841     }
1842 
1843     // optional int64 save_ui_trigger_ids = 6;
1844     if (cached_has_bits & 0x00000010u) {
1845       total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_save_ui_trigger_ids());
1846     }
1847 
1848     // optional int32 available_count = 5;
1849     if (cached_has_bits & 0x00000020u) {
1850       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_available_count());
1851     }
1852 
1853     // optional int32 latency_fill_response_received_millis = 7;
1854     if (cached_has_bits & 0x00000040u) {
1855       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_latency_fill_response_received_millis());
1856     }
1857 
1858     // optional .android.os.statsd.autofill.AuthenticationType authentication_type = 8 [deprecated = true];
1859     if (cached_has_bits & 0x00000080u) {
1860       total_size += 1 +
1861         ::_pbi::WireFormatLite::EnumSize(this->_internal_authentication_type());
1862     }
1863 
1864   }
1865   if (cached_has_bits & 0x0000ff00u) {
1866     // optional .android.os.statsd.autofill.AuthenticationResult authentication_result = 9 [deprecated = true];
1867     if (cached_has_bits & 0x00000100u) {
1868       total_size += 1 +
1869         ::_pbi::WireFormatLite::EnumSize(this->_internal_authentication_result());
1870     }
1871 
1872     // optional int64 authentication_failure_reason = 10 [deprecated = true];
1873     if (cached_has_bits & 0x00000200u) {
1874       total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_authentication_failure_reason());
1875     }
1876 
1877     // optional int64 latency_authentication_ui_display_millis = 11 [deprecated = true];
1878     if (cached_has_bits & 0x00000400u) {
1879       total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_latency_authentication_ui_display_millis());
1880     }
1881 
1882     // optional int64 latency_dataset_display_millis = 12 [deprecated = true];
1883     if (cached_has_bits & 0x00000800u) {
1884       total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_latency_dataset_display_millis());
1885     }
1886 
1887     // optional int64 latency_response_processing_millis = 14;
1888     if (cached_has_bits & 0x00001000u) {
1889       total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_latency_response_processing_millis());
1890     }
1891 
1892     // optional .android.os.statsd.autofill.FillResponseStatus response_status = 13;
1893     if (cached_has_bits & 0x00002000u) {
1894       total_size += 1 +
1895         ::_pbi::WireFormatLite::EnumSize(this->_internal_response_status());
1896     }
1897 
1898     // optional int32 available_pcc_count = 15;
1899     if (cached_has_bits & 0x00004000u) {
1900       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_available_pcc_count());
1901     }
1902 
1903     // optional int32 available_pcc_only_count = 16;
1904     if (cached_has_bits & 0x00008000u) {
1905       total_size += 2 +
1906         ::_pbi::WireFormatLite::Int32Size(
1907           this->_internal_available_pcc_only_count());
1908     }
1909 
1910   }
1911   if (cached_has_bits & 0x00030000u) {
1912     // optional int32 total_datasets_provided = 17;
1913     if (cached_has_bits & 0x00010000u) {
1914       total_size += 2 +
1915         ::_pbi::WireFormatLite::Int32Size(
1916           this->_internal_total_datasets_provided());
1917     }
1918 
1919     // optional .android.os.statsd.autofill.DetectionPreference detection_preference = 18;
1920     if (cached_has_bits & 0x00020000u) {
1921       total_size += 2 +
1922         ::_pbi::WireFormatLite::EnumSize(this->_internal_detection_preference());
1923     }
1924 
1925   }
1926   return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
1927 }
1928 
1929 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AutofillFillResponseReported::_class_data_ = {
1930     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
1931     AutofillFillResponseReported::MergeImpl
1932 };
GetClassData() const1933 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AutofillFillResponseReported::GetClassData() const { return &_class_data_; }
1934 
1935 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)1936 void AutofillFillResponseReported::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
1937   auto* const _this = static_cast<AutofillFillResponseReported*>(&to_msg);
1938   auto& from = static_cast<const AutofillFillResponseReported&>(from_msg);
1939   // @@protoc_insertion_point(class_specific_merge_from_start:android.os.statsd.autofill.AutofillFillResponseReported)
1940   GOOGLE_DCHECK_NE(&from, _this);
1941   ::uint32_t cached_has_bits = 0;
1942   (void) cached_has_bits;
1943 
1944   cached_has_bits = from._impl_._has_bits_[0];
1945   if (cached_has_bits & 0x000000ffu) {
1946     if (cached_has_bits & 0x00000001u) {
1947       _this->_impl_.request_id_ = from._impl_.request_id_;
1948     }
1949     if (cached_has_bits & 0x00000002u) {
1950       _this->_impl_.session_id_ = from._impl_.session_id_;
1951     }
1952     if (cached_has_bits & 0x00000004u) {
1953       _this->_impl_.app_package_uid_ = from._impl_.app_package_uid_;
1954     }
1955     if (cached_has_bits & 0x00000008u) {
1956       _this->_impl_.display_presentation_type_ = from._impl_.display_presentation_type_;
1957     }
1958     if (cached_has_bits & 0x00000010u) {
1959       _this->_impl_.save_ui_trigger_ids_ = from._impl_.save_ui_trigger_ids_;
1960     }
1961     if (cached_has_bits & 0x00000020u) {
1962       _this->_impl_.available_count_ = from._impl_.available_count_;
1963     }
1964     if (cached_has_bits & 0x00000040u) {
1965       _this->_impl_.latency_fill_response_received_millis_ = from._impl_.latency_fill_response_received_millis_;
1966     }
1967     if (cached_has_bits & 0x00000080u) {
1968       _this->_impl_.authentication_type_ = from._impl_.authentication_type_;
1969     }
1970     _this->_impl_._has_bits_[0] |= cached_has_bits;
1971   }
1972   if (cached_has_bits & 0x0000ff00u) {
1973     if (cached_has_bits & 0x00000100u) {
1974       _this->_impl_.authentication_result_ = from._impl_.authentication_result_;
1975     }
1976     if (cached_has_bits & 0x00000200u) {
1977       _this->_impl_.authentication_failure_reason_ = from._impl_.authentication_failure_reason_;
1978     }
1979     if (cached_has_bits & 0x00000400u) {
1980       _this->_impl_.latency_authentication_ui_display_millis_ = from._impl_.latency_authentication_ui_display_millis_;
1981     }
1982     if (cached_has_bits & 0x00000800u) {
1983       _this->_impl_.latency_dataset_display_millis_ = from._impl_.latency_dataset_display_millis_;
1984     }
1985     if (cached_has_bits & 0x00001000u) {
1986       _this->_impl_.latency_response_processing_millis_ = from._impl_.latency_response_processing_millis_;
1987     }
1988     if (cached_has_bits & 0x00002000u) {
1989       _this->_impl_.response_status_ = from._impl_.response_status_;
1990     }
1991     if (cached_has_bits & 0x00004000u) {
1992       _this->_impl_.available_pcc_count_ = from._impl_.available_pcc_count_;
1993     }
1994     if (cached_has_bits & 0x00008000u) {
1995       _this->_impl_.available_pcc_only_count_ = from._impl_.available_pcc_only_count_;
1996     }
1997     _this->_impl_._has_bits_[0] |= cached_has_bits;
1998   }
1999   if (cached_has_bits & 0x00030000u) {
2000     if (cached_has_bits & 0x00010000u) {
2001       _this->_impl_.total_datasets_provided_ = from._impl_.total_datasets_provided_;
2002     }
2003     if (cached_has_bits & 0x00020000u) {
2004       _this->_impl_.detection_preference_ = from._impl_.detection_preference_;
2005     }
2006     _this->_impl_._has_bits_[0] |= cached_has_bits;
2007   }
2008   _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
2009 }
2010 
CopyFrom(const AutofillFillResponseReported & from)2011 void AutofillFillResponseReported::CopyFrom(const AutofillFillResponseReported& from) {
2012 // @@protoc_insertion_point(class_specific_copy_from_start:android.os.statsd.autofill.AutofillFillResponseReported)
2013   if (&from == this) return;
2014   Clear();
2015   MergeFrom(from);
2016 }
2017 
IsInitialized() const2018 bool AutofillFillResponseReported::IsInitialized() const {
2019   return true;
2020 }
2021 
InternalSwap(AutofillFillResponseReported * other)2022 void AutofillFillResponseReported::InternalSwap(AutofillFillResponseReported* other) {
2023   using std::swap;
2024   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2025   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
2026   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
2027       PROTOBUF_FIELD_OFFSET(AutofillFillResponseReported, _impl_.detection_preference_)
2028       + sizeof(AutofillFillResponseReported::_impl_.detection_preference_)  // NOLINT
2029       - PROTOBUF_FIELD_OFFSET(AutofillFillResponseReported, _impl_.request_id_)>(
2030           reinterpret_cast<char*>(&_impl_.request_id_),
2031           reinterpret_cast<char*>(&other->_impl_.request_id_));
2032 }
2033 
GetMetadata() const2034 ::PROTOBUF_NAMESPACE_ID::Metadata AutofillFillResponseReported::GetMetadata() const {
2035   return ::_pbi::AssignDescriptors(
2036       &descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fautofill_2fautofill_5fextension_5fatoms_2eproto_getter, &descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fautofill_2fautofill_5fextension_5fatoms_2eproto_once,
2037       file_level_metadata_frameworks_2fproto_5flogging_2fstats_2fatoms_2fautofill_2fautofill_5fextension_5fatoms_2eproto[2]);
2038 }
2039 
2040 // ===================================================================
2041 
2042 class AutofillSaveEventReported::_Internal {
2043  public:
2044   using HasBits = decltype(std::declval<AutofillSaveEventReported>()._impl_._has_bits_);
set_has_request_id(HasBits * has_bits)2045   static void set_has_request_id(HasBits* has_bits) {
2046     (*has_bits)[0] |= 1u;
2047   }
set_has_session_id(HasBits * has_bits)2048   static void set_has_session_id(HasBits* has_bits) {
2049     (*has_bits)[0] |= 2u;
2050   }
set_has_app_package_uid(HasBits * has_bits)2051   static void set_has_app_package_uid(HasBits* has_bits) {
2052     (*has_bits)[0] |= 16u;
2053   }
set_has_save_ui_trigger_ids(HasBits * has_bits)2054   static void set_has_save_ui_trigger_ids(HasBits* has_bits) {
2055     (*has_bits)[0] |= 4u;
2056   }
set_has_flag(HasBits * has_bits)2057   static void set_has_flag(HasBits* has_bits) {
2058     (*has_bits)[0] |= 8u;
2059   }
set_has_is_new_field(HasBits * has_bits)2060   static void set_has_is_new_field(HasBits* has_bits) {
2061     (*has_bits)[0] |= 128u;
2062   }
set_has_save_ui_shown_reason(HasBits * has_bits)2063   static void set_has_save_ui_shown_reason(HasBits* has_bits) {
2064     (*has_bits)[0] |= 32u;
2065   }
set_has_save_ui_not_shown_reason(HasBits * has_bits)2066   static void set_has_save_ui_not_shown_reason(HasBits* has_bits) {
2067     (*has_bits)[0] |= 64u;
2068   }
set_has_save_button_clicked(HasBits * has_bits)2069   static void set_has_save_button_clicked(HasBits* has_bits) {
2070     (*has_bits)[0] |= 256u;
2071   }
set_has_cancel_button_clicked(HasBits * has_bits)2072   static void set_has_cancel_button_clicked(HasBits* has_bits) {
2073     (*has_bits)[0] |= 512u;
2074   }
set_has_dialog_dismissed(HasBits * has_bits)2075   static void set_has_dialog_dismissed(HasBits* has_bits) {
2076     (*has_bits)[0] |= 1024u;
2077   }
set_has_is_saved(HasBits * has_bits)2078   static void set_has_is_saved(HasBits* has_bits) {
2079     (*has_bits)[0] |= 16384u;
2080   }
set_has_latency_save_ui_display_millis(HasBits * has_bits)2081   static void set_has_latency_save_ui_display_millis(HasBits* has_bits) {
2082     (*has_bits)[0] |= 2048u;
2083   }
set_has_latency_save_request_millis(HasBits * has_bits)2084   static void set_has_latency_save_request_millis(HasBits* has_bits) {
2085     (*has_bits)[0] |= 4096u;
2086   }
set_has_latency_save_finish_millis(HasBits * has_bits)2087   static void set_has_latency_save_finish_millis(HasBits* has_bits) {
2088     (*has_bits)[0] |= 8192u;
2089   }
set_has_is_framework_created_save_info(HasBits * has_bits)2090   static void set_has_is_framework_created_save_info(HasBits* has_bits) {
2091     (*has_bits)[0] |= 32768u;
2092   }
set_has_autofill_service_uid(HasBits * has_bits)2093   static void set_has_autofill_service_uid(HasBits* has_bits) {
2094     (*has_bits)[0] |= 65536u;
2095   }
2096 };
2097 
AutofillSaveEventReported(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)2098 AutofillSaveEventReported::AutofillSaveEventReported(::PROTOBUF_NAMESPACE_ID::Arena* arena,
2099                          bool is_message_owned)
2100   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
2101   SharedCtor(arena, is_message_owned);
2102   // @@protoc_insertion_point(arena_constructor:android.os.statsd.autofill.AutofillSaveEventReported)
2103 }
AutofillSaveEventReported(const AutofillSaveEventReported & from)2104 AutofillSaveEventReported::AutofillSaveEventReported(const AutofillSaveEventReported& from)
2105   : ::PROTOBUF_NAMESPACE_ID::Message() {
2106   AutofillSaveEventReported* const _this = this; (void)_this;
2107   new (&_impl_) Impl_{
2108       decltype(_impl_._has_bits_){from._impl_._has_bits_}
2109     , /*decltype(_impl_._cached_size_)*/{}
2110     , decltype(_impl_.request_id_){}
2111     , decltype(_impl_.session_id_){}
2112     , decltype(_impl_.save_ui_trigger_ids_){}
2113     , decltype(_impl_.flag_){}
2114     , decltype(_impl_.app_package_uid_){}
2115     , decltype(_impl_.save_ui_shown_reason_){}
2116     , decltype(_impl_.save_ui_not_shown_reason_){}
2117     , decltype(_impl_.is_new_field_){}
2118     , decltype(_impl_.save_button_clicked_){}
2119     , decltype(_impl_.cancel_button_clicked_){}
2120     , decltype(_impl_.dialog_dismissed_){}
2121     , decltype(_impl_.latency_save_ui_display_millis_){}
2122     , decltype(_impl_.latency_save_request_millis_){}
2123     , decltype(_impl_.latency_save_finish_millis_){}
2124     , decltype(_impl_.is_saved_){}
2125     , decltype(_impl_.is_framework_created_save_info_){}
2126     , decltype(_impl_.autofill_service_uid_){}};
2127 
2128   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
2129   ::memcpy(&_impl_.request_id_, &from._impl_.request_id_,
2130     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.autofill_service_uid_) -
2131     reinterpret_cast<char*>(&_impl_.request_id_)) + sizeof(_impl_.autofill_service_uid_));
2132   // @@protoc_insertion_point(copy_constructor:android.os.statsd.autofill.AutofillSaveEventReported)
2133 }
2134 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)2135 inline void AutofillSaveEventReported::SharedCtor(
2136     ::_pb::Arena* arena, bool is_message_owned) {
2137   (void)arena;
2138   (void)is_message_owned;
2139   new (&_impl_) Impl_{
2140       decltype(_impl_._has_bits_){}
2141     , /*decltype(_impl_._cached_size_)*/{}
2142     , decltype(_impl_.request_id_){0}
2143     , decltype(_impl_.session_id_){0}
2144     , decltype(_impl_.save_ui_trigger_ids_){::int64_t{0}}
2145     , decltype(_impl_.flag_){::int64_t{0}}
2146     , decltype(_impl_.app_package_uid_){0}
2147     , decltype(_impl_.save_ui_shown_reason_){0}
2148     , decltype(_impl_.save_ui_not_shown_reason_){0}
2149     , decltype(_impl_.is_new_field_){false}
2150     , decltype(_impl_.save_button_clicked_){false}
2151     , decltype(_impl_.cancel_button_clicked_){false}
2152     , decltype(_impl_.dialog_dismissed_){false}
2153     , decltype(_impl_.latency_save_ui_display_millis_){::int64_t{0}}
2154     , decltype(_impl_.latency_save_request_millis_){::int64_t{0}}
2155     , decltype(_impl_.latency_save_finish_millis_){::int64_t{0}}
2156     , decltype(_impl_.is_saved_){false}
2157     , decltype(_impl_.is_framework_created_save_info_){false}
2158     , decltype(_impl_.autofill_service_uid_){0}
2159   };
2160 }
2161 
~AutofillSaveEventReported()2162 AutofillSaveEventReported::~AutofillSaveEventReported() {
2163   // @@protoc_insertion_point(destructor:android.os.statsd.autofill.AutofillSaveEventReported)
2164   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
2165   (void)arena;
2166     return;
2167   }
2168   SharedDtor();
2169 }
2170 
SharedDtor()2171 inline void AutofillSaveEventReported::SharedDtor() {
2172   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
2173 }
2174 
SetCachedSize(int size) const2175 void AutofillSaveEventReported::SetCachedSize(int size) const {
2176   _impl_._cached_size_.Set(size);
2177 }
2178 
Clear()2179 void AutofillSaveEventReported::Clear() {
2180 // @@protoc_insertion_point(message_clear_start:android.os.statsd.autofill.AutofillSaveEventReported)
2181   ::uint32_t cached_has_bits = 0;
2182   // Prevent compiler warnings about cached_has_bits being unused
2183   (void) cached_has_bits;
2184 
2185   cached_has_bits = _impl_._has_bits_[0];
2186   if (cached_has_bits & 0x000000ffu) {
2187     ::memset(&_impl_.request_id_, 0, static_cast<size_t>(
2188         reinterpret_cast<char*>(&_impl_.is_new_field_) -
2189         reinterpret_cast<char*>(&_impl_.request_id_)) + sizeof(_impl_.is_new_field_));
2190   }
2191   if (cached_has_bits & 0x0000ff00u) {
2192     ::memset(&_impl_.save_button_clicked_, 0, static_cast<size_t>(
2193         reinterpret_cast<char*>(&_impl_.is_framework_created_save_info_) -
2194         reinterpret_cast<char*>(&_impl_.save_button_clicked_)) + sizeof(_impl_.is_framework_created_save_info_));
2195   }
2196   _impl_.autofill_service_uid_ = 0;
2197   _impl_._has_bits_.Clear();
2198   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
2199 }
2200 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)2201 const char* AutofillSaveEventReported::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
2202 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
2203   _Internal::HasBits has_bits{};
2204   while (!ctx->Done(&ptr)) {
2205     ::uint32_t tag;
2206     ptr = ::_pbi::ReadTag(ptr, &tag);
2207     switch (tag >> 3) {
2208       // optional int32 request_id = 1;
2209       case 1:
2210         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
2211           _Internal::set_has_request_id(&has_bits);
2212           _impl_.request_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
2213           CHK_(ptr);
2214         } else {
2215           goto handle_unusual;
2216         }
2217         continue;
2218       // optional int32 session_id = 2;
2219       case 2:
2220         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
2221           _Internal::set_has_session_id(&has_bits);
2222           _impl_.session_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
2223           CHK_(ptr);
2224         } else {
2225           goto handle_unusual;
2226         }
2227         continue;
2228       // optional int32 app_package_uid = 3 [(.android.os.statsd.is_uid) = true];
2229       case 3:
2230         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
2231           _Internal::set_has_app_package_uid(&has_bits);
2232           _impl_.app_package_uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
2233           CHK_(ptr);
2234         } else {
2235           goto handle_unusual;
2236         }
2237         continue;
2238       // optional int64 save_ui_trigger_ids = 4;
2239       case 4:
2240         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) {
2241           _Internal::set_has_save_ui_trigger_ids(&has_bits);
2242           _impl_.save_ui_trigger_ids_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
2243           CHK_(ptr);
2244         } else {
2245           goto handle_unusual;
2246         }
2247         continue;
2248       // optional int64 flag = 5;
2249       case 5:
2250         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 40)) {
2251           _Internal::set_has_flag(&has_bits);
2252           _impl_.flag_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
2253           CHK_(ptr);
2254         } else {
2255           goto handle_unusual;
2256         }
2257         continue;
2258       // optional bool is_new_field = 6;
2259       case 6:
2260         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 48)) {
2261           _Internal::set_has_is_new_field(&has_bits);
2262           _impl_.is_new_field_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
2263           CHK_(ptr);
2264         } else {
2265           goto handle_unusual;
2266         }
2267         continue;
2268       // optional .android.os.statsd.autofill.SaveUiShownReason save_ui_shown_reason = 7;
2269       case 7:
2270         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 56)) {
2271           ::uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
2272           CHK_(ptr);
2273           if (PROTOBUF_PREDICT_TRUE(::android::os::statsd::autofill::SaveUiShownReason_IsValid(val))) {
2274             _internal_set_save_ui_shown_reason(static_cast<::android::os::statsd::autofill::SaveUiShownReason>(val));
2275           } else {
2276             ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(7, val, mutable_unknown_fields());
2277           }
2278         } else {
2279           goto handle_unusual;
2280         }
2281         continue;
2282       // optional .android.os.statsd.autofill.SaveUiNotShownReason save_ui_not_shown_reason = 8;
2283       case 8:
2284         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 64)) {
2285           ::uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
2286           CHK_(ptr);
2287           if (PROTOBUF_PREDICT_TRUE(::android::os::statsd::autofill::SaveUiNotShownReason_IsValid(val))) {
2288             _internal_set_save_ui_not_shown_reason(static_cast<::android::os::statsd::autofill::SaveUiNotShownReason>(val));
2289           } else {
2290             ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(8, val, mutable_unknown_fields());
2291           }
2292         } else {
2293           goto handle_unusual;
2294         }
2295         continue;
2296       // optional bool save_button_clicked = 9;
2297       case 9:
2298         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 72)) {
2299           _Internal::set_has_save_button_clicked(&has_bits);
2300           _impl_.save_button_clicked_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
2301           CHK_(ptr);
2302         } else {
2303           goto handle_unusual;
2304         }
2305         continue;
2306       // optional bool cancel_button_clicked = 10;
2307       case 10:
2308         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 80)) {
2309           _Internal::set_has_cancel_button_clicked(&has_bits);
2310           _impl_.cancel_button_clicked_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
2311           CHK_(ptr);
2312         } else {
2313           goto handle_unusual;
2314         }
2315         continue;
2316       // optional bool dialog_dismissed = 11;
2317       case 11:
2318         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 88)) {
2319           _Internal::set_has_dialog_dismissed(&has_bits);
2320           _impl_.dialog_dismissed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
2321           CHK_(ptr);
2322         } else {
2323           goto handle_unusual;
2324         }
2325         continue;
2326       // optional bool is_saved = 12;
2327       case 12:
2328         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 96)) {
2329           _Internal::set_has_is_saved(&has_bits);
2330           _impl_.is_saved_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
2331           CHK_(ptr);
2332         } else {
2333           goto handle_unusual;
2334         }
2335         continue;
2336       // optional int64 latency_save_ui_display_millis = 13;
2337       case 13:
2338         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 104)) {
2339           _Internal::set_has_latency_save_ui_display_millis(&has_bits);
2340           _impl_.latency_save_ui_display_millis_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
2341           CHK_(ptr);
2342         } else {
2343           goto handle_unusual;
2344         }
2345         continue;
2346       // optional int64 latency_save_request_millis = 14;
2347       case 14:
2348         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 112)) {
2349           _Internal::set_has_latency_save_request_millis(&has_bits);
2350           _impl_.latency_save_request_millis_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
2351           CHK_(ptr);
2352         } else {
2353           goto handle_unusual;
2354         }
2355         continue;
2356       // optional int64 latency_save_finish_millis = 15;
2357       case 15:
2358         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 120)) {
2359           _Internal::set_has_latency_save_finish_millis(&has_bits);
2360           _impl_.latency_save_finish_millis_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
2361           CHK_(ptr);
2362         } else {
2363           goto handle_unusual;
2364         }
2365         continue;
2366       // optional bool is_framework_created_save_info = 16;
2367       case 16:
2368         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 128)) {
2369           _Internal::set_has_is_framework_created_save_info(&has_bits);
2370           _impl_.is_framework_created_save_info_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
2371           CHK_(ptr);
2372         } else {
2373           goto handle_unusual;
2374         }
2375         continue;
2376       // optional int32 autofill_service_uid = 17 [(.android.os.statsd.is_uid) = true];
2377       case 17:
2378         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 136)) {
2379           _Internal::set_has_autofill_service_uid(&has_bits);
2380           _impl_.autofill_service_uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
2381           CHK_(ptr);
2382         } else {
2383           goto handle_unusual;
2384         }
2385         continue;
2386       default:
2387         goto handle_unusual;
2388     }  // switch
2389   handle_unusual:
2390     if ((tag == 0) || ((tag & 7) == 4)) {
2391       CHK_(ptr);
2392       ctx->SetLastTag(tag);
2393       goto message_done;
2394     }
2395     ptr = UnknownFieldParse(
2396         tag,
2397         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
2398         ptr, ctx);
2399     CHK_(ptr != nullptr);
2400   }  // while
2401 message_done:
2402   _impl_._has_bits_.Or(has_bits);
2403   return ptr;
2404 failure:
2405   ptr = nullptr;
2406   goto message_done;
2407 #undef CHK_
2408 }
2409 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const2410 ::uint8_t* AutofillSaveEventReported::_InternalSerialize(
2411     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
2412   // @@protoc_insertion_point(serialize_to_array_start:android.os.statsd.autofill.AutofillSaveEventReported)
2413   ::uint32_t cached_has_bits = 0;
2414   (void) cached_has_bits;
2415 
2416   cached_has_bits = _impl_._has_bits_[0];
2417   // optional int32 request_id = 1;
2418   if (cached_has_bits & 0x00000001u) {
2419     target = stream->EnsureSpace(target);
2420     target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_request_id(), target);
2421   }
2422 
2423   // optional int32 session_id = 2;
2424   if (cached_has_bits & 0x00000002u) {
2425     target = stream->EnsureSpace(target);
2426     target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_session_id(), target);
2427   }
2428 
2429   // optional int32 app_package_uid = 3 [(.android.os.statsd.is_uid) = true];
2430   if (cached_has_bits & 0x00000010u) {
2431     target = stream->EnsureSpace(target);
2432     target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_app_package_uid(), target);
2433   }
2434 
2435   // optional int64 save_ui_trigger_ids = 4;
2436   if (cached_has_bits & 0x00000004u) {
2437     target = stream->EnsureSpace(target);
2438     target = ::_pbi::WireFormatLite::WriteInt64ToArray(4, this->_internal_save_ui_trigger_ids(), target);
2439   }
2440 
2441   // optional int64 flag = 5;
2442   if (cached_has_bits & 0x00000008u) {
2443     target = stream->EnsureSpace(target);
2444     target = ::_pbi::WireFormatLite::WriteInt64ToArray(5, this->_internal_flag(), target);
2445   }
2446 
2447   // optional bool is_new_field = 6;
2448   if (cached_has_bits & 0x00000080u) {
2449     target = stream->EnsureSpace(target);
2450     target = ::_pbi::WireFormatLite::WriteBoolToArray(6, this->_internal_is_new_field(), target);
2451   }
2452 
2453   // optional .android.os.statsd.autofill.SaveUiShownReason save_ui_shown_reason = 7;
2454   if (cached_has_bits & 0x00000020u) {
2455     target = stream->EnsureSpace(target);
2456     target = ::_pbi::WireFormatLite::WriteEnumToArray(
2457       7, this->_internal_save_ui_shown_reason(), target);
2458   }
2459 
2460   // optional .android.os.statsd.autofill.SaveUiNotShownReason save_ui_not_shown_reason = 8;
2461   if (cached_has_bits & 0x00000040u) {
2462     target = stream->EnsureSpace(target);
2463     target = ::_pbi::WireFormatLite::WriteEnumToArray(
2464       8, this->_internal_save_ui_not_shown_reason(), target);
2465   }
2466 
2467   // optional bool save_button_clicked = 9;
2468   if (cached_has_bits & 0x00000100u) {
2469     target = stream->EnsureSpace(target);
2470     target = ::_pbi::WireFormatLite::WriteBoolToArray(9, this->_internal_save_button_clicked(), target);
2471   }
2472 
2473   // optional bool cancel_button_clicked = 10;
2474   if (cached_has_bits & 0x00000200u) {
2475     target = stream->EnsureSpace(target);
2476     target = ::_pbi::WireFormatLite::WriteBoolToArray(10, this->_internal_cancel_button_clicked(), target);
2477   }
2478 
2479   // optional bool dialog_dismissed = 11;
2480   if (cached_has_bits & 0x00000400u) {
2481     target = stream->EnsureSpace(target);
2482     target = ::_pbi::WireFormatLite::WriteBoolToArray(11, this->_internal_dialog_dismissed(), target);
2483   }
2484 
2485   // optional bool is_saved = 12;
2486   if (cached_has_bits & 0x00004000u) {
2487     target = stream->EnsureSpace(target);
2488     target = ::_pbi::WireFormatLite::WriteBoolToArray(12, this->_internal_is_saved(), target);
2489   }
2490 
2491   // optional int64 latency_save_ui_display_millis = 13;
2492   if (cached_has_bits & 0x00000800u) {
2493     target = stream->EnsureSpace(target);
2494     target = ::_pbi::WireFormatLite::WriteInt64ToArray(13, this->_internal_latency_save_ui_display_millis(), target);
2495   }
2496 
2497   // optional int64 latency_save_request_millis = 14;
2498   if (cached_has_bits & 0x00001000u) {
2499     target = stream->EnsureSpace(target);
2500     target = ::_pbi::WireFormatLite::WriteInt64ToArray(14, this->_internal_latency_save_request_millis(), target);
2501   }
2502 
2503   // optional int64 latency_save_finish_millis = 15;
2504   if (cached_has_bits & 0x00002000u) {
2505     target = stream->EnsureSpace(target);
2506     target = ::_pbi::WireFormatLite::WriteInt64ToArray(15, this->_internal_latency_save_finish_millis(), target);
2507   }
2508 
2509   // optional bool is_framework_created_save_info = 16;
2510   if (cached_has_bits & 0x00008000u) {
2511     target = stream->EnsureSpace(target);
2512     target = ::_pbi::WireFormatLite::WriteBoolToArray(16, this->_internal_is_framework_created_save_info(), target);
2513   }
2514 
2515   // optional int32 autofill_service_uid = 17 [(.android.os.statsd.is_uid) = true];
2516   if (cached_has_bits & 0x00010000u) {
2517     target = stream->EnsureSpace(target);
2518     target = ::_pbi::WireFormatLite::WriteInt32ToArray(17, this->_internal_autofill_service_uid(), target);
2519   }
2520 
2521   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2522     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
2523         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
2524   }
2525   // @@protoc_insertion_point(serialize_to_array_end:android.os.statsd.autofill.AutofillSaveEventReported)
2526   return target;
2527 }
2528 
ByteSizeLong() const2529 size_t AutofillSaveEventReported::ByteSizeLong() const {
2530 // @@protoc_insertion_point(message_byte_size_start:android.os.statsd.autofill.AutofillSaveEventReported)
2531   size_t total_size = 0;
2532 
2533   ::uint32_t cached_has_bits = 0;
2534   // Prevent compiler warnings about cached_has_bits being unused
2535   (void) cached_has_bits;
2536 
2537   cached_has_bits = _impl_._has_bits_[0];
2538   if (cached_has_bits & 0x000000ffu) {
2539     // optional int32 request_id = 1;
2540     if (cached_has_bits & 0x00000001u) {
2541       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_request_id());
2542     }
2543 
2544     // optional int32 session_id = 2;
2545     if (cached_has_bits & 0x00000002u) {
2546       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_session_id());
2547     }
2548 
2549     // optional int64 save_ui_trigger_ids = 4;
2550     if (cached_has_bits & 0x00000004u) {
2551       total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_save_ui_trigger_ids());
2552     }
2553 
2554     // optional int64 flag = 5;
2555     if (cached_has_bits & 0x00000008u) {
2556       total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_flag());
2557     }
2558 
2559     // optional int32 app_package_uid = 3 [(.android.os.statsd.is_uid) = true];
2560     if (cached_has_bits & 0x00000010u) {
2561       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_app_package_uid());
2562     }
2563 
2564     // optional .android.os.statsd.autofill.SaveUiShownReason save_ui_shown_reason = 7;
2565     if (cached_has_bits & 0x00000020u) {
2566       total_size += 1 +
2567         ::_pbi::WireFormatLite::EnumSize(this->_internal_save_ui_shown_reason());
2568     }
2569 
2570     // optional .android.os.statsd.autofill.SaveUiNotShownReason save_ui_not_shown_reason = 8;
2571     if (cached_has_bits & 0x00000040u) {
2572       total_size += 1 +
2573         ::_pbi::WireFormatLite::EnumSize(this->_internal_save_ui_not_shown_reason());
2574     }
2575 
2576     // optional bool is_new_field = 6;
2577     if (cached_has_bits & 0x00000080u) {
2578       total_size += 1 + 1;
2579     }
2580 
2581   }
2582   if (cached_has_bits & 0x0000ff00u) {
2583     // optional bool save_button_clicked = 9;
2584     if (cached_has_bits & 0x00000100u) {
2585       total_size += 1 + 1;
2586     }
2587 
2588     // optional bool cancel_button_clicked = 10;
2589     if (cached_has_bits & 0x00000200u) {
2590       total_size += 1 + 1;
2591     }
2592 
2593     // optional bool dialog_dismissed = 11;
2594     if (cached_has_bits & 0x00000400u) {
2595       total_size += 1 + 1;
2596     }
2597 
2598     // optional int64 latency_save_ui_display_millis = 13;
2599     if (cached_has_bits & 0x00000800u) {
2600       total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_latency_save_ui_display_millis());
2601     }
2602 
2603     // optional int64 latency_save_request_millis = 14;
2604     if (cached_has_bits & 0x00001000u) {
2605       total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_latency_save_request_millis());
2606     }
2607 
2608     // optional int64 latency_save_finish_millis = 15;
2609     if (cached_has_bits & 0x00002000u) {
2610       total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_latency_save_finish_millis());
2611     }
2612 
2613     // optional bool is_saved = 12;
2614     if (cached_has_bits & 0x00004000u) {
2615       total_size += 1 + 1;
2616     }
2617 
2618     // optional bool is_framework_created_save_info = 16;
2619     if (cached_has_bits & 0x00008000u) {
2620       total_size += 2 + 1;
2621     }
2622 
2623   }
2624   // optional int32 autofill_service_uid = 17 [(.android.os.statsd.is_uid) = true];
2625   if (cached_has_bits & 0x00010000u) {
2626     total_size += 2 +
2627       ::_pbi::WireFormatLite::Int32Size(
2628         this->_internal_autofill_service_uid());
2629   }
2630 
2631   return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
2632 }
2633 
2634 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AutofillSaveEventReported::_class_data_ = {
2635     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
2636     AutofillSaveEventReported::MergeImpl
2637 };
GetClassData() const2638 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AutofillSaveEventReported::GetClassData() const { return &_class_data_; }
2639 
2640 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)2641 void AutofillSaveEventReported::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
2642   auto* const _this = static_cast<AutofillSaveEventReported*>(&to_msg);
2643   auto& from = static_cast<const AutofillSaveEventReported&>(from_msg);
2644   // @@protoc_insertion_point(class_specific_merge_from_start:android.os.statsd.autofill.AutofillSaveEventReported)
2645   GOOGLE_DCHECK_NE(&from, _this);
2646   ::uint32_t cached_has_bits = 0;
2647   (void) cached_has_bits;
2648 
2649   cached_has_bits = from._impl_._has_bits_[0];
2650   if (cached_has_bits & 0x000000ffu) {
2651     if (cached_has_bits & 0x00000001u) {
2652       _this->_impl_.request_id_ = from._impl_.request_id_;
2653     }
2654     if (cached_has_bits & 0x00000002u) {
2655       _this->_impl_.session_id_ = from._impl_.session_id_;
2656     }
2657     if (cached_has_bits & 0x00000004u) {
2658       _this->_impl_.save_ui_trigger_ids_ = from._impl_.save_ui_trigger_ids_;
2659     }
2660     if (cached_has_bits & 0x00000008u) {
2661       _this->_impl_.flag_ = from._impl_.flag_;
2662     }
2663     if (cached_has_bits & 0x00000010u) {
2664       _this->_impl_.app_package_uid_ = from._impl_.app_package_uid_;
2665     }
2666     if (cached_has_bits & 0x00000020u) {
2667       _this->_impl_.save_ui_shown_reason_ = from._impl_.save_ui_shown_reason_;
2668     }
2669     if (cached_has_bits & 0x00000040u) {
2670       _this->_impl_.save_ui_not_shown_reason_ = from._impl_.save_ui_not_shown_reason_;
2671     }
2672     if (cached_has_bits & 0x00000080u) {
2673       _this->_impl_.is_new_field_ = from._impl_.is_new_field_;
2674     }
2675     _this->_impl_._has_bits_[0] |= cached_has_bits;
2676   }
2677   if (cached_has_bits & 0x0000ff00u) {
2678     if (cached_has_bits & 0x00000100u) {
2679       _this->_impl_.save_button_clicked_ = from._impl_.save_button_clicked_;
2680     }
2681     if (cached_has_bits & 0x00000200u) {
2682       _this->_impl_.cancel_button_clicked_ = from._impl_.cancel_button_clicked_;
2683     }
2684     if (cached_has_bits & 0x00000400u) {
2685       _this->_impl_.dialog_dismissed_ = from._impl_.dialog_dismissed_;
2686     }
2687     if (cached_has_bits & 0x00000800u) {
2688       _this->_impl_.latency_save_ui_display_millis_ = from._impl_.latency_save_ui_display_millis_;
2689     }
2690     if (cached_has_bits & 0x00001000u) {
2691       _this->_impl_.latency_save_request_millis_ = from._impl_.latency_save_request_millis_;
2692     }
2693     if (cached_has_bits & 0x00002000u) {
2694       _this->_impl_.latency_save_finish_millis_ = from._impl_.latency_save_finish_millis_;
2695     }
2696     if (cached_has_bits & 0x00004000u) {
2697       _this->_impl_.is_saved_ = from._impl_.is_saved_;
2698     }
2699     if (cached_has_bits & 0x00008000u) {
2700       _this->_impl_.is_framework_created_save_info_ = from._impl_.is_framework_created_save_info_;
2701     }
2702     _this->_impl_._has_bits_[0] |= cached_has_bits;
2703   }
2704   if (cached_has_bits & 0x00010000u) {
2705     _this->_internal_set_autofill_service_uid(from._internal_autofill_service_uid());
2706   }
2707   _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
2708 }
2709 
CopyFrom(const AutofillSaveEventReported & from)2710 void AutofillSaveEventReported::CopyFrom(const AutofillSaveEventReported& from) {
2711 // @@protoc_insertion_point(class_specific_copy_from_start:android.os.statsd.autofill.AutofillSaveEventReported)
2712   if (&from == this) return;
2713   Clear();
2714   MergeFrom(from);
2715 }
2716 
IsInitialized() const2717 bool AutofillSaveEventReported::IsInitialized() const {
2718   return true;
2719 }
2720 
InternalSwap(AutofillSaveEventReported * other)2721 void AutofillSaveEventReported::InternalSwap(AutofillSaveEventReported* other) {
2722   using std::swap;
2723   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2724   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
2725   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
2726       PROTOBUF_FIELD_OFFSET(AutofillSaveEventReported, _impl_.autofill_service_uid_)
2727       + sizeof(AutofillSaveEventReported::_impl_.autofill_service_uid_)  // NOLINT
2728       - PROTOBUF_FIELD_OFFSET(AutofillSaveEventReported, _impl_.request_id_)>(
2729           reinterpret_cast<char*>(&_impl_.request_id_),
2730           reinterpret_cast<char*>(&other->_impl_.request_id_));
2731 }
2732 
GetMetadata() const2733 ::PROTOBUF_NAMESPACE_ID::Metadata AutofillSaveEventReported::GetMetadata() const {
2734   return ::_pbi::AssignDescriptors(
2735       &descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fautofill_2fautofill_5fextension_5fatoms_2eproto_getter, &descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fautofill_2fautofill_5fextension_5fatoms_2eproto_once,
2736       file_level_metadata_frameworks_2fproto_5flogging_2fstats_2fatoms_2fautofill_2fautofill_5fextension_5fatoms_2eproto[3]);
2737 }
2738 
2739 // ===================================================================
2740 
2741 class AutofillSessionCommitted::_Internal {
2742  public:
2743   using HasBits = decltype(std::declval<AutofillSessionCommitted>()._impl_._has_bits_);
set_has_session_id(HasBits * has_bits)2744   static void set_has_session_id(HasBits* has_bits) {
2745     (*has_bits)[0] |= 1u;
2746   }
set_has_component_package_uid(HasBits * has_bits)2747   static void set_has_component_package_uid(HasBits* has_bits) {
2748     (*has_bits)[0] |= 2u;
2749   }
set_has_request_count(HasBits * has_bits)2750   static void set_has_request_count(HasBits* has_bits) {
2751     (*has_bits)[0] |= 4u;
2752   }
set_has_commit_reason(HasBits * has_bits)2753   static void set_has_commit_reason(HasBits* has_bits) {
2754     (*has_bits)[0] |= 16u;
2755   }
set_has_session_duration_millis(HasBits * has_bits)2756   static void set_has_session_duration_millis(HasBits* has_bits) {
2757     (*has_bits)[0] |= 8u;
2758   }
set_has_autofill_service_uid(HasBits * has_bits)2759   static void set_has_autofill_service_uid(HasBits* has_bits) {
2760     (*has_bits)[0] |= 32u;
2761   }
set_has_save_info_count(HasBits * has_bits)2762   static void set_has_save_info_count(HasBits* has_bits) {
2763     (*has_bits)[0] |= 64u;
2764   }
set_has_save_data_types_count(HasBits * has_bits)2765   static void set_has_save_data_types_count(HasBits* has_bits) {
2766     (*has_bits)[0] |= 128u;
2767   }
set_has_last_fill_response_has_save_info(HasBits * has_bits)2768   static void set_has_last_fill_response_has_save_info(HasBits* has_bits) {
2769     (*has_bits)[0] |= 256u;
2770   }
2771 };
2772 
AutofillSessionCommitted(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)2773 AutofillSessionCommitted::AutofillSessionCommitted(::PROTOBUF_NAMESPACE_ID::Arena* arena,
2774                          bool is_message_owned)
2775   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
2776   SharedCtor(arena, is_message_owned);
2777   // @@protoc_insertion_point(arena_constructor:android.os.statsd.autofill.AutofillSessionCommitted)
2778 }
AutofillSessionCommitted(const AutofillSessionCommitted & from)2779 AutofillSessionCommitted::AutofillSessionCommitted(const AutofillSessionCommitted& from)
2780   : ::PROTOBUF_NAMESPACE_ID::Message() {
2781   AutofillSessionCommitted* const _this = this; (void)_this;
2782   new (&_impl_) Impl_{
2783       decltype(_impl_._has_bits_){from._impl_._has_bits_}
2784     , /*decltype(_impl_._cached_size_)*/{}
2785     , decltype(_impl_.session_id_){}
2786     , decltype(_impl_.component_package_uid_){}
2787     , decltype(_impl_.request_count_){}
2788     , decltype(_impl_.session_duration_millis_){}
2789     , decltype(_impl_.commit_reason_){}
2790     , decltype(_impl_.autofill_service_uid_){}
2791     , decltype(_impl_.save_info_count_){}
2792     , decltype(_impl_.save_data_types_count_){}
2793     , decltype(_impl_.last_fill_response_has_save_info_){}};
2794 
2795   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
2796   ::memcpy(&_impl_.session_id_, &from._impl_.session_id_,
2797     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.last_fill_response_has_save_info_) -
2798     reinterpret_cast<char*>(&_impl_.session_id_)) + sizeof(_impl_.last_fill_response_has_save_info_));
2799   // @@protoc_insertion_point(copy_constructor:android.os.statsd.autofill.AutofillSessionCommitted)
2800 }
2801 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)2802 inline void AutofillSessionCommitted::SharedCtor(
2803     ::_pb::Arena* arena, bool is_message_owned) {
2804   (void)arena;
2805   (void)is_message_owned;
2806   new (&_impl_) Impl_{
2807       decltype(_impl_._has_bits_){}
2808     , /*decltype(_impl_._cached_size_)*/{}
2809     , decltype(_impl_.session_id_){0}
2810     , decltype(_impl_.component_package_uid_){0}
2811     , decltype(_impl_.request_count_){::int64_t{0}}
2812     , decltype(_impl_.session_duration_millis_){::int64_t{0}}
2813     , decltype(_impl_.commit_reason_){0}
2814     , decltype(_impl_.autofill_service_uid_){0}
2815     , decltype(_impl_.save_info_count_){0}
2816     , decltype(_impl_.save_data_types_count_){0}
2817     , decltype(_impl_.last_fill_response_has_save_info_){false}
2818   };
2819 }
2820 
~AutofillSessionCommitted()2821 AutofillSessionCommitted::~AutofillSessionCommitted() {
2822   // @@protoc_insertion_point(destructor:android.os.statsd.autofill.AutofillSessionCommitted)
2823   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
2824   (void)arena;
2825     return;
2826   }
2827   SharedDtor();
2828 }
2829 
SharedDtor()2830 inline void AutofillSessionCommitted::SharedDtor() {
2831   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
2832 }
2833 
SetCachedSize(int size) const2834 void AutofillSessionCommitted::SetCachedSize(int size) const {
2835   _impl_._cached_size_.Set(size);
2836 }
2837 
Clear()2838 void AutofillSessionCommitted::Clear() {
2839 // @@protoc_insertion_point(message_clear_start:android.os.statsd.autofill.AutofillSessionCommitted)
2840   ::uint32_t cached_has_bits = 0;
2841   // Prevent compiler warnings about cached_has_bits being unused
2842   (void) cached_has_bits;
2843 
2844   cached_has_bits = _impl_._has_bits_[0];
2845   if (cached_has_bits & 0x000000ffu) {
2846     ::memset(&_impl_.session_id_, 0, static_cast<size_t>(
2847         reinterpret_cast<char*>(&_impl_.save_data_types_count_) -
2848         reinterpret_cast<char*>(&_impl_.session_id_)) + sizeof(_impl_.save_data_types_count_));
2849   }
2850   _impl_.last_fill_response_has_save_info_ = false;
2851   _impl_._has_bits_.Clear();
2852   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
2853 }
2854 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)2855 const char* AutofillSessionCommitted::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
2856 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
2857   _Internal::HasBits has_bits{};
2858   while (!ctx->Done(&ptr)) {
2859     ::uint32_t tag;
2860     ptr = ::_pbi::ReadTag(ptr, &tag);
2861     switch (tag >> 3) {
2862       // optional int32 session_id = 1;
2863       case 1:
2864         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
2865           _Internal::set_has_session_id(&has_bits);
2866           _impl_.session_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
2867           CHK_(ptr);
2868         } else {
2869           goto handle_unusual;
2870         }
2871         continue;
2872       // optional int32 component_package_uid = 2 [(.android.os.statsd.is_uid) = true];
2873       case 2:
2874         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
2875           _Internal::set_has_component_package_uid(&has_bits);
2876           _impl_.component_package_uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
2877           CHK_(ptr);
2878         } else {
2879           goto handle_unusual;
2880         }
2881         continue;
2882       // optional int64 request_count = 3;
2883       case 3:
2884         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
2885           _Internal::set_has_request_count(&has_bits);
2886           _impl_.request_count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
2887           CHK_(ptr);
2888         } else {
2889           goto handle_unusual;
2890         }
2891         continue;
2892       // optional .android.os.statsd.autofill.AutofillCommitReason commit_reason = 4;
2893       case 4:
2894         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) {
2895           ::uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
2896           CHK_(ptr);
2897           if (PROTOBUF_PREDICT_TRUE(::android::os::statsd::autofill::AutofillCommitReason_IsValid(val))) {
2898             _internal_set_commit_reason(static_cast<::android::os::statsd::autofill::AutofillCommitReason>(val));
2899           } else {
2900             ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(4, val, mutable_unknown_fields());
2901           }
2902         } else {
2903           goto handle_unusual;
2904         }
2905         continue;
2906       // optional int64 session_duration_millis = 5;
2907       case 5:
2908         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 40)) {
2909           _Internal::set_has_session_duration_millis(&has_bits);
2910           _impl_.session_duration_millis_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
2911           CHK_(ptr);
2912         } else {
2913           goto handle_unusual;
2914         }
2915         continue;
2916       // optional int32 autofill_service_uid = 6 [(.android.os.statsd.is_uid) = true];
2917       case 6:
2918         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 48)) {
2919           _Internal::set_has_autofill_service_uid(&has_bits);
2920           _impl_.autofill_service_uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
2921           CHK_(ptr);
2922         } else {
2923           goto handle_unusual;
2924         }
2925         continue;
2926       // optional int32 save_info_count = 7;
2927       case 7:
2928         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 56)) {
2929           _Internal::set_has_save_info_count(&has_bits);
2930           _impl_.save_info_count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
2931           CHK_(ptr);
2932         } else {
2933           goto handle_unusual;
2934         }
2935         continue;
2936       // optional int32 save_data_types_count = 8;
2937       case 8:
2938         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 64)) {
2939           _Internal::set_has_save_data_types_count(&has_bits);
2940           _impl_.save_data_types_count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
2941           CHK_(ptr);
2942         } else {
2943           goto handle_unusual;
2944         }
2945         continue;
2946       // optional bool last_fill_response_has_save_info = 9;
2947       case 9:
2948         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 72)) {
2949           _Internal::set_has_last_fill_response_has_save_info(&has_bits);
2950           _impl_.last_fill_response_has_save_info_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
2951           CHK_(ptr);
2952         } else {
2953           goto handle_unusual;
2954         }
2955         continue;
2956       default:
2957         goto handle_unusual;
2958     }  // switch
2959   handle_unusual:
2960     if ((tag == 0) || ((tag & 7) == 4)) {
2961       CHK_(ptr);
2962       ctx->SetLastTag(tag);
2963       goto message_done;
2964     }
2965     ptr = UnknownFieldParse(
2966         tag,
2967         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
2968         ptr, ctx);
2969     CHK_(ptr != nullptr);
2970   }  // while
2971 message_done:
2972   _impl_._has_bits_.Or(has_bits);
2973   return ptr;
2974 failure:
2975   ptr = nullptr;
2976   goto message_done;
2977 #undef CHK_
2978 }
2979 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const2980 ::uint8_t* AutofillSessionCommitted::_InternalSerialize(
2981     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
2982   // @@protoc_insertion_point(serialize_to_array_start:android.os.statsd.autofill.AutofillSessionCommitted)
2983   ::uint32_t cached_has_bits = 0;
2984   (void) cached_has_bits;
2985 
2986   cached_has_bits = _impl_._has_bits_[0];
2987   // optional int32 session_id = 1;
2988   if (cached_has_bits & 0x00000001u) {
2989     target = stream->EnsureSpace(target);
2990     target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_session_id(), target);
2991   }
2992 
2993   // optional int32 component_package_uid = 2 [(.android.os.statsd.is_uid) = true];
2994   if (cached_has_bits & 0x00000002u) {
2995     target = stream->EnsureSpace(target);
2996     target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_component_package_uid(), target);
2997   }
2998 
2999   // optional int64 request_count = 3;
3000   if (cached_has_bits & 0x00000004u) {
3001     target = stream->EnsureSpace(target);
3002     target = ::_pbi::WireFormatLite::WriteInt64ToArray(3, this->_internal_request_count(), target);
3003   }
3004 
3005   // optional .android.os.statsd.autofill.AutofillCommitReason commit_reason = 4;
3006   if (cached_has_bits & 0x00000010u) {
3007     target = stream->EnsureSpace(target);
3008     target = ::_pbi::WireFormatLite::WriteEnumToArray(
3009       4, this->_internal_commit_reason(), target);
3010   }
3011 
3012   // optional int64 session_duration_millis = 5;
3013   if (cached_has_bits & 0x00000008u) {
3014     target = stream->EnsureSpace(target);
3015     target = ::_pbi::WireFormatLite::WriteInt64ToArray(5, this->_internal_session_duration_millis(), target);
3016   }
3017 
3018   // optional int32 autofill_service_uid = 6 [(.android.os.statsd.is_uid) = true];
3019   if (cached_has_bits & 0x00000020u) {
3020     target = stream->EnsureSpace(target);
3021     target = ::_pbi::WireFormatLite::WriteInt32ToArray(6, this->_internal_autofill_service_uid(), target);
3022   }
3023 
3024   // optional int32 save_info_count = 7;
3025   if (cached_has_bits & 0x00000040u) {
3026     target = stream->EnsureSpace(target);
3027     target = ::_pbi::WireFormatLite::WriteInt32ToArray(7, this->_internal_save_info_count(), target);
3028   }
3029 
3030   // optional int32 save_data_types_count = 8;
3031   if (cached_has_bits & 0x00000080u) {
3032     target = stream->EnsureSpace(target);
3033     target = ::_pbi::WireFormatLite::WriteInt32ToArray(8, this->_internal_save_data_types_count(), target);
3034   }
3035 
3036   // optional bool last_fill_response_has_save_info = 9;
3037   if (cached_has_bits & 0x00000100u) {
3038     target = stream->EnsureSpace(target);
3039     target = ::_pbi::WireFormatLite::WriteBoolToArray(9, this->_internal_last_fill_response_has_save_info(), target);
3040   }
3041 
3042   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
3043     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
3044         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
3045   }
3046   // @@protoc_insertion_point(serialize_to_array_end:android.os.statsd.autofill.AutofillSessionCommitted)
3047   return target;
3048 }
3049 
ByteSizeLong() const3050 size_t AutofillSessionCommitted::ByteSizeLong() const {
3051 // @@protoc_insertion_point(message_byte_size_start:android.os.statsd.autofill.AutofillSessionCommitted)
3052   size_t total_size = 0;
3053 
3054   ::uint32_t cached_has_bits = 0;
3055   // Prevent compiler warnings about cached_has_bits being unused
3056   (void) cached_has_bits;
3057 
3058   cached_has_bits = _impl_._has_bits_[0];
3059   if (cached_has_bits & 0x000000ffu) {
3060     // optional int32 session_id = 1;
3061     if (cached_has_bits & 0x00000001u) {
3062       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_session_id());
3063     }
3064 
3065     // optional int32 component_package_uid = 2 [(.android.os.statsd.is_uid) = true];
3066     if (cached_has_bits & 0x00000002u) {
3067       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_component_package_uid());
3068     }
3069 
3070     // optional int64 request_count = 3;
3071     if (cached_has_bits & 0x00000004u) {
3072       total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_request_count());
3073     }
3074 
3075     // optional int64 session_duration_millis = 5;
3076     if (cached_has_bits & 0x00000008u) {
3077       total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_session_duration_millis());
3078     }
3079 
3080     // optional .android.os.statsd.autofill.AutofillCommitReason commit_reason = 4;
3081     if (cached_has_bits & 0x00000010u) {
3082       total_size += 1 +
3083         ::_pbi::WireFormatLite::EnumSize(this->_internal_commit_reason());
3084     }
3085 
3086     // optional int32 autofill_service_uid = 6 [(.android.os.statsd.is_uid) = true];
3087     if (cached_has_bits & 0x00000020u) {
3088       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_autofill_service_uid());
3089     }
3090 
3091     // optional int32 save_info_count = 7;
3092     if (cached_has_bits & 0x00000040u) {
3093       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_save_info_count());
3094     }
3095 
3096     // optional int32 save_data_types_count = 8;
3097     if (cached_has_bits & 0x00000080u) {
3098       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_save_data_types_count());
3099     }
3100 
3101   }
3102   // optional bool last_fill_response_has_save_info = 9;
3103   if (cached_has_bits & 0x00000100u) {
3104     total_size += 1 + 1;
3105   }
3106 
3107   return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
3108 }
3109 
3110 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AutofillSessionCommitted::_class_data_ = {
3111     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
3112     AutofillSessionCommitted::MergeImpl
3113 };
GetClassData() const3114 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AutofillSessionCommitted::GetClassData() const { return &_class_data_; }
3115 
3116 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)3117 void AutofillSessionCommitted::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
3118   auto* const _this = static_cast<AutofillSessionCommitted*>(&to_msg);
3119   auto& from = static_cast<const AutofillSessionCommitted&>(from_msg);
3120   // @@protoc_insertion_point(class_specific_merge_from_start:android.os.statsd.autofill.AutofillSessionCommitted)
3121   GOOGLE_DCHECK_NE(&from, _this);
3122   ::uint32_t cached_has_bits = 0;
3123   (void) cached_has_bits;
3124 
3125   cached_has_bits = from._impl_._has_bits_[0];
3126   if (cached_has_bits & 0x000000ffu) {
3127     if (cached_has_bits & 0x00000001u) {
3128       _this->_impl_.session_id_ = from._impl_.session_id_;
3129     }
3130     if (cached_has_bits & 0x00000002u) {
3131       _this->_impl_.component_package_uid_ = from._impl_.component_package_uid_;
3132     }
3133     if (cached_has_bits & 0x00000004u) {
3134       _this->_impl_.request_count_ = from._impl_.request_count_;
3135     }
3136     if (cached_has_bits & 0x00000008u) {
3137       _this->_impl_.session_duration_millis_ = from._impl_.session_duration_millis_;
3138     }
3139     if (cached_has_bits & 0x00000010u) {
3140       _this->_impl_.commit_reason_ = from._impl_.commit_reason_;
3141     }
3142     if (cached_has_bits & 0x00000020u) {
3143       _this->_impl_.autofill_service_uid_ = from._impl_.autofill_service_uid_;
3144     }
3145     if (cached_has_bits & 0x00000040u) {
3146       _this->_impl_.save_info_count_ = from._impl_.save_info_count_;
3147     }
3148     if (cached_has_bits & 0x00000080u) {
3149       _this->_impl_.save_data_types_count_ = from._impl_.save_data_types_count_;
3150     }
3151     _this->_impl_._has_bits_[0] |= cached_has_bits;
3152   }
3153   if (cached_has_bits & 0x00000100u) {
3154     _this->_internal_set_last_fill_response_has_save_info(from._internal_last_fill_response_has_save_info());
3155   }
3156   _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
3157 }
3158 
CopyFrom(const AutofillSessionCommitted & from)3159 void AutofillSessionCommitted::CopyFrom(const AutofillSessionCommitted& from) {
3160 // @@protoc_insertion_point(class_specific_copy_from_start:android.os.statsd.autofill.AutofillSessionCommitted)
3161   if (&from == this) return;
3162   Clear();
3163   MergeFrom(from);
3164 }
3165 
IsInitialized() const3166 bool AutofillSessionCommitted::IsInitialized() const {
3167   return true;
3168 }
3169 
InternalSwap(AutofillSessionCommitted * other)3170 void AutofillSessionCommitted::InternalSwap(AutofillSessionCommitted* other) {
3171   using std::swap;
3172   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
3173   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
3174   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
3175       PROTOBUF_FIELD_OFFSET(AutofillSessionCommitted, _impl_.last_fill_response_has_save_info_)
3176       + sizeof(AutofillSessionCommitted::_impl_.last_fill_response_has_save_info_)  // NOLINT
3177       - PROTOBUF_FIELD_OFFSET(AutofillSessionCommitted, _impl_.session_id_)>(
3178           reinterpret_cast<char*>(&_impl_.session_id_),
3179           reinterpret_cast<char*>(&other->_impl_.session_id_));
3180 }
3181 
GetMetadata() const3182 ::PROTOBUF_NAMESPACE_ID::Metadata AutofillSessionCommitted::GetMetadata() const {
3183   return ::_pbi::AssignDescriptors(
3184       &descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fautofill_2fautofill_5fextension_5fatoms_2eproto_getter, &descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fautofill_2fautofill_5fextension_5fatoms_2eproto_once,
3185       file_level_metadata_frameworks_2fproto_5flogging_2fstats_2fatoms_2fautofill_2fautofill_5fextension_5fatoms_2eproto[4]);
3186 }
3187 
3188 // ===================================================================
3189 
3190 class AutofillFieldClassificationEventReported::_Internal {
3191  public:
3192   using HasBits = decltype(std::declval<AutofillFieldClassificationEventReported>()._impl_._has_bits_);
set_has_latency_millis(HasBits * has_bits)3193   static void set_has_latency_millis(HasBits* has_bits) {
3194     (*has_bits)[0] |= 1u;
3195   }
set_has_count_classifications(HasBits * has_bits)3196   static void set_has_count_classifications(HasBits* has_bits) {
3197     (*has_bits)[0] |= 2u;
3198   }
set_has_session_id(HasBits * has_bits)3199   static void set_has_session_id(HasBits* has_bits) {
3200     (*has_bits)[0] |= 4u;
3201   }
set_has_request_id(HasBits * has_bits)3202   static void set_has_request_id(HasBits* has_bits) {
3203     (*has_bits)[0] |= 8u;
3204   }
set_has_next_fill_request_id(HasBits * has_bits)3205   static void set_has_next_fill_request_id(HasBits* has_bits) {
3206     (*has_bits)[0] |= 16u;
3207   }
set_has_app_package_uid(HasBits * has_bits)3208   static void set_has_app_package_uid(HasBits* has_bits) {
3209     (*has_bits)[0] |= 32u;
3210   }
set_has_status(HasBits * has_bits)3211   static void set_has_status(HasBits* has_bits) {
3212     (*has_bits)[0] |= 64u;
3213   }
set_has_is_session_gc(HasBits * has_bits)3214   static void set_has_is_session_gc(HasBits* has_bits) {
3215     (*has_bits)[0] |= 128u;
3216   }
3217 };
3218 
AutofillFieldClassificationEventReported(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)3219 AutofillFieldClassificationEventReported::AutofillFieldClassificationEventReported(::PROTOBUF_NAMESPACE_ID::Arena* arena,
3220                          bool is_message_owned)
3221   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
3222   SharedCtor(arena, is_message_owned);
3223   // @@protoc_insertion_point(arena_constructor:android.os.statsd.autofill.AutofillFieldClassificationEventReported)
3224 }
AutofillFieldClassificationEventReported(const AutofillFieldClassificationEventReported & from)3225 AutofillFieldClassificationEventReported::AutofillFieldClassificationEventReported(const AutofillFieldClassificationEventReported& from)
3226   : ::PROTOBUF_NAMESPACE_ID::Message() {
3227   AutofillFieldClassificationEventReported* const _this = this; (void)_this;
3228   new (&_impl_) Impl_{
3229       decltype(_impl_._has_bits_){from._impl_._has_bits_}
3230     , /*decltype(_impl_._cached_size_)*/{}
3231     , decltype(_impl_.latency_millis_){}
3232     , decltype(_impl_.count_classifications_){}
3233     , decltype(_impl_.session_id_){}
3234     , decltype(_impl_.request_id_){}
3235     , decltype(_impl_.next_fill_request_id_){}
3236     , decltype(_impl_.app_package_uid_){}
3237     , decltype(_impl_.status_){}
3238     , decltype(_impl_.is_session_gc_){}};
3239 
3240   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
3241   ::memcpy(&_impl_.latency_millis_, &from._impl_.latency_millis_,
3242     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.is_session_gc_) -
3243     reinterpret_cast<char*>(&_impl_.latency_millis_)) + sizeof(_impl_.is_session_gc_));
3244   // @@protoc_insertion_point(copy_constructor:android.os.statsd.autofill.AutofillFieldClassificationEventReported)
3245 }
3246 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)3247 inline void AutofillFieldClassificationEventReported::SharedCtor(
3248     ::_pb::Arena* arena, bool is_message_owned) {
3249   (void)arena;
3250   (void)is_message_owned;
3251   new (&_impl_) Impl_{
3252       decltype(_impl_._has_bits_){}
3253     , /*decltype(_impl_._cached_size_)*/{}
3254     , decltype(_impl_.latency_millis_){::int64_t{0}}
3255     , decltype(_impl_.count_classifications_){0}
3256     , decltype(_impl_.session_id_){0}
3257     , decltype(_impl_.request_id_){0}
3258     , decltype(_impl_.next_fill_request_id_){0}
3259     , decltype(_impl_.app_package_uid_){0}
3260     , decltype(_impl_.status_){0}
3261     , decltype(_impl_.is_session_gc_){false}
3262   };
3263 }
3264 
~AutofillFieldClassificationEventReported()3265 AutofillFieldClassificationEventReported::~AutofillFieldClassificationEventReported() {
3266   // @@protoc_insertion_point(destructor:android.os.statsd.autofill.AutofillFieldClassificationEventReported)
3267   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
3268   (void)arena;
3269     return;
3270   }
3271   SharedDtor();
3272 }
3273 
SharedDtor()3274 inline void AutofillFieldClassificationEventReported::SharedDtor() {
3275   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
3276 }
3277 
SetCachedSize(int size) const3278 void AutofillFieldClassificationEventReported::SetCachedSize(int size) const {
3279   _impl_._cached_size_.Set(size);
3280 }
3281 
Clear()3282 void AutofillFieldClassificationEventReported::Clear() {
3283 // @@protoc_insertion_point(message_clear_start:android.os.statsd.autofill.AutofillFieldClassificationEventReported)
3284   ::uint32_t cached_has_bits = 0;
3285   // Prevent compiler warnings about cached_has_bits being unused
3286   (void) cached_has_bits;
3287 
3288   cached_has_bits = _impl_._has_bits_[0];
3289   if (cached_has_bits & 0x000000ffu) {
3290     ::memset(&_impl_.latency_millis_, 0, static_cast<size_t>(
3291         reinterpret_cast<char*>(&_impl_.is_session_gc_) -
3292         reinterpret_cast<char*>(&_impl_.latency_millis_)) + sizeof(_impl_.is_session_gc_));
3293   }
3294   _impl_._has_bits_.Clear();
3295   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
3296 }
3297 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)3298 const char* AutofillFieldClassificationEventReported::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
3299 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
3300   _Internal::HasBits has_bits{};
3301   while (!ctx->Done(&ptr)) {
3302     ::uint32_t tag;
3303     ptr = ::_pbi::ReadTag(ptr, &tag);
3304     switch (tag >> 3) {
3305       // optional int64 latency_millis = 1;
3306       case 1:
3307         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
3308           _Internal::set_has_latency_millis(&has_bits);
3309           _impl_.latency_millis_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
3310           CHK_(ptr);
3311         } else {
3312           goto handle_unusual;
3313         }
3314         continue;
3315       // optional int32 count_classifications = 2;
3316       case 2:
3317         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
3318           _Internal::set_has_count_classifications(&has_bits);
3319           _impl_.count_classifications_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
3320           CHK_(ptr);
3321         } else {
3322           goto handle_unusual;
3323         }
3324         continue;
3325       // optional int32 session_id = 3;
3326       case 3:
3327         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
3328           _Internal::set_has_session_id(&has_bits);
3329           _impl_.session_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
3330           CHK_(ptr);
3331         } else {
3332           goto handle_unusual;
3333         }
3334         continue;
3335       // optional int32 request_id = 4;
3336       case 4:
3337         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) {
3338           _Internal::set_has_request_id(&has_bits);
3339           _impl_.request_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
3340           CHK_(ptr);
3341         } else {
3342           goto handle_unusual;
3343         }
3344         continue;
3345       // optional int32 next_fill_request_id = 5;
3346       case 5:
3347         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 40)) {
3348           _Internal::set_has_next_fill_request_id(&has_bits);
3349           _impl_.next_fill_request_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
3350           CHK_(ptr);
3351         } else {
3352           goto handle_unusual;
3353         }
3354         continue;
3355       // optional int32 app_package_uid = 6 [(.android.os.statsd.is_uid) = true];
3356       case 6:
3357         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 48)) {
3358           _Internal::set_has_app_package_uid(&has_bits);
3359           _impl_.app_package_uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
3360           CHK_(ptr);
3361         } else {
3362           goto handle_unusual;
3363         }
3364         continue;
3365       // optional .android.os.statsd.autofill.FieldClassificationRequestStatus status = 7;
3366       case 7:
3367         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 56)) {
3368           ::uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
3369           CHK_(ptr);
3370           if (PROTOBUF_PREDICT_TRUE(::android::os::statsd::autofill::FieldClassificationRequestStatus_IsValid(val))) {
3371             _internal_set_status(static_cast<::android::os::statsd::autofill::FieldClassificationRequestStatus>(val));
3372           } else {
3373             ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(7, val, mutable_unknown_fields());
3374           }
3375         } else {
3376           goto handle_unusual;
3377         }
3378         continue;
3379       // optional bool is_session_gc = 8;
3380       case 8:
3381         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 64)) {
3382           _Internal::set_has_is_session_gc(&has_bits);
3383           _impl_.is_session_gc_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
3384           CHK_(ptr);
3385         } else {
3386           goto handle_unusual;
3387         }
3388         continue;
3389       default:
3390         goto handle_unusual;
3391     }  // switch
3392   handle_unusual:
3393     if ((tag == 0) || ((tag & 7) == 4)) {
3394       CHK_(ptr);
3395       ctx->SetLastTag(tag);
3396       goto message_done;
3397     }
3398     ptr = UnknownFieldParse(
3399         tag,
3400         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
3401         ptr, ctx);
3402     CHK_(ptr != nullptr);
3403   }  // while
3404 message_done:
3405   _impl_._has_bits_.Or(has_bits);
3406   return ptr;
3407 failure:
3408   ptr = nullptr;
3409   goto message_done;
3410 #undef CHK_
3411 }
3412 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const3413 ::uint8_t* AutofillFieldClassificationEventReported::_InternalSerialize(
3414     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
3415   // @@protoc_insertion_point(serialize_to_array_start:android.os.statsd.autofill.AutofillFieldClassificationEventReported)
3416   ::uint32_t cached_has_bits = 0;
3417   (void) cached_has_bits;
3418 
3419   cached_has_bits = _impl_._has_bits_[0];
3420   // optional int64 latency_millis = 1;
3421   if (cached_has_bits & 0x00000001u) {
3422     target = stream->EnsureSpace(target);
3423     target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_latency_millis(), target);
3424   }
3425 
3426   // optional int32 count_classifications = 2;
3427   if (cached_has_bits & 0x00000002u) {
3428     target = stream->EnsureSpace(target);
3429     target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_count_classifications(), target);
3430   }
3431 
3432   // optional int32 session_id = 3;
3433   if (cached_has_bits & 0x00000004u) {
3434     target = stream->EnsureSpace(target);
3435     target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_session_id(), target);
3436   }
3437 
3438   // optional int32 request_id = 4;
3439   if (cached_has_bits & 0x00000008u) {
3440     target = stream->EnsureSpace(target);
3441     target = ::_pbi::WireFormatLite::WriteInt32ToArray(4, this->_internal_request_id(), target);
3442   }
3443 
3444   // optional int32 next_fill_request_id = 5;
3445   if (cached_has_bits & 0x00000010u) {
3446     target = stream->EnsureSpace(target);
3447     target = ::_pbi::WireFormatLite::WriteInt32ToArray(5, this->_internal_next_fill_request_id(), target);
3448   }
3449 
3450   // optional int32 app_package_uid = 6 [(.android.os.statsd.is_uid) = true];
3451   if (cached_has_bits & 0x00000020u) {
3452     target = stream->EnsureSpace(target);
3453     target = ::_pbi::WireFormatLite::WriteInt32ToArray(6, this->_internal_app_package_uid(), target);
3454   }
3455 
3456   // optional .android.os.statsd.autofill.FieldClassificationRequestStatus status = 7;
3457   if (cached_has_bits & 0x00000040u) {
3458     target = stream->EnsureSpace(target);
3459     target = ::_pbi::WireFormatLite::WriteEnumToArray(
3460       7, this->_internal_status(), target);
3461   }
3462 
3463   // optional bool is_session_gc = 8;
3464   if (cached_has_bits & 0x00000080u) {
3465     target = stream->EnsureSpace(target);
3466     target = ::_pbi::WireFormatLite::WriteBoolToArray(8, this->_internal_is_session_gc(), target);
3467   }
3468 
3469   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
3470     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
3471         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
3472   }
3473   // @@protoc_insertion_point(serialize_to_array_end:android.os.statsd.autofill.AutofillFieldClassificationEventReported)
3474   return target;
3475 }
3476 
ByteSizeLong() const3477 size_t AutofillFieldClassificationEventReported::ByteSizeLong() const {
3478 // @@protoc_insertion_point(message_byte_size_start:android.os.statsd.autofill.AutofillFieldClassificationEventReported)
3479   size_t total_size = 0;
3480 
3481   ::uint32_t cached_has_bits = 0;
3482   // Prevent compiler warnings about cached_has_bits being unused
3483   (void) cached_has_bits;
3484 
3485   cached_has_bits = _impl_._has_bits_[0];
3486   if (cached_has_bits & 0x000000ffu) {
3487     // optional int64 latency_millis = 1;
3488     if (cached_has_bits & 0x00000001u) {
3489       total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_latency_millis());
3490     }
3491 
3492     // optional int32 count_classifications = 2;
3493     if (cached_has_bits & 0x00000002u) {
3494       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_count_classifications());
3495     }
3496 
3497     // optional int32 session_id = 3;
3498     if (cached_has_bits & 0x00000004u) {
3499       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_session_id());
3500     }
3501 
3502     // optional int32 request_id = 4;
3503     if (cached_has_bits & 0x00000008u) {
3504       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_request_id());
3505     }
3506 
3507     // optional int32 next_fill_request_id = 5;
3508     if (cached_has_bits & 0x00000010u) {
3509       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_next_fill_request_id());
3510     }
3511 
3512     // optional int32 app_package_uid = 6 [(.android.os.statsd.is_uid) = true];
3513     if (cached_has_bits & 0x00000020u) {
3514       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_app_package_uid());
3515     }
3516 
3517     // optional .android.os.statsd.autofill.FieldClassificationRequestStatus status = 7;
3518     if (cached_has_bits & 0x00000040u) {
3519       total_size += 1 +
3520         ::_pbi::WireFormatLite::EnumSize(this->_internal_status());
3521     }
3522 
3523     // optional bool is_session_gc = 8;
3524     if (cached_has_bits & 0x00000080u) {
3525       total_size += 1 + 1;
3526     }
3527 
3528   }
3529   return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
3530 }
3531 
3532 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AutofillFieldClassificationEventReported::_class_data_ = {
3533     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
3534     AutofillFieldClassificationEventReported::MergeImpl
3535 };
GetClassData() const3536 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AutofillFieldClassificationEventReported::GetClassData() const { return &_class_data_; }
3537 
3538 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)3539 void AutofillFieldClassificationEventReported::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
3540   auto* const _this = static_cast<AutofillFieldClassificationEventReported*>(&to_msg);
3541   auto& from = static_cast<const AutofillFieldClassificationEventReported&>(from_msg);
3542   // @@protoc_insertion_point(class_specific_merge_from_start:android.os.statsd.autofill.AutofillFieldClassificationEventReported)
3543   GOOGLE_DCHECK_NE(&from, _this);
3544   ::uint32_t cached_has_bits = 0;
3545   (void) cached_has_bits;
3546 
3547   cached_has_bits = from._impl_._has_bits_[0];
3548   if (cached_has_bits & 0x000000ffu) {
3549     if (cached_has_bits & 0x00000001u) {
3550       _this->_impl_.latency_millis_ = from._impl_.latency_millis_;
3551     }
3552     if (cached_has_bits & 0x00000002u) {
3553       _this->_impl_.count_classifications_ = from._impl_.count_classifications_;
3554     }
3555     if (cached_has_bits & 0x00000004u) {
3556       _this->_impl_.session_id_ = from._impl_.session_id_;
3557     }
3558     if (cached_has_bits & 0x00000008u) {
3559       _this->_impl_.request_id_ = from._impl_.request_id_;
3560     }
3561     if (cached_has_bits & 0x00000010u) {
3562       _this->_impl_.next_fill_request_id_ = from._impl_.next_fill_request_id_;
3563     }
3564     if (cached_has_bits & 0x00000020u) {
3565       _this->_impl_.app_package_uid_ = from._impl_.app_package_uid_;
3566     }
3567     if (cached_has_bits & 0x00000040u) {
3568       _this->_impl_.status_ = from._impl_.status_;
3569     }
3570     if (cached_has_bits & 0x00000080u) {
3571       _this->_impl_.is_session_gc_ = from._impl_.is_session_gc_;
3572     }
3573     _this->_impl_._has_bits_[0] |= cached_has_bits;
3574   }
3575   _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
3576 }
3577 
CopyFrom(const AutofillFieldClassificationEventReported & from)3578 void AutofillFieldClassificationEventReported::CopyFrom(const AutofillFieldClassificationEventReported& from) {
3579 // @@protoc_insertion_point(class_specific_copy_from_start:android.os.statsd.autofill.AutofillFieldClassificationEventReported)
3580   if (&from == this) return;
3581   Clear();
3582   MergeFrom(from);
3583 }
3584 
IsInitialized() const3585 bool AutofillFieldClassificationEventReported::IsInitialized() const {
3586   return true;
3587 }
3588 
InternalSwap(AutofillFieldClassificationEventReported * other)3589 void AutofillFieldClassificationEventReported::InternalSwap(AutofillFieldClassificationEventReported* other) {
3590   using std::swap;
3591   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
3592   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
3593   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
3594       PROTOBUF_FIELD_OFFSET(AutofillFieldClassificationEventReported, _impl_.is_session_gc_)
3595       + sizeof(AutofillFieldClassificationEventReported::_impl_.is_session_gc_)  // NOLINT
3596       - PROTOBUF_FIELD_OFFSET(AutofillFieldClassificationEventReported, _impl_.latency_millis_)>(
3597           reinterpret_cast<char*>(&_impl_.latency_millis_),
3598           reinterpret_cast<char*>(&other->_impl_.latency_millis_));
3599 }
3600 
GetMetadata() const3601 ::PROTOBUF_NAMESPACE_ID::Metadata AutofillFieldClassificationEventReported::GetMetadata() const {
3602   return ::_pbi::AssignDescriptors(
3603       &descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fautofill_2fautofill_5fextension_5fatoms_2eproto_getter, &descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fautofill_2fautofill_5fextension_5fatoms_2eproto_once,
3604       file_level_metadata_frameworks_2fproto_5flogging_2fstats_2fatoms_2fautofill_2fautofill_5fextension_5fatoms_2eproto[5]);
3605 }
3606 PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::android::os::statsd::Atom,
3607     ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::android::os::statsd::autofill::AutofillUiEventReported >, 11, false>
3608   autofill_ui_event_reported(kAutofillUiEventReportedFieldNumber, ::android::os::statsd::autofill::AutofillUiEventReported::default_instance(), nullptr);
3609 PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::android::os::statsd::Atom,
3610     ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::android::os::statsd::autofill::AutofillFillRequestReported >, 11, false>
3611   autofill_fill_request_reported(kAutofillFillRequestReportedFieldNumber, ::android::os::statsd::autofill::AutofillFillRequestReported::default_instance(), nullptr);
3612 PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::android::os::statsd::Atom,
3613     ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::android::os::statsd::autofill::AutofillFillResponseReported >, 11, false>
3614   autofill_fill_response_reported(kAutofillFillResponseReportedFieldNumber, ::android::os::statsd::autofill::AutofillFillResponseReported::default_instance(), nullptr);
3615 PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::android::os::statsd::Atom,
3616     ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::android::os::statsd::autofill::AutofillSaveEventReported >, 11, false>
3617   autofill_save_event_reported(kAutofillSaveEventReportedFieldNumber, ::android::os::statsd::autofill::AutofillSaveEventReported::default_instance(), nullptr);
3618 PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::android::os::statsd::Atom,
3619     ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::android::os::statsd::autofill::AutofillSessionCommitted >, 11, false>
3620   autofill_session_committed(kAutofillSessionCommittedFieldNumber, ::android::os::statsd::autofill::AutofillSessionCommitted::default_instance(), nullptr);
3621 PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::android::os::statsd::Atom,
3622     ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::android::os::statsd::autofill::AutofillFieldClassificationEventReported >, 11, false>
3623   autofill_field_classification_event_reported(kAutofillFieldClassificationEventReportedFieldNumber, ::android::os::statsd::autofill::AutofillFieldClassificationEventReported::default_instance(), nullptr);
3624 
3625 // @@protoc_insertion_point(namespace_scope)
3626 }  // namespace autofill
3627 }  // namespace statsd
3628 }  // namespace os
3629 }  // namespace android
3630 PROTOBUF_NAMESPACE_OPEN
3631 template<> PROTOBUF_NOINLINE ::android::os::statsd::autofill::AutofillUiEventReported*
CreateMaybeMessage(Arena * arena)3632 Arena::CreateMaybeMessage< ::android::os::statsd::autofill::AutofillUiEventReported >(Arena* arena) {
3633   return Arena::CreateMessageInternal< ::android::os::statsd::autofill::AutofillUiEventReported >(arena);
3634 }
3635 template<> PROTOBUF_NOINLINE ::android::os::statsd::autofill::AutofillFillRequestReported*
CreateMaybeMessage(Arena * arena)3636 Arena::CreateMaybeMessage< ::android::os::statsd::autofill::AutofillFillRequestReported >(Arena* arena) {
3637   return Arena::CreateMessageInternal< ::android::os::statsd::autofill::AutofillFillRequestReported >(arena);
3638 }
3639 template<> PROTOBUF_NOINLINE ::android::os::statsd::autofill::AutofillFillResponseReported*
CreateMaybeMessage(Arena * arena)3640 Arena::CreateMaybeMessage< ::android::os::statsd::autofill::AutofillFillResponseReported >(Arena* arena) {
3641   return Arena::CreateMessageInternal< ::android::os::statsd::autofill::AutofillFillResponseReported >(arena);
3642 }
3643 template<> PROTOBUF_NOINLINE ::android::os::statsd::autofill::AutofillSaveEventReported*
CreateMaybeMessage(Arena * arena)3644 Arena::CreateMaybeMessage< ::android::os::statsd::autofill::AutofillSaveEventReported >(Arena* arena) {
3645   return Arena::CreateMessageInternal< ::android::os::statsd::autofill::AutofillSaveEventReported >(arena);
3646 }
3647 template<> PROTOBUF_NOINLINE ::android::os::statsd::autofill::AutofillSessionCommitted*
CreateMaybeMessage(Arena * arena)3648 Arena::CreateMaybeMessage< ::android::os::statsd::autofill::AutofillSessionCommitted >(Arena* arena) {
3649   return Arena::CreateMessageInternal< ::android::os::statsd::autofill::AutofillSessionCommitted >(arena);
3650 }
3651 template<> PROTOBUF_NOINLINE ::android::os::statsd::autofill::AutofillFieldClassificationEventReported*
CreateMaybeMessage(Arena * arena)3652 Arena::CreateMaybeMessage< ::android::os::statsd::autofill::AutofillFieldClassificationEventReported >(Arena* arena) {
3653   return Arena::CreateMessageInternal< ::android::os::statsd::autofill::AutofillFieldClassificationEventReported >(arena);
3654 }
3655 PROTOBUF_NAMESPACE_CLOSE
3656 
3657 // @@protoc_insertion_point(global_scope)
3658 #include <google/protobuf/port_undef.inc>
3659