1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: system_profile.proto
3
4 #include "system_profile.pb.h"
5
6 #include <algorithm>
7
8 #include <google/protobuf/io/coded_stream.h>
9 #include <google/protobuf/extension_set.h>
10 #include <google/protobuf/wire_format_lite.h>
11 #include <google/protobuf/io/zero_copy_stream_impl_lite.h>
12 // @@protoc_insertion_point(includes)
13 #include <google/protobuf/port_def.inc>
14
15 PROTOBUF_PRAGMA_INIT_SEG
16
17 namespace _pb = ::PROTOBUF_NAMESPACE_ID;
18 namespace _pbi = _pb::internal;
19
20 namespace metrics {
SystemProfileProto_ClonedInstallInfo(::_pbi::ConstantInitialized)21 PROTOBUF_CONSTEXPR SystemProfileProto_ClonedInstallInfo::SystemProfileProto_ClonedInstallInfo(
22 ::_pbi::ConstantInitialized): _impl_{
23 /*decltype(_impl_._has_bits_)*/{}
24 , /*decltype(_impl_._cached_size_)*/{}
25 , /*decltype(_impl_.last_timestamp_)*/int64_t{0}
26 , /*decltype(_impl_.cloned_from_client_id_)*/uint64_t{0u}
27 , /*decltype(_impl_.first_timestamp_)*/int64_t{0}
28 , /*decltype(_impl_.count_)*/0} {}
29 struct SystemProfileProto_ClonedInstallInfoDefaultTypeInternal {
SystemProfileProto_ClonedInstallInfoDefaultTypeInternalmetrics::SystemProfileProto_ClonedInstallInfoDefaultTypeInternal30 PROTOBUF_CONSTEXPR SystemProfileProto_ClonedInstallInfoDefaultTypeInternal()
31 : _instance(::_pbi::ConstantInitialized{}) {}
~SystemProfileProto_ClonedInstallInfoDefaultTypeInternalmetrics::SystemProfileProto_ClonedInstallInfoDefaultTypeInternal32 ~SystemProfileProto_ClonedInstallInfoDefaultTypeInternal() {}
33 union {
34 SystemProfileProto_ClonedInstallInfo _instance;
35 };
36 };
37 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SystemProfileProto_ClonedInstallInfoDefaultTypeInternal _SystemProfileProto_ClonedInstallInfo_default_instance_;
SystemProfileProto_OS_Arc(::_pbi::ConstantInitialized)38 PROTOBUF_CONSTEXPR SystemProfileProto_OS_Arc::SystemProfileProto_OS_Arc(
39 ::_pbi::ConstantInitialized): _impl_{
40 /*decltype(_impl_._has_bits_)*/{}
41 , /*decltype(_impl_._cached_size_)*/{}
42 , /*decltype(_impl_.release_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}} {}
43 struct SystemProfileProto_OS_ArcDefaultTypeInternal {
SystemProfileProto_OS_ArcDefaultTypeInternalmetrics::SystemProfileProto_OS_ArcDefaultTypeInternal44 PROTOBUF_CONSTEXPR SystemProfileProto_OS_ArcDefaultTypeInternal()
45 : _instance(::_pbi::ConstantInitialized{}) {}
~SystemProfileProto_OS_ArcDefaultTypeInternalmetrics::SystemProfileProto_OS_ArcDefaultTypeInternal46 ~SystemProfileProto_OS_ArcDefaultTypeInternal() {}
47 union {
48 SystemProfileProto_OS_Arc _instance;
49 };
50 };
51 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SystemProfileProto_OS_ArcDefaultTypeInternal _SystemProfileProto_OS_Arc_default_instance_;
SystemProfileProto_OS(::_pbi::ConstantInitialized)52 PROTOBUF_CONSTEXPR SystemProfileProto_OS::SystemProfileProto_OS(
53 ::_pbi::ConstantInitialized): _impl_{
54 /*decltype(_impl_._has_bits_)*/{}
55 , /*decltype(_impl_._cached_size_)*/{}
56 , /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
57 , /*decltype(_impl_.version_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
58 , /*decltype(_impl_.build_fingerprint_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
59 , /*decltype(_impl_.build_number_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
60 , /*decltype(_impl_.kernel_version_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
61 , /*decltype(_impl_.arc_)*/nullptr
62 , /*decltype(_impl_.deprecated_is_jailbroken_)*/false
63 , /*decltype(_impl_.dark_mode_state_)*/0
64 , /*decltype(_impl_.xdg_session_type_)*/0
65 , /*decltype(_impl_.xdg_current_desktop_)*/0} {}
66 struct SystemProfileProto_OSDefaultTypeInternal {
SystemProfileProto_OSDefaultTypeInternalmetrics::SystemProfileProto_OSDefaultTypeInternal67 PROTOBUF_CONSTEXPR SystemProfileProto_OSDefaultTypeInternal()
68 : _instance(::_pbi::ConstantInitialized{}) {}
~SystemProfileProto_OSDefaultTypeInternalmetrics::SystemProfileProto_OSDefaultTypeInternal69 ~SystemProfileProto_OSDefaultTypeInternal() {}
70 union {
71 SystemProfileProto_OS _instance;
72 };
73 };
74 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SystemProfileProto_OSDefaultTypeInternal _SystemProfileProto_OS_default_instance_;
SystemProfileProto_Hardware_CPU(::_pbi::ConstantInitialized)75 PROTOBUF_CONSTEXPR SystemProfileProto_Hardware_CPU::SystemProfileProto_Hardware_CPU(
76 ::_pbi::ConstantInitialized): _impl_{
77 /*decltype(_impl_._has_bits_)*/{}
78 , /*decltype(_impl_._cached_size_)*/{}
79 , /*decltype(_impl_.vendor_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
80 , /*decltype(_impl_.signature_)*/0u
81 , /*decltype(_impl_.num_cores_)*/0u
82 , /*decltype(_impl_.is_hypervisor_)*/false} {}
83 struct SystemProfileProto_Hardware_CPUDefaultTypeInternal {
SystemProfileProto_Hardware_CPUDefaultTypeInternalmetrics::SystemProfileProto_Hardware_CPUDefaultTypeInternal84 PROTOBUF_CONSTEXPR SystemProfileProto_Hardware_CPUDefaultTypeInternal()
85 : _instance(::_pbi::ConstantInitialized{}) {}
~SystemProfileProto_Hardware_CPUDefaultTypeInternalmetrics::SystemProfileProto_Hardware_CPUDefaultTypeInternal86 ~SystemProfileProto_Hardware_CPUDefaultTypeInternal() {}
87 union {
88 SystemProfileProto_Hardware_CPU _instance;
89 };
90 };
91 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SystemProfileProto_Hardware_CPUDefaultTypeInternal _SystemProfileProto_Hardware_CPU_default_instance_;
SystemProfileProto_Hardware_Motherboard(::_pbi::ConstantInitialized)92 PROTOBUF_CONSTEXPR SystemProfileProto_Hardware_Motherboard::SystemProfileProto_Hardware_Motherboard(
93 ::_pbi::ConstantInitialized): _impl_{
94 /*decltype(_impl_._has_bits_)*/{}
95 , /*decltype(_impl_._cached_size_)*/{}
96 , /*decltype(_impl_.manufacturer_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
97 , /*decltype(_impl_.model_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
98 , /*decltype(_impl_.bios_manufacturer_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
99 , /*decltype(_impl_.bios_version_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
100 , /*decltype(_impl_.bios_type_)*/0} {}
101 struct SystemProfileProto_Hardware_MotherboardDefaultTypeInternal {
SystemProfileProto_Hardware_MotherboardDefaultTypeInternalmetrics::SystemProfileProto_Hardware_MotherboardDefaultTypeInternal102 PROTOBUF_CONSTEXPR SystemProfileProto_Hardware_MotherboardDefaultTypeInternal()
103 : _instance(::_pbi::ConstantInitialized{}) {}
~SystemProfileProto_Hardware_MotherboardDefaultTypeInternalmetrics::SystemProfileProto_Hardware_MotherboardDefaultTypeInternal104 ~SystemProfileProto_Hardware_MotherboardDefaultTypeInternal() {}
105 union {
106 SystemProfileProto_Hardware_Motherboard _instance;
107 };
108 };
109 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SystemProfileProto_Hardware_MotherboardDefaultTypeInternal _SystemProfileProto_Hardware_Motherboard_default_instance_;
SystemProfileProto_Hardware_Graphics(::_pbi::ConstantInitialized)110 PROTOBUF_CONSTEXPR SystemProfileProto_Hardware_Graphics::SystemProfileProto_Hardware_Graphics(
111 ::_pbi::ConstantInitialized): _impl_{
112 /*decltype(_impl_._has_bits_)*/{}
113 , /*decltype(_impl_._cached_size_)*/{}
114 , /*decltype(_impl_.driver_version_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
115 , /*decltype(_impl_.gl_vendor_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
116 , /*decltype(_impl_.gl_renderer_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
117 , /*decltype(_impl_.vendor_id_)*/0u
118 , /*decltype(_impl_.device_id_)*/0u} {}
119 struct SystemProfileProto_Hardware_GraphicsDefaultTypeInternal {
SystemProfileProto_Hardware_GraphicsDefaultTypeInternalmetrics::SystemProfileProto_Hardware_GraphicsDefaultTypeInternal120 PROTOBUF_CONSTEXPR SystemProfileProto_Hardware_GraphicsDefaultTypeInternal()
121 : _instance(::_pbi::ConstantInitialized{}) {}
~SystemProfileProto_Hardware_GraphicsDefaultTypeInternalmetrics::SystemProfileProto_Hardware_GraphicsDefaultTypeInternal122 ~SystemProfileProto_Hardware_GraphicsDefaultTypeInternal() {}
123 union {
124 SystemProfileProto_Hardware_Graphics _instance;
125 };
126 };
127 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SystemProfileProto_Hardware_GraphicsDefaultTypeInternal _SystemProfileProto_Hardware_Graphics_default_instance_;
SystemProfileProto_Hardware_InternalStorageDevice(::_pbi::ConstantInitialized)128 PROTOBUF_CONSTEXPR SystemProfileProto_Hardware_InternalStorageDevice::SystemProfileProto_Hardware_InternalStorageDevice(
129 ::_pbi::ConstantInitialized): _impl_{
130 /*decltype(_impl_._has_bits_)*/{}
131 , /*decltype(_impl_._cached_size_)*/{}
132 , /*decltype(_impl_.model_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
133 , /*decltype(_impl_.product_id_)*/uint64_t{0u}
134 , /*decltype(_impl_.vendor_id_)*/0u
135 , /*decltype(_impl_.revision_)*/0u
136 , /*decltype(_impl_.firmware_version_)*/uint64_t{0u}
137 , /*decltype(_impl_.size_mb_)*/0u
138 , /*decltype(_impl_.type_)*/0
139 , /*decltype(_impl_.purpose_)*/0} {}
140 struct SystemProfileProto_Hardware_InternalStorageDeviceDefaultTypeInternal {
SystemProfileProto_Hardware_InternalStorageDeviceDefaultTypeInternalmetrics::SystemProfileProto_Hardware_InternalStorageDeviceDefaultTypeInternal141 PROTOBUF_CONSTEXPR SystemProfileProto_Hardware_InternalStorageDeviceDefaultTypeInternal()
142 : _instance(::_pbi::ConstantInitialized{}) {}
~SystemProfileProto_Hardware_InternalStorageDeviceDefaultTypeInternalmetrics::SystemProfileProto_Hardware_InternalStorageDeviceDefaultTypeInternal143 ~SystemProfileProto_Hardware_InternalStorageDeviceDefaultTypeInternal() {}
144 union {
145 SystemProfileProto_Hardware_InternalStorageDevice _instance;
146 };
147 };
148 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SystemProfileProto_Hardware_InternalStorageDeviceDefaultTypeInternal _SystemProfileProto_Hardware_InternalStorageDevice_default_instance_;
SystemProfileProto_Hardware_Drive(::_pbi::ConstantInitialized)149 PROTOBUF_CONSTEXPR SystemProfileProto_Hardware_Drive::SystemProfileProto_Hardware_Drive(
150 ::_pbi::ConstantInitialized): _impl_{
151 /*decltype(_impl_._has_bits_)*/{}
152 , /*decltype(_impl_._cached_size_)*/{}
153 , /*decltype(_impl_.has_seek_penalty_)*/false} {}
154 struct SystemProfileProto_Hardware_DriveDefaultTypeInternal {
SystemProfileProto_Hardware_DriveDefaultTypeInternalmetrics::SystemProfileProto_Hardware_DriveDefaultTypeInternal155 PROTOBUF_CONSTEXPR SystemProfileProto_Hardware_DriveDefaultTypeInternal()
156 : _instance(::_pbi::ConstantInitialized{}) {}
~SystemProfileProto_Hardware_DriveDefaultTypeInternalmetrics::SystemProfileProto_Hardware_DriveDefaultTypeInternal157 ~SystemProfileProto_Hardware_DriveDefaultTypeInternal() {}
158 union {
159 SystemProfileProto_Hardware_Drive _instance;
160 };
161 };
162 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SystemProfileProto_Hardware_DriveDefaultTypeInternal _SystemProfileProto_Hardware_Drive_default_instance_;
SystemProfileProto_Hardware(::_pbi::ConstantInitialized)163 PROTOBUF_CONSTEXPR SystemProfileProto_Hardware::SystemProfileProto_Hardware(
164 ::_pbi::ConstantInitialized): _impl_{
165 /*decltype(_impl_._has_bits_)*/{}
166 , /*decltype(_impl_._cached_size_)*/{}
167 , /*decltype(_impl_.internal_storage_devices_)*/{}
168 , /*decltype(_impl_.cpu_architecture_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
169 , /*decltype(_impl_.hardware_class_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
170 , /*decltype(_impl_.full_hardware_class_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
171 , /*decltype(_impl_.app_cpu_architecture_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
172 , /*decltype(_impl_.cellular_device_variant_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
173 , /*decltype(_impl_.tpm_rw_firmware_version_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
174 , /*decltype(_impl_.gpu_)*/nullptr
175 , /*decltype(_impl_.cpu_)*/nullptr
176 , /*decltype(_impl_.app_drive_)*/nullptr
177 , /*decltype(_impl_.user_data_drive_)*/nullptr
178 , /*decltype(_impl_.motherboard_)*/nullptr
179 , /*decltype(_impl_.system_ram_mb_)*/int64_t{0}
180 , /*decltype(_impl_.dll_base_)*/int64_t{0}
181 , /*decltype(_impl_.screen_count_)*/0
182 , /*decltype(_impl_.primary_screen_width_)*/0
183 , /*decltype(_impl_.primary_screen_height_)*/0
184 , /*decltype(_impl_.max_dpi_x_)*/0
185 , /*decltype(_impl_.max_dpi_y_)*/0
186 , /*decltype(_impl_.primary_screen_scale_factor_)*/0
187 , /*decltype(_impl_.internal_display_supports_touch_)*/false
188 , /*decltype(_impl_.form_factor_)*/0
189 , /*decltype(_impl_.tpm_firmware_version_)*/uint64_t{0u}
190 , /*decltype(_impl_.tpm_type_)*/0} {}
191 struct SystemProfileProto_HardwareDefaultTypeInternal {
SystemProfileProto_HardwareDefaultTypeInternalmetrics::SystemProfileProto_HardwareDefaultTypeInternal192 PROTOBUF_CONSTEXPR SystemProfileProto_HardwareDefaultTypeInternal()
193 : _instance(::_pbi::ConstantInitialized{}) {}
~SystemProfileProto_HardwareDefaultTypeInternalmetrics::SystemProfileProto_HardwareDefaultTypeInternal194 ~SystemProfileProto_HardwareDefaultTypeInternal() {}
195 union {
196 SystemProfileProto_Hardware _instance;
197 };
198 };
199 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SystemProfileProto_HardwareDefaultTypeInternal _SystemProfileProto_Hardware_default_instance_;
SystemProfileProto_Network(::_pbi::ConstantInitialized)200 PROTOBUF_CONSTEXPR SystemProfileProto_Network::SystemProfileProto_Network(
201 ::_pbi::ConstantInitialized): _impl_{
202 /*decltype(_impl_._has_bits_)*/{}
203 , /*decltype(_impl_._cached_size_)*/{}
204 , /*decltype(_impl_.connection_type_)*/0
205 , /*decltype(_impl_.connection_type_is_ambiguous_)*/false
206 , /*decltype(_impl_.wifi_phy_layer_protocol_is_ambiguous_)*/false
207 , /*decltype(_impl_.wifi_phy_layer_protocol_)*/0
208 , /*decltype(_impl_.min_effective_connection_type_)*/0
209 , /*decltype(_impl_.max_effective_connection_type_)*/0} {}
210 struct SystemProfileProto_NetworkDefaultTypeInternal {
SystemProfileProto_NetworkDefaultTypeInternalmetrics::SystemProfileProto_NetworkDefaultTypeInternal211 PROTOBUF_CONSTEXPR SystemProfileProto_NetworkDefaultTypeInternal()
212 : _instance(::_pbi::ConstantInitialized{}) {}
~SystemProfileProto_NetworkDefaultTypeInternalmetrics::SystemProfileProto_NetworkDefaultTypeInternal213 ~SystemProfileProto_NetworkDefaultTypeInternal() {}
214 union {
215 SystemProfileProto_Network _instance;
216 };
217 };
218 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SystemProfileProto_NetworkDefaultTypeInternal _SystemProfileProto_Network_default_instance_;
SystemProfileProto_GoogleUpdate_ProductInfo(::_pbi::ConstantInitialized)219 PROTOBUF_CONSTEXPR SystemProfileProto_GoogleUpdate_ProductInfo::SystemProfileProto_GoogleUpdate_ProductInfo(
220 ::_pbi::ConstantInitialized): _impl_{
221 /*decltype(_impl_._has_bits_)*/{}
222 , /*decltype(_impl_._cached_size_)*/{}
223 , /*decltype(_impl_.version_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
224 , /*decltype(_impl_.last_update_success_timestamp_)*/int64_t{0}
225 , /*decltype(_impl_.last_result_)*/0
226 , /*decltype(_impl_.last_error_)*/0
227 , /*decltype(_impl_.last_extra_error_)*/0} {}
228 struct SystemProfileProto_GoogleUpdate_ProductInfoDefaultTypeInternal {
SystemProfileProto_GoogleUpdate_ProductInfoDefaultTypeInternalmetrics::SystemProfileProto_GoogleUpdate_ProductInfoDefaultTypeInternal229 PROTOBUF_CONSTEXPR SystemProfileProto_GoogleUpdate_ProductInfoDefaultTypeInternal()
230 : _instance(::_pbi::ConstantInitialized{}) {}
~SystemProfileProto_GoogleUpdate_ProductInfoDefaultTypeInternalmetrics::SystemProfileProto_GoogleUpdate_ProductInfoDefaultTypeInternal231 ~SystemProfileProto_GoogleUpdate_ProductInfoDefaultTypeInternal() {}
232 union {
233 SystemProfileProto_GoogleUpdate_ProductInfo _instance;
234 };
235 };
236 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SystemProfileProto_GoogleUpdate_ProductInfoDefaultTypeInternal _SystemProfileProto_GoogleUpdate_ProductInfo_default_instance_;
SystemProfileProto_GoogleUpdate(::_pbi::ConstantInitialized)237 PROTOBUF_CONSTEXPR SystemProfileProto_GoogleUpdate::SystemProfileProto_GoogleUpdate(
238 ::_pbi::ConstantInitialized): _impl_{
239 /*decltype(_impl_._has_bits_)*/{}
240 , /*decltype(_impl_._cached_size_)*/{}
241 , /*decltype(_impl_.google_update_status_)*/nullptr
242 , /*decltype(_impl_.client_status_)*/nullptr
243 , /*decltype(_impl_.last_automatic_start_timestamp_)*/int64_t{0}
244 , /*decltype(_impl_.last_update_check_timestamp_)*/int64_t{0}
245 , /*decltype(_impl_.is_system_install_)*/false} {}
246 struct SystemProfileProto_GoogleUpdateDefaultTypeInternal {
SystemProfileProto_GoogleUpdateDefaultTypeInternalmetrics::SystemProfileProto_GoogleUpdateDefaultTypeInternal247 PROTOBUF_CONSTEXPR SystemProfileProto_GoogleUpdateDefaultTypeInternal()
248 : _instance(::_pbi::ConstantInitialized{}) {}
~SystemProfileProto_GoogleUpdateDefaultTypeInternalmetrics::SystemProfileProto_GoogleUpdateDefaultTypeInternal249 ~SystemProfileProto_GoogleUpdateDefaultTypeInternal() {}
250 union {
251 SystemProfileProto_GoogleUpdate _instance;
252 };
253 };
254 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SystemProfileProto_GoogleUpdateDefaultTypeInternal _SystemProfileProto_GoogleUpdate_default_instance_;
SystemProfileProto_Stability(::_pbi::ConstantInitialized)255 PROTOBUF_CONSTEXPR SystemProfileProto_Stability::SystemProfileProto_Stability(
256 ::_pbi::ConstantInitialized): _impl_{
257 /*decltype(_impl_._has_bits_)*/{}
258 , /*decltype(_impl_._cached_size_)*/{}
259 , /*decltype(_impl_.incremental_uptime_sec_)*/int64_t{0}
260 , /*decltype(_impl_.page_load_count_)*/0
261 , /*decltype(_impl_.other_user_crash_count_)*/0
262 , /*decltype(_impl_.kernel_crash_count_)*/0
263 , /*decltype(_impl_.unclean_system_shutdown_count_)*/0
264 , /*decltype(_impl_.launch_count_)*/0
265 , /*decltype(_impl_.renderer_launch_count_)*/0
266 , /*decltype(_impl_.uptime_sec_)*/int64_t{0}
267 , /*decltype(_impl_.from_previous_run_)*/false
268 , /*decltype(_impl_.crash_count_due_to_gms_core_update_)*/0} {}
269 struct SystemProfileProto_StabilityDefaultTypeInternal {
SystemProfileProto_StabilityDefaultTypeInternalmetrics::SystemProfileProto_StabilityDefaultTypeInternal270 PROTOBUF_CONSTEXPR SystemProfileProto_StabilityDefaultTypeInternal()
271 : _instance(::_pbi::ConstantInitialized{}) {}
~SystemProfileProto_StabilityDefaultTypeInternalmetrics::SystemProfileProto_StabilityDefaultTypeInternal272 ~SystemProfileProto_StabilityDefaultTypeInternal() {}
273 union {
274 SystemProfileProto_Stability _instance;
275 };
276 };
277 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SystemProfileProto_StabilityDefaultTypeInternal _SystemProfileProto_Stability_default_instance_;
SystemProfileProto_FieldTrial(::_pbi::ConstantInitialized)278 PROTOBUF_CONSTEXPR SystemProfileProto_FieldTrial::SystemProfileProto_FieldTrial(
279 ::_pbi::ConstantInitialized): _impl_{
280 /*decltype(_impl_._has_bits_)*/{}
281 , /*decltype(_impl_._cached_size_)*/{}
282 , /*decltype(_impl_.name_id_)*/0u
283 , /*decltype(_impl_.group_id_)*/0u} {}
284 struct SystemProfileProto_FieldTrialDefaultTypeInternal {
SystemProfileProto_FieldTrialDefaultTypeInternalmetrics::SystemProfileProto_FieldTrialDefaultTypeInternal285 PROTOBUF_CONSTEXPR SystemProfileProto_FieldTrialDefaultTypeInternal()
286 : _instance(::_pbi::ConstantInitialized{}) {}
~SystemProfileProto_FieldTrialDefaultTypeInternalmetrics::SystemProfileProto_FieldTrialDefaultTypeInternal287 ~SystemProfileProto_FieldTrialDefaultTypeInternal() {}
288 union {
289 SystemProfileProto_FieldTrial _instance;
290 };
291 };
292 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SystemProfileProto_FieldTrialDefaultTypeInternal _SystemProfileProto_FieldTrial_default_instance_;
SystemProfileProto_ExternalAudioVideoDevice_AudioDescription(::_pbi::ConstantInitialized)293 PROTOBUF_CONSTEXPR SystemProfileProto_ExternalAudioVideoDevice_AudioDescription::SystemProfileProto_ExternalAudioVideoDevice_AudioDescription(
294 ::_pbi::ConstantInitialized): _impl_{
295 /*decltype(_impl_._has_bits_)*/{}
296 , /*decltype(_impl_._cached_size_)*/{}
297 , /*decltype(_impl_.sample_frequency_hz_)*/{}
298 , /*decltype(_impl_.audio_format_)*/0
299 , /*decltype(_impl_.num_channels_)*/0
300 , /*decltype(_impl_.max_bit_rate_per_second_)*/0
301 , /*decltype(_impl_.bit_depth_)*/0
302 , /*decltype(_impl_.output_mode_)*/0} {}
303 struct SystemProfileProto_ExternalAudioVideoDevice_AudioDescriptionDefaultTypeInternal {
SystemProfileProto_ExternalAudioVideoDevice_AudioDescriptionDefaultTypeInternalmetrics::SystemProfileProto_ExternalAudioVideoDevice_AudioDescriptionDefaultTypeInternal304 PROTOBUF_CONSTEXPR SystemProfileProto_ExternalAudioVideoDevice_AudioDescriptionDefaultTypeInternal()
305 : _instance(::_pbi::ConstantInitialized{}) {}
~SystemProfileProto_ExternalAudioVideoDevice_AudioDescriptionDefaultTypeInternalmetrics::SystemProfileProto_ExternalAudioVideoDevice_AudioDescriptionDefaultTypeInternal306 ~SystemProfileProto_ExternalAudioVideoDevice_AudioDescriptionDefaultTypeInternal() {}
307 union {
308 SystemProfileProto_ExternalAudioVideoDevice_AudioDescription _instance;
309 };
310 };
311 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SystemProfileProto_ExternalAudioVideoDevice_AudioDescriptionDefaultTypeInternal _SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_default_instance_;
SystemProfileProto_ExternalAudioVideoDevice_CECCommand(::_pbi::ConstantInitialized)312 PROTOBUF_CONSTEXPR SystemProfileProto_ExternalAudioVideoDevice_CECCommand::SystemProfileProto_ExternalAudioVideoDevice_CECCommand(
313 ::_pbi::ConstantInitialized): _impl_{
314 /*decltype(_impl_._has_bits_)*/{}
315 , /*decltype(_impl_._cached_size_)*/{}
316 , /*decltype(_impl_.opcode_)*/0
317 , /*decltype(_impl_.num_received_direct_)*/0
318 , /*decltype(_impl_.num_received_broadcast_)*/0
319 , /*decltype(_impl_.num_sent_direct_)*/0
320 , /*decltype(_impl_.num_sent_broadcast_)*/0
321 , /*decltype(_impl_.num_aborted_unknown_reason_)*/0
322 , /*decltype(_impl_.num_aborted_unrecognized_)*/0} {}
323 struct SystemProfileProto_ExternalAudioVideoDevice_CECCommandDefaultTypeInternal {
SystemProfileProto_ExternalAudioVideoDevice_CECCommandDefaultTypeInternalmetrics::SystemProfileProto_ExternalAudioVideoDevice_CECCommandDefaultTypeInternal324 PROTOBUF_CONSTEXPR SystemProfileProto_ExternalAudioVideoDevice_CECCommandDefaultTypeInternal()
325 : _instance(::_pbi::ConstantInitialized{}) {}
~SystemProfileProto_ExternalAudioVideoDevice_CECCommandDefaultTypeInternalmetrics::SystemProfileProto_ExternalAudioVideoDevice_CECCommandDefaultTypeInternal326 ~SystemProfileProto_ExternalAudioVideoDevice_CECCommandDefaultTypeInternal() {}
327 union {
328 SystemProfileProto_ExternalAudioVideoDevice_CECCommand _instance;
329 };
330 };
331 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SystemProfileProto_ExternalAudioVideoDevice_CECCommandDefaultTypeInternal _SystemProfileProto_ExternalAudioVideoDevice_CECCommand_default_instance_;
SystemProfileProto_ExternalAudioVideoDevice(::_pbi::ConstantInitialized)332 PROTOBUF_CONSTEXPR SystemProfileProto_ExternalAudioVideoDevice::SystemProfileProto_ExternalAudioVideoDevice(
333 ::_pbi::ConstantInitialized): _impl_{
334 /*decltype(_impl_._has_bits_)*/{}
335 , /*decltype(_impl_._cached_size_)*/{}
336 , /*decltype(_impl_.av_device_type_)*/{}
337 , /*decltype(_impl_.audio_description_)*/{}
338 , /*decltype(_impl_.cec_command_)*/{}
339 , /*decltype(_impl_.manufacturer_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
340 , /*decltype(_impl_.model_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
341 , /*decltype(_impl_.product_code_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
342 , /*decltype(_impl_.manufacture_year_)*/0
343 , /*decltype(_impl_.manufacture_week_)*/0
344 , /*decltype(_impl_.horizontal_resolution_)*/0
345 , /*decltype(_impl_.vertical_resolution_)*/0
346 , /*decltype(_impl_.position_in_setup_)*/0
347 , /*decltype(_impl_.cec_version_)*/0
348 , /*decltype(_impl_.frame_rate_)*/0
349 , /*decltype(_impl_.color_encoding_)*/0
350 , /*decltype(_impl_.bit_depth_)*/0
351 , /*decltype(_impl_.tmds_)*/0
352 , /*decltype(_impl_.is_in_path_to_tv_)*/false
353 , /*decltype(_impl_.hdr10_support_)*/false
354 , /*decltype(_impl_.dolby_vision_support_)*/false
355 , /*decltype(_impl_.yuv_support_)*/false
356 , /*decltype(_impl_.eotf_support_)*/0
357 , /*decltype(_impl_.yuv_420_support_)*/false
358 , /*decltype(_impl_.maximum_supported_hdcp_version_)*/0
359 , /*decltype(_impl_.current_hdcp_version_)*/0} {}
360 struct SystemProfileProto_ExternalAudioVideoDeviceDefaultTypeInternal {
SystemProfileProto_ExternalAudioVideoDeviceDefaultTypeInternalmetrics::SystemProfileProto_ExternalAudioVideoDeviceDefaultTypeInternal361 PROTOBUF_CONSTEXPR SystemProfileProto_ExternalAudioVideoDeviceDefaultTypeInternal()
362 : _instance(::_pbi::ConstantInitialized{}) {}
~SystemProfileProto_ExternalAudioVideoDeviceDefaultTypeInternalmetrics::SystemProfileProto_ExternalAudioVideoDeviceDefaultTypeInternal363 ~SystemProfileProto_ExternalAudioVideoDeviceDefaultTypeInternal() {}
364 union {
365 SystemProfileProto_ExternalAudioVideoDevice _instance;
366 };
367 };
368 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SystemProfileProto_ExternalAudioVideoDeviceDefaultTypeInternal _SystemProfileProto_ExternalAudioVideoDevice_default_instance_;
SystemProfileProto_ExternalAccessPoint(::_pbi::ConstantInitialized)369 PROTOBUF_CONSTEXPR SystemProfileProto_ExternalAccessPoint::SystemProfileProto_ExternalAccessPoint(
370 ::_pbi::ConstantInitialized): _impl_{
371 /*decltype(_impl_._has_bits_)*/{}
372 , /*decltype(_impl_._cached_size_)*/{}
373 , /*decltype(_impl_.manufacturer_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
374 , /*decltype(_impl_.model_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
375 , /*decltype(_impl_.model_number_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
376 , /*decltype(_impl_.device_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}} {}
377 struct SystemProfileProto_ExternalAccessPointDefaultTypeInternal {
SystemProfileProto_ExternalAccessPointDefaultTypeInternalmetrics::SystemProfileProto_ExternalAccessPointDefaultTypeInternal378 PROTOBUF_CONSTEXPR SystemProfileProto_ExternalAccessPointDefaultTypeInternal()
379 : _instance(::_pbi::ConstantInitialized{}) {}
~SystemProfileProto_ExternalAccessPointDefaultTypeInternalmetrics::SystemProfileProto_ExternalAccessPointDefaultTypeInternal380 ~SystemProfileProto_ExternalAccessPointDefaultTypeInternal() {}
381 union {
382 SystemProfileProto_ExternalAccessPoint _instance;
383 };
384 };
385 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SystemProfileProto_ExternalAccessPointDefaultTypeInternal _SystemProfileProto_ExternalAccessPoint_default_instance_;
SystemProfileProto_AntiVirusProduct(::_pbi::ConstantInitialized)386 PROTOBUF_CONSTEXPR SystemProfileProto_AntiVirusProduct::SystemProfileProto_AntiVirusProduct(
387 ::_pbi::ConstantInitialized): _impl_{
388 /*decltype(_impl_._has_bits_)*/{}
389 , /*decltype(_impl_._cached_size_)*/{}
390 , /*decltype(_impl_.product_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
391 , /*decltype(_impl_.product_version_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
392 , /*decltype(_impl_.product_name_hash_)*/0u
393 , /*decltype(_impl_.product_version_hash_)*/0u
394 , /*decltype(_impl_.product_state_)*/0} {}
395 struct SystemProfileProto_AntiVirusProductDefaultTypeInternal {
SystemProfileProto_AntiVirusProductDefaultTypeInternalmetrics::SystemProfileProto_AntiVirusProductDefaultTypeInternal396 PROTOBUF_CONSTEXPR SystemProfileProto_AntiVirusProductDefaultTypeInternal()
397 : _instance(::_pbi::ConstantInitialized{}) {}
~SystemProfileProto_AntiVirusProductDefaultTypeInternalmetrics::SystemProfileProto_AntiVirusProductDefaultTypeInternal398 ~SystemProfileProto_AntiVirusProductDefaultTypeInternal() {}
399 union {
400 SystemProfileProto_AntiVirusProduct _instance;
401 };
402 };
403 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SystemProfileProto_AntiVirusProductDefaultTypeInternal _SystemProfileProto_AntiVirusProduct_default_instance_;
SystemProfileProto_ChromeComponent(::_pbi::ConstantInitialized)404 PROTOBUF_CONSTEXPR SystemProfileProto_ChromeComponent::SystemProfileProto_ChromeComponent(
405 ::_pbi::ConstantInitialized): _impl_{
406 /*decltype(_impl_._has_bits_)*/{}
407 , /*decltype(_impl_._cached_size_)*/{}
408 , /*decltype(_impl_.version_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
409 , /*decltype(_impl_.omaha_fingerprint_)*/0u
410 , /*decltype(_impl_.cohort_hash_)*/0u
411 , /*decltype(_impl_.component_id_)*/1} {}
412 struct SystemProfileProto_ChromeComponentDefaultTypeInternal {
SystemProfileProto_ChromeComponentDefaultTypeInternalmetrics::SystemProfileProto_ChromeComponentDefaultTypeInternal413 PROTOBUF_CONSTEXPR SystemProfileProto_ChromeComponentDefaultTypeInternal()
414 : _instance(::_pbi::ConstantInitialized{}) {}
~SystemProfileProto_ChromeComponentDefaultTypeInternalmetrics::SystemProfileProto_ChromeComponentDefaultTypeInternal415 ~SystemProfileProto_ChromeComponentDefaultTypeInternal() {}
416 union {
417 SystemProfileProto_ChromeComponent _instance;
418 };
419 };
420 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SystemProfileProto_ChromeComponentDefaultTypeInternal _SystemProfileProto_ChromeComponent_default_instance_;
SystemProfileProto_LinkedAndroidPhoneData(::_pbi::ConstantInitialized)421 PROTOBUF_CONSTEXPR SystemProfileProto_LinkedAndroidPhoneData::SystemProfileProto_LinkedAndroidPhoneData(
422 ::_pbi::ConstantInitialized): _impl_{
423 /*decltype(_impl_._has_bits_)*/{}
424 , /*decltype(_impl_._cached_size_)*/{}
425 , /*decltype(_impl_.phone_model_name_hash_)*/0u
426 , /*decltype(_impl_.is_smartlock_enabled_)*/false
427 , /*decltype(_impl_.is_instant_tethering_enabled_)*/false
428 , /*decltype(_impl_.is_messages_enabled_)*/false} {}
429 struct SystemProfileProto_LinkedAndroidPhoneDataDefaultTypeInternal {
SystemProfileProto_LinkedAndroidPhoneDataDefaultTypeInternalmetrics::SystemProfileProto_LinkedAndroidPhoneDataDefaultTypeInternal430 PROTOBUF_CONSTEXPR SystemProfileProto_LinkedAndroidPhoneDataDefaultTypeInternal()
431 : _instance(::_pbi::ConstantInitialized{}) {}
~SystemProfileProto_LinkedAndroidPhoneDataDefaultTypeInternalmetrics::SystemProfileProto_LinkedAndroidPhoneDataDefaultTypeInternal432 ~SystemProfileProto_LinkedAndroidPhoneDataDefaultTypeInternal() {}
433 union {
434 SystemProfileProto_LinkedAndroidPhoneData _instance;
435 };
436 };
437 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SystemProfileProto_LinkedAndroidPhoneDataDefaultTypeInternal _SystemProfileProto_LinkedAndroidPhoneData_default_instance_;
SystemProfileProto_DemoModeDimensions_Retailer(::_pbi::ConstantInitialized)438 PROTOBUF_CONSTEXPR SystemProfileProto_DemoModeDimensions_Retailer::SystemProfileProto_DemoModeDimensions_Retailer(
439 ::_pbi::ConstantInitialized): _impl_{
440 /*decltype(_impl_._has_bits_)*/{}
441 , /*decltype(_impl_._cached_size_)*/{}
442 , /*decltype(_impl_.retailer_id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
443 , /*decltype(_impl_.store_id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}} {}
444 struct SystemProfileProto_DemoModeDimensions_RetailerDefaultTypeInternal {
SystemProfileProto_DemoModeDimensions_RetailerDefaultTypeInternalmetrics::SystemProfileProto_DemoModeDimensions_RetailerDefaultTypeInternal445 PROTOBUF_CONSTEXPR SystemProfileProto_DemoModeDimensions_RetailerDefaultTypeInternal()
446 : _instance(::_pbi::ConstantInitialized{}) {}
~SystemProfileProto_DemoModeDimensions_RetailerDefaultTypeInternalmetrics::SystemProfileProto_DemoModeDimensions_RetailerDefaultTypeInternal447 ~SystemProfileProto_DemoModeDimensions_RetailerDefaultTypeInternal() {}
448 union {
449 SystemProfileProto_DemoModeDimensions_Retailer _instance;
450 };
451 };
452 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SystemProfileProto_DemoModeDimensions_RetailerDefaultTypeInternal _SystemProfileProto_DemoModeDimensions_Retailer_default_instance_;
SystemProfileProto_DemoModeDimensions(::_pbi::ConstantInitialized)453 PROTOBUF_CONSTEXPR SystemProfileProto_DemoModeDimensions::SystemProfileProto_DemoModeDimensions(
454 ::_pbi::ConstantInitialized): _impl_{
455 /*decltype(_impl_._has_bits_)*/{}
456 , /*decltype(_impl_._cached_size_)*/{}
457 , /*decltype(_impl_.customization_facet_)*/{}
458 , /*decltype(_impl_._customization_facet_cached_byte_size_)*/{0}
459 , /*decltype(_impl_.country_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
460 , /*decltype(_impl_.app_version_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
461 , /*decltype(_impl_.resources_version_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
462 , /*decltype(_impl_.retailer_)*/nullptr} {}
463 struct SystemProfileProto_DemoModeDimensionsDefaultTypeInternal {
SystemProfileProto_DemoModeDimensionsDefaultTypeInternalmetrics::SystemProfileProto_DemoModeDimensionsDefaultTypeInternal464 PROTOBUF_CONSTEXPR SystemProfileProto_DemoModeDimensionsDefaultTypeInternal()
465 : _instance(::_pbi::ConstantInitialized{}) {}
~SystemProfileProto_DemoModeDimensionsDefaultTypeInternalmetrics::SystemProfileProto_DemoModeDimensionsDefaultTypeInternal466 ~SystemProfileProto_DemoModeDimensionsDefaultTypeInternal() {}
467 union {
468 SystemProfileProto_DemoModeDimensions _instance;
469 };
470 };
471 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SystemProfileProto_DemoModeDimensionsDefaultTypeInternal _SystemProfileProto_DemoModeDimensions_default_instance_;
SystemProfileProto(::_pbi::ConstantInitialized)472 PROTOBUF_CONSTEXPR SystemProfileProto::SystemProfileProto(
473 ::_pbi::ConstantInitialized): _impl_{
474 /*decltype(_impl_._has_bits_)*/{}
475 , /*decltype(_impl_._cached_size_)*/{}
476 , /*decltype(_impl_.field_trial_)*/{}
477 , /*decltype(_impl_.external_audio_video_device_)*/{}
478 , /*decltype(_impl_.occupied_extension_bucket_)*/{}
479 , /*decltype(_impl_.antivirus_product_)*/{}
480 , /*decltype(_impl_.chrome_component_)*/{}
481 , /*decltype(_impl_.extension_install_)*/{}
482 , /*decltype(_impl_.command_line_key_hash_)*/{}
483 , /*decltype(_impl_.app_version_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
484 , /*decltype(_impl_.application_locale_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
485 , /*decltype(_impl_.brand_code_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
486 , /*decltype(_impl_.app_package_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
487 , /*decltype(_impl_.variations_seed_version_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
488 , /*decltype(_impl_.client_uuid_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
489 , /*decltype(_impl_.log_written_by_app_version_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
490 , /*decltype(_impl_.os_)*/nullptr
491 , /*decltype(_impl_.hardware_)*/nullptr
492 , /*decltype(_impl_.stability_)*/nullptr
493 , /*decltype(_impl_.google_update_)*/nullptr
494 , /*decltype(_impl_.network_)*/nullptr
495 , /*decltype(_impl_.external_access_point_)*/nullptr
496 , /*decltype(_impl_.linked_android_phone_data_)*/nullptr
497 , /*decltype(_impl_.cloned_install_info_)*/nullptr
498 , /*decltype(_impl_.demo_mode_dimensions_)*/nullptr
499 , /*decltype(_impl_.build_timestamp_)*/int64_t{0}
500 , /*decltype(_impl_.uma_enabled_date_)*/int64_t{0}
501 , /*decltype(_impl_.channel_)*/0
502 , /*decltype(_impl_.multi_profile_user_count_)*/0u
503 , /*decltype(_impl_.install_date_)*/int64_t{0}
504 , /*decltype(_impl_.offstore_extensions_state_)*/0
505 , /*decltype(_impl_.uma_default_state_)*/0
506 , /*decltype(_impl_.is_extended_stable_channel_)*/false
507 , /*decltype(_impl_.is_instrumented_build_)*/false
508 , /*decltype(_impl_.client_id_was_used_for_trial_assignment_)*/false
509 , /*decltype(_impl_.low_entropy_source_)*/0
510 , /*decltype(_impl_.old_low_entropy_source_)*/0
511 , /*decltype(_impl_.installer_package_)*/0
512 , /*decltype(_impl_.pseudo_low_entropy_source_)*/0
513 , /*decltype(_impl_.app_package_name_allowlist_filter_)*/0
514 , /*decltype(_impl_.client_side_sampling_status_)*/0
515 , /*decltype(_impl_.metrics_filtering_status_)*/0
516 , /*decltype(_impl_.session_hash_)*/uint64_t{0u}
517 , /*decltype(_impl_.lts_channel_)*/0} {}
518 struct SystemProfileProtoDefaultTypeInternal {
SystemProfileProtoDefaultTypeInternalmetrics::SystemProfileProtoDefaultTypeInternal519 PROTOBUF_CONSTEXPR SystemProfileProtoDefaultTypeInternal()
520 : _instance(::_pbi::ConstantInitialized{}) {}
~SystemProfileProtoDefaultTypeInternalmetrics::SystemProfileProtoDefaultTypeInternal521 ~SystemProfileProtoDefaultTypeInternal() {}
522 union {
523 SystemProfileProto _instance;
524 };
525 };
526 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SystemProfileProtoDefaultTypeInternal _SystemProfileProto_default_instance_;
527 } // namespace metrics
528 namespace metrics {
SystemProfileProto_OS_DarkModeState_IsValid(int value)529 bool SystemProfileProto_OS_DarkModeState_IsValid(int value) {
530 switch (value) {
531 case 0:
532 case 1:
533 case 2:
534 case 3:
535 case 4:
536 return true;
537 default:
538 return false;
539 }
540 }
541
542 static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> SystemProfileProto_OS_DarkModeState_strings[5] = {};
543
544 static const char SystemProfileProto_OS_DarkModeState_names[] =
545 "DARK_MODE_APP"
546 "DARK_MODE_SYSTEM"
547 "LIGHT_MODE_APP"
548 "LIGHT_MODE_SYSTEM"
549 "UNKNOWN";
550
551 static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry SystemProfileProto_OS_DarkModeState_entries[] = {
552 { {SystemProfileProto_OS_DarkModeState_names + 0, 13}, 2 },
553 { {SystemProfileProto_OS_DarkModeState_names + 13, 16}, 1 },
554 { {SystemProfileProto_OS_DarkModeState_names + 29, 14}, 4 },
555 { {SystemProfileProto_OS_DarkModeState_names + 43, 17}, 3 },
556 { {SystemProfileProto_OS_DarkModeState_names + 60, 7}, 0 },
557 };
558
559 static const int SystemProfileProto_OS_DarkModeState_entries_by_number[] = {
560 4, // 0 -> UNKNOWN
561 1, // 1 -> DARK_MODE_SYSTEM
562 0, // 2 -> DARK_MODE_APP
563 3, // 3 -> LIGHT_MODE_SYSTEM
564 2, // 4 -> LIGHT_MODE_APP
565 };
566
SystemProfileProto_OS_DarkModeState_Name(SystemProfileProto_OS_DarkModeState value)567 const std::string& SystemProfileProto_OS_DarkModeState_Name(
568 SystemProfileProto_OS_DarkModeState value) {
569 static const bool dummy =
570 ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
571 SystemProfileProto_OS_DarkModeState_entries,
572 SystemProfileProto_OS_DarkModeState_entries_by_number,
573 5, SystemProfileProto_OS_DarkModeState_strings);
574 (void) dummy;
575 int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
576 SystemProfileProto_OS_DarkModeState_entries,
577 SystemProfileProto_OS_DarkModeState_entries_by_number,
578 5, value);
579 return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
580 SystemProfileProto_OS_DarkModeState_strings[idx].get();
581 }
SystemProfileProto_OS_DarkModeState_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,SystemProfileProto_OS_DarkModeState * value)582 bool SystemProfileProto_OS_DarkModeState_Parse(
583 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SystemProfileProto_OS_DarkModeState* value) {
584 int int_value;
585 bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
586 SystemProfileProto_OS_DarkModeState_entries, 5, name, &int_value);
587 if (success) {
588 *value = static_cast<SystemProfileProto_OS_DarkModeState>(int_value);
589 }
590 return success;
591 }
592 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
593 constexpr SystemProfileProto_OS_DarkModeState SystemProfileProto_OS::UNKNOWN;
594 constexpr SystemProfileProto_OS_DarkModeState SystemProfileProto_OS::DARK_MODE_SYSTEM;
595 constexpr SystemProfileProto_OS_DarkModeState SystemProfileProto_OS::DARK_MODE_APP;
596 constexpr SystemProfileProto_OS_DarkModeState SystemProfileProto_OS::LIGHT_MODE_SYSTEM;
597 constexpr SystemProfileProto_OS_DarkModeState SystemProfileProto_OS::LIGHT_MODE_APP;
598 constexpr SystemProfileProto_OS_DarkModeState SystemProfileProto_OS::DarkModeState_MIN;
599 constexpr SystemProfileProto_OS_DarkModeState SystemProfileProto_OS::DarkModeState_MAX;
600 constexpr int SystemProfileProto_OS::DarkModeState_ARRAYSIZE;
601 #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
SystemProfileProto_OS_XdgSessionType_IsValid(int value)602 bool SystemProfileProto_OS_XdgSessionType_IsValid(int value) {
603 switch (value) {
604 case 0:
605 case 1:
606 case 2:
607 case 3:
608 case 4:
609 case 5:
610 case 6:
611 return true;
612 default:
613 return false;
614 }
615 }
616
617 static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> SystemProfileProto_OS_XdgSessionType_strings[7] = {};
618
619 static const char SystemProfileProto_OS_XdgSessionType_names[] =
620 "MIR"
621 "OTHER_SESSION_TYPE"
622 "TTY"
623 "UNSET"
624 "UNSPECIFIED"
625 "WAYLAND"
626 "X11";
627
628 static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry SystemProfileProto_OS_XdgSessionType_entries[] = {
629 { {SystemProfileProto_OS_XdgSessionType_names + 0, 3}, 6 },
630 { {SystemProfileProto_OS_XdgSessionType_names + 3, 18}, 1 },
631 { {SystemProfileProto_OS_XdgSessionType_names + 21, 3}, 3 },
632 { {SystemProfileProto_OS_XdgSessionType_names + 24, 5}, 0 },
633 { {SystemProfileProto_OS_XdgSessionType_names + 29, 11}, 2 },
634 { {SystemProfileProto_OS_XdgSessionType_names + 40, 7}, 5 },
635 { {SystemProfileProto_OS_XdgSessionType_names + 47, 3}, 4 },
636 };
637
638 static const int SystemProfileProto_OS_XdgSessionType_entries_by_number[] = {
639 3, // 0 -> UNSET
640 1, // 1 -> OTHER_SESSION_TYPE
641 4, // 2 -> UNSPECIFIED
642 2, // 3 -> TTY
643 6, // 4 -> X11
644 5, // 5 -> WAYLAND
645 0, // 6 -> MIR
646 };
647
SystemProfileProto_OS_XdgSessionType_Name(SystemProfileProto_OS_XdgSessionType value)648 const std::string& SystemProfileProto_OS_XdgSessionType_Name(
649 SystemProfileProto_OS_XdgSessionType value) {
650 static const bool dummy =
651 ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
652 SystemProfileProto_OS_XdgSessionType_entries,
653 SystemProfileProto_OS_XdgSessionType_entries_by_number,
654 7, SystemProfileProto_OS_XdgSessionType_strings);
655 (void) dummy;
656 int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
657 SystemProfileProto_OS_XdgSessionType_entries,
658 SystemProfileProto_OS_XdgSessionType_entries_by_number,
659 7, value);
660 return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
661 SystemProfileProto_OS_XdgSessionType_strings[idx].get();
662 }
SystemProfileProto_OS_XdgSessionType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,SystemProfileProto_OS_XdgSessionType * value)663 bool SystemProfileProto_OS_XdgSessionType_Parse(
664 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SystemProfileProto_OS_XdgSessionType* value) {
665 int int_value;
666 bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
667 SystemProfileProto_OS_XdgSessionType_entries, 7, name, &int_value);
668 if (success) {
669 *value = static_cast<SystemProfileProto_OS_XdgSessionType>(int_value);
670 }
671 return success;
672 }
673 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
674 constexpr SystemProfileProto_OS_XdgSessionType SystemProfileProto_OS::UNSET;
675 constexpr SystemProfileProto_OS_XdgSessionType SystemProfileProto_OS::OTHER_SESSION_TYPE;
676 constexpr SystemProfileProto_OS_XdgSessionType SystemProfileProto_OS::UNSPECIFIED;
677 constexpr SystemProfileProto_OS_XdgSessionType SystemProfileProto_OS::TTY;
678 constexpr SystemProfileProto_OS_XdgSessionType SystemProfileProto_OS::X11;
679 constexpr SystemProfileProto_OS_XdgSessionType SystemProfileProto_OS::WAYLAND;
680 constexpr SystemProfileProto_OS_XdgSessionType SystemProfileProto_OS::MIR;
681 constexpr SystemProfileProto_OS_XdgSessionType SystemProfileProto_OS::XdgSessionType_MIN;
682 constexpr SystemProfileProto_OS_XdgSessionType SystemProfileProto_OS::XdgSessionType_MAX;
683 constexpr int SystemProfileProto_OS::XdgSessionType_ARRAYSIZE;
684 #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
SystemProfileProto_OS_XdgCurrentDesktop_IsValid(int value)685 bool SystemProfileProto_OS_XdgCurrentDesktop_IsValid(int value) {
686 switch (value) {
687 case 0:
688 case 1:
689 case 2:
690 case 3:
691 case 4:
692 case 5:
693 case 6:
694 case 7:
695 case 8:
696 case 9:
697 return true;
698 default:
699 return false;
700 }
701 }
702
703 static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> SystemProfileProto_OS_XdgCurrentDesktop_strings[10] = {};
704
705 static const char SystemProfileProto_OS_XdgCurrentDesktop_names[] =
706 "CINNAMON"
707 "DEEPIN"
708 "GNOME"
709 "KDE"
710 "LXQT"
711 "OTHER"
712 "PANTHEON"
713 "UKUI"
714 "UNITY"
715 "XFCE";
716
717 static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry SystemProfileProto_OS_XdgCurrentDesktop_entries[] = {
718 { {SystemProfileProto_OS_XdgCurrentDesktop_names + 0, 8}, 1 },
719 { {SystemProfileProto_OS_XdgCurrentDesktop_names + 8, 6}, 2 },
720 { {SystemProfileProto_OS_XdgCurrentDesktop_names + 14, 5}, 3 },
721 { {SystemProfileProto_OS_XdgCurrentDesktop_names + 19, 3}, 4 },
722 { {SystemProfileProto_OS_XdgCurrentDesktop_names + 22, 4}, 9 },
723 { {SystemProfileProto_OS_XdgCurrentDesktop_names + 26, 5}, 0 },
724 { {SystemProfileProto_OS_XdgCurrentDesktop_names + 31, 8}, 5 },
725 { {SystemProfileProto_OS_XdgCurrentDesktop_names + 39, 4}, 6 },
726 { {SystemProfileProto_OS_XdgCurrentDesktop_names + 43, 5}, 7 },
727 { {SystemProfileProto_OS_XdgCurrentDesktop_names + 48, 4}, 8 },
728 };
729
730 static const int SystemProfileProto_OS_XdgCurrentDesktop_entries_by_number[] = {
731 5, // 0 -> OTHER
732 0, // 1 -> CINNAMON
733 1, // 2 -> DEEPIN
734 2, // 3 -> GNOME
735 3, // 4 -> KDE
736 6, // 5 -> PANTHEON
737 7, // 6 -> UKUI
738 8, // 7 -> UNITY
739 9, // 8 -> XFCE
740 4, // 9 -> LXQT
741 };
742
SystemProfileProto_OS_XdgCurrentDesktop_Name(SystemProfileProto_OS_XdgCurrentDesktop value)743 const std::string& SystemProfileProto_OS_XdgCurrentDesktop_Name(
744 SystemProfileProto_OS_XdgCurrentDesktop value) {
745 static const bool dummy =
746 ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
747 SystemProfileProto_OS_XdgCurrentDesktop_entries,
748 SystemProfileProto_OS_XdgCurrentDesktop_entries_by_number,
749 10, SystemProfileProto_OS_XdgCurrentDesktop_strings);
750 (void) dummy;
751 int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
752 SystemProfileProto_OS_XdgCurrentDesktop_entries,
753 SystemProfileProto_OS_XdgCurrentDesktop_entries_by_number,
754 10, value);
755 return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
756 SystemProfileProto_OS_XdgCurrentDesktop_strings[idx].get();
757 }
SystemProfileProto_OS_XdgCurrentDesktop_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,SystemProfileProto_OS_XdgCurrentDesktop * value)758 bool SystemProfileProto_OS_XdgCurrentDesktop_Parse(
759 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SystemProfileProto_OS_XdgCurrentDesktop* value) {
760 int int_value;
761 bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
762 SystemProfileProto_OS_XdgCurrentDesktop_entries, 10, name, &int_value);
763 if (success) {
764 *value = static_cast<SystemProfileProto_OS_XdgCurrentDesktop>(int_value);
765 }
766 return success;
767 }
768 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
769 constexpr SystemProfileProto_OS_XdgCurrentDesktop SystemProfileProto_OS::OTHER;
770 constexpr SystemProfileProto_OS_XdgCurrentDesktop SystemProfileProto_OS::CINNAMON;
771 constexpr SystemProfileProto_OS_XdgCurrentDesktop SystemProfileProto_OS::DEEPIN;
772 constexpr SystemProfileProto_OS_XdgCurrentDesktop SystemProfileProto_OS::GNOME;
773 constexpr SystemProfileProto_OS_XdgCurrentDesktop SystemProfileProto_OS::KDE;
774 constexpr SystemProfileProto_OS_XdgCurrentDesktop SystemProfileProto_OS::PANTHEON;
775 constexpr SystemProfileProto_OS_XdgCurrentDesktop SystemProfileProto_OS::UKUI;
776 constexpr SystemProfileProto_OS_XdgCurrentDesktop SystemProfileProto_OS::UNITY;
777 constexpr SystemProfileProto_OS_XdgCurrentDesktop SystemProfileProto_OS::XFCE;
778 constexpr SystemProfileProto_OS_XdgCurrentDesktop SystemProfileProto_OS::LXQT;
779 constexpr SystemProfileProto_OS_XdgCurrentDesktop SystemProfileProto_OS::XdgCurrentDesktop_MIN;
780 constexpr SystemProfileProto_OS_XdgCurrentDesktop SystemProfileProto_OS::XdgCurrentDesktop_MAX;
781 constexpr int SystemProfileProto_OS::XdgCurrentDesktop_ARRAYSIZE;
782 #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
SystemProfileProto_Hardware_InternalStorageDevice_Type_IsValid(int value)783 bool SystemProfileProto_Hardware_InternalStorageDevice_Type_IsValid(int value) {
784 switch (value) {
785 case 0:
786 case 1:
787 case 2:
788 case 3:
789 case 4:
790 return true;
791 default:
792 return false;
793 }
794 }
795
796 static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> SystemProfileProto_Hardware_InternalStorageDevice_Type_strings[5] = {};
797
798 static const char SystemProfileProto_Hardware_InternalStorageDevice_Type_names[] =
799 "TYPE_EMMC"
800 "TYPE_NVME"
801 "TYPE_SD_EXPRESS_INTERNAL"
802 "TYPE_UFS"
803 "TYPE_UNKNOWN";
804
805 static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry SystemProfileProto_Hardware_InternalStorageDevice_Type_entries[] = {
806 { {SystemProfileProto_Hardware_InternalStorageDevice_Type_names + 0, 9}, 1 },
807 { {SystemProfileProto_Hardware_InternalStorageDevice_Type_names + 9, 9}, 2 },
808 { {SystemProfileProto_Hardware_InternalStorageDevice_Type_names + 18, 24}, 4 },
809 { {SystemProfileProto_Hardware_InternalStorageDevice_Type_names + 42, 8}, 3 },
810 { {SystemProfileProto_Hardware_InternalStorageDevice_Type_names + 50, 12}, 0 },
811 };
812
813 static const int SystemProfileProto_Hardware_InternalStorageDevice_Type_entries_by_number[] = {
814 4, // 0 -> TYPE_UNKNOWN
815 0, // 1 -> TYPE_EMMC
816 1, // 2 -> TYPE_NVME
817 3, // 3 -> TYPE_UFS
818 2, // 4 -> TYPE_SD_EXPRESS_INTERNAL
819 };
820
SystemProfileProto_Hardware_InternalStorageDevice_Type_Name(SystemProfileProto_Hardware_InternalStorageDevice_Type value)821 const std::string& SystemProfileProto_Hardware_InternalStorageDevice_Type_Name(
822 SystemProfileProto_Hardware_InternalStorageDevice_Type value) {
823 static const bool dummy =
824 ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
825 SystemProfileProto_Hardware_InternalStorageDevice_Type_entries,
826 SystemProfileProto_Hardware_InternalStorageDevice_Type_entries_by_number,
827 5, SystemProfileProto_Hardware_InternalStorageDevice_Type_strings);
828 (void) dummy;
829 int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
830 SystemProfileProto_Hardware_InternalStorageDevice_Type_entries,
831 SystemProfileProto_Hardware_InternalStorageDevice_Type_entries_by_number,
832 5, value);
833 return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
834 SystemProfileProto_Hardware_InternalStorageDevice_Type_strings[idx].get();
835 }
SystemProfileProto_Hardware_InternalStorageDevice_Type_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,SystemProfileProto_Hardware_InternalStorageDevice_Type * value)836 bool SystemProfileProto_Hardware_InternalStorageDevice_Type_Parse(
837 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SystemProfileProto_Hardware_InternalStorageDevice_Type* value) {
838 int int_value;
839 bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
840 SystemProfileProto_Hardware_InternalStorageDevice_Type_entries, 5, name, &int_value);
841 if (success) {
842 *value = static_cast<SystemProfileProto_Hardware_InternalStorageDevice_Type>(int_value);
843 }
844 return success;
845 }
846 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
847 constexpr SystemProfileProto_Hardware_InternalStorageDevice_Type SystemProfileProto_Hardware_InternalStorageDevice::TYPE_UNKNOWN;
848 constexpr SystemProfileProto_Hardware_InternalStorageDevice_Type SystemProfileProto_Hardware_InternalStorageDevice::TYPE_EMMC;
849 constexpr SystemProfileProto_Hardware_InternalStorageDevice_Type SystemProfileProto_Hardware_InternalStorageDevice::TYPE_NVME;
850 constexpr SystemProfileProto_Hardware_InternalStorageDevice_Type SystemProfileProto_Hardware_InternalStorageDevice::TYPE_UFS;
851 constexpr SystemProfileProto_Hardware_InternalStorageDevice_Type SystemProfileProto_Hardware_InternalStorageDevice::TYPE_SD_EXPRESS_INTERNAL;
852 constexpr SystemProfileProto_Hardware_InternalStorageDevice_Type SystemProfileProto_Hardware_InternalStorageDevice::Type_MIN;
853 constexpr SystemProfileProto_Hardware_InternalStorageDevice_Type SystemProfileProto_Hardware_InternalStorageDevice::Type_MAX;
854 constexpr int SystemProfileProto_Hardware_InternalStorageDevice::Type_ARRAYSIZE;
855 #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
SystemProfileProto_Hardware_InternalStorageDevice_Purpose_IsValid(int value)856 bool SystemProfileProto_Hardware_InternalStorageDevice_Purpose_IsValid(int value) {
857 switch (value) {
858 case 0:
859 case 1:
860 case 2:
861 case 3:
862 return true;
863 default:
864 return false;
865 }
866 }
867
868 static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> SystemProfileProto_Hardware_InternalStorageDevice_Purpose_strings[4] = {};
869
870 static const char SystemProfileProto_Hardware_InternalStorageDevice_Purpose_names[] =
871 "PURPOSE_BOOT"
872 "PURPOSE_BOOT_SWAP"
873 "PURPOSE_SWAP"
874 "PURPOSE_UNKNOWN";
875
876 static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry SystemProfileProto_Hardware_InternalStorageDevice_Purpose_entries[] = {
877 { {SystemProfileProto_Hardware_InternalStorageDevice_Purpose_names + 0, 12}, 1 },
878 { {SystemProfileProto_Hardware_InternalStorageDevice_Purpose_names + 12, 17}, 3 },
879 { {SystemProfileProto_Hardware_InternalStorageDevice_Purpose_names + 29, 12}, 2 },
880 { {SystemProfileProto_Hardware_InternalStorageDevice_Purpose_names + 41, 15}, 0 },
881 };
882
883 static const int SystemProfileProto_Hardware_InternalStorageDevice_Purpose_entries_by_number[] = {
884 3, // 0 -> PURPOSE_UNKNOWN
885 0, // 1 -> PURPOSE_BOOT
886 2, // 2 -> PURPOSE_SWAP
887 1, // 3 -> PURPOSE_BOOT_SWAP
888 };
889
SystemProfileProto_Hardware_InternalStorageDevice_Purpose_Name(SystemProfileProto_Hardware_InternalStorageDevice_Purpose value)890 const std::string& SystemProfileProto_Hardware_InternalStorageDevice_Purpose_Name(
891 SystemProfileProto_Hardware_InternalStorageDevice_Purpose value) {
892 static const bool dummy =
893 ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
894 SystemProfileProto_Hardware_InternalStorageDevice_Purpose_entries,
895 SystemProfileProto_Hardware_InternalStorageDevice_Purpose_entries_by_number,
896 4, SystemProfileProto_Hardware_InternalStorageDevice_Purpose_strings);
897 (void) dummy;
898 int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
899 SystemProfileProto_Hardware_InternalStorageDevice_Purpose_entries,
900 SystemProfileProto_Hardware_InternalStorageDevice_Purpose_entries_by_number,
901 4, value);
902 return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
903 SystemProfileProto_Hardware_InternalStorageDevice_Purpose_strings[idx].get();
904 }
SystemProfileProto_Hardware_InternalStorageDevice_Purpose_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,SystemProfileProto_Hardware_InternalStorageDevice_Purpose * value)905 bool SystemProfileProto_Hardware_InternalStorageDevice_Purpose_Parse(
906 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SystemProfileProto_Hardware_InternalStorageDevice_Purpose* value) {
907 int int_value;
908 bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
909 SystemProfileProto_Hardware_InternalStorageDevice_Purpose_entries, 4, name, &int_value);
910 if (success) {
911 *value = static_cast<SystemProfileProto_Hardware_InternalStorageDevice_Purpose>(int_value);
912 }
913 return success;
914 }
915 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
916 constexpr SystemProfileProto_Hardware_InternalStorageDevice_Purpose SystemProfileProto_Hardware_InternalStorageDevice::PURPOSE_UNKNOWN;
917 constexpr SystemProfileProto_Hardware_InternalStorageDevice_Purpose SystemProfileProto_Hardware_InternalStorageDevice::PURPOSE_BOOT;
918 constexpr SystemProfileProto_Hardware_InternalStorageDevice_Purpose SystemProfileProto_Hardware_InternalStorageDevice::PURPOSE_SWAP;
919 constexpr SystemProfileProto_Hardware_InternalStorageDevice_Purpose SystemProfileProto_Hardware_InternalStorageDevice::PURPOSE_BOOT_SWAP;
920 constexpr SystemProfileProto_Hardware_InternalStorageDevice_Purpose SystemProfileProto_Hardware_InternalStorageDevice::Purpose_MIN;
921 constexpr SystemProfileProto_Hardware_InternalStorageDevice_Purpose SystemProfileProto_Hardware_InternalStorageDevice::Purpose_MAX;
922 constexpr int SystemProfileProto_Hardware_InternalStorageDevice::Purpose_ARRAYSIZE;
923 #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
SystemProfileProto_Hardware_FormFactor_IsValid(int value)924 bool SystemProfileProto_Hardware_FormFactor_IsValid(int value) {
925 switch (value) {
926 case 0:
927 case 1:
928 case 2:
929 case 3:
930 case 4:
931 case 5:
932 case 6:
933 case 7:
934 return true;
935 default:
936 return false;
937 }
938 }
939
940 static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> SystemProfileProto_Hardware_FormFactor_strings[8] = {};
941
942 static const char SystemProfileProto_Hardware_FormFactor_names[] =
943 "FORM_FACTOR_AUTOMOTIVE"
944 "FORM_FACTOR_DESKTOP"
945 "FORM_FACTOR_FOLDABLE"
946 "FORM_FACTOR_MEET_DEVICE"
947 "FORM_FACTOR_PHONE"
948 "FORM_FACTOR_TABLET"
949 "FORM_FACTOR_TV"
950 "FORM_FACTOR_UNKNOWN";
951
952 static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry SystemProfileProto_Hardware_FormFactor_entries[] = {
953 { {SystemProfileProto_Hardware_FormFactor_names + 0, 22}, 6 },
954 { {SystemProfileProto_Hardware_FormFactor_names + 22, 19}, 1 },
955 { {SystemProfileProto_Hardware_FormFactor_names + 41, 20}, 7 },
956 { {SystemProfileProto_Hardware_FormFactor_names + 61, 23}, 5 },
957 { {SystemProfileProto_Hardware_FormFactor_names + 84, 17}, 2 },
958 { {SystemProfileProto_Hardware_FormFactor_names + 101, 18}, 3 },
959 { {SystemProfileProto_Hardware_FormFactor_names + 119, 14}, 4 },
960 { {SystemProfileProto_Hardware_FormFactor_names + 133, 19}, 0 },
961 };
962
963 static const int SystemProfileProto_Hardware_FormFactor_entries_by_number[] = {
964 7, // 0 -> FORM_FACTOR_UNKNOWN
965 1, // 1 -> FORM_FACTOR_DESKTOP
966 4, // 2 -> FORM_FACTOR_PHONE
967 5, // 3 -> FORM_FACTOR_TABLET
968 6, // 4 -> FORM_FACTOR_TV
969 3, // 5 -> FORM_FACTOR_MEET_DEVICE
970 0, // 6 -> FORM_FACTOR_AUTOMOTIVE
971 2, // 7 -> FORM_FACTOR_FOLDABLE
972 };
973
SystemProfileProto_Hardware_FormFactor_Name(SystemProfileProto_Hardware_FormFactor value)974 const std::string& SystemProfileProto_Hardware_FormFactor_Name(
975 SystemProfileProto_Hardware_FormFactor value) {
976 static const bool dummy =
977 ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
978 SystemProfileProto_Hardware_FormFactor_entries,
979 SystemProfileProto_Hardware_FormFactor_entries_by_number,
980 8, SystemProfileProto_Hardware_FormFactor_strings);
981 (void) dummy;
982 int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
983 SystemProfileProto_Hardware_FormFactor_entries,
984 SystemProfileProto_Hardware_FormFactor_entries_by_number,
985 8, value);
986 return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
987 SystemProfileProto_Hardware_FormFactor_strings[idx].get();
988 }
SystemProfileProto_Hardware_FormFactor_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,SystemProfileProto_Hardware_FormFactor * value)989 bool SystemProfileProto_Hardware_FormFactor_Parse(
990 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SystemProfileProto_Hardware_FormFactor* value) {
991 int int_value;
992 bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
993 SystemProfileProto_Hardware_FormFactor_entries, 8, name, &int_value);
994 if (success) {
995 *value = static_cast<SystemProfileProto_Hardware_FormFactor>(int_value);
996 }
997 return success;
998 }
999 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
1000 constexpr SystemProfileProto_Hardware_FormFactor SystemProfileProto_Hardware::FORM_FACTOR_UNKNOWN;
1001 constexpr SystemProfileProto_Hardware_FormFactor SystemProfileProto_Hardware::FORM_FACTOR_DESKTOP;
1002 constexpr SystemProfileProto_Hardware_FormFactor SystemProfileProto_Hardware::FORM_FACTOR_PHONE;
1003 constexpr SystemProfileProto_Hardware_FormFactor SystemProfileProto_Hardware::FORM_FACTOR_TABLET;
1004 constexpr SystemProfileProto_Hardware_FormFactor SystemProfileProto_Hardware::FORM_FACTOR_TV;
1005 constexpr SystemProfileProto_Hardware_FormFactor SystemProfileProto_Hardware::FORM_FACTOR_MEET_DEVICE;
1006 constexpr SystemProfileProto_Hardware_FormFactor SystemProfileProto_Hardware::FORM_FACTOR_AUTOMOTIVE;
1007 constexpr SystemProfileProto_Hardware_FormFactor SystemProfileProto_Hardware::FORM_FACTOR_FOLDABLE;
1008 constexpr SystemProfileProto_Hardware_FormFactor SystemProfileProto_Hardware::FormFactor_MIN;
1009 constexpr SystemProfileProto_Hardware_FormFactor SystemProfileProto_Hardware::FormFactor_MAX;
1010 constexpr int SystemProfileProto_Hardware::FormFactor_ARRAYSIZE;
1011 #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
SystemProfileProto_Hardware_BiosType_IsValid(int value)1012 bool SystemProfileProto_Hardware_BiosType_IsValid(int value) {
1013 switch (value) {
1014 case 0:
1015 case 1:
1016 case 2:
1017 return true;
1018 default:
1019 return false;
1020 }
1021 }
1022
1023 static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> SystemProfileProto_Hardware_BiosType_strings[3] = {};
1024
1025 static const char SystemProfileProto_Hardware_BiosType_names[] =
1026 "BIOS_TYPE_LEGACY"
1027 "BIOS_TYPE_UEFI"
1028 "BIOS_TYPE_UNKNOWN";
1029
1030 static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry SystemProfileProto_Hardware_BiosType_entries[] = {
1031 { {SystemProfileProto_Hardware_BiosType_names + 0, 16}, 1 },
1032 { {SystemProfileProto_Hardware_BiosType_names + 16, 14}, 2 },
1033 { {SystemProfileProto_Hardware_BiosType_names + 30, 17}, 0 },
1034 };
1035
1036 static const int SystemProfileProto_Hardware_BiosType_entries_by_number[] = {
1037 2, // 0 -> BIOS_TYPE_UNKNOWN
1038 0, // 1 -> BIOS_TYPE_LEGACY
1039 1, // 2 -> BIOS_TYPE_UEFI
1040 };
1041
SystemProfileProto_Hardware_BiosType_Name(SystemProfileProto_Hardware_BiosType value)1042 const std::string& SystemProfileProto_Hardware_BiosType_Name(
1043 SystemProfileProto_Hardware_BiosType value) {
1044 static const bool dummy =
1045 ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
1046 SystemProfileProto_Hardware_BiosType_entries,
1047 SystemProfileProto_Hardware_BiosType_entries_by_number,
1048 3, SystemProfileProto_Hardware_BiosType_strings);
1049 (void) dummy;
1050 int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
1051 SystemProfileProto_Hardware_BiosType_entries,
1052 SystemProfileProto_Hardware_BiosType_entries_by_number,
1053 3, value);
1054 return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
1055 SystemProfileProto_Hardware_BiosType_strings[idx].get();
1056 }
SystemProfileProto_Hardware_BiosType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,SystemProfileProto_Hardware_BiosType * value)1057 bool SystemProfileProto_Hardware_BiosType_Parse(
1058 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SystemProfileProto_Hardware_BiosType* value) {
1059 int int_value;
1060 bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
1061 SystemProfileProto_Hardware_BiosType_entries, 3, name, &int_value);
1062 if (success) {
1063 *value = static_cast<SystemProfileProto_Hardware_BiosType>(int_value);
1064 }
1065 return success;
1066 }
1067 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
1068 constexpr SystemProfileProto_Hardware_BiosType SystemProfileProto_Hardware::BIOS_TYPE_UNKNOWN;
1069 constexpr SystemProfileProto_Hardware_BiosType SystemProfileProto_Hardware::BIOS_TYPE_LEGACY;
1070 constexpr SystemProfileProto_Hardware_BiosType SystemProfileProto_Hardware::BIOS_TYPE_UEFI;
1071 constexpr SystemProfileProto_Hardware_BiosType SystemProfileProto_Hardware::BiosType_MIN;
1072 constexpr SystemProfileProto_Hardware_BiosType SystemProfileProto_Hardware::BiosType_MAX;
1073 constexpr int SystemProfileProto_Hardware::BiosType_ARRAYSIZE;
1074 #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
SystemProfileProto_Hardware_TpmType_IsValid(int value)1075 bool SystemProfileProto_Hardware_TpmType_IsValid(int value) {
1076 switch (value) {
1077 case 0:
1078 case 1:
1079 case 2:
1080 case 3:
1081 case 4:
1082 case 5:
1083 return true;
1084 default:
1085 return false;
1086 }
1087 }
1088
1089 static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> SystemProfileProto_Hardware_TpmType_strings[6] = {};
1090
1091 static const char SystemProfileProto_Hardware_TpmType_names[] =
1092 "TPM_TYPE_1"
1093 "TPM_TYPE_CR50"
1094 "TPM_TYPE_GENERIC_2"
1095 "TPM_TYPE_RUNTIME_SELECTION"
1096 "TPM_TYPE_TI50"
1097 "TPM_TYPE_UNKNOWN";
1098
1099 static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry SystemProfileProto_Hardware_TpmType_entries[] = {
1100 { {SystemProfileProto_Hardware_TpmType_names + 0, 10}, 1 },
1101 { {SystemProfileProto_Hardware_TpmType_names + 10, 13}, 2 },
1102 { {SystemProfileProto_Hardware_TpmType_names + 23, 18}, 5 },
1103 { {SystemProfileProto_Hardware_TpmType_names + 41, 26}, 4 },
1104 { {SystemProfileProto_Hardware_TpmType_names + 67, 13}, 3 },
1105 { {SystemProfileProto_Hardware_TpmType_names + 80, 16}, 0 },
1106 };
1107
1108 static const int SystemProfileProto_Hardware_TpmType_entries_by_number[] = {
1109 5, // 0 -> TPM_TYPE_UNKNOWN
1110 0, // 1 -> TPM_TYPE_1
1111 1, // 2 -> TPM_TYPE_CR50
1112 4, // 3 -> TPM_TYPE_TI50
1113 3, // 4 -> TPM_TYPE_RUNTIME_SELECTION
1114 2, // 5 -> TPM_TYPE_GENERIC_2
1115 };
1116
SystemProfileProto_Hardware_TpmType_Name(SystemProfileProto_Hardware_TpmType value)1117 const std::string& SystemProfileProto_Hardware_TpmType_Name(
1118 SystemProfileProto_Hardware_TpmType value) {
1119 static const bool dummy =
1120 ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
1121 SystemProfileProto_Hardware_TpmType_entries,
1122 SystemProfileProto_Hardware_TpmType_entries_by_number,
1123 6, SystemProfileProto_Hardware_TpmType_strings);
1124 (void) dummy;
1125 int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
1126 SystemProfileProto_Hardware_TpmType_entries,
1127 SystemProfileProto_Hardware_TpmType_entries_by_number,
1128 6, value);
1129 return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
1130 SystemProfileProto_Hardware_TpmType_strings[idx].get();
1131 }
SystemProfileProto_Hardware_TpmType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,SystemProfileProto_Hardware_TpmType * value)1132 bool SystemProfileProto_Hardware_TpmType_Parse(
1133 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SystemProfileProto_Hardware_TpmType* value) {
1134 int int_value;
1135 bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
1136 SystemProfileProto_Hardware_TpmType_entries, 6, name, &int_value);
1137 if (success) {
1138 *value = static_cast<SystemProfileProto_Hardware_TpmType>(int_value);
1139 }
1140 return success;
1141 }
1142 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
1143 constexpr SystemProfileProto_Hardware_TpmType SystemProfileProto_Hardware::TPM_TYPE_UNKNOWN;
1144 constexpr SystemProfileProto_Hardware_TpmType SystemProfileProto_Hardware::TPM_TYPE_1;
1145 constexpr SystemProfileProto_Hardware_TpmType SystemProfileProto_Hardware::TPM_TYPE_CR50;
1146 constexpr SystemProfileProto_Hardware_TpmType SystemProfileProto_Hardware::TPM_TYPE_TI50;
1147 constexpr SystemProfileProto_Hardware_TpmType SystemProfileProto_Hardware::TPM_TYPE_RUNTIME_SELECTION;
1148 constexpr SystemProfileProto_Hardware_TpmType SystemProfileProto_Hardware::TPM_TYPE_GENERIC_2;
1149 constexpr SystemProfileProto_Hardware_TpmType SystemProfileProto_Hardware::TpmType_MIN;
1150 constexpr SystemProfileProto_Hardware_TpmType SystemProfileProto_Hardware::TpmType_MAX;
1151 constexpr int SystemProfileProto_Hardware::TpmType_ARRAYSIZE;
1152 #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
SystemProfileProto_Network_ConnectionType_IsValid(int value)1153 bool SystemProfileProto_Network_ConnectionType_IsValid(int value) {
1154 switch (value) {
1155 case 0:
1156 case 1:
1157 case 2:
1158 case 3:
1159 case 4:
1160 case 5:
1161 case 6:
1162 case 7:
1163 case 8:
1164 case 9:
1165 return true;
1166 default:
1167 return false;
1168 }
1169 }
1170
1171 static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> SystemProfileProto_Network_ConnectionType_strings[10] = {};
1172
1173 static const char SystemProfileProto_Network_ConnectionType_names[] =
1174 "CONNECTION_2G"
1175 "CONNECTION_3G"
1176 "CONNECTION_4G"
1177 "CONNECTION_5G"
1178 "CONNECTION_AMBIGUOUS"
1179 "CONNECTION_BLUETOOTH"
1180 "CONNECTION_ETHERNET"
1181 "CONNECTION_NONE"
1182 "CONNECTION_UNKNOWN"
1183 "CONNECTION_WIFI";
1184
1185 static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry SystemProfileProto_Network_ConnectionType_entries[] = {
1186 { {SystemProfileProto_Network_ConnectionType_names + 0, 13}, 3 },
1187 { {SystemProfileProto_Network_ConnectionType_names + 13, 13}, 4 },
1188 { {SystemProfileProto_Network_ConnectionType_names + 26, 13}, 5 },
1189 { {SystemProfileProto_Network_ConnectionType_names + 39, 13}, 9 },
1190 { {SystemProfileProto_Network_ConnectionType_names + 52, 20}, 8 },
1191 { {SystemProfileProto_Network_ConnectionType_names + 72, 20}, 6 },
1192 { {SystemProfileProto_Network_ConnectionType_names + 92, 19}, 1 },
1193 { {SystemProfileProto_Network_ConnectionType_names + 111, 15}, 7 },
1194 { {SystemProfileProto_Network_ConnectionType_names + 126, 18}, 0 },
1195 { {SystemProfileProto_Network_ConnectionType_names + 144, 15}, 2 },
1196 };
1197
1198 static const int SystemProfileProto_Network_ConnectionType_entries_by_number[] = {
1199 8, // 0 -> CONNECTION_UNKNOWN
1200 6, // 1 -> CONNECTION_ETHERNET
1201 9, // 2 -> CONNECTION_WIFI
1202 0, // 3 -> CONNECTION_2G
1203 1, // 4 -> CONNECTION_3G
1204 2, // 5 -> CONNECTION_4G
1205 5, // 6 -> CONNECTION_BLUETOOTH
1206 7, // 7 -> CONNECTION_NONE
1207 4, // 8 -> CONNECTION_AMBIGUOUS
1208 3, // 9 -> CONNECTION_5G
1209 };
1210
SystemProfileProto_Network_ConnectionType_Name(SystemProfileProto_Network_ConnectionType value)1211 const std::string& SystemProfileProto_Network_ConnectionType_Name(
1212 SystemProfileProto_Network_ConnectionType value) {
1213 static const bool dummy =
1214 ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
1215 SystemProfileProto_Network_ConnectionType_entries,
1216 SystemProfileProto_Network_ConnectionType_entries_by_number,
1217 10, SystemProfileProto_Network_ConnectionType_strings);
1218 (void) dummy;
1219 int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
1220 SystemProfileProto_Network_ConnectionType_entries,
1221 SystemProfileProto_Network_ConnectionType_entries_by_number,
1222 10, value);
1223 return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
1224 SystemProfileProto_Network_ConnectionType_strings[idx].get();
1225 }
SystemProfileProto_Network_ConnectionType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,SystemProfileProto_Network_ConnectionType * value)1226 bool SystemProfileProto_Network_ConnectionType_Parse(
1227 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SystemProfileProto_Network_ConnectionType* value) {
1228 int int_value;
1229 bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
1230 SystemProfileProto_Network_ConnectionType_entries, 10, name, &int_value);
1231 if (success) {
1232 *value = static_cast<SystemProfileProto_Network_ConnectionType>(int_value);
1233 }
1234 return success;
1235 }
1236 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
1237 constexpr SystemProfileProto_Network_ConnectionType SystemProfileProto_Network::CONNECTION_UNKNOWN;
1238 constexpr SystemProfileProto_Network_ConnectionType SystemProfileProto_Network::CONNECTION_ETHERNET;
1239 constexpr SystemProfileProto_Network_ConnectionType SystemProfileProto_Network::CONNECTION_WIFI;
1240 constexpr SystemProfileProto_Network_ConnectionType SystemProfileProto_Network::CONNECTION_2G;
1241 constexpr SystemProfileProto_Network_ConnectionType SystemProfileProto_Network::CONNECTION_3G;
1242 constexpr SystemProfileProto_Network_ConnectionType SystemProfileProto_Network::CONNECTION_4G;
1243 constexpr SystemProfileProto_Network_ConnectionType SystemProfileProto_Network::CONNECTION_BLUETOOTH;
1244 constexpr SystemProfileProto_Network_ConnectionType SystemProfileProto_Network::CONNECTION_NONE;
1245 constexpr SystemProfileProto_Network_ConnectionType SystemProfileProto_Network::CONNECTION_AMBIGUOUS;
1246 constexpr SystemProfileProto_Network_ConnectionType SystemProfileProto_Network::CONNECTION_5G;
1247 constexpr SystemProfileProto_Network_ConnectionType SystemProfileProto_Network::ConnectionType_MIN;
1248 constexpr SystemProfileProto_Network_ConnectionType SystemProfileProto_Network::ConnectionType_MAX;
1249 constexpr int SystemProfileProto_Network::ConnectionType_ARRAYSIZE;
1250 #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
SystemProfileProto_Network_WifiPHYLayerProtocol_IsValid(int value)1251 bool SystemProfileProto_Network_WifiPHYLayerProtocol_IsValid(int value) {
1252 switch (value) {
1253 case 0:
1254 case 1:
1255 case 2:
1256 case 3:
1257 case 4:
1258 case 5:
1259 case 6:
1260 case 7:
1261 case 8:
1262 case 9:
1263 return true;
1264 default:
1265 return false;
1266 }
1267 }
1268
1269 static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> SystemProfileProto_Network_WifiPHYLayerProtocol_strings[10] = {};
1270
1271 static const char SystemProfileProto_Network_WifiPHYLayerProtocol_names[] =
1272 "WIFI_PHY_LAYER_PROTOCOL_A"
1273 "WIFI_PHY_LAYER_PROTOCOL_AC"
1274 "WIFI_PHY_LAYER_PROTOCOL_AD"
1275 "WIFI_PHY_LAYER_PROTOCOL_ANCIENT"
1276 "WIFI_PHY_LAYER_PROTOCOL_AX"
1277 "WIFI_PHY_LAYER_PROTOCOL_B"
1278 "WIFI_PHY_LAYER_PROTOCOL_G"
1279 "WIFI_PHY_LAYER_PROTOCOL_N"
1280 "WIFI_PHY_LAYER_PROTOCOL_NONE"
1281 "WIFI_PHY_LAYER_PROTOCOL_UNKNOWN";
1282
1283 static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry SystemProfileProto_Network_WifiPHYLayerProtocol_entries[] = {
1284 { {SystemProfileProto_Network_WifiPHYLayerProtocol_names + 0, 25}, 2 },
1285 { {SystemProfileProto_Network_WifiPHYLayerProtocol_names + 25, 26}, 7 },
1286 { {SystemProfileProto_Network_WifiPHYLayerProtocol_names + 51, 26}, 8 },
1287 { {SystemProfileProto_Network_WifiPHYLayerProtocol_names + 77, 31}, 1 },
1288 { {SystemProfileProto_Network_WifiPHYLayerProtocol_names + 108, 26}, 9 },
1289 { {SystemProfileProto_Network_WifiPHYLayerProtocol_names + 134, 25}, 3 },
1290 { {SystemProfileProto_Network_WifiPHYLayerProtocol_names + 159, 25}, 4 },
1291 { {SystemProfileProto_Network_WifiPHYLayerProtocol_names + 184, 25}, 5 },
1292 { {SystemProfileProto_Network_WifiPHYLayerProtocol_names + 209, 28}, 0 },
1293 { {SystemProfileProto_Network_WifiPHYLayerProtocol_names + 237, 31}, 6 },
1294 };
1295
1296 static const int SystemProfileProto_Network_WifiPHYLayerProtocol_entries_by_number[] = {
1297 8, // 0 -> WIFI_PHY_LAYER_PROTOCOL_NONE
1298 3, // 1 -> WIFI_PHY_LAYER_PROTOCOL_ANCIENT
1299 0, // 2 -> WIFI_PHY_LAYER_PROTOCOL_A
1300 5, // 3 -> WIFI_PHY_LAYER_PROTOCOL_B
1301 6, // 4 -> WIFI_PHY_LAYER_PROTOCOL_G
1302 7, // 5 -> WIFI_PHY_LAYER_PROTOCOL_N
1303 9, // 6 -> WIFI_PHY_LAYER_PROTOCOL_UNKNOWN
1304 1, // 7 -> WIFI_PHY_LAYER_PROTOCOL_AC
1305 2, // 8 -> WIFI_PHY_LAYER_PROTOCOL_AD
1306 4, // 9 -> WIFI_PHY_LAYER_PROTOCOL_AX
1307 };
1308
SystemProfileProto_Network_WifiPHYLayerProtocol_Name(SystemProfileProto_Network_WifiPHYLayerProtocol value)1309 const std::string& SystemProfileProto_Network_WifiPHYLayerProtocol_Name(
1310 SystemProfileProto_Network_WifiPHYLayerProtocol value) {
1311 static const bool dummy =
1312 ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
1313 SystemProfileProto_Network_WifiPHYLayerProtocol_entries,
1314 SystemProfileProto_Network_WifiPHYLayerProtocol_entries_by_number,
1315 10, SystemProfileProto_Network_WifiPHYLayerProtocol_strings);
1316 (void) dummy;
1317 int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
1318 SystemProfileProto_Network_WifiPHYLayerProtocol_entries,
1319 SystemProfileProto_Network_WifiPHYLayerProtocol_entries_by_number,
1320 10, value);
1321 return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
1322 SystemProfileProto_Network_WifiPHYLayerProtocol_strings[idx].get();
1323 }
SystemProfileProto_Network_WifiPHYLayerProtocol_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,SystemProfileProto_Network_WifiPHYLayerProtocol * value)1324 bool SystemProfileProto_Network_WifiPHYLayerProtocol_Parse(
1325 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SystemProfileProto_Network_WifiPHYLayerProtocol* value) {
1326 int int_value;
1327 bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
1328 SystemProfileProto_Network_WifiPHYLayerProtocol_entries, 10, name, &int_value);
1329 if (success) {
1330 *value = static_cast<SystemProfileProto_Network_WifiPHYLayerProtocol>(int_value);
1331 }
1332 return success;
1333 }
1334 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
1335 constexpr SystemProfileProto_Network_WifiPHYLayerProtocol SystemProfileProto_Network::WIFI_PHY_LAYER_PROTOCOL_NONE;
1336 constexpr SystemProfileProto_Network_WifiPHYLayerProtocol SystemProfileProto_Network::WIFI_PHY_LAYER_PROTOCOL_ANCIENT;
1337 constexpr SystemProfileProto_Network_WifiPHYLayerProtocol SystemProfileProto_Network::WIFI_PHY_LAYER_PROTOCOL_A;
1338 constexpr SystemProfileProto_Network_WifiPHYLayerProtocol SystemProfileProto_Network::WIFI_PHY_LAYER_PROTOCOL_B;
1339 constexpr SystemProfileProto_Network_WifiPHYLayerProtocol SystemProfileProto_Network::WIFI_PHY_LAYER_PROTOCOL_G;
1340 constexpr SystemProfileProto_Network_WifiPHYLayerProtocol SystemProfileProto_Network::WIFI_PHY_LAYER_PROTOCOL_N;
1341 constexpr SystemProfileProto_Network_WifiPHYLayerProtocol SystemProfileProto_Network::WIFI_PHY_LAYER_PROTOCOL_UNKNOWN;
1342 constexpr SystemProfileProto_Network_WifiPHYLayerProtocol SystemProfileProto_Network::WIFI_PHY_LAYER_PROTOCOL_AC;
1343 constexpr SystemProfileProto_Network_WifiPHYLayerProtocol SystemProfileProto_Network::WIFI_PHY_LAYER_PROTOCOL_AD;
1344 constexpr SystemProfileProto_Network_WifiPHYLayerProtocol SystemProfileProto_Network::WIFI_PHY_LAYER_PROTOCOL_AX;
1345 constexpr SystemProfileProto_Network_WifiPHYLayerProtocol SystemProfileProto_Network::WifiPHYLayerProtocol_MIN;
1346 constexpr SystemProfileProto_Network_WifiPHYLayerProtocol SystemProfileProto_Network::WifiPHYLayerProtocol_MAX;
1347 constexpr int SystemProfileProto_Network::WifiPHYLayerProtocol_ARRAYSIZE;
1348 #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
SystemProfileProto_Network_EffectiveConnectionType_IsValid(int value)1349 bool SystemProfileProto_Network_EffectiveConnectionType_IsValid(int value) {
1350 switch (value) {
1351 case 0:
1352 case 1:
1353 case 2:
1354 case 3:
1355 case 4:
1356 case 5:
1357 case 6:
1358 return true;
1359 default:
1360 return false;
1361 }
1362 }
1363
1364 static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> SystemProfileProto_Network_EffectiveConnectionType_strings[7] = {};
1365
1366 static const char SystemProfileProto_Network_EffectiveConnectionType_names[] =
1367 "DEPRECATED_EFFECTIVE_CONNECTION_TYPE_AMBIGUOUS"
1368 "EFFECTIVE_CONNECTION_TYPE_2G"
1369 "EFFECTIVE_CONNECTION_TYPE_3G"
1370 "EFFECTIVE_CONNECTION_TYPE_4G"
1371 "EFFECTIVE_CONNECTION_TYPE_OFFLINE"
1372 "EFFECTIVE_CONNECTION_TYPE_SLOW_2G"
1373 "EFFECTIVE_CONNECTION_TYPE_UNKNOWN";
1374
1375 static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry SystemProfileProto_Network_EffectiveConnectionType_entries[] = {
1376 { {SystemProfileProto_Network_EffectiveConnectionType_names + 0, 46}, 1 },
1377 { {SystemProfileProto_Network_EffectiveConnectionType_names + 46, 28}, 4 },
1378 { {SystemProfileProto_Network_EffectiveConnectionType_names + 74, 28}, 5 },
1379 { {SystemProfileProto_Network_EffectiveConnectionType_names + 102, 28}, 6 },
1380 { {SystemProfileProto_Network_EffectiveConnectionType_names + 130, 33}, 2 },
1381 { {SystemProfileProto_Network_EffectiveConnectionType_names + 163, 33}, 3 },
1382 { {SystemProfileProto_Network_EffectiveConnectionType_names + 196, 33}, 0 },
1383 };
1384
1385 static const int SystemProfileProto_Network_EffectiveConnectionType_entries_by_number[] = {
1386 6, // 0 -> EFFECTIVE_CONNECTION_TYPE_UNKNOWN
1387 0, // 1 -> DEPRECATED_EFFECTIVE_CONNECTION_TYPE_AMBIGUOUS
1388 4, // 2 -> EFFECTIVE_CONNECTION_TYPE_OFFLINE
1389 5, // 3 -> EFFECTIVE_CONNECTION_TYPE_SLOW_2G
1390 1, // 4 -> EFFECTIVE_CONNECTION_TYPE_2G
1391 2, // 5 -> EFFECTIVE_CONNECTION_TYPE_3G
1392 3, // 6 -> EFFECTIVE_CONNECTION_TYPE_4G
1393 };
1394
SystemProfileProto_Network_EffectiveConnectionType_Name(SystemProfileProto_Network_EffectiveConnectionType value)1395 const std::string& SystemProfileProto_Network_EffectiveConnectionType_Name(
1396 SystemProfileProto_Network_EffectiveConnectionType value) {
1397 static const bool dummy =
1398 ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
1399 SystemProfileProto_Network_EffectiveConnectionType_entries,
1400 SystemProfileProto_Network_EffectiveConnectionType_entries_by_number,
1401 7, SystemProfileProto_Network_EffectiveConnectionType_strings);
1402 (void) dummy;
1403 int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
1404 SystemProfileProto_Network_EffectiveConnectionType_entries,
1405 SystemProfileProto_Network_EffectiveConnectionType_entries_by_number,
1406 7, value);
1407 return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
1408 SystemProfileProto_Network_EffectiveConnectionType_strings[idx].get();
1409 }
SystemProfileProto_Network_EffectiveConnectionType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,SystemProfileProto_Network_EffectiveConnectionType * value)1410 bool SystemProfileProto_Network_EffectiveConnectionType_Parse(
1411 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SystemProfileProto_Network_EffectiveConnectionType* value) {
1412 int int_value;
1413 bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
1414 SystemProfileProto_Network_EffectiveConnectionType_entries, 7, name, &int_value);
1415 if (success) {
1416 *value = static_cast<SystemProfileProto_Network_EffectiveConnectionType>(int_value);
1417 }
1418 return success;
1419 }
1420 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
1421 constexpr SystemProfileProto_Network_EffectiveConnectionType SystemProfileProto_Network::EFFECTIVE_CONNECTION_TYPE_UNKNOWN;
1422 constexpr SystemProfileProto_Network_EffectiveConnectionType SystemProfileProto_Network::DEPRECATED_EFFECTIVE_CONNECTION_TYPE_AMBIGUOUS;
1423 constexpr SystemProfileProto_Network_EffectiveConnectionType SystemProfileProto_Network::EFFECTIVE_CONNECTION_TYPE_OFFLINE;
1424 constexpr SystemProfileProto_Network_EffectiveConnectionType SystemProfileProto_Network::EFFECTIVE_CONNECTION_TYPE_SLOW_2G;
1425 constexpr SystemProfileProto_Network_EffectiveConnectionType SystemProfileProto_Network::EFFECTIVE_CONNECTION_TYPE_2G;
1426 constexpr SystemProfileProto_Network_EffectiveConnectionType SystemProfileProto_Network::EFFECTIVE_CONNECTION_TYPE_3G;
1427 constexpr SystemProfileProto_Network_EffectiveConnectionType SystemProfileProto_Network::EFFECTIVE_CONNECTION_TYPE_4G;
1428 constexpr SystemProfileProto_Network_EffectiveConnectionType SystemProfileProto_Network::EffectiveConnectionType_MIN;
1429 constexpr SystemProfileProto_Network_EffectiveConnectionType SystemProfileProto_Network::EffectiveConnectionType_MAX;
1430 constexpr int SystemProfileProto_Network::EffectiveConnectionType_ARRAYSIZE;
1431 #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
SystemProfileProto_GoogleUpdate_ProductInfo_InstallResult_IsValid(int value)1432 bool SystemProfileProto_GoogleUpdate_ProductInfo_InstallResult_IsValid(int value) {
1433 switch (value) {
1434 case 0:
1435 case 1:
1436 case 2:
1437 case 3:
1438 case 4:
1439 return true;
1440 default:
1441 return false;
1442 }
1443 }
1444
1445 static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> SystemProfileProto_GoogleUpdate_ProductInfo_InstallResult_strings[5] = {};
1446
1447 static const char SystemProfileProto_GoogleUpdate_ProductInfo_InstallResult_names[] =
1448 "INSTALL_RESULT_EXIT_CODE"
1449 "INSTALL_RESULT_FAILED_CUSTOM_ERROR"
1450 "INSTALL_RESULT_FAILED_MSI_ERROR"
1451 "INSTALL_RESULT_FAILED_SYSTEM_ERROR"
1452 "INSTALL_RESULT_SUCCESS";
1453
1454 static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry SystemProfileProto_GoogleUpdate_ProductInfo_InstallResult_entries[] = {
1455 { {SystemProfileProto_GoogleUpdate_ProductInfo_InstallResult_names + 0, 24}, 4 },
1456 { {SystemProfileProto_GoogleUpdate_ProductInfo_InstallResult_names + 24, 34}, 1 },
1457 { {SystemProfileProto_GoogleUpdate_ProductInfo_InstallResult_names + 58, 31}, 2 },
1458 { {SystemProfileProto_GoogleUpdate_ProductInfo_InstallResult_names + 89, 34}, 3 },
1459 { {SystemProfileProto_GoogleUpdate_ProductInfo_InstallResult_names + 123, 22}, 0 },
1460 };
1461
1462 static const int SystemProfileProto_GoogleUpdate_ProductInfo_InstallResult_entries_by_number[] = {
1463 4, // 0 -> INSTALL_RESULT_SUCCESS
1464 1, // 1 -> INSTALL_RESULT_FAILED_CUSTOM_ERROR
1465 2, // 2 -> INSTALL_RESULT_FAILED_MSI_ERROR
1466 3, // 3 -> INSTALL_RESULT_FAILED_SYSTEM_ERROR
1467 0, // 4 -> INSTALL_RESULT_EXIT_CODE
1468 };
1469
SystemProfileProto_GoogleUpdate_ProductInfo_InstallResult_Name(SystemProfileProto_GoogleUpdate_ProductInfo_InstallResult value)1470 const std::string& SystemProfileProto_GoogleUpdate_ProductInfo_InstallResult_Name(
1471 SystemProfileProto_GoogleUpdate_ProductInfo_InstallResult value) {
1472 static const bool dummy =
1473 ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
1474 SystemProfileProto_GoogleUpdate_ProductInfo_InstallResult_entries,
1475 SystemProfileProto_GoogleUpdate_ProductInfo_InstallResult_entries_by_number,
1476 5, SystemProfileProto_GoogleUpdate_ProductInfo_InstallResult_strings);
1477 (void) dummy;
1478 int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
1479 SystemProfileProto_GoogleUpdate_ProductInfo_InstallResult_entries,
1480 SystemProfileProto_GoogleUpdate_ProductInfo_InstallResult_entries_by_number,
1481 5, value);
1482 return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
1483 SystemProfileProto_GoogleUpdate_ProductInfo_InstallResult_strings[idx].get();
1484 }
SystemProfileProto_GoogleUpdate_ProductInfo_InstallResult_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,SystemProfileProto_GoogleUpdate_ProductInfo_InstallResult * value)1485 bool SystemProfileProto_GoogleUpdate_ProductInfo_InstallResult_Parse(
1486 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SystemProfileProto_GoogleUpdate_ProductInfo_InstallResult* value) {
1487 int int_value;
1488 bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
1489 SystemProfileProto_GoogleUpdate_ProductInfo_InstallResult_entries, 5, name, &int_value);
1490 if (success) {
1491 *value = static_cast<SystemProfileProto_GoogleUpdate_ProductInfo_InstallResult>(int_value);
1492 }
1493 return success;
1494 }
1495 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
1496 constexpr SystemProfileProto_GoogleUpdate_ProductInfo_InstallResult SystemProfileProto_GoogleUpdate_ProductInfo::INSTALL_RESULT_SUCCESS;
1497 constexpr SystemProfileProto_GoogleUpdate_ProductInfo_InstallResult SystemProfileProto_GoogleUpdate_ProductInfo::INSTALL_RESULT_FAILED_CUSTOM_ERROR;
1498 constexpr SystemProfileProto_GoogleUpdate_ProductInfo_InstallResult SystemProfileProto_GoogleUpdate_ProductInfo::INSTALL_RESULT_FAILED_MSI_ERROR;
1499 constexpr SystemProfileProto_GoogleUpdate_ProductInfo_InstallResult SystemProfileProto_GoogleUpdate_ProductInfo::INSTALL_RESULT_FAILED_SYSTEM_ERROR;
1500 constexpr SystemProfileProto_GoogleUpdate_ProductInfo_InstallResult SystemProfileProto_GoogleUpdate_ProductInfo::INSTALL_RESULT_EXIT_CODE;
1501 constexpr SystemProfileProto_GoogleUpdate_ProductInfo_InstallResult SystemProfileProto_GoogleUpdate_ProductInfo::InstallResult_MIN;
1502 constexpr SystemProfileProto_GoogleUpdate_ProductInfo_InstallResult SystemProfileProto_GoogleUpdate_ProductInfo::InstallResult_MAX;
1503 constexpr int SystemProfileProto_GoogleUpdate_ProductInfo::InstallResult_ARRAYSIZE;
1504 #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_AudioFormat_IsValid(int value)1505 bool SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_AudioFormat_IsValid(int value) {
1506 switch (value) {
1507 case 0:
1508 case 1:
1509 case 2:
1510 case 3:
1511 case 4:
1512 case 5:
1513 case 6:
1514 case 7:
1515 case 8:
1516 case 9:
1517 case 10:
1518 case 11:
1519 case 12:
1520 case 13:
1521 case 14:
1522 return true;
1523 default:
1524 return false;
1525 }
1526 }
1527
1528 static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_AudioFormat_strings[15] = {};
1529
1530 static const char SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_AudioFormat_names[] =
1531 "AUDIO_FORMAT_AAC"
1532 "AUDIO_FORMAT_AC_3"
1533 "AUDIO_FORMAT_ATRAC"
1534 "AUDIO_FORMAT_DD_PLUS"
1535 "AUDIO_FORMAT_DST_AUDIO"
1536 "AUDIO_FORMAT_DTS"
1537 "AUDIO_FORMAT_DTS_HD"
1538 "AUDIO_FORMAT_LPCM"
1539 "AUDIO_FORMAT_MICROSOFT_WMA_PRO"
1540 "AUDIO_FORMAT_MLP_DOLBY_TRUEHD"
1541 "AUDIO_FORMAT_MP3"
1542 "AUDIO_FORMAT_MPEG1"
1543 "AUDIO_FORMAT_MPEG2"
1544 "AUDIO_FORMAT_ONE_BIT"
1545 "AUDIO_FORMAT_UNKNOWN";
1546
1547 static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_AudioFormat_entries[] = {
1548 { {SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_AudioFormat_names + 0, 16}, 6 },
1549 { {SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_AudioFormat_names + 16, 17}, 2 },
1550 { {SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_AudioFormat_names + 33, 18}, 8 },
1551 { {SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_AudioFormat_names + 51, 20}, 10 },
1552 { {SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_AudioFormat_names + 71, 22}, 13 },
1553 { {SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_AudioFormat_names + 93, 16}, 7 },
1554 { {SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_AudioFormat_names + 109, 19}, 11 },
1555 { {SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_AudioFormat_names + 128, 17}, 1 },
1556 { {SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_AudioFormat_names + 145, 30}, 14 },
1557 { {SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_AudioFormat_names + 175, 29}, 12 },
1558 { {SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_AudioFormat_names + 204, 16}, 4 },
1559 { {SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_AudioFormat_names + 220, 18}, 3 },
1560 { {SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_AudioFormat_names + 238, 18}, 5 },
1561 { {SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_AudioFormat_names + 256, 20}, 9 },
1562 { {SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_AudioFormat_names + 276, 20}, 0 },
1563 };
1564
1565 static const int SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_AudioFormat_entries_by_number[] = {
1566 14, // 0 -> AUDIO_FORMAT_UNKNOWN
1567 7, // 1 -> AUDIO_FORMAT_LPCM
1568 1, // 2 -> AUDIO_FORMAT_AC_3
1569 11, // 3 -> AUDIO_FORMAT_MPEG1
1570 10, // 4 -> AUDIO_FORMAT_MP3
1571 12, // 5 -> AUDIO_FORMAT_MPEG2
1572 0, // 6 -> AUDIO_FORMAT_AAC
1573 5, // 7 -> AUDIO_FORMAT_DTS
1574 2, // 8 -> AUDIO_FORMAT_ATRAC
1575 13, // 9 -> AUDIO_FORMAT_ONE_BIT
1576 3, // 10 -> AUDIO_FORMAT_DD_PLUS
1577 6, // 11 -> AUDIO_FORMAT_DTS_HD
1578 9, // 12 -> AUDIO_FORMAT_MLP_DOLBY_TRUEHD
1579 4, // 13 -> AUDIO_FORMAT_DST_AUDIO
1580 8, // 14 -> AUDIO_FORMAT_MICROSOFT_WMA_PRO
1581 };
1582
SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_AudioFormat_Name(SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_AudioFormat value)1583 const std::string& SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_AudioFormat_Name(
1584 SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_AudioFormat value) {
1585 static const bool dummy =
1586 ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
1587 SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_AudioFormat_entries,
1588 SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_AudioFormat_entries_by_number,
1589 15, SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_AudioFormat_strings);
1590 (void) dummy;
1591 int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
1592 SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_AudioFormat_entries,
1593 SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_AudioFormat_entries_by_number,
1594 15, value);
1595 return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
1596 SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_AudioFormat_strings[idx].get();
1597 }
SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_AudioFormat_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_AudioFormat * value)1598 bool SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_AudioFormat_Parse(
1599 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_AudioFormat* value) {
1600 int int_value;
1601 bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
1602 SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_AudioFormat_entries, 15, name, &int_value);
1603 if (success) {
1604 *value = static_cast<SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_AudioFormat>(int_value);
1605 }
1606 return success;
1607 }
1608 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
1609 constexpr SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_AudioFormat SystemProfileProto_ExternalAudioVideoDevice_AudioDescription::AUDIO_FORMAT_UNKNOWN;
1610 constexpr SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_AudioFormat SystemProfileProto_ExternalAudioVideoDevice_AudioDescription::AUDIO_FORMAT_LPCM;
1611 constexpr SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_AudioFormat SystemProfileProto_ExternalAudioVideoDevice_AudioDescription::AUDIO_FORMAT_AC_3;
1612 constexpr SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_AudioFormat SystemProfileProto_ExternalAudioVideoDevice_AudioDescription::AUDIO_FORMAT_MPEG1;
1613 constexpr SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_AudioFormat SystemProfileProto_ExternalAudioVideoDevice_AudioDescription::AUDIO_FORMAT_MP3;
1614 constexpr SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_AudioFormat SystemProfileProto_ExternalAudioVideoDevice_AudioDescription::AUDIO_FORMAT_MPEG2;
1615 constexpr SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_AudioFormat SystemProfileProto_ExternalAudioVideoDevice_AudioDescription::AUDIO_FORMAT_AAC;
1616 constexpr SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_AudioFormat SystemProfileProto_ExternalAudioVideoDevice_AudioDescription::AUDIO_FORMAT_DTS;
1617 constexpr SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_AudioFormat SystemProfileProto_ExternalAudioVideoDevice_AudioDescription::AUDIO_FORMAT_ATRAC;
1618 constexpr SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_AudioFormat SystemProfileProto_ExternalAudioVideoDevice_AudioDescription::AUDIO_FORMAT_ONE_BIT;
1619 constexpr SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_AudioFormat SystemProfileProto_ExternalAudioVideoDevice_AudioDescription::AUDIO_FORMAT_DD_PLUS;
1620 constexpr SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_AudioFormat SystemProfileProto_ExternalAudioVideoDevice_AudioDescription::AUDIO_FORMAT_DTS_HD;
1621 constexpr SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_AudioFormat SystemProfileProto_ExternalAudioVideoDevice_AudioDescription::AUDIO_FORMAT_MLP_DOLBY_TRUEHD;
1622 constexpr SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_AudioFormat SystemProfileProto_ExternalAudioVideoDevice_AudioDescription::AUDIO_FORMAT_DST_AUDIO;
1623 constexpr SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_AudioFormat SystemProfileProto_ExternalAudioVideoDevice_AudioDescription::AUDIO_FORMAT_MICROSOFT_WMA_PRO;
1624 constexpr SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_AudioFormat SystemProfileProto_ExternalAudioVideoDevice_AudioDescription::AudioFormat_MIN;
1625 constexpr SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_AudioFormat SystemProfileProto_ExternalAudioVideoDevice_AudioDescription::AudioFormat_MAX;
1626 constexpr int SystemProfileProto_ExternalAudioVideoDevice_AudioDescription::AudioFormat_ARRAYSIZE;
1627 #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_OutputMode_IsValid(int value)1628 bool SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_OutputMode_IsValid(int value) {
1629 switch (value) {
1630 case 0:
1631 case 1:
1632 return true;
1633 default:
1634 return false;
1635 }
1636 }
1637
1638 static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_OutputMode_strings[2] = {};
1639
1640 static const char SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_OutputMode_names[] =
1641 "ANALOG"
1642 "DIGITAL";
1643
1644 static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_OutputMode_entries[] = {
1645 { {SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_OutputMode_names + 0, 6}, 0 },
1646 { {SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_OutputMode_names + 6, 7}, 1 },
1647 };
1648
1649 static const int SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_OutputMode_entries_by_number[] = {
1650 0, // 0 -> ANALOG
1651 1, // 1 -> DIGITAL
1652 };
1653
SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_OutputMode_Name(SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_OutputMode value)1654 const std::string& SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_OutputMode_Name(
1655 SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_OutputMode value) {
1656 static const bool dummy =
1657 ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
1658 SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_OutputMode_entries,
1659 SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_OutputMode_entries_by_number,
1660 2, SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_OutputMode_strings);
1661 (void) dummy;
1662 int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
1663 SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_OutputMode_entries,
1664 SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_OutputMode_entries_by_number,
1665 2, value);
1666 return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
1667 SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_OutputMode_strings[idx].get();
1668 }
SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_OutputMode_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_OutputMode * value)1669 bool SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_OutputMode_Parse(
1670 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_OutputMode* value) {
1671 int int_value;
1672 bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
1673 SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_OutputMode_entries, 2, name, &int_value);
1674 if (success) {
1675 *value = static_cast<SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_OutputMode>(int_value);
1676 }
1677 return success;
1678 }
1679 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
1680 constexpr SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_OutputMode SystemProfileProto_ExternalAudioVideoDevice_AudioDescription::ANALOG;
1681 constexpr SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_OutputMode SystemProfileProto_ExternalAudioVideoDevice_AudioDescription::DIGITAL;
1682 constexpr SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_OutputMode SystemProfileProto_ExternalAudioVideoDevice_AudioDescription::OutputMode_MIN;
1683 constexpr SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_OutputMode SystemProfileProto_ExternalAudioVideoDevice_AudioDescription::OutputMode_MAX;
1684 constexpr int SystemProfileProto_ExternalAudioVideoDevice_AudioDescription::OutputMode_ARRAYSIZE;
1685 #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
SystemProfileProto_ExternalAudioVideoDevice_AVDeviceType_IsValid(int value)1686 bool SystemProfileProto_ExternalAudioVideoDevice_AVDeviceType_IsValid(int value) {
1687 switch (value) {
1688 case 0:
1689 case 1:
1690 case 2:
1691 case 3:
1692 case 4:
1693 case 5:
1694 return true;
1695 default:
1696 return false;
1697 }
1698 }
1699
1700 static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> SystemProfileProto_ExternalAudioVideoDevice_AVDeviceType_strings[6] = {};
1701
1702 static const char SystemProfileProto_ExternalAudioVideoDevice_AVDeviceType_names[] =
1703 "AV_DEVICE_TYPE_AUDIO_SYSTEM"
1704 "AV_DEVICE_TYPE_PLAYER"
1705 "AV_DEVICE_TYPE_RECORDER"
1706 "AV_DEVICE_TYPE_TUNER"
1707 "AV_DEVICE_TYPE_TV"
1708 "AV_DEVICE_TYPE_UNKNOWN";
1709
1710 static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry SystemProfileProto_ExternalAudioVideoDevice_AVDeviceType_entries[] = {
1711 { {SystemProfileProto_ExternalAudioVideoDevice_AVDeviceType_names + 0, 27}, 5 },
1712 { {SystemProfileProto_ExternalAudioVideoDevice_AVDeviceType_names + 27, 21}, 4 },
1713 { {SystemProfileProto_ExternalAudioVideoDevice_AVDeviceType_names + 48, 23}, 2 },
1714 { {SystemProfileProto_ExternalAudioVideoDevice_AVDeviceType_names + 71, 20}, 3 },
1715 { {SystemProfileProto_ExternalAudioVideoDevice_AVDeviceType_names + 91, 17}, 1 },
1716 { {SystemProfileProto_ExternalAudioVideoDevice_AVDeviceType_names + 108, 22}, 0 },
1717 };
1718
1719 static const int SystemProfileProto_ExternalAudioVideoDevice_AVDeviceType_entries_by_number[] = {
1720 5, // 0 -> AV_DEVICE_TYPE_UNKNOWN
1721 4, // 1 -> AV_DEVICE_TYPE_TV
1722 2, // 2 -> AV_DEVICE_TYPE_RECORDER
1723 3, // 3 -> AV_DEVICE_TYPE_TUNER
1724 1, // 4 -> AV_DEVICE_TYPE_PLAYER
1725 0, // 5 -> AV_DEVICE_TYPE_AUDIO_SYSTEM
1726 };
1727
SystemProfileProto_ExternalAudioVideoDevice_AVDeviceType_Name(SystemProfileProto_ExternalAudioVideoDevice_AVDeviceType value)1728 const std::string& SystemProfileProto_ExternalAudioVideoDevice_AVDeviceType_Name(
1729 SystemProfileProto_ExternalAudioVideoDevice_AVDeviceType value) {
1730 static const bool dummy =
1731 ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
1732 SystemProfileProto_ExternalAudioVideoDevice_AVDeviceType_entries,
1733 SystemProfileProto_ExternalAudioVideoDevice_AVDeviceType_entries_by_number,
1734 6, SystemProfileProto_ExternalAudioVideoDevice_AVDeviceType_strings);
1735 (void) dummy;
1736 int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
1737 SystemProfileProto_ExternalAudioVideoDevice_AVDeviceType_entries,
1738 SystemProfileProto_ExternalAudioVideoDevice_AVDeviceType_entries_by_number,
1739 6, value);
1740 return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
1741 SystemProfileProto_ExternalAudioVideoDevice_AVDeviceType_strings[idx].get();
1742 }
SystemProfileProto_ExternalAudioVideoDevice_AVDeviceType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,SystemProfileProto_ExternalAudioVideoDevice_AVDeviceType * value)1743 bool SystemProfileProto_ExternalAudioVideoDevice_AVDeviceType_Parse(
1744 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SystemProfileProto_ExternalAudioVideoDevice_AVDeviceType* value) {
1745 int int_value;
1746 bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
1747 SystemProfileProto_ExternalAudioVideoDevice_AVDeviceType_entries, 6, name, &int_value);
1748 if (success) {
1749 *value = static_cast<SystemProfileProto_ExternalAudioVideoDevice_AVDeviceType>(int_value);
1750 }
1751 return success;
1752 }
1753 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
1754 constexpr SystemProfileProto_ExternalAudioVideoDevice_AVDeviceType SystemProfileProto_ExternalAudioVideoDevice::AV_DEVICE_TYPE_UNKNOWN;
1755 constexpr SystemProfileProto_ExternalAudioVideoDevice_AVDeviceType SystemProfileProto_ExternalAudioVideoDevice::AV_DEVICE_TYPE_TV;
1756 constexpr SystemProfileProto_ExternalAudioVideoDevice_AVDeviceType SystemProfileProto_ExternalAudioVideoDevice::AV_DEVICE_TYPE_RECORDER;
1757 constexpr SystemProfileProto_ExternalAudioVideoDevice_AVDeviceType SystemProfileProto_ExternalAudioVideoDevice::AV_DEVICE_TYPE_TUNER;
1758 constexpr SystemProfileProto_ExternalAudioVideoDevice_AVDeviceType SystemProfileProto_ExternalAudioVideoDevice::AV_DEVICE_TYPE_PLAYER;
1759 constexpr SystemProfileProto_ExternalAudioVideoDevice_AVDeviceType SystemProfileProto_ExternalAudioVideoDevice::AV_DEVICE_TYPE_AUDIO_SYSTEM;
1760 constexpr SystemProfileProto_ExternalAudioVideoDevice_AVDeviceType SystemProfileProto_ExternalAudioVideoDevice::AVDeviceType_MIN;
1761 constexpr SystemProfileProto_ExternalAudioVideoDevice_AVDeviceType SystemProfileProto_ExternalAudioVideoDevice::AVDeviceType_MAX;
1762 constexpr int SystemProfileProto_ExternalAudioVideoDevice::AVDeviceType_ARRAYSIZE;
1763 #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
SystemProfileProto_ExternalAudioVideoDevice_ColorEncoding_IsValid(int value)1764 bool SystemProfileProto_ExternalAudioVideoDevice_ColorEncoding_IsValid(int value) {
1765 switch (value) {
1766 case 0:
1767 case 1:
1768 case 2:
1769 case 3:
1770 case 4:
1771 return true;
1772 default:
1773 return false;
1774 }
1775 }
1776
1777 static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> SystemProfileProto_ExternalAudioVideoDevice_ColorEncoding_strings[5] = {};
1778
1779 static const char SystemProfileProto_ExternalAudioVideoDevice_ColorEncoding_names[] =
1780 "COLOR_ENCODING_RGB"
1781 "COLOR_ENCODING_UNKNOWN"
1782 "COLOR_ENCODING_YUV420"
1783 "COLOR_ENCODING_YUV422"
1784 "COLOR_ENCODING_YUV444";
1785
1786 static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry SystemProfileProto_ExternalAudioVideoDevice_ColorEncoding_entries[] = {
1787 { {SystemProfileProto_ExternalAudioVideoDevice_ColorEncoding_names + 0, 18}, 1 },
1788 { {SystemProfileProto_ExternalAudioVideoDevice_ColorEncoding_names + 18, 22}, 0 },
1789 { {SystemProfileProto_ExternalAudioVideoDevice_ColorEncoding_names + 40, 21}, 4 },
1790 { {SystemProfileProto_ExternalAudioVideoDevice_ColorEncoding_names + 61, 21}, 3 },
1791 { {SystemProfileProto_ExternalAudioVideoDevice_ColorEncoding_names + 82, 21}, 2 },
1792 };
1793
1794 static const int SystemProfileProto_ExternalAudioVideoDevice_ColorEncoding_entries_by_number[] = {
1795 1, // 0 -> COLOR_ENCODING_UNKNOWN
1796 0, // 1 -> COLOR_ENCODING_RGB
1797 4, // 2 -> COLOR_ENCODING_YUV444
1798 3, // 3 -> COLOR_ENCODING_YUV422
1799 2, // 4 -> COLOR_ENCODING_YUV420
1800 };
1801
SystemProfileProto_ExternalAudioVideoDevice_ColorEncoding_Name(SystemProfileProto_ExternalAudioVideoDevice_ColorEncoding value)1802 const std::string& SystemProfileProto_ExternalAudioVideoDevice_ColorEncoding_Name(
1803 SystemProfileProto_ExternalAudioVideoDevice_ColorEncoding value) {
1804 static const bool dummy =
1805 ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
1806 SystemProfileProto_ExternalAudioVideoDevice_ColorEncoding_entries,
1807 SystemProfileProto_ExternalAudioVideoDevice_ColorEncoding_entries_by_number,
1808 5, SystemProfileProto_ExternalAudioVideoDevice_ColorEncoding_strings);
1809 (void) dummy;
1810 int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
1811 SystemProfileProto_ExternalAudioVideoDevice_ColorEncoding_entries,
1812 SystemProfileProto_ExternalAudioVideoDevice_ColorEncoding_entries_by_number,
1813 5, value);
1814 return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
1815 SystemProfileProto_ExternalAudioVideoDevice_ColorEncoding_strings[idx].get();
1816 }
SystemProfileProto_ExternalAudioVideoDevice_ColorEncoding_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,SystemProfileProto_ExternalAudioVideoDevice_ColorEncoding * value)1817 bool SystemProfileProto_ExternalAudioVideoDevice_ColorEncoding_Parse(
1818 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SystemProfileProto_ExternalAudioVideoDevice_ColorEncoding* value) {
1819 int int_value;
1820 bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
1821 SystemProfileProto_ExternalAudioVideoDevice_ColorEncoding_entries, 5, name, &int_value);
1822 if (success) {
1823 *value = static_cast<SystemProfileProto_ExternalAudioVideoDevice_ColorEncoding>(int_value);
1824 }
1825 return success;
1826 }
1827 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
1828 constexpr SystemProfileProto_ExternalAudioVideoDevice_ColorEncoding SystemProfileProto_ExternalAudioVideoDevice::COLOR_ENCODING_UNKNOWN;
1829 constexpr SystemProfileProto_ExternalAudioVideoDevice_ColorEncoding SystemProfileProto_ExternalAudioVideoDevice::COLOR_ENCODING_RGB;
1830 constexpr SystemProfileProto_ExternalAudioVideoDevice_ColorEncoding SystemProfileProto_ExternalAudioVideoDevice::COLOR_ENCODING_YUV444;
1831 constexpr SystemProfileProto_ExternalAudioVideoDevice_ColorEncoding SystemProfileProto_ExternalAudioVideoDevice::COLOR_ENCODING_YUV422;
1832 constexpr SystemProfileProto_ExternalAudioVideoDevice_ColorEncoding SystemProfileProto_ExternalAudioVideoDevice::COLOR_ENCODING_YUV420;
1833 constexpr SystemProfileProto_ExternalAudioVideoDevice_ColorEncoding SystemProfileProto_ExternalAudioVideoDevice::ColorEncoding_MIN;
1834 constexpr SystemProfileProto_ExternalAudioVideoDevice_ColorEncoding SystemProfileProto_ExternalAudioVideoDevice::ColorEncoding_MAX;
1835 constexpr int SystemProfileProto_ExternalAudioVideoDevice::ColorEncoding_ARRAYSIZE;
1836 #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
SystemProfileProto_DemoModeDimensions_CustomizationFacet_IsValid(int value)1837 bool SystemProfileProto_DemoModeDimensions_CustomizationFacet_IsValid(int value) {
1838 switch (value) {
1839 case 0:
1840 case 1:
1841 case 2:
1842 return true;
1843 default:
1844 return false;
1845 }
1846 }
1847
1848 static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> SystemProfileProto_DemoModeDimensions_CustomizationFacet_strings[3] = {};
1849
1850 static const char SystemProfileProto_DemoModeDimensions_CustomizationFacet_names[] =
1851 "CLOUD_GAMING_DEVICE"
1852 "FEATURE_AWARE_DEVICE"
1853 "UNDEFINED";
1854
1855 static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry SystemProfileProto_DemoModeDimensions_CustomizationFacet_entries[] = {
1856 { {SystemProfileProto_DemoModeDimensions_CustomizationFacet_names + 0, 19}, 1 },
1857 { {SystemProfileProto_DemoModeDimensions_CustomizationFacet_names + 19, 20}, 2 },
1858 { {SystemProfileProto_DemoModeDimensions_CustomizationFacet_names + 39, 9}, 0 },
1859 };
1860
1861 static const int SystemProfileProto_DemoModeDimensions_CustomizationFacet_entries_by_number[] = {
1862 2, // 0 -> UNDEFINED
1863 0, // 1 -> CLOUD_GAMING_DEVICE
1864 1, // 2 -> FEATURE_AWARE_DEVICE
1865 };
1866
SystemProfileProto_DemoModeDimensions_CustomizationFacet_Name(SystemProfileProto_DemoModeDimensions_CustomizationFacet value)1867 const std::string& SystemProfileProto_DemoModeDimensions_CustomizationFacet_Name(
1868 SystemProfileProto_DemoModeDimensions_CustomizationFacet value) {
1869 static const bool dummy =
1870 ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
1871 SystemProfileProto_DemoModeDimensions_CustomizationFacet_entries,
1872 SystemProfileProto_DemoModeDimensions_CustomizationFacet_entries_by_number,
1873 3, SystemProfileProto_DemoModeDimensions_CustomizationFacet_strings);
1874 (void) dummy;
1875 int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
1876 SystemProfileProto_DemoModeDimensions_CustomizationFacet_entries,
1877 SystemProfileProto_DemoModeDimensions_CustomizationFacet_entries_by_number,
1878 3, value);
1879 return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
1880 SystemProfileProto_DemoModeDimensions_CustomizationFacet_strings[idx].get();
1881 }
SystemProfileProto_DemoModeDimensions_CustomizationFacet_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,SystemProfileProto_DemoModeDimensions_CustomizationFacet * value)1882 bool SystemProfileProto_DemoModeDimensions_CustomizationFacet_Parse(
1883 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SystemProfileProto_DemoModeDimensions_CustomizationFacet* value) {
1884 int int_value;
1885 bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
1886 SystemProfileProto_DemoModeDimensions_CustomizationFacet_entries, 3, name, &int_value);
1887 if (success) {
1888 *value = static_cast<SystemProfileProto_DemoModeDimensions_CustomizationFacet>(int_value);
1889 }
1890 return success;
1891 }
1892 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
1893 constexpr SystemProfileProto_DemoModeDimensions_CustomizationFacet SystemProfileProto_DemoModeDimensions::UNDEFINED;
1894 constexpr SystemProfileProto_DemoModeDimensions_CustomizationFacet SystemProfileProto_DemoModeDimensions::CLOUD_GAMING_DEVICE;
1895 constexpr SystemProfileProto_DemoModeDimensions_CustomizationFacet SystemProfileProto_DemoModeDimensions::FEATURE_AWARE_DEVICE;
1896 constexpr SystemProfileProto_DemoModeDimensions_CustomizationFacet SystemProfileProto_DemoModeDimensions::CustomizationFacet_MIN;
1897 constexpr SystemProfileProto_DemoModeDimensions_CustomizationFacet SystemProfileProto_DemoModeDimensions::CustomizationFacet_MAX;
1898 constexpr int SystemProfileProto_DemoModeDimensions::CustomizationFacet_ARRAYSIZE;
1899 #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
SystemProfileProto_Channel_IsValid(int value)1900 bool SystemProfileProto_Channel_IsValid(int value) {
1901 switch (value) {
1902 case 0:
1903 case 1:
1904 case 2:
1905 case 3:
1906 case 4:
1907 return true;
1908 default:
1909 return false;
1910 }
1911 }
1912
1913 static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> SystemProfileProto_Channel_strings[5] = {};
1914
1915 static const char SystemProfileProto_Channel_names[] =
1916 "CHANNEL_BETA"
1917 "CHANNEL_CANARY"
1918 "CHANNEL_DEV"
1919 "CHANNEL_STABLE"
1920 "CHANNEL_UNKNOWN";
1921
1922 static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry SystemProfileProto_Channel_entries[] = {
1923 { {SystemProfileProto_Channel_names + 0, 12}, 3 },
1924 { {SystemProfileProto_Channel_names + 12, 14}, 1 },
1925 { {SystemProfileProto_Channel_names + 26, 11}, 2 },
1926 { {SystemProfileProto_Channel_names + 37, 14}, 4 },
1927 { {SystemProfileProto_Channel_names + 51, 15}, 0 },
1928 };
1929
1930 static const int SystemProfileProto_Channel_entries_by_number[] = {
1931 4, // 0 -> CHANNEL_UNKNOWN
1932 1, // 1 -> CHANNEL_CANARY
1933 2, // 2 -> CHANNEL_DEV
1934 0, // 3 -> CHANNEL_BETA
1935 3, // 4 -> CHANNEL_STABLE
1936 };
1937
SystemProfileProto_Channel_Name(SystemProfileProto_Channel value)1938 const std::string& SystemProfileProto_Channel_Name(
1939 SystemProfileProto_Channel value) {
1940 static const bool dummy =
1941 ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
1942 SystemProfileProto_Channel_entries,
1943 SystemProfileProto_Channel_entries_by_number,
1944 5, SystemProfileProto_Channel_strings);
1945 (void) dummy;
1946 int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
1947 SystemProfileProto_Channel_entries,
1948 SystemProfileProto_Channel_entries_by_number,
1949 5, value);
1950 return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
1951 SystemProfileProto_Channel_strings[idx].get();
1952 }
SystemProfileProto_Channel_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,SystemProfileProto_Channel * value)1953 bool SystemProfileProto_Channel_Parse(
1954 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SystemProfileProto_Channel* value) {
1955 int int_value;
1956 bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
1957 SystemProfileProto_Channel_entries, 5, name, &int_value);
1958 if (success) {
1959 *value = static_cast<SystemProfileProto_Channel>(int_value);
1960 }
1961 return success;
1962 }
1963 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
1964 constexpr SystemProfileProto_Channel SystemProfileProto::CHANNEL_UNKNOWN;
1965 constexpr SystemProfileProto_Channel SystemProfileProto::CHANNEL_CANARY;
1966 constexpr SystemProfileProto_Channel SystemProfileProto::CHANNEL_DEV;
1967 constexpr SystemProfileProto_Channel SystemProfileProto::CHANNEL_BETA;
1968 constexpr SystemProfileProto_Channel SystemProfileProto::CHANNEL_STABLE;
1969 constexpr SystemProfileProto_Channel SystemProfileProto::Channel_MIN;
1970 constexpr SystemProfileProto_Channel SystemProfileProto::Channel_MAX;
1971 constexpr int SystemProfileProto::Channel_ARRAYSIZE;
1972 #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
SystemProfileProto_ExtensionsState_IsValid(int value)1973 bool SystemProfileProto_ExtensionsState_IsValid(int value) {
1974 switch (value) {
1975 case 0:
1976 case 1:
1977 case 2:
1978 case 3:
1979 return true;
1980 default:
1981 return false;
1982 }
1983 }
1984
1985 static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> SystemProfileProto_ExtensionsState_strings[4] = {};
1986
1987 static const char SystemProfileProto_ExtensionsState_names[] =
1988 "HAS_OFFSTORE"
1989 "NO_EXTENSIONS"
1990 "NO_OFFSTORE_UNVERIFIED"
1991 "NO_OFFSTORE_VERIFIED";
1992
1993 static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry SystemProfileProto_ExtensionsState_entries[] = {
1994 { {SystemProfileProto_ExtensionsState_names + 0, 12}, 3 },
1995 { {SystemProfileProto_ExtensionsState_names + 12, 13}, 0 },
1996 { {SystemProfileProto_ExtensionsState_names + 25, 22}, 2 },
1997 { {SystemProfileProto_ExtensionsState_names + 47, 20}, 1 },
1998 };
1999
2000 static const int SystemProfileProto_ExtensionsState_entries_by_number[] = {
2001 1, // 0 -> NO_EXTENSIONS
2002 3, // 1 -> NO_OFFSTORE_VERIFIED
2003 2, // 2 -> NO_OFFSTORE_UNVERIFIED
2004 0, // 3 -> HAS_OFFSTORE
2005 };
2006
SystemProfileProto_ExtensionsState_Name(SystemProfileProto_ExtensionsState value)2007 const std::string& SystemProfileProto_ExtensionsState_Name(
2008 SystemProfileProto_ExtensionsState value) {
2009 static const bool dummy =
2010 ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
2011 SystemProfileProto_ExtensionsState_entries,
2012 SystemProfileProto_ExtensionsState_entries_by_number,
2013 4, SystemProfileProto_ExtensionsState_strings);
2014 (void) dummy;
2015 int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
2016 SystemProfileProto_ExtensionsState_entries,
2017 SystemProfileProto_ExtensionsState_entries_by_number,
2018 4, value);
2019 return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
2020 SystemProfileProto_ExtensionsState_strings[idx].get();
2021 }
SystemProfileProto_ExtensionsState_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,SystemProfileProto_ExtensionsState * value)2022 bool SystemProfileProto_ExtensionsState_Parse(
2023 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SystemProfileProto_ExtensionsState* value) {
2024 int int_value;
2025 bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
2026 SystemProfileProto_ExtensionsState_entries, 4, name, &int_value);
2027 if (success) {
2028 *value = static_cast<SystemProfileProto_ExtensionsState>(int_value);
2029 }
2030 return success;
2031 }
2032 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
2033 constexpr SystemProfileProto_ExtensionsState SystemProfileProto::NO_EXTENSIONS;
2034 constexpr SystemProfileProto_ExtensionsState SystemProfileProto::NO_OFFSTORE_VERIFIED;
2035 constexpr SystemProfileProto_ExtensionsState SystemProfileProto::NO_OFFSTORE_UNVERIFIED;
2036 constexpr SystemProfileProto_ExtensionsState SystemProfileProto::HAS_OFFSTORE;
2037 constexpr SystemProfileProto_ExtensionsState SystemProfileProto::ExtensionsState_MIN;
2038 constexpr SystemProfileProto_ExtensionsState SystemProfileProto::ExtensionsState_MAX;
2039 constexpr int SystemProfileProto::ExtensionsState_ARRAYSIZE;
2040 #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
SystemProfileProto_UmaDefaultState_IsValid(int value)2041 bool SystemProfileProto_UmaDefaultState_IsValid(int value) {
2042 switch (value) {
2043 case 0:
2044 case 1:
2045 case 2:
2046 case 3:
2047 return true;
2048 default:
2049 return false;
2050 }
2051 }
2052
2053 static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> SystemProfileProto_UmaDefaultState_strings[4] = {};
2054
2055 static const char SystemProfileProto_UmaDefaultState_names[] =
2056 "OPT_IN"
2057 "OPT_OUT"
2058 "OPT_UNKNOWN"
2059 "POLICY_FORCED_ENABLED";
2060
2061 static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry SystemProfileProto_UmaDefaultState_entries[] = {
2062 { {SystemProfileProto_UmaDefaultState_names + 0, 6}, 0 },
2063 { {SystemProfileProto_UmaDefaultState_names + 6, 7}, 1 },
2064 { {SystemProfileProto_UmaDefaultState_names + 13, 11}, 3 },
2065 { {SystemProfileProto_UmaDefaultState_names + 24, 21}, 2 },
2066 };
2067
2068 static const int SystemProfileProto_UmaDefaultState_entries_by_number[] = {
2069 0, // 0 -> OPT_IN
2070 1, // 1 -> OPT_OUT
2071 3, // 2 -> POLICY_FORCED_ENABLED
2072 2, // 3 -> OPT_UNKNOWN
2073 };
2074
SystemProfileProto_UmaDefaultState_Name(SystemProfileProto_UmaDefaultState value)2075 const std::string& SystemProfileProto_UmaDefaultState_Name(
2076 SystemProfileProto_UmaDefaultState value) {
2077 static const bool dummy =
2078 ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
2079 SystemProfileProto_UmaDefaultState_entries,
2080 SystemProfileProto_UmaDefaultState_entries_by_number,
2081 4, SystemProfileProto_UmaDefaultState_strings);
2082 (void) dummy;
2083 int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
2084 SystemProfileProto_UmaDefaultState_entries,
2085 SystemProfileProto_UmaDefaultState_entries_by_number,
2086 4, value);
2087 return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
2088 SystemProfileProto_UmaDefaultState_strings[idx].get();
2089 }
SystemProfileProto_UmaDefaultState_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,SystemProfileProto_UmaDefaultState * value)2090 bool SystemProfileProto_UmaDefaultState_Parse(
2091 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SystemProfileProto_UmaDefaultState* value) {
2092 int int_value;
2093 bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
2094 SystemProfileProto_UmaDefaultState_entries, 4, name, &int_value);
2095 if (success) {
2096 *value = static_cast<SystemProfileProto_UmaDefaultState>(int_value);
2097 }
2098 return success;
2099 }
2100 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
2101 constexpr SystemProfileProto_UmaDefaultState SystemProfileProto::OPT_IN;
2102 constexpr SystemProfileProto_UmaDefaultState SystemProfileProto::OPT_OUT;
2103 constexpr SystemProfileProto_UmaDefaultState SystemProfileProto::POLICY_FORCED_ENABLED;
2104 constexpr SystemProfileProto_UmaDefaultState SystemProfileProto::OPT_UNKNOWN;
2105 constexpr SystemProfileProto_UmaDefaultState SystemProfileProto::UmaDefaultState_MIN;
2106 constexpr SystemProfileProto_UmaDefaultState SystemProfileProto::UmaDefaultState_MAX;
2107 constexpr int SystemProfileProto::UmaDefaultState_ARRAYSIZE;
2108 #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
SystemProfileProto_AntiVirusState_IsValid(int value)2109 bool SystemProfileProto_AntiVirusState_IsValid(int value) {
2110 switch (value) {
2111 case 0:
2112 case 1:
2113 case 2:
2114 case 3:
2115 return true;
2116 default:
2117 return false;
2118 }
2119 }
2120
2121 static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> SystemProfileProto_AntiVirusState_strings[4] = {};
2122
2123 static const char SystemProfileProto_AntiVirusState_names[] =
2124 "STATE_EXPIRED"
2125 "STATE_OFF"
2126 "STATE_ON"
2127 "STATE_SNOOZED";
2128
2129 static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry SystemProfileProto_AntiVirusState_entries[] = {
2130 { {SystemProfileProto_AntiVirusState_names + 0, 13}, 3 },
2131 { {SystemProfileProto_AntiVirusState_names + 13, 9}, 1 },
2132 { {SystemProfileProto_AntiVirusState_names + 22, 8}, 0 },
2133 { {SystemProfileProto_AntiVirusState_names + 30, 13}, 2 },
2134 };
2135
2136 static const int SystemProfileProto_AntiVirusState_entries_by_number[] = {
2137 2, // 0 -> STATE_ON
2138 1, // 1 -> STATE_OFF
2139 3, // 2 -> STATE_SNOOZED
2140 0, // 3 -> STATE_EXPIRED
2141 };
2142
SystemProfileProto_AntiVirusState_Name(SystemProfileProto_AntiVirusState value)2143 const std::string& SystemProfileProto_AntiVirusState_Name(
2144 SystemProfileProto_AntiVirusState value) {
2145 static const bool dummy =
2146 ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
2147 SystemProfileProto_AntiVirusState_entries,
2148 SystemProfileProto_AntiVirusState_entries_by_number,
2149 4, SystemProfileProto_AntiVirusState_strings);
2150 (void) dummy;
2151 int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
2152 SystemProfileProto_AntiVirusState_entries,
2153 SystemProfileProto_AntiVirusState_entries_by_number,
2154 4, value);
2155 return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
2156 SystemProfileProto_AntiVirusState_strings[idx].get();
2157 }
SystemProfileProto_AntiVirusState_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,SystemProfileProto_AntiVirusState * value)2158 bool SystemProfileProto_AntiVirusState_Parse(
2159 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SystemProfileProto_AntiVirusState* value) {
2160 int int_value;
2161 bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
2162 SystemProfileProto_AntiVirusState_entries, 4, name, &int_value);
2163 if (success) {
2164 *value = static_cast<SystemProfileProto_AntiVirusState>(int_value);
2165 }
2166 return success;
2167 }
2168 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
2169 constexpr SystemProfileProto_AntiVirusState SystemProfileProto::STATE_ON;
2170 constexpr SystemProfileProto_AntiVirusState SystemProfileProto::STATE_OFF;
2171 constexpr SystemProfileProto_AntiVirusState SystemProfileProto::STATE_SNOOZED;
2172 constexpr SystemProfileProto_AntiVirusState SystemProfileProto::STATE_EXPIRED;
2173 constexpr SystemProfileProto_AntiVirusState SystemProfileProto::AntiVirusState_MIN;
2174 constexpr SystemProfileProto_AntiVirusState SystemProfileProto::AntiVirusState_MAX;
2175 constexpr int SystemProfileProto::AntiVirusState_ARRAYSIZE;
2176 #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
SystemProfileProto_ComponentId_IsValid(int value)2177 bool SystemProfileProto_ComponentId_IsValid(int value) {
2178 switch (value) {
2179 case 1:
2180 case 2:
2181 case 3:
2182 case 4:
2183 case 5:
2184 case 6:
2185 case 7:
2186 case 8:
2187 case 9:
2188 case 10:
2189 case 11:
2190 case 12:
2191 case 13:
2192 case 14:
2193 case 15:
2194 case 16:
2195 case 17:
2196 case 18:
2197 case 19:
2198 case 20:
2199 case 21:
2200 case 22:
2201 case 23:
2202 case 24:
2203 case 25:
2204 case 26:
2205 case 27:
2206 case 28:
2207 case 29:
2208 case 30:
2209 case 31:
2210 case 32:
2211 case 33:
2212 case 34:
2213 case 35:
2214 case 36:
2215 case 37:
2216 case 38:
2217 case 39:
2218 case 40:
2219 case 41:
2220 case 42:
2221 case 43:
2222 case 44:
2223 case 45:
2224 case 46:
2225 case 47:
2226 case 48:
2227 case 49:
2228 case 50:
2229 case 51:
2230 case 52:
2231 case 53:
2232 case 54:
2233 case 55:
2234 case 56:
2235 case 57:
2236 case 58:
2237 case 59:
2238 case 60:
2239 case 61:
2240 case 62:
2241 case 63:
2242 case 64:
2243 return true;
2244 default:
2245 return false;
2246 }
2247 }
2248
2249 static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> SystemProfileProto_ComponentId_strings[64] = {};
2250
2251 static const char SystemProfileProto_ComponentId_names[] =
2252 "APP_PROVISIONING"
2253 "AUTOFILL_REGEX_CONSTANTS"
2254 "AUTOFILL_STATES"
2255 "CELLULAR"
2256 "CLIENT_SIDE_PHISHING"
2257 "COMMERCE_HEURISTICS"
2258 "CRL_SET"
2259 "CROS_SMART_DIM"
2260 "CROS_TERMINA"
2261 "CROWD_DENY"
2262 "CROW_DOMAIN_LIST"
2263 "DEMO_MODE_APP"
2264 "DEMO_MODE_RESOURCES"
2265 "DESKTOP_SCREENSHOT_EDITOR"
2266 "DESKTOP_SHARING_HUB"
2267 "DOWNLOADABLE_STRINGS"
2268 "EPSON_INKJET_PRINTER_ESCPR"
2269 "FILE_TYPE_POLICIES"
2270 "FIRST_PARTY_SETS"
2271 "GROWTH_CAMPAIGNS"
2272 "HYPHENATION"
2273 "INTERVENTION_POLICY_DATABASE"
2274 "LACROS_DOGFOOD_BETA"
2275 "LACROS_DOGFOOD_CANARY"
2276 "LACROS_DOGFOOD_DEV"
2277 "LACROS_DOGFOOD_STABLE"
2278 "MEDIA_FOUNDATION_WIDEVINE_CDM"
2279 "MEI_PRELOAD"
2280 "ON_DEVICE_HEAD_SUGGEST"
2281 "OPTIMIZATION_HINTS"
2282 "ORIGIN_TRIALS"
2283 "PEPPER_FLASH"
2284 "PEPPER_FLASH_CHROMEOS"
2285 "PKI_METADATA"
2286 "PNACL"
2287 "REAL_TIME_URL_CHECKS_ALLOWLIST"
2288 "RECOVERY"
2289 "RECOVERY_IMPROVED"
2290 "RTANALYTICS_FULL"
2291 "RTANALYTICS_LIGHT"
2292 "SAFETY_TIPS"
2293 "SCREEN_AI"
2294 "SMART_DIM"
2295 "SODA"
2296 "SODA_DE_DE"
2297 "SODA_EN_US"
2298 "SODA_ES_ES"
2299 "SODA_FR_FR"
2300 "SODA_IT_IT"
2301 "SODA_JA_JP"
2302 "SPEECH_SYNTHESIS_SV_SE"
2303 "SSL_ERROR_ASSISTANT"
2304 "STAR_CUPS_DRIVER"
2305 "STH_SET"
2306 "SUBRESOURCE_FILTER"
2307 "SW_REPORTER"
2308 "THIRD_PARTY_COOKIE_DEPRECATION_METADATA"
2309 "THIRD_PARTY_MODULE_LIST"
2310 "TRUST_TOKEN_KEY_COMMITMENTS"
2311 "UNKNOWN"
2312 "VR_ASSETS"
2313 "WEBVIEW_APPS_PACKAGE_NAMES_ALLOWLIST"
2314 "WIDEVINE_CDM"
2315 "ZXCVBN_DATA";
2316
2317 static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry SystemProfileProto_ComponentId_entries[] = {
2318 { {SystemProfileProto_ComponentId_names + 0, 16}, 32 },
2319 { {SystemProfileProto_ComponentId_names + 16, 24}, 28 },
2320 { {SystemProfileProto_ComponentId_names + 40, 15}, 33 },
2321 { {SystemProfileProto_ComponentId_names + 55, 8}, 23 },
2322 { {SystemProfileProto_ComponentId_names + 63, 20}, 34 },
2323 { {SystemProfileProto_ComponentId_names + 83, 19}, 35 },
2324 { {SystemProfileProto_ComponentId_names + 102, 7}, 10 },
2325 { {SystemProfileProto_ComponentId_names + 109, 14}, 26 },
2326 { {SystemProfileProto_ComponentId_names + 123, 12}, 15 },
2327 { {SystemProfileProto_ComponentId_names + 135, 10}, 31 },
2328 { {SystemProfileProto_ComponentId_names + 145, 16}, 36 },
2329 { {SystemProfileProto_ComponentId_names + 161, 13}, 37 },
2330 { {SystemProfileProto_ComponentId_names + 174, 19}, 24 },
2331 { {SystemProfileProto_ComponentId_names + 193, 25}, 38 },
2332 { {SystemProfileProto_ComponentId_names + 218, 19}, 39 },
2333 { {SystemProfileProto_ComponentId_names + 237, 20}, 19 },
2334 { {SystemProfileProto_ComponentId_names + 257, 26}, 14 },
2335 { {SystemProfileProto_ComponentId_names + 283, 18}, 2 },
2336 { {SystemProfileProto_ComponentId_names + 301, 16}, 40 },
2337 { {SystemProfileProto_ComponentId_names + 317, 16}, 64 },
2338 { {SystemProfileProto_ComponentId_names + 333, 11}, 41 },
2339 { {SystemProfileProto_ComponentId_names + 344, 28}, 42 },
2340 { {SystemProfileProto_ComponentId_names + 372, 19}, 43 },
2341 { {SystemProfileProto_ComponentId_names + 391, 21}, 44 },
2342 { {SystemProfileProto_ComponentId_names + 412, 18}, 45 },
2343 { {SystemProfileProto_ComponentId_names + 430, 21}, 46 },
2344 { {SystemProfileProto_ComponentId_names + 451, 29}, 30 },
2345 { {SystemProfileProto_ComponentId_names + 480, 11}, 47 },
2346 { {SystemProfileProto_ComponentId_names + 491, 22}, 25 },
2347 { {SystemProfileProto_ComponentId_names + 513, 18}, 18 },
2348 { {SystemProfileProto_ComponentId_names + 531, 13}, 3 },
2349 { {SystemProfileProto_ComponentId_names + 544, 12}, 4 },
2350 { {SystemProfileProto_ComponentId_names + 556, 21}, 5 },
2351 { {SystemProfileProto_ComponentId_names + 577, 12}, 48 },
2352 { {SystemProfileProto_ComponentId_names + 589, 5}, 6 },
2353 { {SystemProfileProto_ComponentId_names + 594, 30}, 49 },
2354 { {SystemProfileProto_ComponentId_names + 624, 8}, 7 },
2355 { {SystemProfileProto_ComponentId_names + 632, 17}, 50 },
2356 { {SystemProfileProto_ComponentId_names + 649, 16}, 22 },
2357 { {SystemProfileProto_ComponentId_names + 665, 17}, 21 },
2358 { {SystemProfileProto_ComponentId_names + 682, 11}, 51 },
2359 { {SystemProfileProto_ComponentId_names + 693, 9}, 52 },
2360 { {SystemProfileProto_ComponentId_names + 702, 9}, 53 },
2361 { {SystemProfileProto_ComponentId_names + 711, 4}, 54 },
2362 { {SystemProfileProto_ComponentId_names + 715, 10}, 55 },
2363 { {SystemProfileProto_ComponentId_names + 725, 10}, 56 },
2364 { {SystemProfileProto_ComponentId_names + 735, 10}, 57 },
2365 { {SystemProfileProto_ComponentId_names + 745, 10}, 58 },
2366 { {SystemProfileProto_ComponentId_names + 755, 10}, 59 },
2367 { {SystemProfileProto_ComponentId_names + 765, 10}, 60 },
2368 { {SystemProfileProto_ComponentId_names + 775, 22}, 17 },
2369 { {SystemProfileProto_ComponentId_names + 797, 19}, 8 },
2370 { {SystemProfileProto_ComponentId_names + 816, 16}, 16 },
2371 { {SystemProfileProto_ComponentId_names + 832, 7}, 9 },
2372 { {SystemProfileProto_ComponentId_names + 839, 18}, 11 },
2373 { {SystemProfileProto_ComponentId_names + 857, 11}, 12 },
2374 { {SystemProfileProto_ComponentId_names + 868, 39}, 63 },
2375 { {SystemProfileProto_ComponentId_names + 907, 23}, 61 },
2376 { {SystemProfileProto_ComponentId_names + 930, 27}, 62 },
2377 { {SystemProfileProto_ComponentId_names + 957, 7}, 1 },
2378 { {SystemProfileProto_ComponentId_names + 964, 9}, 20 },
2379 { {SystemProfileProto_ComponentId_names + 973, 36}, 29 },
2380 { {SystemProfileProto_ComponentId_names + 1009, 12}, 13 },
2381 { {SystemProfileProto_ComponentId_names + 1021, 11}, 27 },
2382 };
2383
2384 static const int SystemProfileProto_ComponentId_entries_by_number[] = {
2385 59, // 1 -> UNKNOWN
2386 17, // 2 -> FILE_TYPE_POLICIES
2387 30, // 3 -> ORIGIN_TRIALS
2388 31, // 4 -> PEPPER_FLASH
2389 32, // 5 -> PEPPER_FLASH_CHROMEOS
2390 34, // 6 -> PNACL
2391 36, // 7 -> RECOVERY
2392 51, // 8 -> SSL_ERROR_ASSISTANT
2393 53, // 9 -> STH_SET
2394 6, // 10 -> CRL_SET
2395 54, // 11 -> SUBRESOURCE_FILTER
2396 55, // 12 -> SW_REPORTER
2397 62, // 13 -> WIDEVINE_CDM
2398 16, // 14 -> EPSON_INKJET_PRINTER_ESCPR
2399 8, // 15 -> CROS_TERMINA
2400 52, // 16 -> STAR_CUPS_DRIVER
2401 50, // 17 -> SPEECH_SYNTHESIS_SV_SE
2402 29, // 18 -> OPTIMIZATION_HINTS
2403 15, // 19 -> DOWNLOADABLE_STRINGS
2404 60, // 20 -> VR_ASSETS
2405 39, // 21 -> RTANALYTICS_LIGHT
2406 38, // 22 -> RTANALYTICS_FULL
2407 3, // 23 -> CELLULAR
2408 12, // 24 -> DEMO_MODE_RESOURCES
2409 28, // 25 -> ON_DEVICE_HEAD_SUGGEST
2410 7, // 26 -> CROS_SMART_DIM
2411 63, // 27 -> ZXCVBN_DATA
2412 1, // 28 -> AUTOFILL_REGEX_CONSTANTS
2413 61, // 29 -> WEBVIEW_APPS_PACKAGE_NAMES_ALLOWLIST
2414 26, // 30 -> MEDIA_FOUNDATION_WIDEVINE_CDM
2415 9, // 31 -> CROWD_DENY
2416 0, // 32 -> APP_PROVISIONING
2417 2, // 33 -> AUTOFILL_STATES
2418 4, // 34 -> CLIENT_SIDE_PHISHING
2419 5, // 35 -> COMMERCE_HEURISTICS
2420 10, // 36 -> CROW_DOMAIN_LIST
2421 11, // 37 -> DEMO_MODE_APP
2422 13, // 38 -> DESKTOP_SCREENSHOT_EDITOR
2423 14, // 39 -> DESKTOP_SHARING_HUB
2424 18, // 40 -> FIRST_PARTY_SETS
2425 20, // 41 -> HYPHENATION
2426 21, // 42 -> INTERVENTION_POLICY_DATABASE
2427 22, // 43 -> LACROS_DOGFOOD_BETA
2428 23, // 44 -> LACROS_DOGFOOD_CANARY
2429 24, // 45 -> LACROS_DOGFOOD_DEV
2430 25, // 46 -> LACROS_DOGFOOD_STABLE
2431 27, // 47 -> MEI_PRELOAD
2432 33, // 48 -> PKI_METADATA
2433 35, // 49 -> REAL_TIME_URL_CHECKS_ALLOWLIST
2434 37, // 50 -> RECOVERY_IMPROVED
2435 40, // 51 -> SAFETY_TIPS
2436 41, // 52 -> SCREEN_AI
2437 42, // 53 -> SMART_DIM
2438 43, // 54 -> SODA
2439 44, // 55 -> SODA_DE_DE
2440 45, // 56 -> SODA_EN_US
2441 46, // 57 -> SODA_ES_ES
2442 47, // 58 -> SODA_FR_FR
2443 48, // 59 -> SODA_IT_IT
2444 49, // 60 -> SODA_JA_JP
2445 57, // 61 -> THIRD_PARTY_MODULE_LIST
2446 58, // 62 -> TRUST_TOKEN_KEY_COMMITMENTS
2447 56, // 63 -> THIRD_PARTY_COOKIE_DEPRECATION_METADATA
2448 19, // 64 -> GROWTH_CAMPAIGNS
2449 };
2450
SystemProfileProto_ComponentId_Name(SystemProfileProto_ComponentId value)2451 const std::string& SystemProfileProto_ComponentId_Name(
2452 SystemProfileProto_ComponentId value) {
2453 static const bool dummy =
2454 ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
2455 SystemProfileProto_ComponentId_entries,
2456 SystemProfileProto_ComponentId_entries_by_number,
2457 64, SystemProfileProto_ComponentId_strings);
2458 (void) dummy;
2459 int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
2460 SystemProfileProto_ComponentId_entries,
2461 SystemProfileProto_ComponentId_entries_by_number,
2462 64, value);
2463 return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
2464 SystemProfileProto_ComponentId_strings[idx].get();
2465 }
SystemProfileProto_ComponentId_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,SystemProfileProto_ComponentId * value)2466 bool SystemProfileProto_ComponentId_Parse(
2467 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SystemProfileProto_ComponentId* value) {
2468 int int_value;
2469 bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
2470 SystemProfileProto_ComponentId_entries, 64, name, &int_value);
2471 if (success) {
2472 *value = static_cast<SystemProfileProto_ComponentId>(int_value);
2473 }
2474 return success;
2475 }
2476 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
2477 constexpr SystemProfileProto_ComponentId SystemProfileProto::UNKNOWN;
2478 constexpr SystemProfileProto_ComponentId SystemProfileProto::FILE_TYPE_POLICIES;
2479 constexpr SystemProfileProto_ComponentId SystemProfileProto::ORIGIN_TRIALS;
2480 constexpr SystemProfileProto_ComponentId SystemProfileProto::PEPPER_FLASH;
2481 constexpr SystemProfileProto_ComponentId SystemProfileProto::PEPPER_FLASH_CHROMEOS;
2482 constexpr SystemProfileProto_ComponentId SystemProfileProto::PNACL;
2483 constexpr SystemProfileProto_ComponentId SystemProfileProto::RECOVERY;
2484 constexpr SystemProfileProto_ComponentId SystemProfileProto::SSL_ERROR_ASSISTANT;
2485 constexpr SystemProfileProto_ComponentId SystemProfileProto::STH_SET;
2486 constexpr SystemProfileProto_ComponentId SystemProfileProto::CRL_SET;
2487 constexpr SystemProfileProto_ComponentId SystemProfileProto::SUBRESOURCE_FILTER;
2488 constexpr SystemProfileProto_ComponentId SystemProfileProto::SW_REPORTER;
2489 constexpr SystemProfileProto_ComponentId SystemProfileProto::WIDEVINE_CDM;
2490 constexpr SystemProfileProto_ComponentId SystemProfileProto::EPSON_INKJET_PRINTER_ESCPR;
2491 constexpr SystemProfileProto_ComponentId SystemProfileProto::CROS_TERMINA;
2492 constexpr SystemProfileProto_ComponentId SystemProfileProto::STAR_CUPS_DRIVER;
2493 constexpr SystemProfileProto_ComponentId SystemProfileProto::SPEECH_SYNTHESIS_SV_SE;
2494 constexpr SystemProfileProto_ComponentId SystemProfileProto::OPTIMIZATION_HINTS;
2495 constexpr SystemProfileProto_ComponentId SystemProfileProto::DOWNLOADABLE_STRINGS;
2496 constexpr SystemProfileProto_ComponentId SystemProfileProto::VR_ASSETS;
2497 constexpr SystemProfileProto_ComponentId SystemProfileProto::RTANALYTICS_LIGHT;
2498 constexpr SystemProfileProto_ComponentId SystemProfileProto::RTANALYTICS_FULL;
2499 constexpr SystemProfileProto_ComponentId SystemProfileProto::CELLULAR;
2500 constexpr SystemProfileProto_ComponentId SystemProfileProto::DEMO_MODE_RESOURCES;
2501 constexpr SystemProfileProto_ComponentId SystemProfileProto::ON_DEVICE_HEAD_SUGGEST;
2502 constexpr SystemProfileProto_ComponentId SystemProfileProto::CROS_SMART_DIM;
2503 constexpr SystemProfileProto_ComponentId SystemProfileProto::ZXCVBN_DATA;
2504 constexpr SystemProfileProto_ComponentId SystemProfileProto::AUTOFILL_REGEX_CONSTANTS;
2505 constexpr SystemProfileProto_ComponentId SystemProfileProto::WEBVIEW_APPS_PACKAGE_NAMES_ALLOWLIST;
2506 constexpr SystemProfileProto_ComponentId SystemProfileProto::MEDIA_FOUNDATION_WIDEVINE_CDM;
2507 constexpr SystemProfileProto_ComponentId SystemProfileProto::CROWD_DENY;
2508 constexpr SystemProfileProto_ComponentId SystemProfileProto::APP_PROVISIONING;
2509 constexpr SystemProfileProto_ComponentId SystemProfileProto::AUTOFILL_STATES;
2510 constexpr SystemProfileProto_ComponentId SystemProfileProto::CLIENT_SIDE_PHISHING;
2511 constexpr SystemProfileProto_ComponentId SystemProfileProto::COMMERCE_HEURISTICS;
2512 constexpr SystemProfileProto_ComponentId SystemProfileProto::CROW_DOMAIN_LIST;
2513 constexpr SystemProfileProto_ComponentId SystemProfileProto::DEMO_MODE_APP;
2514 constexpr SystemProfileProto_ComponentId SystemProfileProto::DESKTOP_SCREENSHOT_EDITOR;
2515 constexpr SystemProfileProto_ComponentId SystemProfileProto::DESKTOP_SHARING_HUB;
2516 constexpr SystemProfileProto_ComponentId SystemProfileProto::FIRST_PARTY_SETS;
2517 constexpr SystemProfileProto_ComponentId SystemProfileProto::HYPHENATION;
2518 constexpr SystemProfileProto_ComponentId SystemProfileProto::INTERVENTION_POLICY_DATABASE;
2519 constexpr SystemProfileProto_ComponentId SystemProfileProto::LACROS_DOGFOOD_BETA;
2520 constexpr SystemProfileProto_ComponentId SystemProfileProto::LACROS_DOGFOOD_CANARY;
2521 constexpr SystemProfileProto_ComponentId SystemProfileProto::LACROS_DOGFOOD_DEV;
2522 constexpr SystemProfileProto_ComponentId SystemProfileProto::LACROS_DOGFOOD_STABLE;
2523 constexpr SystemProfileProto_ComponentId SystemProfileProto::MEI_PRELOAD;
2524 constexpr SystemProfileProto_ComponentId SystemProfileProto::PKI_METADATA;
2525 constexpr SystemProfileProto_ComponentId SystemProfileProto::REAL_TIME_URL_CHECKS_ALLOWLIST;
2526 constexpr SystemProfileProto_ComponentId SystemProfileProto::RECOVERY_IMPROVED;
2527 constexpr SystemProfileProto_ComponentId SystemProfileProto::SAFETY_TIPS;
2528 constexpr SystemProfileProto_ComponentId SystemProfileProto::SCREEN_AI;
2529 constexpr SystemProfileProto_ComponentId SystemProfileProto::SMART_DIM;
2530 constexpr SystemProfileProto_ComponentId SystemProfileProto::SODA;
2531 constexpr SystemProfileProto_ComponentId SystemProfileProto::SODA_DE_DE;
2532 constexpr SystemProfileProto_ComponentId SystemProfileProto::SODA_EN_US;
2533 constexpr SystemProfileProto_ComponentId SystemProfileProto::SODA_ES_ES;
2534 constexpr SystemProfileProto_ComponentId SystemProfileProto::SODA_FR_FR;
2535 constexpr SystemProfileProto_ComponentId SystemProfileProto::SODA_IT_IT;
2536 constexpr SystemProfileProto_ComponentId SystemProfileProto::SODA_JA_JP;
2537 constexpr SystemProfileProto_ComponentId SystemProfileProto::THIRD_PARTY_MODULE_LIST;
2538 constexpr SystemProfileProto_ComponentId SystemProfileProto::TRUST_TOKEN_KEY_COMMITMENTS;
2539 constexpr SystemProfileProto_ComponentId SystemProfileProto::THIRD_PARTY_COOKIE_DEPRECATION_METADATA;
2540 constexpr SystemProfileProto_ComponentId SystemProfileProto::GROWTH_CAMPAIGNS;
2541 constexpr SystemProfileProto_ComponentId SystemProfileProto::ComponentId_MIN;
2542 constexpr SystemProfileProto_ComponentId SystemProfileProto::ComponentId_MAX;
2543 constexpr int SystemProfileProto::ComponentId_ARRAYSIZE;
2544 #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
SystemProfileProto_AppPackageNameAllowlistFilter_IsValid(int value)2545 bool SystemProfileProto_AppPackageNameAllowlistFilter_IsValid(int value) {
2546 switch (value) {
2547 case 0:
2548 case 1:
2549 case 3:
2550 return true;
2551 default:
2552 return false;
2553 }
2554 }
2555
2556 static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> SystemProfileProto_AppPackageNameAllowlistFilter_strings[3] = {};
2557
2558 static const char SystemProfileProto_AppPackageNameAllowlistFilter_names[] =
2559 "NO_SERVER_SIDE_FILTER_REQUIRED_FOR_SYSTEM_APPS"
2560 "SERVER_SIDE_FILTER_REQUIRED"
2561 "SERVER_SIDE_FILTER_UNSPECIFIED";
2562
2563 static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry SystemProfileProto_AppPackageNameAllowlistFilter_entries[] = {
2564 { {SystemProfileProto_AppPackageNameAllowlistFilter_names + 0, 46}, 3 },
2565 { {SystemProfileProto_AppPackageNameAllowlistFilter_names + 46, 27}, 1 },
2566 { {SystemProfileProto_AppPackageNameAllowlistFilter_names + 73, 30}, 0 },
2567 };
2568
2569 static const int SystemProfileProto_AppPackageNameAllowlistFilter_entries_by_number[] = {
2570 2, // 0 -> SERVER_SIDE_FILTER_UNSPECIFIED
2571 1, // 1 -> SERVER_SIDE_FILTER_REQUIRED
2572 0, // 3 -> NO_SERVER_SIDE_FILTER_REQUIRED_FOR_SYSTEM_APPS
2573 };
2574
SystemProfileProto_AppPackageNameAllowlistFilter_Name(SystemProfileProto_AppPackageNameAllowlistFilter value)2575 const std::string& SystemProfileProto_AppPackageNameAllowlistFilter_Name(
2576 SystemProfileProto_AppPackageNameAllowlistFilter value) {
2577 static const bool dummy =
2578 ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
2579 SystemProfileProto_AppPackageNameAllowlistFilter_entries,
2580 SystemProfileProto_AppPackageNameAllowlistFilter_entries_by_number,
2581 3, SystemProfileProto_AppPackageNameAllowlistFilter_strings);
2582 (void) dummy;
2583 int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
2584 SystemProfileProto_AppPackageNameAllowlistFilter_entries,
2585 SystemProfileProto_AppPackageNameAllowlistFilter_entries_by_number,
2586 3, value);
2587 return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
2588 SystemProfileProto_AppPackageNameAllowlistFilter_strings[idx].get();
2589 }
SystemProfileProto_AppPackageNameAllowlistFilter_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,SystemProfileProto_AppPackageNameAllowlistFilter * value)2590 bool SystemProfileProto_AppPackageNameAllowlistFilter_Parse(
2591 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SystemProfileProto_AppPackageNameAllowlistFilter* value) {
2592 int int_value;
2593 bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
2594 SystemProfileProto_AppPackageNameAllowlistFilter_entries, 3, name, &int_value);
2595 if (success) {
2596 *value = static_cast<SystemProfileProto_AppPackageNameAllowlistFilter>(int_value);
2597 }
2598 return success;
2599 }
2600 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
2601 constexpr SystemProfileProto_AppPackageNameAllowlistFilter SystemProfileProto::SERVER_SIDE_FILTER_UNSPECIFIED;
2602 constexpr SystemProfileProto_AppPackageNameAllowlistFilter SystemProfileProto::SERVER_SIDE_FILTER_REQUIRED;
2603 constexpr SystemProfileProto_AppPackageNameAllowlistFilter SystemProfileProto::NO_SERVER_SIDE_FILTER_REQUIRED_FOR_SYSTEM_APPS;
2604 constexpr SystemProfileProto_AppPackageNameAllowlistFilter SystemProfileProto::AppPackageNameAllowlistFilter_MIN;
2605 constexpr SystemProfileProto_AppPackageNameAllowlistFilter SystemProfileProto::AppPackageNameAllowlistFilter_MAX;
2606 constexpr int SystemProfileProto::AppPackageNameAllowlistFilter_ARRAYSIZE;
2607 #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
SystemProfileProto_ClientSideSamplingStatus_IsValid(int value)2608 bool SystemProfileProto_ClientSideSamplingStatus_IsValid(int value) {
2609 switch (value) {
2610 case 0:
2611 case 1:
2612 case 2:
2613 return true;
2614 default:
2615 return false;
2616 }
2617 }
2618
2619 static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> SystemProfileProto_ClientSideSamplingStatus_strings[3] = {};
2620
2621 static const char SystemProfileProto_ClientSideSamplingStatus_names[] =
2622 "SAMPLING_APPLIED"
2623 "SAMPLING_NOT_APPLIED"
2624 "SAMPLING_UNKNOWN";
2625
2626 static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry SystemProfileProto_ClientSideSamplingStatus_entries[] = {
2627 { {SystemProfileProto_ClientSideSamplingStatus_names + 0, 16}, 1 },
2628 { {SystemProfileProto_ClientSideSamplingStatus_names + 16, 20}, 2 },
2629 { {SystemProfileProto_ClientSideSamplingStatus_names + 36, 16}, 0 },
2630 };
2631
2632 static const int SystemProfileProto_ClientSideSamplingStatus_entries_by_number[] = {
2633 2, // 0 -> SAMPLING_UNKNOWN
2634 0, // 1 -> SAMPLING_APPLIED
2635 1, // 2 -> SAMPLING_NOT_APPLIED
2636 };
2637
SystemProfileProto_ClientSideSamplingStatus_Name(SystemProfileProto_ClientSideSamplingStatus value)2638 const std::string& SystemProfileProto_ClientSideSamplingStatus_Name(
2639 SystemProfileProto_ClientSideSamplingStatus value) {
2640 static const bool dummy =
2641 ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
2642 SystemProfileProto_ClientSideSamplingStatus_entries,
2643 SystemProfileProto_ClientSideSamplingStatus_entries_by_number,
2644 3, SystemProfileProto_ClientSideSamplingStatus_strings);
2645 (void) dummy;
2646 int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
2647 SystemProfileProto_ClientSideSamplingStatus_entries,
2648 SystemProfileProto_ClientSideSamplingStatus_entries_by_number,
2649 3, value);
2650 return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
2651 SystemProfileProto_ClientSideSamplingStatus_strings[idx].get();
2652 }
SystemProfileProto_ClientSideSamplingStatus_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,SystemProfileProto_ClientSideSamplingStatus * value)2653 bool SystemProfileProto_ClientSideSamplingStatus_Parse(
2654 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SystemProfileProto_ClientSideSamplingStatus* value) {
2655 int int_value;
2656 bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
2657 SystemProfileProto_ClientSideSamplingStatus_entries, 3, name, &int_value);
2658 if (success) {
2659 *value = static_cast<SystemProfileProto_ClientSideSamplingStatus>(int_value);
2660 }
2661 return success;
2662 }
2663 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
2664 constexpr SystemProfileProto_ClientSideSamplingStatus SystemProfileProto::SAMPLING_UNKNOWN;
2665 constexpr SystemProfileProto_ClientSideSamplingStatus SystemProfileProto::SAMPLING_APPLIED;
2666 constexpr SystemProfileProto_ClientSideSamplingStatus SystemProfileProto::SAMPLING_NOT_APPLIED;
2667 constexpr SystemProfileProto_ClientSideSamplingStatus SystemProfileProto::ClientSideSamplingStatus_MIN;
2668 constexpr SystemProfileProto_ClientSideSamplingStatus SystemProfileProto::ClientSideSamplingStatus_MAX;
2669 constexpr int SystemProfileProto::ClientSideSamplingStatus_ARRAYSIZE;
2670 #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
SystemProfileProto_MetricsFilteringStatus_IsValid(int value)2671 bool SystemProfileProto_MetricsFilteringStatus_IsValid(int value) {
2672 switch (value) {
2673 case 0:
2674 case 1:
2675 case 2:
2676 return true;
2677 default:
2678 return false;
2679 }
2680 }
2681
2682 static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> SystemProfileProto_MetricsFilteringStatus_strings[3] = {};
2683
2684 static const char SystemProfileProto_MetricsFilteringStatus_names[] =
2685 "METRICS_ALL"
2686 "METRICS_ONLY_CRITICAL"
2687 "METRICS_UNKNOWN";
2688
2689 static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry SystemProfileProto_MetricsFilteringStatus_entries[] = {
2690 { {SystemProfileProto_MetricsFilteringStatus_names + 0, 11}, 1 },
2691 { {SystemProfileProto_MetricsFilteringStatus_names + 11, 21}, 2 },
2692 { {SystemProfileProto_MetricsFilteringStatus_names + 32, 15}, 0 },
2693 };
2694
2695 static const int SystemProfileProto_MetricsFilteringStatus_entries_by_number[] = {
2696 2, // 0 -> METRICS_UNKNOWN
2697 0, // 1 -> METRICS_ALL
2698 1, // 2 -> METRICS_ONLY_CRITICAL
2699 };
2700
SystemProfileProto_MetricsFilteringStatus_Name(SystemProfileProto_MetricsFilteringStatus value)2701 const std::string& SystemProfileProto_MetricsFilteringStatus_Name(
2702 SystemProfileProto_MetricsFilteringStatus value) {
2703 static const bool dummy =
2704 ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
2705 SystemProfileProto_MetricsFilteringStatus_entries,
2706 SystemProfileProto_MetricsFilteringStatus_entries_by_number,
2707 3, SystemProfileProto_MetricsFilteringStatus_strings);
2708 (void) dummy;
2709 int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
2710 SystemProfileProto_MetricsFilteringStatus_entries,
2711 SystemProfileProto_MetricsFilteringStatus_entries_by_number,
2712 3, value);
2713 return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
2714 SystemProfileProto_MetricsFilteringStatus_strings[idx].get();
2715 }
SystemProfileProto_MetricsFilteringStatus_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,SystemProfileProto_MetricsFilteringStatus * value)2716 bool SystemProfileProto_MetricsFilteringStatus_Parse(
2717 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SystemProfileProto_MetricsFilteringStatus* value) {
2718 int int_value;
2719 bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
2720 SystemProfileProto_MetricsFilteringStatus_entries, 3, name, &int_value);
2721 if (success) {
2722 *value = static_cast<SystemProfileProto_MetricsFilteringStatus>(int_value);
2723 }
2724 return success;
2725 }
2726 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
2727 constexpr SystemProfileProto_MetricsFilteringStatus SystemProfileProto::METRICS_UNKNOWN;
2728 constexpr SystemProfileProto_MetricsFilteringStatus SystemProfileProto::METRICS_ALL;
2729 constexpr SystemProfileProto_MetricsFilteringStatus SystemProfileProto::METRICS_ONLY_CRITICAL;
2730 constexpr SystemProfileProto_MetricsFilteringStatus SystemProfileProto::MetricsFilteringStatus_MIN;
2731 constexpr SystemProfileProto_MetricsFilteringStatus SystemProfileProto::MetricsFilteringStatus_MAX;
2732 constexpr int SystemProfileProto::MetricsFilteringStatus_ARRAYSIZE;
2733 #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
SystemProfileProto_InstallerPackage_IsValid(int value)2734 bool SystemProfileProto_InstallerPackage_IsValid(int value) {
2735 switch (value) {
2736 case 0:
2737 case 1:
2738 case 2:
2739 case 3:
2740 return true;
2741 default:
2742 return false;
2743 }
2744 }
2745
2746 static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> SystemProfileProto_InstallerPackage_strings[4] = {};
2747
2748 static const char SystemProfileProto_InstallerPackage_names[] =
2749 "INSTALLER_PACKAGE_GOOGLE_PLAY_STORE"
2750 "INSTALLER_PACKAGE_NONE"
2751 "INSTALLER_PACKAGE_OTHER"
2752 "INSTALLER_PACKAGE_UNKNOWN";
2753
2754 static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry SystemProfileProto_InstallerPackage_entries[] = {
2755 { {SystemProfileProto_InstallerPackage_names + 0, 35}, 2 },
2756 { {SystemProfileProto_InstallerPackage_names + 35, 22}, 1 },
2757 { {SystemProfileProto_InstallerPackage_names + 57, 23}, 3 },
2758 { {SystemProfileProto_InstallerPackage_names + 80, 25}, 0 },
2759 };
2760
2761 static const int SystemProfileProto_InstallerPackage_entries_by_number[] = {
2762 3, // 0 -> INSTALLER_PACKAGE_UNKNOWN
2763 1, // 1 -> INSTALLER_PACKAGE_NONE
2764 0, // 2 -> INSTALLER_PACKAGE_GOOGLE_PLAY_STORE
2765 2, // 3 -> INSTALLER_PACKAGE_OTHER
2766 };
2767
SystemProfileProto_InstallerPackage_Name(SystemProfileProto_InstallerPackage value)2768 const std::string& SystemProfileProto_InstallerPackage_Name(
2769 SystemProfileProto_InstallerPackage value) {
2770 static const bool dummy =
2771 ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
2772 SystemProfileProto_InstallerPackage_entries,
2773 SystemProfileProto_InstallerPackage_entries_by_number,
2774 4, SystemProfileProto_InstallerPackage_strings);
2775 (void) dummy;
2776 int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
2777 SystemProfileProto_InstallerPackage_entries,
2778 SystemProfileProto_InstallerPackage_entries_by_number,
2779 4, value);
2780 return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
2781 SystemProfileProto_InstallerPackage_strings[idx].get();
2782 }
SystemProfileProto_InstallerPackage_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,SystemProfileProto_InstallerPackage * value)2783 bool SystemProfileProto_InstallerPackage_Parse(
2784 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SystemProfileProto_InstallerPackage* value) {
2785 int int_value;
2786 bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
2787 SystemProfileProto_InstallerPackage_entries, 4, name, &int_value);
2788 if (success) {
2789 *value = static_cast<SystemProfileProto_InstallerPackage>(int_value);
2790 }
2791 return success;
2792 }
2793 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
2794 constexpr SystemProfileProto_InstallerPackage SystemProfileProto::INSTALLER_PACKAGE_UNKNOWN;
2795 constexpr SystemProfileProto_InstallerPackage SystemProfileProto::INSTALLER_PACKAGE_NONE;
2796 constexpr SystemProfileProto_InstallerPackage SystemProfileProto::INSTALLER_PACKAGE_GOOGLE_PLAY_STORE;
2797 constexpr SystemProfileProto_InstallerPackage SystemProfileProto::INSTALLER_PACKAGE_OTHER;
2798 constexpr SystemProfileProto_InstallerPackage SystemProfileProto::InstallerPackage_MIN;
2799 constexpr SystemProfileProto_InstallerPackage SystemProfileProto::InstallerPackage_MAX;
2800 constexpr int SystemProfileProto::InstallerPackage_ARRAYSIZE;
2801 #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
SystemProfileProto_LTSChannel_IsValid(int value)2802 bool SystemProfileProto_LTSChannel_IsValid(int value) {
2803 switch (value) {
2804 case 0:
2805 case 1:
2806 case 2:
2807 case 3:
2808 return true;
2809 default:
2810 return false;
2811 }
2812 }
2813
2814 static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> SystemProfileProto_LTSChannel_strings[4] = {};
2815
2816 static const char SystemProfileProto_LTSChannel_names[] =
2817 "LTS_CHANNEL_LTC"
2818 "LTS_CHANNEL_LTS"
2819 "LTS_CHANNEL_STABLE"
2820 "LTS_CHANNEL_UNKNOWN";
2821
2822 static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry SystemProfileProto_LTSChannel_entries[] = {
2823 { {SystemProfileProto_LTSChannel_names + 0, 15}, 2 },
2824 { {SystemProfileProto_LTSChannel_names + 15, 15}, 3 },
2825 { {SystemProfileProto_LTSChannel_names + 30, 18}, 1 },
2826 { {SystemProfileProto_LTSChannel_names + 48, 19}, 0 },
2827 };
2828
2829 static const int SystemProfileProto_LTSChannel_entries_by_number[] = {
2830 3, // 0 -> LTS_CHANNEL_UNKNOWN
2831 2, // 1 -> LTS_CHANNEL_STABLE
2832 0, // 2 -> LTS_CHANNEL_LTC
2833 1, // 3 -> LTS_CHANNEL_LTS
2834 };
2835
SystemProfileProto_LTSChannel_Name(SystemProfileProto_LTSChannel value)2836 const std::string& SystemProfileProto_LTSChannel_Name(
2837 SystemProfileProto_LTSChannel value) {
2838 static const bool dummy =
2839 ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
2840 SystemProfileProto_LTSChannel_entries,
2841 SystemProfileProto_LTSChannel_entries_by_number,
2842 4, SystemProfileProto_LTSChannel_strings);
2843 (void) dummy;
2844 int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
2845 SystemProfileProto_LTSChannel_entries,
2846 SystemProfileProto_LTSChannel_entries_by_number,
2847 4, value);
2848 return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
2849 SystemProfileProto_LTSChannel_strings[idx].get();
2850 }
SystemProfileProto_LTSChannel_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,SystemProfileProto_LTSChannel * value)2851 bool SystemProfileProto_LTSChannel_Parse(
2852 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SystemProfileProto_LTSChannel* value) {
2853 int int_value;
2854 bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
2855 SystemProfileProto_LTSChannel_entries, 4, name, &int_value);
2856 if (success) {
2857 *value = static_cast<SystemProfileProto_LTSChannel>(int_value);
2858 }
2859 return success;
2860 }
2861 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
2862 constexpr SystemProfileProto_LTSChannel SystemProfileProto::LTS_CHANNEL_UNKNOWN;
2863 constexpr SystemProfileProto_LTSChannel SystemProfileProto::LTS_CHANNEL_STABLE;
2864 constexpr SystemProfileProto_LTSChannel SystemProfileProto::LTS_CHANNEL_LTC;
2865 constexpr SystemProfileProto_LTSChannel SystemProfileProto::LTS_CHANNEL_LTS;
2866 constexpr SystemProfileProto_LTSChannel SystemProfileProto::LTSChannel_MIN;
2867 constexpr SystemProfileProto_LTSChannel SystemProfileProto::LTSChannel_MAX;
2868 constexpr int SystemProfileProto::LTSChannel_ARRAYSIZE;
2869 #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
2870
2871 // ===================================================================
2872
2873 class SystemProfileProto_ClonedInstallInfo::_Internal {
2874 public:
2875 using HasBits = decltype(std::declval<SystemProfileProto_ClonedInstallInfo>()._impl_._has_bits_);
set_has_last_timestamp(HasBits * has_bits)2876 static void set_has_last_timestamp(HasBits* has_bits) {
2877 (*has_bits)[0] |= 1u;
2878 }
set_has_cloned_from_client_id(HasBits * has_bits)2879 static void set_has_cloned_from_client_id(HasBits* has_bits) {
2880 (*has_bits)[0] |= 2u;
2881 }
set_has_first_timestamp(HasBits * has_bits)2882 static void set_has_first_timestamp(HasBits* has_bits) {
2883 (*has_bits)[0] |= 4u;
2884 }
set_has_count(HasBits * has_bits)2885 static void set_has_count(HasBits* has_bits) {
2886 (*has_bits)[0] |= 8u;
2887 }
2888 };
2889
SystemProfileProto_ClonedInstallInfo(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)2890 SystemProfileProto_ClonedInstallInfo::SystemProfileProto_ClonedInstallInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena,
2891 bool is_message_owned)
2892 : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
2893 SharedCtor(arena, is_message_owned);
2894 // @@protoc_insertion_point(arena_constructor:metrics.SystemProfileProto.ClonedInstallInfo)
2895 }
SystemProfileProto_ClonedInstallInfo(const SystemProfileProto_ClonedInstallInfo & from)2896 SystemProfileProto_ClonedInstallInfo::SystemProfileProto_ClonedInstallInfo(const SystemProfileProto_ClonedInstallInfo& from)
2897 : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
2898 SystemProfileProto_ClonedInstallInfo* const _this = this; (void)_this;
2899 new (&_impl_) Impl_{
2900 decltype(_impl_._has_bits_){from._impl_._has_bits_}
2901 , /*decltype(_impl_._cached_size_)*/{}
2902 , decltype(_impl_.last_timestamp_){}
2903 , decltype(_impl_.cloned_from_client_id_){}
2904 , decltype(_impl_.first_timestamp_){}
2905 , decltype(_impl_.count_){}};
2906
2907 _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
2908 ::memcpy(&_impl_.last_timestamp_, &from._impl_.last_timestamp_,
2909 static_cast<size_t>(reinterpret_cast<char*>(&_impl_.count_) -
2910 reinterpret_cast<char*>(&_impl_.last_timestamp_)) + sizeof(_impl_.count_));
2911 // @@protoc_insertion_point(copy_constructor:metrics.SystemProfileProto.ClonedInstallInfo)
2912 }
2913
SharedCtor(::_pb::Arena * arena,bool is_message_owned)2914 inline void SystemProfileProto_ClonedInstallInfo::SharedCtor(
2915 ::_pb::Arena* arena, bool is_message_owned) {
2916 (void)arena;
2917 (void)is_message_owned;
2918 new (&_impl_) Impl_{
2919 decltype(_impl_._has_bits_){}
2920 , /*decltype(_impl_._cached_size_)*/{}
2921 , decltype(_impl_.last_timestamp_){int64_t{0}}
2922 , decltype(_impl_.cloned_from_client_id_){uint64_t{0u}}
2923 , decltype(_impl_.first_timestamp_){int64_t{0}}
2924 , decltype(_impl_.count_){0}
2925 };
2926 }
2927
~SystemProfileProto_ClonedInstallInfo()2928 SystemProfileProto_ClonedInstallInfo::~SystemProfileProto_ClonedInstallInfo() {
2929 // @@protoc_insertion_point(destructor:metrics.SystemProfileProto.ClonedInstallInfo)
2930 if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
2931 (void)arena;
2932 return;
2933 }
2934 SharedDtor();
2935 }
2936
SharedDtor()2937 inline void SystemProfileProto_ClonedInstallInfo::SharedDtor() {
2938 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
2939 }
2940
SetCachedSize(int size) const2941 void SystemProfileProto_ClonedInstallInfo::SetCachedSize(int size) const {
2942 _impl_._cached_size_.Set(size);
2943 }
2944
Clear()2945 void SystemProfileProto_ClonedInstallInfo::Clear() {
2946 // @@protoc_insertion_point(message_clear_start:metrics.SystemProfileProto.ClonedInstallInfo)
2947 uint32_t cached_has_bits = 0;
2948 // Prevent compiler warnings about cached_has_bits being unused
2949 (void) cached_has_bits;
2950
2951 cached_has_bits = _impl_._has_bits_[0];
2952 if (cached_has_bits & 0x0000000fu) {
2953 ::memset(&_impl_.last_timestamp_, 0, static_cast<size_t>(
2954 reinterpret_cast<char*>(&_impl_.count_) -
2955 reinterpret_cast<char*>(&_impl_.last_timestamp_)) + sizeof(_impl_.count_));
2956 }
2957 _impl_._has_bits_.Clear();
2958 _internal_metadata_.Clear<std::string>();
2959 }
2960
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)2961 const char* SystemProfileProto_ClonedInstallInfo::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
2962 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
2963 _Internal::HasBits has_bits{};
2964 while (!ctx->Done(&ptr)) {
2965 uint32_t tag;
2966 ptr = ::_pbi::ReadTag(ptr, &tag);
2967 switch (tag >> 3) {
2968 // optional int64 last_timestamp = 1;
2969 case 1:
2970 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
2971 _Internal::set_has_last_timestamp(&has_bits);
2972 _impl_.last_timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
2973 CHK_(ptr);
2974 } else
2975 goto handle_unusual;
2976 continue;
2977 // optional fixed64 cloned_from_client_id = 2;
2978 case 2:
2979 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 17)) {
2980 _Internal::set_has_cloned_from_client_id(&has_bits);
2981 _impl_.cloned_from_client_id_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<uint64_t>(ptr);
2982 ptr += sizeof(uint64_t);
2983 } else
2984 goto handle_unusual;
2985 continue;
2986 // optional int64 first_timestamp = 3;
2987 case 3:
2988 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
2989 _Internal::set_has_first_timestamp(&has_bits);
2990 _impl_.first_timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
2991 CHK_(ptr);
2992 } else
2993 goto handle_unusual;
2994 continue;
2995 // optional int32 count = 4;
2996 case 4:
2997 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
2998 _Internal::set_has_count(&has_bits);
2999 _impl_.count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
3000 CHK_(ptr);
3001 } else
3002 goto handle_unusual;
3003 continue;
3004 default:
3005 goto handle_unusual;
3006 } // switch
3007 handle_unusual:
3008 if ((tag == 0) || ((tag & 7) == 4)) {
3009 CHK_(ptr);
3010 ctx->SetLastTag(tag);
3011 goto message_done;
3012 }
3013 ptr = UnknownFieldParse(
3014 tag,
3015 _internal_metadata_.mutable_unknown_fields<std::string>(),
3016 ptr, ctx);
3017 CHK_(ptr != nullptr);
3018 } // while
3019 message_done:
3020 _impl_._has_bits_.Or(has_bits);
3021 return ptr;
3022 failure:
3023 ptr = nullptr;
3024 goto message_done;
3025 #undef CHK_
3026 }
3027
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const3028 uint8_t* SystemProfileProto_ClonedInstallInfo::_InternalSerialize(
3029 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
3030 // @@protoc_insertion_point(serialize_to_array_start:metrics.SystemProfileProto.ClonedInstallInfo)
3031 uint32_t cached_has_bits = 0;
3032 (void) cached_has_bits;
3033
3034 cached_has_bits = _impl_._has_bits_[0];
3035 // optional int64 last_timestamp = 1;
3036 if (cached_has_bits & 0x00000001u) {
3037 target = stream->EnsureSpace(target);
3038 target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_last_timestamp(), target);
3039 }
3040
3041 // optional fixed64 cloned_from_client_id = 2;
3042 if (cached_has_bits & 0x00000002u) {
3043 target = stream->EnsureSpace(target);
3044 target = ::_pbi::WireFormatLite::WriteFixed64ToArray(2, this->_internal_cloned_from_client_id(), target);
3045 }
3046
3047 // optional int64 first_timestamp = 3;
3048 if (cached_has_bits & 0x00000004u) {
3049 target = stream->EnsureSpace(target);
3050 target = ::_pbi::WireFormatLite::WriteInt64ToArray(3, this->_internal_first_timestamp(), target);
3051 }
3052
3053 // optional int32 count = 4;
3054 if (cached_has_bits & 0x00000008u) {
3055 target = stream->EnsureSpace(target);
3056 target = ::_pbi::WireFormatLite::WriteInt32ToArray(4, this->_internal_count(), target);
3057 }
3058
3059 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
3060 target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
3061 static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
3062 }
3063 // @@protoc_insertion_point(serialize_to_array_end:metrics.SystemProfileProto.ClonedInstallInfo)
3064 return target;
3065 }
3066
ByteSizeLong() const3067 size_t SystemProfileProto_ClonedInstallInfo::ByteSizeLong() const {
3068 // @@protoc_insertion_point(message_byte_size_start:metrics.SystemProfileProto.ClonedInstallInfo)
3069 size_t total_size = 0;
3070
3071 uint32_t cached_has_bits = 0;
3072 // Prevent compiler warnings about cached_has_bits being unused
3073 (void) cached_has_bits;
3074
3075 cached_has_bits = _impl_._has_bits_[0];
3076 if (cached_has_bits & 0x0000000fu) {
3077 // optional int64 last_timestamp = 1;
3078 if (cached_has_bits & 0x00000001u) {
3079 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_last_timestamp());
3080 }
3081
3082 // optional fixed64 cloned_from_client_id = 2;
3083 if (cached_has_bits & 0x00000002u) {
3084 total_size += 1 + 8;
3085 }
3086
3087 // optional int64 first_timestamp = 3;
3088 if (cached_has_bits & 0x00000004u) {
3089 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_first_timestamp());
3090 }
3091
3092 // optional int32 count = 4;
3093 if (cached_has_bits & 0x00000008u) {
3094 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_count());
3095 }
3096
3097 }
3098 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
3099 total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
3100 }
3101 int cached_size = ::_pbi::ToCachedSize(total_size);
3102 SetCachedSize(cached_size);
3103 return total_size;
3104 }
3105
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)3106 void SystemProfileProto_ClonedInstallInfo::CheckTypeAndMergeFrom(
3107 const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
3108 MergeFrom(*::_pbi::DownCast<const SystemProfileProto_ClonedInstallInfo*>(
3109 &from));
3110 }
3111
MergeFrom(const SystemProfileProto_ClonedInstallInfo & from)3112 void SystemProfileProto_ClonedInstallInfo::MergeFrom(const SystemProfileProto_ClonedInstallInfo& from) {
3113 SystemProfileProto_ClonedInstallInfo* const _this = this;
3114 // @@protoc_insertion_point(class_specific_merge_from_start:metrics.SystemProfileProto.ClonedInstallInfo)
3115 GOOGLE_DCHECK_NE(&from, _this);
3116 uint32_t cached_has_bits = 0;
3117 (void) cached_has_bits;
3118
3119 cached_has_bits = from._impl_._has_bits_[0];
3120 if (cached_has_bits & 0x0000000fu) {
3121 if (cached_has_bits & 0x00000001u) {
3122 _this->_impl_.last_timestamp_ = from._impl_.last_timestamp_;
3123 }
3124 if (cached_has_bits & 0x00000002u) {
3125 _this->_impl_.cloned_from_client_id_ = from._impl_.cloned_from_client_id_;
3126 }
3127 if (cached_has_bits & 0x00000004u) {
3128 _this->_impl_.first_timestamp_ = from._impl_.first_timestamp_;
3129 }
3130 if (cached_has_bits & 0x00000008u) {
3131 _this->_impl_.count_ = from._impl_.count_;
3132 }
3133 _this->_impl_._has_bits_[0] |= cached_has_bits;
3134 }
3135 _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
3136 }
3137
CopyFrom(const SystemProfileProto_ClonedInstallInfo & from)3138 void SystemProfileProto_ClonedInstallInfo::CopyFrom(const SystemProfileProto_ClonedInstallInfo& from) {
3139 // @@protoc_insertion_point(class_specific_copy_from_start:metrics.SystemProfileProto.ClonedInstallInfo)
3140 if (&from == this) return;
3141 Clear();
3142 MergeFrom(from);
3143 }
3144
IsInitialized() const3145 bool SystemProfileProto_ClonedInstallInfo::IsInitialized() const {
3146 return true;
3147 }
3148
InternalSwap(SystemProfileProto_ClonedInstallInfo * other)3149 void SystemProfileProto_ClonedInstallInfo::InternalSwap(SystemProfileProto_ClonedInstallInfo* other) {
3150 using std::swap;
3151 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
3152 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
3153 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
3154 PROTOBUF_FIELD_OFFSET(SystemProfileProto_ClonedInstallInfo, _impl_.count_)
3155 + sizeof(SystemProfileProto_ClonedInstallInfo::_impl_.count_)
3156 - PROTOBUF_FIELD_OFFSET(SystemProfileProto_ClonedInstallInfo, _impl_.last_timestamp_)>(
3157 reinterpret_cast<char*>(&_impl_.last_timestamp_),
3158 reinterpret_cast<char*>(&other->_impl_.last_timestamp_));
3159 }
3160
GetTypeName() const3161 std::string SystemProfileProto_ClonedInstallInfo::GetTypeName() const {
3162 return "metrics.SystemProfileProto.ClonedInstallInfo";
3163 }
3164
3165
3166 // ===================================================================
3167
3168 class SystemProfileProto_OS_Arc::_Internal {
3169 public:
3170 using HasBits = decltype(std::declval<SystemProfileProto_OS_Arc>()._impl_._has_bits_);
set_has_release(HasBits * has_bits)3171 static void set_has_release(HasBits* has_bits) {
3172 (*has_bits)[0] |= 1u;
3173 }
3174 };
3175
SystemProfileProto_OS_Arc(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)3176 SystemProfileProto_OS_Arc::SystemProfileProto_OS_Arc(::PROTOBUF_NAMESPACE_ID::Arena* arena,
3177 bool is_message_owned)
3178 : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
3179 SharedCtor(arena, is_message_owned);
3180 // @@protoc_insertion_point(arena_constructor:metrics.SystemProfileProto.OS.Arc)
3181 }
SystemProfileProto_OS_Arc(const SystemProfileProto_OS_Arc & from)3182 SystemProfileProto_OS_Arc::SystemProfileProto_OS_Arc(const SystemProfileProto_OS_Arc& from)
3183 : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
3184 SystemProfileProto_OS_Arc* const _this = this; (void)_this;
3185 new (&_impl_) Impl_{
3186 decltype(_impl_._has_bits_){from._impl_._has_bits_}
3187 , /*decltype(_impl_._cached_size_)*/{}
3188 , decltype(_impl_.release_){}};
3189
3190 _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
3191 _impl_.release_.InitDefault();
3192 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
3193 _impl_.release_.Set("", GetArenaForAllocation());
3194 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
3195 if (from._internal_has_release()) {
3196 _this->_impl_.release_.Set(from._internal_release(),
3197 _this->GetArenaForAllocation());
3198 }
3199 // @@protoc_insertion_point(copy_constructor:metrics.SystemProfileProto.OS.Arc)
3200 }
3201
SharedCtor(::_pb::Arena * arena,bool is_message_owned)3202 inline void SystemProfileProto_OS_Arc::SharedCtor(
3203 ::_pb::Arena* arena, bool is_message_owned) {
3204 (void)arena;
3205 (void)is_message_owned;
3206 new (&_impl_) Impl_{
3207 decltype(_impl_._has_bits_){}
3208 , /*decltype(_impl_._cached_size_)*/{}
3209 , decltype(_impl_.release_){}
3210 };
3211 _impl_.release_.InitDefault();
3212 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
3213 _impl_.release_.Set("", GetArenaForAllocation());
3214 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
3215 }
3216
~SystemProfileProto_OS_Arc()3217 SystemProfileProto_OS_Arc::~SystemProfileProto_OS_Arc() {
3218 // @@protoc_insertion_point(destructor:metrics.SystemProfileProto.OS.Arc)
3219 if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
3220 (void)arena;
3221 return;
3222 }
3223 SharedDtor();
3224 }
3225
SharedDtor()3226 inline void SystemProfileProto_OS_Arc::SharedDtor() {
3227 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
3228 _impl_.release_.Destroy();
3229 }
3230
SetCachedSize(int size) const3231 void SystemProfileProto_OS_Arc::SetCachedSize(int size) const {
3232 _impl_._cached_size_.Set(size);
3233 }
3234
Clear()3235 void SystemProfileProto_OS_Arc::Clear() {
3236 // @@protoc_insertion_point(message_clear_start:metrics.SystemProfileProto.OS.Arc)
3237 uint32_t cached_has_bits = 0;
3238 // Prevent compiler warnings about cached_has_bits being unused
3239 (void) cached_has_bits;
3240
3241 cached_has_bits = _impl_._has_bits_[0];
3242 if (cached_has_bits & 0x00000001u) {
3243 _impl_.release_.ClearNonDefaultToEmpty();
3244 }
3245 _impl_._has_bits_.Clear();
3246 _internal_metadata_.Clear<std::string>();
3247 }
3248
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)3249 const char* SystemProfileProto_OS_Arc::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
3250 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
3251 _Internal::HasBits has_bits{};
3252 while (!ctx->Done(&ptr)) {
3253 uint32_t tag;
3254 ptr = ::_pbi::ReadTag(ptr, &tag);
3255 switch (tag >> 3) {
3256 // optional string release = 1;
3257 case 1:
3258 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
3259 auto str = _internal_mutable_release();
3260 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
3261 CHK_(ptr);
3262 } else
3263 goto handle_unusual;
3264 continue;
3265 default:
3266 goto handle_unusual;
3267 } // switch
3268 handle_unusual:
3269 if ((tag == 0) || ((tag & 7) == 4)) {
3270 CHK_(ptr);
3271 ctx->SetLastTag(tag);
3272 goto message_done;
3273 }
3274 ptr = UnknownFieldParse(
3275 tag,
3276 _internal_metadata_.mutable_unknown_fields<std::string>(),
3277 ptr, ctx);
3278 CHK_(ptr != nullptr);
3279 } // while
3280 message_done:
3281 _impl_._has_bits_.Or(has_bits);
3282 return ptr;
3283 failure:
3284 ptr = nullptr;
3285 goto message_done;
3286 #undef CHK_
3287 }
3288
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const3289 uint8_t* SystemProfileProto_OS_Arc::_InternalSerialize(
3290 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
3291 // @@protoc_insertion_point(serialize_to_array_start:metrics.SystemProfileProto.OS.Arc)
3292 uint32_t cached_has_bits = 0;
3293 (void) cached_has_bits;
3294
3295 cached_has_bits = _impl_._has_bits_[0];
3296 // optional string release = 1;
3297 if (cached_has_bits & 0x00000001u) {
3298 target = stream->WriteStringMaybeAliased(
3299 1, this->_internal_release(), target);
3300 }
3301
3302 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
3303 target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
3304 static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
3305 }
3306 // @@protoc_insertion_point(serialize_to_array_end:metrics.SystemProfileProto.OS.Arc)
3307 return target;
3308 }
3309
ByteSizeLong() const3310 size_t SystemProfileProto_OS_Arc::ByteSizeLong() const {
3311 // @@protoc_insertion_point(message_byte_size_start:metrics.SystemProfileProto.OS.Arc)
3312 size_t total_size = 0;
3313
3314 uint32_t cached_has_bits = 0;
3315 // Prevent compiler warnings about cached_has_bits being unused
3316 (void) cached_has_bits;
3317
3318 // optional string release = 1;
3319 cached_has_bits = _impl_._has_bits_[0];
3320 if (cached_has_bits & 0x00000001u) {
3321 total_size += 1 +
3322 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
3323 this->_internal_release());
3324 }
3325
3326 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
3327 total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
3328 }
3329 int cached_size = ::_pbi::ToCachedSize(total_size);
3330 SetCachedSize(cached_size);
3331 return total_size;
3332 }
3333
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)3334 void SystemProfileProto_OS_Arc::CheckTypeAndMergeFrom(
3335 const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
3336 MergeFrom(*::_pbi::DownCast<const SystemProfileProto_OS_Arc*>(
3337 &from));
3338 }
3339
MergeFrom(const SystemProfileProto_OS_Arc & from)3340 void SystemProfileProto_OS_Arc::MergeFrom(const SystemProfileProto_OS_Arc& from) {
3341 SystemProfileProto_OS_Arc* const _this = this;
3342 // @@protoc_insertion_point(class_specific_merge_from_start:metrics.SystemProfileProto.OS.Arc)
3343 GOOGLE_DCHECK_NE(&from, _this);
3344 uint32_t cached_has_bits = 0;
3345 (void) cached_has_bits;
3346
3347 if (from._internal_has_release()) {
3348 _this->_internal_set_release(from._internal_release());
3349 }
3350 _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
3351 }
3352
CopyFrom(const SystemProfileProto_OS_Arc & from)3353 void SystemProfileProto_OS_Arc::CopyFrom(const SystemProfileProto_OS_Arc& from) {
3354 // @@protoc_insertion_point(class_specific_copy_from_start:metrics.SystemProfileProto.OS.Arc)
3355 if (&from == this) return;
3356 Clear();
3357 MergeFrom(from);
3358 }
3359
IsInitialized() const3360 bool SystemProfileProto_OS_Arc::IsInitialized() const {
3361 return true;
3362 }
3363
InternalSwap(SystemProfileProto_OS_Arc * other)3364 void SystemProfileProto_OS_Arc::InternalSwap(SystemProfileProto_OS_Arc* other) {
3365 using std::swap;
3366 auto* lhs_arena = GetArenaForAllocation();
3367 auto* rhs_arena = other->GetArenaForAllocation();
3368 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
3369 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
3370 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
3371 &_impl_.release_, lhs_arena,
3372 &other->_impl_.release_, rhs_arena
3373 );
3374 }
3375
GetTypeName() const3376 std::string SystemProfileProto_OS_Arc::GetTypeName() const {
3377 return "metrics.SystemProfileProto.OS.Arc";
3378 }
3379
3380
3381 // ===================================================================
3382
3383 class SystemProfileProto_OS::_Internal {
3384 public:
3385 using HasBits = decltype(std::declval<SystemProfileProto_OS>()._impl_._has_bits_);
set_has_name(HasBits * has_bits)3386 static void set_has_name(HasBits* has_bits) {
3387 (*has_bits)[0] |= 1u;
3388 }
set_has_version(HasBits * has_bits)3389 static void set_has_version(HasBits* has_bits) {
3390 (*has_bits)[0] |= 2u;
3391 }
set_has_build_fingerprint(HasBits * has_bits)3392 static void set_has_build_fingerprint(HasBits* has_bits) {
3393 (*has_bits)[0] |= 4u;
3394 }
set_has_deprecated_is_jailbroken(HasBits * has_bits)3395 static void set_has_deprecated_is_jailbroken(HasBits* has_bits) {
3396 (*has_bits)[0] |= 64u;
3397 }
set_has_build_number(HasBits * has_bits)3398 static void set_has_build_number(HasBits* has_bits) {
3399 (*has_bits)[0] |= 8u;
3400 }
set_has_kernel_version(HasBits * has_bits)3401 static void set_has_kernel_version(HasBits* has_bits) {
3402 (*has_bits)[0] |= 16u;
3403 }
3404 static const ::metrics::SystemProfileProto_OS_Arc& arc(const SystemProfileProto_OS* msg);
set_has_arc(HasBits * has_bits)3405 static void set_has_arc(HasBits* has_bits) {
3406 (*has_bits)[0] |= 32u;
3407 }
set_has_dark_mode_state(HasBits * has_bits)3408 static void set_has_dark_mode_state(HasBits* has_bits) {
3409 (*has_bits)[0] |= 128u;
3410 }
set_has_xdg_session_type(HasBits * has_bits)3411 static void set_has_xdg_session_type(HasBits* has_bits) {
3412 (*has_bits)[0] |= 256u;
3413 }
set_has_xdg_current_desktop(HasBits * has_bits)3414 static void set_has_xdg_current_desktop(HasBits* has_bits) {
3415 (*has_bits)[0] |= 512u;
3416 }
3417 };
3418
3419 const ::metrics::SystemProfileProto_OS_Arc&
arc(const SystemProfileProto_OS * msg)3420 SystemProfileProto_OS::_Internal::arc(const SystemProfileProto_OS* msg) {
3421 return *msg->_impl_.arc_;
3422 }
SystemProfileProto_OS(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)3423 SystemProfileProto_OS::SystemProfileProto_OS(::PROTOBUF_NAMESPACE_ID::Arena* arena,
3424 bool is_message_owned)
3425 : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
3426 SharedCtor(arena, is_message_owned);
3427 // @@protoc_insertion_point(arena_constructor:metrics.SystemProfileProto.OS)
3428 }
SystemProfileProto_OS(const SystemProfileProto_OS & from)3429 SystemProfileProto_OS::SystemProfileProto_OS(const SystemProfileProto_OS& from)
3430 : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
3431 SystemProfileProto_OS* const _this = this; (void)_this;
3432 new (&_impl_) Impl_{
3433 decltype(_impl_._has_bits_){from._impl_._has_bits_}
3434 , /*decltype(_impl_._cached_size_)*/{}
3435 , decltype(_impl_.name_){}
3436 , decltype(_impl_.version_){}
3437 , decltype(_impl_.build_fingerprint_){}
3438 , decltype(_impl_.build_number_){}
3439 , decltype(_impl_.kernel_version_){}
3440 , decltype(_impl_.arc_){nullptr}
3441 , decltype(_impl_.deprecated_is_jailbroken_){}
3442 , decltype(_impl_.dark_mode_state_){}
3443 , decltype(_impl_.xdg_session_type_){}
3444 , decltype(_impl_.xdg_current_desktop_){}};
3445
3446 _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
3447 _impl_.name_.InitDefault();
3448 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
3449 _impl_.name_.Set("", GetArenaForAllocation());
3450 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
3451 if (from._internal_has_name()) {
3452 _this->_impl_.name_.Set(from._internal_name(),
3453 _this->GetArenaForAllocation());
3454 }
3455 _impl_.version_.InitDefault();
3456 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
3457 _impl_.version_.Set("", GetArenaForAllocation());
3458 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
3459 if (from._internal_has_version()) {
3460 _this->_impl_.version_.Set(from._internal_version(),
3461 _this->GetArenaForAllocation());
3462 }
3463 _impl_.build_fingerprint_.InitDefault();
3464 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
3465 _impl_.build_fingerprint_.Set("", GetArenaForAllocation());
3466 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
3467 if (from._internal_has_build_fingerprint()) {
3468 _this->_impl_.build_fingerprint_.Set(from._internal_build_fingerprint(),
3469 _this->GetArenaForAllocation());
3470 }
3471 _impl_.build_number_.InitDefault();
3472 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
3473 _impl_.build_number_.Set("", GetArenaForAllocation());
3474 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
3475 if (from._internal_has_build_number()) {
3476 _this->_impl_.build_number_.Set(from._internal_build_number(),
3477 _this->GetArenaForAllocation());
3478 }
3479 _impl_.kernel_version_.InitDefault();
3480 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
3481 _impl_.kernel_version_.Set("", GetArenaForAllocation());
3482 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
3483 if (from._internal_has_kernel_version()) {
3484 _this->_impl_.kernel_version_.Set(from._internal_kernel_version(),
3485 _this->GetArenaForAllocation());
3486 }
3487 if (from._internal_has_arc()) {
3488 _this->_impl_.arc_ = new ::metrics::SystemProfileProto_OS_Arc(*from._impl_.arc_);
3489 }
3490 ::memcpy(&_impl_.deprecated_is_jailbroken_, &from._impl_.deprecated_is_jailbroken_,
3491 static_cast<size_t>(reinterpret_cast<char*>(&_impl_.xdg_current_desktop_) -
3492 reinterpret_cast<char*>(&_impl_.deprecated_is_jailbroken_)) + sizeof(_impl_.xdg_current_desktop_));
3493 // @@protoc_insertion_point(copy_constructor:metrics.SystemProfileProto.OS)
3494 }
3495
SharedCtor(::_pb::Arena * arena,bool is_message_owned)3496 inline void SystemProfileProto_OS::SharedCtor(
3497 ::_pb::Arena* arena, bool is_message_owned) {
3498 (void)arena;
3499 (void)is_message_owned;
3500 new (&_impl_) Impl_{
3501 decltype(_impl_._has_bits_){}
3502 , /*decltype(_impl_._cached_size_)*/{}
3503 , decltype(_impl_.name_){}
3504 , decltype(_impl_.version_){}
3505 , decltype(_impl_.build_fingerprint_){}
3506 , decltype(_impl_.build_number_){}
3507 , decltype(_impl_.kernel_version_){}
3508 , decltype(_impl_.arc_){nullptr}
3509 , decltype(_impl_.deprecated_is_jailbroken_){false}
3510 , decltype(_impl_.dark_mode_state_){0}
3511 , decltype(_impl_.xdg_session_type_){0}
3512 , decltype(_impl_.xdg_current_desktop_){0}
3513 };
3514 _impl_.name_.InitDefault();
3515 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
3516 _impl_.name_.Set("", GetArenaForAllocation());
3517 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
3518 _impl_.version_.InitDefault();
3519 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
3520 _impl_.version_.Set("", GetArenaForAllocation());
3521 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
3522 _impl_.build_fingerprint_.InitDefault();
3523 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
3524 _impl_.build_fingerprint_.Set("", GetArenaForAllocation());
3525 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
3526 _impl_.build_number_.InitDefault();
3527 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
3528 _impl_.build_number_.Set("", GetArenaForAllocation());
3529 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
3530 _impl_.kernel_version_.InitDefault();
3531 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
3532 _impl_.kernel_version_.Set("", GetArenaForAllocation());
3533 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
3534 }
3535
~SystemProfileProto_OS()3536 SystemProfileProto_OS::~SystemProfileProto_OS() {
3537 // @@protoc_insertion_point(destructor:metrics.SystemProfileProto.OS)
3538 if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
3539 (void)arena;
3540 return;
3541 }
3542 SharedDtor();
3543 }
3544
SharedDtor()3545 inline void SystemProfileProto_OS::SharedDtor() {
3546 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
3547 _impl_.name_.Destroy();
3548 _impl_.version_.Destroy();
3549 _impl_.build_fingerprint_.Destroy();
3550 _impl_.build_number_.Destroy();
3551 _impl_.kernel_version_.Destroy();
3552 if (this != internal_default_instance()) delete _impl_.arc_;
3553 }
3554
SetCachedSize(int size) const3555 void SystemProfileProto_OS::SetCachedSize(int size) const {
3556 _impl_._cached_size_.Set(size);
3557 }
3558
Clear()3559 void SystemProfileProto_OS::Clear() {
3560 // @@protoc_insertion_point(message_clear_start:metrics.SystemProfileProto.OS)
3561 uint32_t cached_has_bits = 0;
3562 // Prevent compiler warnings about cached_has_bits being unused
3563 (void) cached_has_bits;
3564
3565 cached_has_bits = _impl_._has_bits_[0];
3566 if (cached_has_bits & 0x0000003fu) {
3567 if (cached_has_bits & 0x00000001u) {
3568 _impl_.name_.ClearNonDefaultToEmpty();
3569 }
3570 if (cached_has_bits & 0x00000002u) {
3571 _impl_.version_.ClearNonDefaultToEmpty();
3572 }
3573 if (cached_has_bits & 0x00000004u) {
3574 _impl_.build_fingerprint_.ClearNonDefaultToEmpty();
3575 }
3576 if (cached_has_bits & 0x00000008u) {
3577 _impl_.build_number_.ClearNonDefaultToEmpty();
3578 }
3579 if (cached_has_bits & 0x00000010u) {
3580 _impl_.kernel_version_.ClearNonDefaultToEmpty();
3581 }
3582 if (cached_has_bits & 0x00000020u) {
3583 GOOGLE_DCHECK(_impl_.arc_ != nullptr);
3584 _impl_.arc_->Clear();
3585 }
3586 }
3587 if (cached_has_bits & 0x000000c0u) {
3588 ::memset(&_impl_.deprecated_is_jailbroken_, 0, static_cast<size_t>(
3589 reinterpret_cast<char*>(&_impl_.dark_mode_state_) -
3590 reinterpret_cast<char*>(&_impl_.deprecated_is_jailbroken_)) + sizeof(_impl_.dark_mode_state_));
3591 }
3592 if (cached_has_bits & 0x00000300u) {
3593 ::memset(&_impl_.xdg_session_type_, 0, static_cast<size_t>(
3594 reinterpret_cast<char*>(&_impl_.xdg_current_desktop_) -
3595 reinterpret_cast<char*>(&_impl_.xdg_session_type_)) + sizeof(_impl_.xdg_current_desktop_));
3596 }
3597 _impl_._has_bits_.Clear();
3598 _internal_metadata_.Clear<std::string>();
3599 }
3600
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)3601 const char* SystemProfileProto_OS::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
3602 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
3603 _Internal::HasBits has_bits{};
3604 while (!ctx->Done(&ptr)) {
3605 uint32_t tag;
3606 ptr = ::_pbi::ReadTag(ptr, &tag);
3607 switch (tag >> 3) {
3608 // optional string name = 1;
3609 case 1:
3610 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
3611 auto str = _internal_mutable_name();
3612 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
3613 CHK_(ptr);
3614 } else
3615 goto handle_unusual;
3616 continue;
3617 // optional string version = 2;
3618 case 2:
3619 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
3620 auto str = _internal_mutable_version();
3621 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
3622 CHK_(ptr);
3623 } else
3624 goto handle_unusual;
3625 continue;
3626 // optional string build_fingerprint = 3;
3627 case 3:
3628 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
3629 auto str = _internal_mutable_build_fingerprint();
3630 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
3631 CHK_(ptr);
3632 } else
3633 goto handle_unusual;
3634 continue;
3635 // optional bool DEPRECATED_is_jailbroken = 4 [deprecated = true];
3636 case 4:
3637 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
3638 _Internal::set_has_deprecated_is_jailbroken(&has_bits);
3639 _impl_.deprecated_is_jailbroken_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
3640 CHK_(ptr);
3641 } else
3642 goto handle_unusual;
3643 continue;
3644 // optional string build_number = 5;
3645 case 5:
3646 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) {
3647 auto str = _internal_mutable_build_number();
3648 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
3649 CHK_(ptr);
3650 } else
3651 goto handle_unusual;
3652 continue;
3653 // optional string kernel_version = 6;
3654 case 6:
3655 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) {
3656 auto str = _internal_mutable_kernel_version();
3657 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
3658 CHK_(ptr);
3659 } else
3660 goto handle_unusual;
3661 continue;
3662 // optional .metrics.SystemProfileProto.OS.Arc arc = 7;
3663 case 7:
3664 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 58)) {
3665 ptr = ctx->ParseMessage(_internal_mutable_arc(), ptr);
3666 CHK_(ptr);
3667 } else
3668 goto handle_unusual;
3669 continue;
3670 // optional .metrics.SystemProfileProto.OS.DarkModeState dark_mode_state = 8 [default = UNKNOWN];
3671 case 8:
3672 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 64)) {
3673 uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
3674 CHK_(ptr);
3675 if (PROTOBUF_PREDICT_TRUE(::metrics::SystemProfileProto_OS_DarkModeState_IsValid(val))) {
3676 _internal_set_dark_mode_state(static_cast<::metrics::SystemProfileProto_OS_DarkModeState>(val));
3677 } else {
3678 ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(8, val, mutable_unknown_fields());
3679 }
3680 } else
3681 goto handle_unusual;
3682 continue;
3683 // optional .metrics.SystemProfileProto.OS.XdgSessionType xdg_session_type = 9;
3684 case 9:
3685 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 72)) {
3686 uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
3687 CHK_(ptr);
3688 if (PROTOBUF_PREDICT_TRUE(::metrics::SystemProfileProto_OS_XdgSessionType_IsValid(val))) {
3689 _internal_set_xdg_session_type(static_cast<::metrics::SystemProfileProto_OS_XdgSessionType>(val));
3690 } else {
3691 ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(9, val, mutable_unknown_fields());
3692 }
3693 } else
3694 goto handle_unusual;
3695 continue;
3696 // optional .metrics.SystemProfileProto.OS.XdgCurrentDesktop xdg_current_desktop = 10;
3697 case 10:
3698 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 80)) {
3699 uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
3700 CHK_(ptr);
3701 if (PROTOBUF_PREDICT_TRUE(::metrics::SystemProfileProto_OS_XdgCurrentDesktop_IsValid(val))) {
3702 _internal_set_xdg_current_desktop(static_cast<::metrics::SystemProfileProto_OS_XdgCurrentDesktop>(val));
3703 } else {
3704 ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(10, val, mutable_unknown_fields());
3705 }
3706 } else
3707 goto handle_unusual;
3708 continue;
3709 default:
3710 goto handle_unusual;
3711 } // switch
3712 handle_unusual:
3713 if ((tag == 0) || ((tag & 7) == 4)) {
3714 CHK_(ptr);
3715 ctx->SetLastTag(tag);
3716 goto message_done;
3717 }
3718 ptr = UnknownFieldParse(
3719 tag,
3720 _internal_metadata_.mutable_unknown_fields<std::string>(),
3721 ptr, ctx);
3722 CHK_(ptr != nullptr);
3723 } // while
3724 message_done:
3725 _impl_._has_bits_.Or(has_bits);
3726 return ptr;
3727 failure:
3728 ptr = nullptr;
3729 goto message_done;
3730 #undef CHK_
3731 }
3732
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const3733 uint8_t* SystemProfileProto_OS::_InternalSerialize(
3734 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
3735 // @@protoc_insertion_point(serialize_to_array_start:metrics.SystemProfileProto.OS)
3736 uint32_t cached_has_bits = 0;
3737 (void) cached_has_bits;
3738
3739 cached_has_bits = _impl_._has_bits_[0];
3740 // optional string name = 1;
3741 if (cached_has_bits & 0x00000001u) {
3742 target = stream->WriteStringMaybeAliased(
3743 1, this->_internal_name(), target);
3744 }
3745
3746 // optional string version = 2;
3747 if (cached_has_bits & 0x00000002u) {
3748 target = stream->WriteStringMaybeAliased(
3749 2, this->_internal_version(), target);
3750 }
3751
3752 // optional string build_fingerprint = 3;
3753 if (cached_has_bits & 0x00000004u) {
3754 target = stream->WriteStringMaybeAliased(
3755 3, this->_internal_build_fingerprint(), target);
3756 }
3757
3758 // optional bool DEPRECATED_is_jailbroken = 4 [deprecated = true];
3759 if (cached_has_bits & 0x00000040u) {
3760 target = stream->EnsureSpace(target);
3761 target = ::_pbi::WireFormatLite::WriteBoolToArray(4, this->_internal_deprecated_is_jailbroken(), target);
3762 }
3763
3764 // optional string build_number = 5;
3765 if (cached_has_bits & 0x00000008u) {
3766 target = stream->WriteStringMaybeAliased(
3767 5, this->_internal_build_number(), target);
3768 }
3769
3770 // optional string kernel_version = 6;
3771 if (cached_has_bits & 0x00000010u) {
3772 target = stream->WriteStringMaybeAliased(
3773 6, this->_internal_kernel_version(), target);
3774 }
3775
3776 // optional .metrics.SystemProfileProto.OS.Arc arc = 7;
3777 if (cached_has_bits & 0x00000020u) {
3778 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
3779 InternalWriteMessage(7, _Internal::arc(this),
3780 _Internal::arc(this).GetCachedSize(), target, stream);
3781 }
3782
3783 // optional .metrics.SystemProfileProto.OS.DarkModeState dark_mode_state = 8 [default = UNKNOWN];
3784 if (cached_has_bits & 0x00000080u) {
3785 target = stream->EnsureSpace(target);
3786 target = ::_pbi::WireFormatLite::WriteEnumToArray(
3787 8, this->_internal_dark_mode_state(), target);
3788 }
3789
3790 // optional .metrics.SystemProfileProto.OS.XdgSessionType xdg_session_type = 9;
3791 if (cached_has_bits & 0x00000100u) {
3792 target = stream->EnsureSpace(target);
3793 target = ::_pbi::WireFormatLite::WriteEnumToArray(
3794 9, this->_internal_xdg_session_type(), target);
3795 }
3796
3797 // optional .metrics.SystemProfileProto.OS.XdgCurrentDesktop xdg_current_desktop = 10;
3798 if (cached_has_bits & 0x00000200u) {
3799 target = stream->EnsureSpace(target);
3800 target = ::_pbi::WireFormatLite::WriteEnumToArray(
3801 10, this->_internal_xdg_current_desktop(), target);
3802 }
3803
3804 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
3805 target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
3806 static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
3807 }
3808 // @@protoc_insertion_point(serialize_to_array_end:metrics.SystemProfileProto.OS)
3809 return target;
3810 }
3811
ByteSizeLong() const3812 size_t SystemProfileProto_OS::ByteSizeLong() const {
3813 // @@protoc_insertion_point(message_byte_size_start:metrics.SystemProfileProto.OS)
3814 size_t total_size = 0;
3815
3816 uint32_t cached_has_bits = 0;
3817 // Prevent compiler warnings about cached_has_bits being unused
3818 (void) cached_has_bits;
3819
3820 cached_has_bits = _impl_._has_bits_[0];
3821 if (cached_has_bits & 0x000000ffu) {
3822 // optional string name = 1;
3823 if (cached_has_bits & 0x00000001u) {
3824 total_size += 1 +
3825 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
3826 this->_internal_name());
3827 }
3828
3829 // optional string version = 2;
3830 if (cached_has_bits & 0x00000002u) {
3831 total_size += 1 +
3832 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
3833 this->_internal_version());
3834 }
3835
3836 // optional string build_fingerprint = 3;
3837 if (cached_has_bits & 0x00000004u) {
3838 total_size += 1 +
3839 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
3840 this->_internal_build_fingerprint());
3841 }
3842
3843 // optional string build_number = 5;
3844 if (cached_has_bits & 0x00000008u) {
3845 total_size += 1 +
3846 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
3847 this->_internal_build_number());
3848 }
3849
3850 // optional string kernel_version = 6;
3851 if (cached_has_bits & 0x00000010u) {
3852 total_size += 1 +
3853 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
3854 this->_internal_kernel_version());
3855 }
3856
3857 // optional .metrics.SystemProfileProto.OS.Arc arc = 7;
3858 if (cached_has_bits & 0x00000020u) {
3859 total_size += 1 +
3860 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
3861 *_impl_.arc_);
3862 }
3863
3864 // optional bool DEPRECATED_is_jailbroken = 4 [deprecated = true];
3865 if (cached_has_bits & 0x00000040u) {
3866 total_size += 1 + 1;
3867 }
3868
3869 // optional .metrics.SystemProfileProto.OS.DarkModeState dark_mode_state = 8 [default = UNKNOWN];
3870 if (cached_has_bits & 0x00000080u) {
3871 total_size += 1 +
3872 ::_pbi::WireFormatLite::EnumSize(this->_internal_dark_mode_state());
3873 }
3874
3875 }
3876 if (cached_has_bits & 0x00000300u) {
3877 // optional .metrics.SystemProfileProto.OS.XdgSessionType xdg_session_type = 9;
3878 if (cached_has_bits & 0x00000100u) {
3879 total_size += 1 +
3880 ::_pbi::WireFormatLite::EnumSize(this->_internal_xdg_session_type());
3881 }
3882
3883 // optional .metrics.SystemProfileProto.OS.XdgCurrentDesktop xdg_current_desktop = 10;
3884 if (cached_has_bits & 0x00000200u) {
3885 total_size += 1 +
3886 ::_pbi::WireFormatLite::EnumSize(this->_internal_xdg_current_desktop());
3887 }
3888
3889 }
3890 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
3891 total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
3892 }
3893 int cached_size = ::_pbi::ToCachedSize(total_size);
3894 SetCachedSize(cached_size);
3895 return total_size;
3896 }
3897
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)3898 void SystemProfileProto_OS::CheckTypeAndMergeFrom(
3899 const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
3900 MergeFrom(*::_pbi::DownCast<const SystemProfileProto_OS*>(
3901 &from));
3902 }
3903
MergeFrom(const SystemProfileProto_OS & from)3904 void SystemProfileProto_OS::MergeFrom(const SystemProfileProto_OS& from) {
3905 SystemProfileProto_OS* const _this = this;
3906 // @@protoc_insertion_point(class_specific_merge_from_start:metrics.SystemProfileProto.OS)
3907 GOOGLE_DCHECK_NE(&from, _this);
3908 uint32_t cached_has_bits = 0;
3909 (void) cached_has_bits;
3910
3911 cached_has_bits = from._impl_._has_bits_[0];
3912 if (cached_has_bits & 0x000000ffu) {
3913 if (cached_has_bits & 0x00000001u) {
3914 _this->_internal_set_name(from._internal_name());
3915 }
3916 if (cached_has_bits & 0x00000002u) {
3917 _this->_internal_set_version(from._internal_version());
3918 }
3919 if (cached_has_bits & 0x00000004u) {
3920 _this->_internal_set_build_fingerprint(from._internal_build_fingerprint());
3921 }
3922 if (cached_has_bits & 0x00000008u) {
3923 _this->_internal_set_build_number(from._internal_build_number());
3924 }
3925 if (cached_has_bits & 0x00000010u) {
3926 _this->_internal_set_kernel_version(from._internal_kernel_version());
3927 }
3928 if (cached_has_bits & 0x00000020u) {
3929 _this->_internal_mutable_arc()->::metrics::SystemProfileProto_OS_Arc::MergeFrom(
3930 from._internal_arc());
3931 }
3932 if (cached_has_bits & 0x00000040u) {
3933 _this->_impl_.deprecated_is_jailbroken_ = from._impl_.deprecated_is_jailbroken_;
3934 }
3935 if (cached_has_bits & 0x00000080u) {
3936 _this->_impl_.dark_mode_state_ = from._impl_.dark_mode_state_;
3937 }
3938 _this->_impl_._has_bits_[0] |= cached_has_bits;
3939 }
3940 if (cached_has_bits & 0x00000300u) {
3941 if (cached_has_bits & 0x00000100u) {
3942 _this->_impl_.xdg_session_type_ = from._impl_.xdg_session_type_;
3943 }
3944 if (cached_has_bits & 0x00000200u) {
3945 _this->_impl_.xdg_current_desktop_ = from._impl_.xdg_current_desktop_;
3946 }
3947 _this->_impl_._has_bits_[0] |= cached_has_bits;
3948 }
3949 _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
3950 }
3951
CopyFrom(const SystemProfileProto_OS & from)3952 void SystemProfileProto_OS::CopyFrom(const SystemProfileProto_OS& from) {
3953 // @@protoc_insertion_point(class_specific_copy_from_start:metrics.SystemProfileProto.OS)
3954 if (&from == this) return;
3955 Clear();
3956 MergeFrom(from);
3957 }
3958
IsInitialized() const3959 bool SystemProfileProto_OS::IsInitialized() const {
3960 return true;
3961 }
3962
InternalSwap(SystemProfileProto_OS * other)3963 void SystemProfileProto_OS::InternalSwap(SystemProfileProto_OS* other) {
3964 using std::swap;
3965 auto* lhs_arena = GetArenaForAllocation();
3966 auto* rhs_arena = other->GetArenaForAllocation();
3967 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
3968 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
3969 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
3970 &_impl_.name_, lhs_arena,
3971 &other->_impl_.name_, rhs_arena
3972 );
3973 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
3974 &_impl_.version_, lhs_arena,
3975 &other->_impl_.version_, rhs_arena
3976 );
3977 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
3978 &_impl_.build_fingerprint_, lhs_arena,
3979 &other->_impl_.build_fingerprint_, rhs_arena
3980 );
3981 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
3982 &_impl_.build_number_, lhs_arena,
3983 &other->_impl_.build_number_, rhs_arena
3984 );
3985 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
3986 &_impl_.kernel_version_, lhs_arena,
3987 &other->_impl_.kernel_version_, rhs_arena
3988 );
3989 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
3990 PROTOBUF_FIELD_OFFSET(SystemProfileProto_OS, _impl_.xdg_current_desktop_)
3991 + sizeof(SystemProfileProto_OS::_impl_.xdg_current_desktop_)
3992 - PROTOBUF_FIELD_OFFSET(SystemProfileProto_OS, _impl_.arc_)>(
3993 reinterpret_cast<char*>(&_impl_.arc_),
3994 reinterpret_cast<char*>(&other->_impl_.arc_));
3995 }
3996
GetTypeName() const3997 std::string SystemProfileProto_OS::GetTypeName() const {
3998 return "metrics.SystemProfileProto.OS";
3999 }
4000
4001
4002 // ===================================================================
4003
4004 class SystemProfileProto_Hardware_CPU::_Internal {
4005 public:
4006 using HasBits = decltype(std::declval<SystemProfileProto_Hardware_CPU>()._impl_._has_bits_);
set_has_vendor_name(HasBits * has_bits)4007 static void set_has_vendor_name(HasBits* has_bits) {
4008 (*has_bits)[0] |= 1u;
4009 }
set_has_signature(HasBits * has_bits)4010 static void set_has_signature(HasBits* has_bits) {
4011 (*has_bits)[0] |= 2u;
4012 }
set_has_num_cores(HasBits * has_bits)4013 static void set_has_num_cores(HasBits* has_bits) {
4014 (*has_bits)[0] |= 4u;
4015 }
set_has_is_hypervisor(HasBits * has_bits)4016 static void set_has_is_hypervisor(HasBits* has_bits) {
4017 (*has_bits)[0] |= 8u;
4018 }
4019 };
4020
SystemProfileProto_Hardware_CPU(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)4021 SystemProfileProto_Hardware_CPU::SystemProfileProto_Hardware_CPU(::PROTOBUF_NAMESPACE_ID::Arena* arena,
4022 bool is_message_owned)
4023 : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
4024 SharedCtor(arena, is_message_owned);
4025 // @@protoc_insertion_point(arena_constructor:metrics.SystemProfileProto.Hardware.CPU)
4026 }
SystemProfileProto_Hardware_CPU(const SystemProfileProto_Hardware_CPU & from)4027 SystemProfileProto_Hardware_CPU::SystemProfileProto_Hardware_CPU(const SystemProfileProto_Hardware_CPU& from)
4028 : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
4029 SystemProfileProto_Hardware_CPU* const _this = this; (void)_this;
4030 new (&_impl_) Impl_{
4031 decltype(_impl_._has_bits_){from._impl_._has_bits_}
4032 , /*decltype(_impl_._cached_size_)*/{}
4033 , decltype(_impl_.vendor_name_){}
4034 , decltype(_impl_.signature_){}
4035 , decltype(_impl_.num_cores_){}
4036 , decltype(_impl_.is_hypervisor_){}};
4037
4038 _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
4039 _impl_.vendor_name_.InitDefault();
4040 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
4041 _impl_.vendor_name_.Set("", GetArenaForAllocation());
4042 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
4043 if (from._internal_has_vendor_name()) {
4044 _this->_impl_.vendor_name_.Set(from._internal_vendor_name(),
4045 _this->GetArenaForAllocation());
4046 }
4047 ::memcpy(&_impl_.signature_, &from._impl_.signature_,
4048 static_cast<size_t>(reinterpret_cast<char*>(&_impl_.is_hypervisor_) -
4049 reinterpret_cast<char*>(&_impl_.signature_)) + sizeof(_impl_.is_hypervisor_));
4050 // @@protoc_insertion_point(copy_constructor:metrics.SystemProfileProto.Hardware.CPU)
4051 }
4052
SharedCtor(::_pb::Arena * arena,bool is_message_owned)4053 inline void SystemProfileProto_Hardware_CPU::SharedCtor(
4054 ::_pb::Arena* arena, bool is_message_owned) {
4055 (void)arena;
4056 (void)is_message_owned;
4057 new (&_impl_) Impl_{
4058 decltype(_impl_._has_bits_){}
4059 , /*decltype(_impl_._cached_size_)*/{}
4060 , decltype(_impl_.vendor_name_){}
4061 , decltype(_impl_.signature_){0u}
4062 , decltype(_impl_.num_cores_){0u}
4063 , decltype(_impl_.is_hypervisor_){false}
4064 };
4065 _impl_.vendor_name_.InitDefault();
4066 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
4067 _impl_.vendor_name_.Set("", GetArenaForAllocation());
4068 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
4069 }
4070
~SystemProfileProto_Hardware_CPU()4071 SystemProfileProto_Hardware_CPU::~SystemProfileProto_Hardware_CPU() {
4072 // @@protoc_insertion_point(destructor:metrics.SystemProfileProto.Hardware.CPU)
4073 if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
4074 (void)arena;
4075 return;
4076 }
4077 SharedDtor();
4078 }
4079
SharedDtor()4080 inline void SystemProfileProto_Hardware_CPU::SharedDtor() {
4081 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
4082 _impl_.vendor_name_.Destroy();
4083 }
4084
SetCachedSize(int size) const4085 void SystemProfileProto_Hardware_CPU::SetCachedSize(int size) const {
4086 _impl_._cached_size_.Set(size);
4087 }
4088
Clear()4089 void SystemProfileProto_Hardware_CPU::Clear() {
4090 // @@protoc_insertion_point(message_clear_start:metrics.SystemProfileProto.Hardware.CPU)
4091 uint32_t cached_has_bits = 0;
4092 // Prevent compiler warnings about cached_has_bits being unused
4093 (void) cached_has_bits;
4094
4095 cached_has_bits = _impl_._has_bits_[0];
4096 if (cached_has_bits & 0x00000001u) {
4097 _impl_.vendor_name_.ClearNonDefaultToEmpty();
4098 }
4099 if (cached_has_bits & 0x0000000eu) {
4100 ::memset(&_impl_.signature_, 0, static_cast<size_t>(
4101 reinterpret_cast<char*>(&_impl_.is_hypervisor_) -
4102 reinterpret_cast<char*>(&_impl_.signature_)) + sizeof(_impl_.is_hypervisor_));
4103 }
4104 _impl_._has_bits_.Clear();
4105 _internal_metadata_.Clear<std::string>();
4106 }
4107
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)4108 const char* SystemProfileProto_Hardware_CPU::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
4109 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
4110 _Internal::HasBits has_bits{};
4111 while (!ctx->Done(&ptr)) {
4112 uint32_t tag;
4113 ptr = ::_pbi::ReadTag(ptr, &tag);
4114 switch (tag >> 3) {
4115 // optional string vendor_name = 1;
4116 case 1:
4117 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
4118 auto str = _internal_mutable_vendor_name();
4119 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
4120 CHK_(ptr);
4121 } else
4122 goto handle_unusual;
4123 continue;
4124 // optional uint32 signature = 2;
4125 case 2:
4126 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
4127 _Internal::set_has_signature(&has_bits);
4128 _impl_.signature_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
4129 CHK_(ptr);
4130 } else
4131 goto handle_unusual;
4132 continue;
4133 // optional uint32 num_cores = 3;
4134 case 3:
4135 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
4136 _Internal::set_has_num_cores(&has_bits);
4137 _impl_.num_cores_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
4138 CHK_(ptr);
4139 } else
4140 goto handle_unusual;
4141 continue;
4142 // optional bool is_hypervisor = 4;
4143 case 4:
4144 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
4145 _Internal::set_has_is_hypervisor(&has_bits);
4146 _impl_.is_hypervisor_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
4147 CHK_(ptr);
4148 } else
4149 goto handle_unusual;
4150 continue;
4151 default:
4152 goto handle_unusual;
4153 } // switch
4154 handle_unusual:
4155 if ((tag == 0) || ((tag & 7) == 4)) {
4156 CHK_(ptr);
4157 ctx->SetLastTag(tag);
4158 goto message_done;
4159 }
4160 ptr = UnknownFieldParse(
4161 tag,
4162 _internal_metadata_.mutable_unknown_fields<std::string>(),
4163 ptr, ctx);
4164 CHK_(ptr != nullptr);
4165 } // while
4166 message_done:
4167 _impl_._has_bits_.Or(has_bits);
4168 return ptr;
4169 failure:
4170 ptr = nullptr;
4171 goto message_done;
4172 #undef CHK_
4173 }
4174
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const4175 uint8_t* SystemProfileProto_Hardware_CPU::_InternalSerialize(
4176 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
4177 // @@protoc_insertion_point(serialize_to_array_start:metrics.SystemProfileProto.Hardware.CPU)
4178 uint32_t cached_has_bits = 0;
4179 (void) cached_has_bits;
4180
4181 cached_has_bits = _impl_._has_bits_[0];
4182 // optional string vendor_name = 1;
4183 if (cached_has_bits & 0x00000001u) {
4184 target = stream->WriteStringMaybeAliased(
4185 1, this->_internal_vendor_name(), target);
4186 }
4187
4188 // optional uint32 signature = 2;
4189 if (cached_has_bits & 0x00000002u) {
4190 target = stream->EnsureSpace(target);
4191 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_signature(), target);
4192 }
4193
4194 // optional uint32 num_cores = 3;
4195 if (cached_has_bits & 0x00000004u) {
4196 target = stream->EnsureSpace(target);
4197 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(3, this->_internal_num_cores(), target);
4198 }
4199
4200 // optional bool is_hypervisor = 4;
4201 if (cached_has_bits & 0x00000008u) {
4202 target = stream->EnsureSpace(target);
4203 target = ::_pbi::WireFormatLite::WriteBoolToArray(4, this->_internal_is_hypervisor(), target);
4204 }
4205
4206 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
4207 target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
4208 static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
4209 }
4210 // @@protoc_insertion_point(serialize_to_array_end:metrics.SystemProfileProto.Hardware.CPU)
4211 return target;
4212 }
4213
ByteSizeLong() const4214 size_t SystemProfileProto_Hardware_CPU::ByteSizeLong() const {
4215 // @@protoc_insertion_point(message_byte_size_start:metrics.SystemProfileProto.Hardware.CPU)
4216 size_t total_size = 0;
4217
4218 uint32_t cached_has_bits = 0;
4219 // Prevent compiler warnings about cached_has_bits being unused
4220 (void) cached_has_bits;
4221
4222 cached_has_bits = _impl_._has_bits_[0];
4223 if (cached_has_bits & 0x0000000fu) {
4224 // optional string vendor_name = 1;
4225 if (cached_has_bits & 0x00000001u) {
4226 total_size += 1 +
4227 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
4228 this->_internal_vendor_name());
4229 }
4230
4231 // optional uint32 signature = 2;
4232 if (cached_has_bits & 0x00000002u) {
4233 total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_signature());
4234 }
4235
4236 // optional uint32 num_cores = 3;
4237 if (cached_has_bits & 0x00000004u) {
4238 total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_num_cores());
4239 }
4240
4241 // optional bool is_hypervisor = 4;
4242 if (cached_has_bits & 0x00000008u) {
4243 total_size += 1 + 1;
4244 }
4245
4246 }
4247 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
4248 total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
4249 }
4250 int cached_size = ::_pbi::ToCachedSize(total_size);
4251 SetCachedSize(cached_size);
4252 return total_size;
4253 }
4254
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)4255 void SystemProfileProto_Hardware_CPU::CheckTypeAndMergeFrom(
4256 const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
4257 MergeFrom(*::_pbi::DownCast<const SystemProfileProto_Hardware_CPU*>(
4258 &from));
4259 }
4260
MergeFrom(const SystemProfileProto_Hardware_CPU & from)4261 void SystemProfileProto_Hardware_CPU::MergeFrom(const SystemProfileProto_Hardware_CPU& from) {
4262 SystemProfileProto_Hardware_CPU* const _this = this;
4263 // @@protoc_insertion_point(class_specific_merge_from_start:metrics.SystemProfileProto.Hardware.CPU)
4264 GOOGLE_DCHECK_NE(&from, _this);
4265 uint32_t cached_has_bits = 0;
4266 (void) cached_has_bits;
4267
4268 cached_has_bits = from._impl_._has_bits_[0];
4269 if (cached_has_bits & 0x0000000fu) {
4270 if (cached_has_bits & 0x00000001u) {
4271 _this->_internal_set_vendor_name(from._internal_vendor_name());
4272 }
4273 if (cached_has_bits & 0x00000002u) {
4274 _this->_impl_.signature_ = from._impl_.signature_;
4275 }
4276 if (cached_has_bits & 0x00000004u) {
4277 _this->_impl_.num_cores_ = from._impl_.num_cores_;
4278 }
4279 if (cached_has_bits & 0x00000008u) {
4280 _this->_impl_.is_hypervisor_ = from._impl_.is_hypervisor_;
4281 }
4282 _this->_impl_._has_bits_[0] |= cached_has_bits;
4283 }
4284 _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
4285 }
4286
CopyFrom(const SystemProfileProto_Hardware_CPU & from)4287 void SystemProfileProto_Hardware_CPU::CopyFrom(const SystemProfileProto_Hardware_CPU& from) {
4288 // @@protoc_insertion_point(class_specific_copy_from_start:metrics.SystemProfileProto.Hardware.CPU)
4289 if (&from == this) return;
4290 Clear();
4291 MergeFrom(from);
4292 }
4293
IsInitialized() const4294 bool SystemProfileProto_Hardware_CPU::IsInitialized() const {
4295 return true;
4296 }
4297
InternalSwap(SystemProfileProto_Hardware_CPU * other)4298 void SystemProfileProto_Hardware_CPU::InternalSwap(SystemProfileProto_Hardware_CPU* other) {
4299 using std::swap;
4300 auto* lhs_arena = GetArenaForAllocation();
4301 auto* rhs_arena = other->GetArenaForAllocation();
4302 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
4303 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
4304 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
4305 &_impl_.vendor_name_, lhs_arena,
4306 &other->_impl_.vendor_name_, rhs_arena
4307 );
4308 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
4309 PROTOBUF_FIELD_OFFSET(SystemProfileProto_Hardware_CPU, _impl_.is_hypervisor_)
4310 + sizeof(SystemProfileProto_Hardware_CPU::_impl_.is_hypervisor_)
4311 - PROTOBUF_FIELD_OFFSET(SystemProfileProto_Hardware_CPU, _impl_.signature_)>(
4312 reinterpret_cast<char*>(&_impl_.signature_),
4313 reinterpret_cast<char*>(&other->_impl_.signature_));
4314 }
4315
GetTypeName() const4316 std::string SystemProfileProto_Hardware_CPU::GetTypeName() const {
4317 return "metrics.SystemProfileProto.Hardware.CPU";
4318 }
4319
4320
4321 // ===================================================================
4322
4323 class SystemProfileProto_Hardware_Motherboard::_Internal {
4324 public:
4325 using HasBits = decltype(std::declval<SystemProfileProto_Hardware_Motherboard>()._impl_._has_bits_);
set_has_manufacturer(HasBits * has_bits)4326 static void set_has_manufacturer(HasBits* has_bits) {
4327 (*has_bits)[0] |= 1u;
4328 }
set_has_model(HasBits * has_bits)4329 static void set_has_model(HasBits* has_bits) {
4330 (*has_bits)[0] |= 2u;
4331 }
set_has_bios_manufacturer(HasBits * has_bits)4332 static void set_has_bios_manufacturer(HasBits* has_bits) {
4333 (*has_bits)[0] |= 4u;
4334 }
set_has_bios_version(HasBits * has_bits)4335 static void set_has_bios_version(HasBits* has_bits) {
4336 (*has_bits)[0] |= 8u;
4337 }
set_has_bios_type(HasBits * has_bits)4338 static void set_has_bios_type(HasBits* has_bits) {
4339 (*has_bits)[0] |= 16u;
4340 }
4341 };
4342
SystemProfileProto_Hardware_Motherboard(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)4343 SystemProfileProto_Hardware_Motherboard::SystemProfileProto_Hardware_Motherboard(::PROTOBUF_NAMESPACE_ID::Arena* arena,
4344 bool is_message_owned)
4345 : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
4346 SharedCtor(arena, is_message_owned);
4347 // @@protoc_insertion_point(arena_constructor:metrics.SystemProfileProto.Hardware.Motherboard)
4348 }
SystemProfileProto_Hardware_Motherboard(const SystemProfileProto_Hardware_Motherboard & from)4349 SystemProfileProto_Hardware_Motherboard::SystemProfileProto_Hardware_Motherboard(const SystemProfileProto_Hardware_Motherboard& from)
4350 : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
4351 SystemProfileProto_Hardware_Motherboard* const _this = this; (void)_this;
4352 new (&_impl_) Impl_{
4353 decltype(_impl_._has_bits_){from._impl_._has_bits_}
4354 , /*decltype(_impl_._cached_size_)*/{}
4355 , decltype(_impl_.manufacturer_){}
4356 , decltype(_impl_.model_){}
4357 , decltype(_impl_.bios_manufacturer_){}
4358 , decltype(_impl_.bios_version_){}
4359 , decltype(_impl_.bios_type_){}};
4360
4361 _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
4362 _impl_.manufacturer_.InitDefault();
4363 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
4364 _impl_.manufacturer_.Set("", GetArenaForAllocation());
4365 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
4366 if (from._internal_has_manufacturer()) {
4367 _this->_impl_.manufacturer_.Set(from._internal_manufacturer(),
4368 _this->GetArenaForAllocation());
4369 }
4370 _impl_.model_.InitDefault();
4371 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
4372 _impl_.model_.Set("", GetArenaForAllocation());
4373 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
4374 if (from._internal_has_model()) {
4375 _this->_impl_.model_.Set(from._internal_model(),
4376 _this->GetArenaForAllocation());
4377 }
4378 _impl_.bios_manufacturer_.InitDefault();
4379 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
4380 _impl_.bios_manufacturer_.Set("", GetArenaForAllocation());
4381 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
4382 if (from._internal_has_bios_manufacturer()) {
4383 _this->_impl_.bios_manufacturer_.Set(from._internal_bios_manufacturer(),
4384 _this->GetArenaForAllocation());
4385 }
4386 _impl_.bios_version_.InitDefault();
4387 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
4388 _impl_.bios_version_.Set("", GetArenaForAllocation());
4389 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
4390 if (from._internal_has_bios_version()) {
4391 _this->_impl_.bios_version_.Set(from._internal_bios_version(),
4392 _this->GetArenaForAllocation());
4393 }
4394 _this->_impl_.bios_type_ = from._impl_.bios_type_;
4395 // @@protoc_insertion_point(copy_constructor:metrics.SystemProfileProto.Hardware.Motherboard)
4396 }
4397
SharedCtor(::_pb::Arena * arena,bool is_message_owned)4398 inline void SystemProfileProto_Hardware_Motherboard::SharedCtor(
4399 ::_pb::Arena* arena, bool is_message_owned) {
4400 (void)arena;
4401 (void)is_message_owned;
4402 new (&_impl_) Impl_{
4403 decltype(_impl_._has_bits_){}
4404 , /*decltype(_impl_._cached_size_)*/{}
4405 , decltype(_impl_.manufacturer_){}
4406 , decltype(_impl_.model_){}
4407 , decltype(_impl_.bios_manufacturer_){}
4408 , decltype(_impl_.bios_version_){}
4409 , decltype(_impl_.bios_type_){0}
4410 };
4411 _impl_.manufacturer_.InitDefault();
4412 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
4413 _impl_.manufacturer_.Set("", GetArenaForAllocation());
4414 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
4415 _impl_.model_.InitDefault();
4416 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
4417 _impl_.model_.Set("", GetArenaForAllocation());
4418 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
4419 _impl_.bios_manufacturer_.InitDefault();
4420 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
4421 _impl_.bios_manufacturer_.Set("", GetArenaForAllocation());
4422 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
4423 _impl_.bios_version_.InitDefault();
4424 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
4425 _impl_.bios_version_.Set("", GetArenaForAllocation());
4426 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
4427 }
4428
~SystemProfileProto_Hardware_Motherboard()4429 SystemProfileProto_Hardware_Motherboard::~SystemProfileProto_Hardware_Motherboard() {
4430 // @@protoc_insertion_point(destructor:metrics.SystemProfileProto.Hardware.Motherboard)
4431 if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
4432 (void)arena;
4433 return;
4434 }
4435 SharedDtor();
4436 }
4437
SharedDtor()4438 inline void SystemProfileProto_Hardware_Motherboard::SharedDtor() {
4439 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
4440 _impl_.manufacturer_.Destroy();
4441 _impl_.model_.Destroy();
4442 _impl_.bios_manufacturer_.Destroy();
4443 _impl_.bios_version_.Destroy();
4444 }
4445
SetCachedSize(int size) const4446 void SystemProfileProto_Hardware_Motherboard::SetCachedSize(int size) const {
4447 _impl_._cached_size_.Set(size);
4448 }
4449
Clear()4450 void SystemProfileProto_Hardware_Motherboard::Clear() {
4451 // @@protoc_insertion_point(message_clear_start:metrics.SystemProfileProto.Hardware.Motherboard)
4452 uint32_t cached_has_bits = 0;
4453 // Prevent compiler warnings about cached_has_bits being unused
4454 (void) cached_has_bits;
4455
4456 cached_has_bits = _impl_._has_bits_[0];
4457 if (cached_has_bits & 0x0000000fu) {
4458 if (cached_has_bits & 0x00000001u) {
4459 _impl_.manufacturer_.ClearNonDefaultToEmpty();
4460 }
4461 if (cached_has_bits & 0x00000002u) {
4462 _impl_.model_.ClearNonDefaultToEmpty();
4463 }
4464 if (cached_has_bits & 0x00000004u) {
4465 _impl_.bios_manufacturer_.ClearNonDefaultToEmpty();
4466 }
4467 if (cached_has_bits & 0x00000008u) {
4468 _impl_.bios_version_.ClearNonDefaultToEmpty();
4469 }
4470 }
4471 _impl_.bios_type_ = 0;
4472 _impl_._has_bits_.Clear();
4473 _internal_metadata_.Clear<std::string>();
4474 }
4475
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)4476 const char* SystemProfileProto_Hardware_Motherboard::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
4477 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
4478 _Internal::HasBits has_bits{};
4479 while (!ctx->Done(&ptr)) {
4480 uint32_t tag;
4481 ptr = ::_pbi::ReadTag(ptr, &tag);
4482 switch (tag >> 3) {
4483 // optional string manufacturer = 1;
4484 case 1:
4485 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
4486 auto str = _internal_mutable_manufacturer();
4487 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
4488 CHK_(ptr);
4489 } else
4490 goto handle_unusual;
4491 continue;
4492 // optional string model = 2;
4493 case 2:
4494 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
4495 auto str = _internal_mutable_model();
4496 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
4497 CHK_(ptr);
4498 } else
4499 goto handle_unusual;
4500 continue;
4501 // optional string bios_manufacturer = 3;
4502 case 3:
4503 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
4504 auto str = _internal_mutable_bios_manufacturer();
4505 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
4506 CHK_(ptr);
4507 } else
4508 goto handle_unusual;
4509 continue;
4510 // optional string bios_version = 4;
4511 case 4:
4512 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
4513 auto str = _internal_mutable_bios_version();
4514 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
4515 CHK_(ptr);
4516 } else
4517 goto handle_unusual;
4518 continue;
4519 // optional .metrics.SystemProfileProto.Hardware.BiosType bios_type = 5;
4520 case 5:
4521 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
4522 uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
4523 CHK_(ptr);
4524 if (PROTOBUF_PREDICT_TRUE(::metrics::SystemProfileProto_Hardware_BiosType_IsValid(val))) {
4525 _internal_set_bios_type(static_cast<::metrics::SystemProfileProto_Hardware_BiosType>(val));
4526 } else {
4527 ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(5, val, mutable_unknown_fields());
4528 }
4529 } else
4530 goto handle_unusual;
4531 continue;
4532 default:
4533 goto handle_unusual;
4534 } // switch
4535 handle_unusual:
4536 if ((tag == 0) || ((tag & 7) == 4)) {
4537 CHK_(ptr);
4538 ctx->SetLastTag(tag);
4539 goto message_done;
4540 }
4541 ptr = UnknownFieldParse(
4542 tag,
4543 _internal_metadata_.mutable_unknown_fields<std::string>(),
4544 ptr, ctx);
4545 CHK_(ptr != nullptr);
4546 } // while
4547 message_done:
4548 _impl_._has_bits_.Or(has_bits);
4549 return ptr;
4550 failure:
4551 ptr = nullptr;
4552 goto message_done;
4553 #undef CHK_
4554 }
4555
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const4556 uint8_t* SystemProfileProto_Hardware_Motherboard::_InternalSerialize(
4557 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
4558 // @@protoc_insertion_point(serialize_to_array_start:metrics.SystemProfileProto.Hardware.Motherboard)
4559 uint32_t cached_has_bits = 0;
4560 (void) cached_has_bits;
4561
4562 cached_has_bits = _impl_._has_bits_[0];
4563 // optional string manufacturer = 1;
4564 if (cached_has_bits & 0x00000001u) {
4565 target = stream->WriteStringMaybeAliased(
4566 1, this->_internal_manufacturer(), target);
4567 }
4568
4569 // optional string model = 2;
4570 if (cached_has_bits & 0x00000002u) {
4571 target = stream->WriteStringMaybeAliased(
4572 2, this->_internal_model(), target);
4573 }
4574
4575 // optional string bios_manufacturer = 3;
4576 if (cached_has_bits & 0x00000004u) {
4577 target = stream->WriteStringMaybeAliased(
4578 3, this->_internal_bios_manufacturer(), target);
4579 }
4580
4581 // optional string bios_version = 4;
4582 if (cached_has_bits & 0x00000008u) {
4583 target = stream->WriteStringMaybeAliased(
4584 4, this->_internal_bios_version(), target);
4585 }
4586
4587 // optional .metrics.SystemProfileProto.Hardware.BiosType bios_type = 5;
4588 if (cached_has_bits & 0x00000010u) {
4589 target = stream->EnsureSpace(target);
4590 target = ::_pbi::WireFormatLite::WriteEnumToArray(
4591 5, this->_internal_bios_type(), target);
4592 }
4593
4594 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
4595 target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
4596 static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
4597 }
4598 // @@protoc_insertion_point(serialize_to_array_end:metrics.SystemProfileProto.Hardware.Motherboard)
4599 return target;
4600 }
4601
ByteSizeLong() const4602 size_t SystemProfileProto_Hardware_Motherboard::ByteSizeLong() const {
4603 // @@protoc_insertion_point(message_byte_size_start:metrics.SystemProfileProto.Hardware.Motherboard)
4604 size_t total_size = 0;
4605
4606 uint32_t cached_has_bits = 0;
4607 // Prevent compiler warnings about cached_has_bits being unused
4608 (void) cached_has_bits;
4609
4610 cached_has_bits = _impl_._has_bits_[0];
4611 if (cached_has_bits & 0x0000001fu) {
4612 // optional string manufacturer = 1;
4613 if (cached_has_bits & 0x00000001u) {
4614 total_size += 1 +
4615 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
4616 this->_internal_manufacturer());
4617 }
4618
4619 // optional string model = 2;
4620 if (cached_has_bits & 0x00000002u) {
4621 total_size += 1 +
4622 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
4623 this->_internal_model());
4624 }
4625
4626 // optional string bios_manufacturer = 3;
4627 if (cached_has_bits & 0x00000004u) {
4628 total_size += 1 +
4629 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
4630 this->_internal_bios_manufacturer());
4631 }
4632
4633 // optional string bios_version = 4;
4634 if (cached_has_bits & 0x00000008u) {
4635 total_size += 1 +
4636 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
4637 this->_internal_bios_version());
4638 }
4639
4640 // optional .metrics.SystemProfileProto.Hardware.BiosType bios_type = 5;
4641 if (cached_has_bits & 0x00000010u) {
4642 total_size += 1 +
4643 ::_pbi::WireFormatLite::EnumSize(this->_internal_bios_type());
4644 }
4645
4646 }
4647 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
4648 total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
4649 }
4650 int cached_size = ::_pbi::ToCachedSize(total_size);
4651 SetCachedSize(cached_size);
4652 return total_size;
4653 }
4654
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)4655 void SystemProfileProto_Hardware_Motherboard::CheckTypeAndMergeFrom(
4656 const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
4657 MergeFrom(*::_pbi::DownCast<const SystemProfileProto_Hardware_Motherboard*>(
4658 &from));
4659 }
4660
MergeFrom(const SystemProfileProto_Hardware_Motherboard & from)4661 void SystemProfileProto_Hardware_Motherboard::MergeFrom(const SystemProfileProto_Hardware_Motherboard& from) {
4662 SystemProfileProto_Hardware_Motherboard* const _this = this;
4663 // @@protoc_insertion_point(class_specific_merge_from_start:metrics.SystemProfileProto.Hardware.Motherboard)
4664 GOOGLE_DCHECK_NE(&from, _this);
4665 uint32_t cached_has_bits = 0;
4666 (void) cached_has_bits;
4667
4668 cached_has_bits = from._impl_._has_bits_[0];
4669 if (cached_has_bits & 0x0000001fu) {
4670 if (cached_has_bits & 0x00000001u) {
4671 _this->_internal_set_manufacturer(from._internal_manufacturer());
4672 }
4673 if (cached_has_bits & 0x00000002u) {
4674 _this->_internal_set_model(from._internal_model());
4675 }
4676 if (cached_has_bits & 0x00000004u) {
4677 _this->_internal_set_bios_manufacturer(from._internal_bios_manufacturer());
4678 }
4679 if (cached_has_bits & 0x00000008u) {
4680 _this->_internal_set_bios_version(from._internal_bios_version());
4681 }
4682 if (cached_has_bits & 0x00000010u) {
4683 _this->_impl_.bios_type_ = from._impl_.bios_type_;
4684 }
4685 _this->_impl_._has_bits_[0] |= cached_has_bits;
4686 }
4687 _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
4688 }
4689
CopyFrom(const SystemProfileProto_Hardware_Motherboard & from)4690 void SystemProfileProto_Hardware_Motherboard::CopyFrom(const SystemProfileProto_Hardware_Motherboard& from) {
4691 // @@protoc_insertion_point(class_specific_copy_from_start:metrics.SystemProfileProto.Hardware.Motherboard)
4692 if (&from == this) return;
4693 Clear();
4694 MergeFrom(from);
4695 }
4696
IsInitialized() const4697 bool SystemProfileProto_Hardware_Motherboard::IsInitialized() const {
4698 return true;
4699 }
4700
InternalSwap(SystemProfileProto_Hardware_Motherboard * other)4701 void SystemProfileProto_Hardware_Motherboard::InternalSwap(SystemProfileProto_Hardware_Motherboard* other) {
4702 using std::swap;
4703 auto* lhs_arena = GetArenaForAllocation();
4704 auto* rhs_arena = other->GetArenaForAllocation();
4705 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
4706 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
4707 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
4708 &_impl_.manufacturer_, lhs_arena,
4709 &other->_impl_.manufacturer_, rhs_arena
4710 );
4711 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
4712 &_impl_.model_, lhs_arena,
4713 &other->_impl_.model_, rhs_arena
4714 );
4715 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
4716 &_impl_.bios_manufacturer_, lhs_arena,
4717 &other->_impl_.bios_manufacturer_, rhs_arena
4718 );
4719 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
4720 &_impl_.bios_version_, lhs_arena,
4721 &other->_impl_.bios_version_, rhs_arena
4722 );
4723 swap(_impl_.bios_type_, other->_impl_.bios_type_);
4724 }
4725
GetTypeName() const4726 std::string SystemProfileProto_Hardware_Motherboard::GetTypeName() const {
4727 return "metrics.SystemProfileProto.Hardware.Motherboard";
4728 }
4729
4730
4731 // ===================================================================
4732
4733 class SystemProfileProto_Hardware_Graphics::_Internal {
4734 public:
4735 using HasBits = decltype(std::declval<SystemProfileProto_Hardware_Graphics>()._impl_._has_bits_);
set_has_vendor_id(HasBits * has_bits)4736 static void set_has_vendor_id(HasBits* has_bits) {
4737 (*has_bits)[0] |= 8u;
4738 }
set_has_device_id(HasBits * has_bits)4739 static void set_has_device_id(HasBits* has_bits) {
4740 (*has_bits)[0] |= 16u;
4741 }
set_has_driver_version(HasBits * has_bits)4742 static void set_has_driver_version(HasBits* has_bits) {
4743 (*has_bits)[0] |= 1u;
4744 }
set_has_gl_vendor(HasBits * has_bits)4745 static void set_has_gl_vendor(HasBits* has_bits) {
4746 (*has_bits)[0] |= 2u;
4747 }
set_has_gl_renderer(HasBits * has_bits)4748 static void set_has_gl_renderer(HasBits* has_bits) {
4749 (*has_bits)[0] |= 4u;
4750 }
4751 };
4752
SystemProfileProto_Hardware_Graphics(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)4753 SystemProfileProto_Hardware_Graphics::SystemProfileProto_Hardware_Graphics(::PROTOBUF_NAMESPACE_ID::Arena* arena,
4754 bool is_message_owned)
4755 : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
4756 SharedCtor(arena, is_message_owned);
4757 // @@protoc_insertion_point(arena_constructor:metrics.SystemProfileProto.Hardware.Graphics)
4758 }
SystemProfileProto_Hardware_Graphics(const SystemProfileProto_Hardware_Graphics & from)4759 SystemProfileProto_Hardware_Graphics::SystemProfileProto_Hardware_Graphics(const SystemProfileProto_Hardware_Graphics& from)
4760 : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
4761 SystemProfileProto_Hardware_Graphics* const _this = this; (void)_this;
4762 new (&_impl_) Impl_{
4763 decltype(_impl_._has_bits_){from._impl_._has_bits_}
4764 , /*decltype(_impl_._cached_size_)*/{}
4765 , decltype(_impl_.driver_version_){}
4766 , decltype(_impl_.gl_vendor_){}
4767 , decltype(_impl_.gl_renderer_){}
4768 , decltype(_impl_.vendor_id_){}
4769 , decltype(_impl_.device_id_){}};
4770
4771 _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
4772 _impl_.driver_version_.InitDefault();
4773 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
4774 _impl_.driver_version_.Set("", GetArenaForAllocation());
4775 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
4776 if (from._internal_has_driver_version()) {
4777 _this->_impl_.driver_version_.Set(from._internal_driver_version(),
4778 _this->GetArenaForAllocation());
4779 }
4780 _impl_.gl_vendor_.InitDefault();
4781 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
4782 _impl_.gl_vendor_.Set("", GetArenaForAllocation());
4783 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
4784 if (from._internal_has_gl_vendor()) {
4785 _this->_impl_.gl_vendor_.Set(from._internal_gl_vendor(),
4786 _this->GetArenaForAllocation());
4787 }
4788 _impl_.gl_renderer_.InitDefault();
4789 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
4790 _impl_.gl_renderer_.Set("", GetArenaForAllocation());
4791 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
4792 if (from._internal_has_gl_renderer()) {
4793 _this->_impl_.gl_renderer_.Set(from._internal_gl_renderer(),
4794 _this->GetArenaForAllocation());
4795 }
4796 ::memcpy(&_impl_.vendor_id_, &from._impl_.vendor_id_,
4797 static_cast<size_t>(reinterpret_cast<char*>(&_impl_.device_id_) -
4798 reinterpret_cast<char*>(&_impl_.vendor_id_)) + sizeof(_impl_.device_id_));
4799 // @@protoc_insertion_point(copy_constructor:metrics.SystemProfileProto.Hardware.Graphics)
4800 }
4801
SharedCtor(::_pb::Arena * arena,bool is_message_owned)4802 inline void SystemProfileProto_Hardware_Graphics::SharedCtor(
4803 ::_pb::Arena* arena, bool is_message_owned) {
4804 (void)arena;
4805 (void)is_message_owned;
4806 new (&_impl_) Impl_{
4807 decltype(_impl_._has_bits_){}
4808 , /*decltype(_impl_._cached_size_)*/{}
4809 , decltype(_impl_.driver_version_){}
4810 , decltype(_impl_.gl_vendor_){}
4811 , decltype(_impl_.gl_renderer_){}
4812 , decltype(_impl_.vendor_id_){0u}
4813 , decltype(_impl_.device_id_){0u}
4814 };
4815 _impl_.driver_version_.InitDefault();
4816 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
4817 _impl_.driver_version_.Set("", GetArenaForAllocation());
4818 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
4819 _impl_.gl_vendor_.InitDefault();
4820 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
4821 _impl_.gl_vendor_.Set("", GetArenaForAllocation());
4822 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
4823 _impl_.gl_renderer_.InitDefault();
4824 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
4825 _impl_.gl_renderer_.Set("", GetArenaForAllocation());
4826 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
4827 }
4828
~SystemProfileProto_Hardware_Graphics()4829 SystemProfileProto_Hardware_Graphics::~SystemProfileProto_Hardware_Graphics() {
4830 // @@protoc_insertion_point(destructor:metrics.SystemProfileProto.Hardware.Graphics)
4831 if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
4832 (void)arena;
4833 return;
4834 }
4835 SharedDtor();
4836 }
4837
SharedDtor()4838 inline void SystemProfileProto_Hardware_Graphics::SharedDtor() {
4839 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
4840 _impl_.driver_version_.Destroy();
4841 _impl_.gl_vendor_.Destroy();
4842 _impl_.gl_renderer_.Destroy();
4843 }
4844
SetCachedSize(int size) const4845 void SystemProfileProto_Hardware_Graphics::SetCachedSize(int size) const {
4846 _impl_._cached_size_.Set(size);
4847 }
4848
Clear()4849 void SystemProfileProto_Hardware_Graphics::Clear() {
4850 // @@protoc_insertion_point(message_clear_start:metrics.SystemProfileProto.Hardware.Graphics)
4851 uint32_t cached_has_bits = 0;
4852 // Prevent compiler warnings about cached_has_bits being unused
4853 (void) cached_has_bits;
4854
4855 cached_has_bits = _impl_._has_bits_[0];
4856 if (cached_has_bits & 0x00000007u) {
4857 if (cached_has_bits & 0x00000001u) {
4858 _impl_.driver_version_.ClearNonDefaultToEmpty();
4859 }
4860 if (cached_has_bits & 0x00000002u) {
4861 _impl_.gl_vendor_.ClearNonDefaultToEmpty();
4862 }
4863 if (cached_has_bits & 0x00000004u) {
4864 _impl_.gl_renderer_.ClearNonDefaultToEmpty();
4865 }
4866 }
4867 if (cached_has_bits & 0x00000018u) {
4868 ::memset(&_impl_.vendor_id_, 0, static_cast<size_t>(
4869 reinterpret_cast<char*>(&_impl_.device_id_) -
4870 reinterpret_cast<char*>(&_impl_.vendor_id_)) + sizeof(_impl_.device_id_));
4871 }
4872 _impl_._has_bits_.Clear();
4873 _internal_metadata_.Clear<std::string>();
4874 }
4875
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)4876 const char* SystemProfileProto_Hardware_Graphics::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
4877 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
4878 _Internal::HasBits has_bits{};
4879 while (!ctx->Done(&ptr)) {
4880 uint32_t tag;
4881 ptr = ::_pbi::ReadTag(ptr, &tag);
4882 switch (tag >> 3) {
4883 // optional uint32 vendor_id = 1;
4884 case 1:
4885 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
4886 _Internal::set_has_vendor_id(&has_bits);
4887 _impl_.vendor_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
4888 CHK_(ptr);
4889 } else
4890 goto handle_unusual;
4891 continue;
4892 // optional uint32 device_id = 2;
4893 case 2:
4894 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
4895 _Internal::set_has_device_id(&has_bits);
4896 _impl_.device_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
4897 CHK_(ptr);
4898 } else
4899 goto handle_unusual;
4900 continue;
4901 // optional string driver_version = 3;
4902 case 3:
4903 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
4904 auto str = _internal_mutable_driver_version();
4905 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
4906 CHK_(ptr);
4907 } else
4908 goto handle_unusual;
4909 continue;
4910 // optional string gl_vendor = 6;
4911 case 6:
4912 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) {
4913 auto str = _internal_mutable_gl_vendor();
4914 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
4915 CHK_(ptr);
4916 } else
4917 goto handle_unusual;
4918 continue;
4919 // optional string gl_renderer = 7;
4920 case 7:
4921 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 58)) {
4922 auto str = _internal_mutable_gl_renderer();
4923 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
4924 CHK_(ptr);
4925 } else
4926 goto handle_unusual;
4927 continue;
4928 default:
4929 goto handle_unusual;
4930 } // switch
4931 handle_unusual:
4932 if ((tag == 0) || ((tag & 7) == 4)) {
4933 CHK_(ptr);
4934 ctx->SetLastTag(tag);
4935 goto message_done;
4936 }
4937 ptr = UnknownFieldParse(
4938 tag,
4939 _internal_metadata_.mutable_unknown_fields<std::string>(),
4940 ptr, ctx);
4941 CHK_(ptr != nullptr);
4942 } // while
4943 message_done:
4944 _impl_._has_bits_.Or(has_bits);
4945 return ptr;
4946 failure:
4947 ptr = nullptr;
4948 goto message_done;
4949 #undef CHK_
4950 }
4951
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const4952 uint8_t* SystemProfileProto_Hardware_Graphics::_InternalSerialize(
4953 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
4954 // @@protoc_insertion_point(serialize_to_array_start:metrics.SystemProfileProto.Hardware.Graphics)
4955 uint32_t cached_has_bits = 0;
4956 (void) cached_has_bits;
4957
4958 cached_has_bits = _impl_._has_bits_[0];
4959 // optional uint32 vendor_id = 1;
4960 if (cached_has_bits & 0x00000008u) {
4961 target = stream->EnsureSpace(target);
4962 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_vendor_id(), target);
4963 }
4964
4965 // optional uint32 device_id = 2;
4966 if (cached_has_bits & 0x00000010u) {
4967 target = stream->EnsureSpace(target);
4968 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_device_id(), target);
4969 }
4970
4971 // optional string driver_version = 3;
4972 if (cached_has_bits & 0x00000001u) {
4973 target = stream->WriteStringMaybeAliased(
4974 3, this->_internal_driver_version(), target);
4975 }
4976
4977 // optional string gl_vendor = 6;
4978 if (cached_has_bits & 0x00000002u) {
4979 target = stream->WriteStringMaybeAliased(
4980 6, this->_internal_gl_vendor(), target);
4981 }
4982
4983 // optional string gl_renderer = 7;
4984 if (cached_has_bits & 0x00000004u) {
4985 target = stream->WriteStringMaybeAliased(
4986 7, this->_internal_gl_renderer(), target);
4987 }
4988
4989 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
4990 target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
4991 static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
4992 }
4993 // @@protoc_insertion_point(serialize_to_array_end:metrics.SystemProfileProto.Hardware.Graphics)
4994 return target;
4995 }
4996
ByteSizeLong() const4997 size_t SystemProfileProto_Hardware_Graphics::ByteSizeLong() const {
4998 // @@protoc_insertion_point(message_byte_size_start:metrics.SystemProfileProto.Hardware.Graphics)
4999 size_t total_size = 0;
5000
5001 uint32_t cached_has_bits = 0;
5002 // Prevent compiler warnings about cached_has_bits being unused
5003 (void) cached_has_bits;
5004
5005 cached_has_bits = _impl_._has_bits_[0];
5006 if (cached_has_bits & 0x0000001fu) {
5007 // optional string driver_version = 3;
5008 if (cached_has_bits & 0x00000001u) {
5009 total_size += 1 +
5010 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
5011 this->_internal_driver_version());
5012 }
5013
5014 // optional string gl_vendor = 6;
5015 if (cached_has_bits & 0x00000002u) {
5016 total_size += 1 +
5017 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
5018 this->_internal_gl_vendor());
5019 }
5020
5021 // optional string gl_renderer = 7;
5022 if (cached_has_bits & 0x00000004u) {
5023 total_size += 1 +
5024 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
5025 this->_internal_gl_renderer());
5026 }
5027
5028 // optional uint32 vendor_id = 1;
5029 if (cached_has_bits & 0x00000008u) {
5030 total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_vendor_id());
5031 }
5032
5033 // optional uint32 device_id = 2;
5034 if (cached_has_bits & 0x00000010u) {
5035 total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_device_id());
5036 }
5037
5038 }
5039 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
5040 total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
5041 }
5042 int cached_size = ::_pbi::ToCachedSize(total_size);
5043 SetCachedSize(cached_size);
5044 return total_size;
5045 }
5046
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)5047 void SystemProfileProto_Hardware_Graphics::CheckTypeAndMergeFrom(
5048 const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
5049 MergeFrom(*::_pbi::DownCast<const SystemProfileProto_Hardware_Graphics*>(
5050 &from));
5051 }
5052
MergeFrom(const SystemProfileProto_Hardware_Graphics & from)5053 void SystemProfileProto_Hardware_Graphics::MergeFrom(const SystemProfileProto_Hardware_Graphics& from) {
5054 SystemProfileProto_Hardware_Graphics* const _this = this;
5055 // @@protoc_insertion_point(class_specific_merge_from_start:metrics.SystemProfileProto.Hardware.Graphics)
5056 GOOGLE_DCHECK_NE(&from, _this);
5057 uint32_t cached_has_bits = 0;
5058 (void) cached_has_bits;
5059
5060 cached_has_bits = from._impl_._has_bits_[0];
5061 if (cached_has_bits & 0x0000001fu) {
5062 if (cached_has_bits & 0x00000001u) {
5063 _this->_internal_set_driver_version(from._internal_driver_version());
5064 }
5065 if (cached_has_bits & 0x00000002u) {
5066 _this->_internal_set_gl_vendor(from._internal_gl_vendor());
5067 }
5068 if (cached_has_bits & 0x00000004u) {
5069 _this->_internal_set_gl_renderer(from._internal_gl_renderer());
5070 }
5071 if (cached_has_bits & 0x00000008u) {
5072 _this->_impl_.vendor_id_ = from._impl_.vendor_id_;
5073 }
5074 if (cached_has_bits & 0x00000010u) {
5075 _this->_impl_.device_id_ = from._impl_.device_id_;
5076 }
5077 _this->_impl_._has_bits_[0] |= cached_has_bits;
5078 }
5079 _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
5080 }
5081
CopyFrom(const SystemProfileProto_Hardware_Graphics & from)5082 void SystemProfileProto_Hardware_Graphics::CopyFrom(const SystemProfileProto_Hardware_Graphics& from) {
5083 // @@protoc_insertion_point(class_specific_copy_from_start:metrics.SystemProfileProto.Hardware.Graphics)
5084 if (&from == this) return;
5085 Clear();
5086 MergeFrom(from);
5087 }
5088
IsInitialized() const5089 bool SystemProfileProto_Hardware_Graphics::IsInitialized() const {
5090 return true;
5091 }
5092
InternalSwap(SystemProfileProto_Hardware_Graphics * other)5093 void SystemProfileProto_Hardware_Graphics::InternalSwap(SystemProfileProto_Hardware_Graphics* other) {
5094 using std::swap;
5095 auto* lhs_arena = GetArenaForAllocation();
5096 auto* rhs_arena = other->GetArenaForAllocation();
5097 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
5098 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
5099 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
5100 &_impl_.driver_version_, lhs_arena,
5101 &other->_impl_.driver_version_, rhs_arena
5102 );
5103 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
5104 &_impl_.gl_vendor_, lhs_arena,
5105 &other->_impl_.gl_vendor_, rhs_arena
5106 );
5107 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
5108 &_impl_.gl_renderer_, lhs_arena,
5109 &other->_impl_.gl_renderer_, rhs_arena
5110 );
5111 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
5112 PROTOBUF_FIELD_OFFSET(SystemProfileProto_Hardware_Graphics, _impl_.device_id_)
5113 + sizeof(SystemProfileProto_Hardware_Graphics::_impl_.device_id_)
5114 - PROTOBUF_FIELD_OFFSET(SystemProfileProto_Hardware_Graphics, _impl_.vendor_id_)>(
5115 reinterpret_cast<char*>(&_impl_.vendor_id_),
5116 reinterpret_cast<char*>(&other->_impl_.vendor_id_));
5117 }
5118
GetTypeName() const5119 std::string SystemProfileProto_Hardware_Graphics::GetTypeName() const {
5120 return "metrics.SystemProfileProto.Hardware.Graphics";
5121 }
5122
5123
5124 // ===================================================================
5125
5126 class SystemProfileProto_Hardware_InternalStorageDevice::_Internal {
5127 public:
5128 using HasBits = decltype(std::declval<SystemProfileProto_Hardware_InternalStorageDevice>()._impl_._has_bits_);
set_has_vendor_id(HasBits * has_bits)5129 static void set_has_vendor_id(HasBits* has_bits) {
5130 (*has_bits)[0] |= 4u;
5131 }
set_has_product_id(HasBits * has_bits)5132 static void set_has_product_id(HasBits* has_bits) {
5133 (*has_bits)[0] |= 2u;
5134 }
set_has_revision(HasBits * has_bits)5135 static void set_has_revision(HasBits* has_bits) {
5136 (*has_bits)[0] |= 8u;
5137 }
set_has_model(HasBits * has_bits)5138 static void set_has_model(HasBits* has_bits) {
5139 (*has_bits)[0] |= 1u;
5140 }
set_has_size_mb(HasBits * has_bits)5141 static void set_has_size_mb(HasBits* has_bits) {
5142 (*has_bits)[0] |= 32u;
5143 }
set_has_firmware_version(HasBits * has_bits)5144 static void set_has_firmware_version(HasBits* has_bits) {
5145 (*has_bits)[0] |= 16u;
5146 }
set_has_type(HasBits * has_bits)5147 static void set_has_type(HasBits* has_bits) {
5148 (*has_bits)[0] |= 64u;
5149 }
set_has_purpose(HasBits * has_bits)5150 static void set_has_purpose(HasBits* has_bits) {
5151 (*has_bits)[0] |= 128u;
5152 }
5153 };
5154
SystemProfileProto_Hardware_InternalStorageDevice(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)5155 SystemProfileProto_Hardware_InternalStorageDevice::SystemProfileProto_Hardware_InternalStorageDevice(::PROTOBUF_NAMESPACE_ID::Arena* arena,
5156 bool is_message_owned)
5157 : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
5158 SharedCtor(arena, is_message_owned);
5159 // @@protoc_insertion_point(arena_constructor:metrics.SystemProfileProto.Hardware.InternalStorageDevice)
5160 }
SystemProfileProto_Hardware_InternalStorageDevice(const SystemProfileProto_Hardware_InternalStorageDevice & from)5161 SystemProfileProto_Hardware_InternalStorageDevice::SystemProfileProto_Hardware_InternalStorageDevice(const SystemProfileProto_Hardware_InternalStorageDevice& from)
5162 : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
5163 SystemProfileProto_Hardware_InternalStorageDevice* const _this = this; (void)_this;
5164 new (&_impl_) Impl_{
5165 decltype(_impl_._has_bits_){from._impl_._has_bits_}
5166 , /*decltype(_impl_._cached_size_)*/{}
5167 , decltype(_impl_.model_){}
5168 , decltype(_impl_.product_id_){}
5169 , decltype(_impl_.vendor_id_){}
5170 , decltype(_impl_.revision_){}
5171 , decltype(_impl_.firmware_version_){}
5172 , decltype(_impl_.size_mb_){}
5173 , decltype(_impl_.type_){}
5174 , decltype(_impl_.purpose_){}};
5175
5176 _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
5177 _impl_.model_.InitDefault();
5178 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
5179 _impl_.model_.Set("", GetArenaForAllocation());
5180 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
5181 if (from._internal_has_model()) {
5182 _this->_impl_.model_.Set(from._internal_model(),
5183 _this->GetArenaForAllocation());
5184 }
5185 ::memcpy(&_impl_.product_id_, &from._impl_.product_id_,
5186 static_cast<size_t>(reinterpret_cast<char*>(&_impl_.purpose_) -
5187 reinterpret_cast<char*>(&_impl_.product_id_)) + sizeof(_impl_.purpose_));
5188 // @@protoc_insertion_point(copy_constructor:metrics.SystemProfileProto.Hardware.InternalStorageDevice)
5189 }
5190
SharedCtor(::_pb::Arena * arena,bool is_message_owned)5191 inline void SystemProfileProto_Hardware_InternalStorageDevice::SharedCtor(
5192 ::_pb::Arena* arena, bool is_message_owned) {
5193 (void)arena;
5194 (void)is_message_owned;
5195 new (&_impl_) Impl_{
5196 decltype(_impl_._has_bits_){}
5197 , /*decltype(_impl_._cached_size_)*/{}
5198 , decltype(_impl_.model_){}
5199 , decltype(_impl_.product_id_){uint64_t{0u}}
5200 , decltype(_impl_.vendor_id_){0u}
5201 , decltype(_impl_.revision_){0u}
5202 , decltype(_impl_.firmware_version_){uint64_t{0u}}
5203 , decltype(_impl_.size_mb_){0u}
5204 , decltype(_impl_.type_){0}
5205 , decltype(_impl_.purpose_){0}
5206 };
5207 _impl_.model_.InitDefault();
5208 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
5209 _impl_.model_.Set("", GetArenaForAllocation());
5210 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
5211 }
5212
~SystemProfileProto_Hardware_InternalStorageDevice()5213 SystemProfileProto_Hardware_InternalStorageDevice::~SystemProfileProto_Hardware_InternalStorageDevice() {
5214 // @@protoc_insertion_point(destructor:metrics.SystemProfileProto.Hardware.InternalStorageDevice)
5215 if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
5216 (void)arena;
5217 return;
5218 }
5219 SharedDtor();
5220 }
5221
SharedDtor()5222 inline void SystemProfileProto_Hardware_InternalStorageDevice::SharedDtor() {
5223 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
5224 _impl_.model_.Destroy();
5225 }
5226
SetCachedSize(int size) const5227 void SystemProfileProto_Hardware_InternalStorageDevice::SetCachedSize(int size) const {
5228 _impl_._cached_size_.Set(size);
5229 }
5230
Clear()5231 void SystemProfileProto_Hardware_InternalStorageDevice::Clear() {
5232 // @@protoc_insertion_point(message_clear_start:metrics.SystemProfileProto.Hardware.InternalStorageDevice)
5233 uint32_t cached_has_bits = 0;
5234 // Prevent compiler warnings about cached_has_bits being unused
5235 (void) cached_has_bits;
5236
5237 cached_has_bits = _impl_._has_bits_[0];
5238 if (cached_has_bits & 0x00000001u) {
5239 _impl_.model_.ClearNonDefaultToEmpty();
5240 }
5241 if (cached_has_bits & 0x000000feu) {
5242 ::memset(&_impl_.product_id_, 0, static_cast<size_t>(
5243 reinterpret_cast<char*>(&_impl_.purpose_) -
5244 reinterpret_cast<char*>(&_impl_.product_id_)) + sizeof(_impl_.purpose_));
5245 }
5246 _impl_._has_bits_.Clear();
5247 _internal_metadata_.Clear<std::string>();
5248 }
5249
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)5250 const char* SystemProfileProto_Hardware_InternalStorageDevice::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
5251 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
5252 _Internal::HasBits has_bits{};
5253 while (!ctx->Done(&ptr)) {
5254 uint32_t tag;
5255 ptr = ::_pbi::ReadTag(ptr, &tag);
5256 switch (tag >> 3) {
5257 // optional uint32 vendor_id = 1;
5258 case 1:
5259 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
5260 _Internal::set_has_vendor_id(&has_bits);
5261 _impl_.vendor_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
5262 CHK_(ptr);
5263 } else
5264 goto handle_unusual;
5265 continue;
5266 // optional uint64 product_id = 2;
5267 case 2:
5268 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
5269 _Internal::set_has_product_id(&has_bits);
5270 _impl_.product_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
5271 CHK_(ptr);
5272 } else
5273 goto handle_unusual;
5274 continue;
5275 // optional uint32 revision = 3;
5276 case 3:
5277 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
5278 _Internal::set_has_revision(&has_bits);
5279 _impl_.revision_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
5280 CHK_(ptr);
5281 } else
5282 goto handle_unusual;
5283 continue;
5284 // optional string model = 4;
5285 case 4:
5286 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
5287 auto str = _internal_mutable_model();
5288 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
5289 CHK_(ptr);
5290 } else
5291 goto handle_unusual;
5292 continue;
5293 // optional uint32 size_mb = 5;
5294 case 5:
5295 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
5296 _Internal::set_has_size_mb(&has_bits);
5297 _impl_.size_mb_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
5298 CHK_(ptr);
5299 } else
5300 goto handle_unusual;
5301 continue;
5302 // optional uint64 firmware_version = 6;
5303 case 6:
5304 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48)) {
5305 _Internal::set_has_firmware_version(&has_bits);
5306 _impl_.firmware_version_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
5307 CHK_(ptr);
5308 } else
5309 goto handle_unusual;
5310 continue;
5311 // optional .metrics.SystemProfileProto.Hardware.InternalStorageDevice.Type type = 7;
5312 case 7:
5313 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) {
5314 uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
5315 CHK_(ptr);
5316 if (PROTOBUF_PREDICT_TRUE(::metrics::SystemProfileProto_Hardware_InternalStorageDevice_Type_IsValid(val))) {
5317 _internal_set_type(static_cast<::metrics::SystemProfileProto_Hardware_InternalStorageDevice_Type>(val));
5318 } else {
5319 ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(7, val, mutable_unknown_fields());
5320 }
5321 } else
5322 goto handle_unusual;
5323 continue;
5324 // optional .metrics.SystemProfileProto.Hardware.InternalStorageDevice.Purpose purpose = 8;
5325 case 8:
5326 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 64)) {
5327 uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
5328 CHK_(ptr);
5329 if (PROTOBUF_PREDICT_TRUE(::metrics::SystemProfileProto_Hardware_InternalStorageDevice_Purpose_IsValid(val))) {
5330 _internal_set_purpose(static_cast<::metrics::SystemProfileProto_Hardware_InternalStorageDevice_Purpose>(val));
5331 } else {
5332 ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(8, val, mutable_unknown_fields());
5333 }
5334 } else
5335 goto handle_unusual;
5336 continue;
5337 default:
5338 goto handle_unusual;
5339 } // switch
5340 handle_unusual:
5341 if ((tag == 0) || ((tag & 7) == 4)) {
5342 CHK_(ptr);
5343 ctx->SetLastTag(tag);
5344 goto message_done;
5345 }
5346 ptr = UnknownFieldParse(
5347 tag,
5348 _internal_metadata_.mutable_unknown_fields<std::string>(),
5349 ptr, ctx);
5350 CHK_(ptr != nullptr);
5351 } // while
5352 message_done:
5353 _impl_._has_bits_.Or(has_bits);
5354 return ptr;
5355 failure:
5356 ptr = nullptr;
5357 goto message_done;
5358 #undef CHK_
5359 }
5360
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const5361 uint8_t* SystemProfileProto_Hardware_InternalStorageDevice::_InternalSerialize(
5362 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
5363 // @@protoc_insertion_point(serialize_to_array_start:metrics.SystemProfileProto.Hardware.InternalStorageDevice)
5364 uint32_t cached_has_bits = 0;
5365 (void) cached_has_bits;
5366
5367 cached_has_bits = _impl_._has_bits_[0];
5368 // optional uint32 vendor_id = 1;
5369 if (cached_has_bits & 0x00000004u) {
5370 target = stream->EnsureSpace(target);
5371 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_vendor_id(), target);
5372 }
5373
5374 // optional uint64 product_id = 2;
5375 if (cached_has_bits & 0x00000002u) {
5376 target = stream->EnsureSpace(target);
5377 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_product_id(), target);
5378 }
5379
5380 // optional uint32 revision = 3;
5381 if (cached_has_bits & 0x00000008u) {
5382 target = stream->EnsureSpace(target);
5383 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(3, this->_internal_revision(), target);
5384 }
5385
5386 // optional string model = 4;
5387 if (cached_has_bits & 0x00000001u) {
5388 target = stream->WriteStringMaybeAliased(
5389 4, this->_internal_model(), target);
5390 }
5391
5392 // optional uint32 size_mb = 5;
5393 if (cached_has_bits & 0x00000020u) {
5394 target = stream->EnsureSpace(target);
5395 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(5, this->_internal_size_mb(), target);
5396 }
5397
5398 // optional uint64 firmware_version = 6;
5399 if (cached_has_bits & 0x00000010u) {
5400 target = stream->EnsureSpace(target);
5401 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(6, this->_internal_firmware_version(), target);
5402 }
5403
5404 // optional .metrics.SystemProfileProto.Hardware.InternalStorageDevice.Type type = 7;
5405 if (cached_has_bits & 0x00000040u) {
5406 target = stream->EnsureSpace(target);
5407 target = ::_pbi::WireFormatLite::WriteEnumToArray(
5408 7, this->_internal_type(), target);
5409 }
5410
5411 // optional .metrics.SystemProfileProto.Hardware.InternalStorageDevice.Purpose purpose = 8;
5412 if (cached_has_bits & 0x00000080u) {
5413 target = stream->EnsureSpace(target);
5414 target = ::_pbi::WireFormatLite::WriteEnumToArray(
5415 8, this->_internal_purpose(), target);
5416 }
5417
5418 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
5419 target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
5420 static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
5421 }
5422 // @@protoc_insertion_point(serialize_to_array_end:metrics.SystemProfileProto.Hardware.InternalStorageDevice)
5423 return target;
5424 }
5425
ByteSizeLong() const5426 size_t SystemProfileProto_Hardware_InternalStorageDevice::ByteSizeLong() const {
5427 // @@protoc_insertion_point(message_byte_size_start:metrics.SystemProfileProto.Hardware.InternalStorageDevice)
5428 size_t total_size = 0;
5429
5430 uint32_t cached_has_bits = 0;
5431 // Prevent compiler warnings about cached_has_bits being unused
5432 (void) cached_has_bits;
5433
5434 cached_has_bits = _impl_._has_bits_[0];
5435 if (cached_has_bits & 0x000000ffu) {
5436 // optional string model = 4;
5437 if (cached_has_bits & 0x00000001u) {
5438 total_size += 1 +
5439 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
5440 this->_internal_model());
5441 }
5442
5443 // optional uint64 product_id = 2;
5444 if (cached_has_bits & 0x00000002u) {
5445 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_product_id());
5446 }
5447
5448 // optional uint32 vendor_id = 1;
5449 if (cached_has_bits & 0x00000004u) {
5450 total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_vendor_id());
5451 }
5452
5453 // optional uint32 revision = 3;
5454 if (cached_has_bits & 0x00000008u) {
5455 total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_revision());
5456 }
5457
5458 // optional uint64 firmware_version = 6;
5459 if (cached_has_bits & 0x00000010u) {
5460 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_firmware_version());
5461 }
5462
5463 // optional uint32 size_mb = 5;
5464 if (cached_has_bits & 0x00000020u) {
5465 total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_size_mb());
5466 }
5467
5468 // optional .metrics.SystemProfileProto.Hardware.InternalStorageDevice.Type type = 7;
5469 if (cached_has_bits & 0x00000040u) {
5470 total_size += 1 +
5471 ::_pbi::WireFormatLite::EnumSize(this->_internal_type());
5472 }
5473
5474 // optional .metrics.SystemProfileProto.Hardware.InternalStorageDevice.Purpose purpose = 8;
5475 if (cached_has_bits & 0x00000080u) {
5476 total_size += 1 +
5477 ::_pbi::WireFormatLite::EnumSize(this->_internal_purpose());
5478 }
5479
5480 }
5481 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
5482 total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
5483 }
5484 int cached_size = ::_pbi::ToCachedSize(total_size);
5485 SetCachedSize(cached_size);
5486 return total_size;
5487 }
5488
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)5489 void SystemProfileProto_Hardware_InternalStorageDevice::CheckTypeAndMergeFrom(
5490 const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
5491 MergeFrom(*::_pbi::DownCast<const SystemProfileProto_Hardware_InternalStorageDevice*>(
5492 &from));
5493 }
5494
MergeFrom(const SystemProfileProto_Hardware_InternalStorageDevice & from)5495 void SystemProfileProto_Hardware_InternalStorageDevice::MergeFrom(const SystemProfileProto_Hardware_InternalStorageDevice& from) {
5496 SystemProfileProto_Hardware_InternalStorageDevice* const _this = this;
5497 // @@protoc_insertion_point(class_specific_merge_from_start:metrics.SystemProfileProto.Hardware.InternalStorageDevice)
5498 GOOGLE_DCHECK_NE(&from, _this);
5499 uint32_t cached_has_bits = 0;
5500 (void) cached_has_bits;
5501
5502 cached_has_bits = from._impl_._has_bits_[0];
5503 if (cached_has_bits & 0x000000ffu) {
5504 if (cached_has_bits & 0x00000001u) {
5505 _this->_internal_set_model(from._internal_model());
5506 }
5507 if (cached_has_bits & 0x00000002u) {
5508 _this->_impl_.product_id_ = from._impl_.product_id_;
5509 }
5510 if (cached_has_bits & 0x00000004u) {
5511 _this->_impl_.vendor_id_ = from._impl_.vendor_id_;
5512 }
5513 if (cached_has_bits & 0x00000008u) {
5514 _this->_impl_.revision_ = from._impl_.revision_;
5515 }
5516 if (cached_has_bits & 0x00000010u) {
5517 _this->_impl_.firmware_version_ = from._impl_.firmware_version_;
5518 }
5519 if (cached_has_bits & 0x00000020u) {
5520 _this->_impl_.size_mb_ = from._impl_.size_mb_;
5521 }
5522 if (cached_has_bits & 0x00000040u) {
5523 _this->_impl_.type_ = from._impl_.type_;
5524 }
5525 if (cached_has_bits & 0x00000080u) {
5526 _this->_impl_.purpose_ = from._impl_.purpose_;
5527 }
5528 _this->_impl_._has_bits_[0] |= cached_has_bits;
5529 }
5530 _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
5531 }
5532
CopyFrom(const SystemProfileProto_Hardware_InternalStorageDevice & from)5533 void SystemProfileProto_Hardware_InternalStorageDevice::CopyFrom(const SystemProfileProto_Hardware_InternalStorageDevice& from) {
5534 // @@protoc_insertion_point(class_specific_copy_from_start:metrics.SystemProfileProto.Hardware.InternalStorageDevice)
5535 if (&from == this) return;
5536 Clear();
5537 MergeFrom(from);
5538 }
5539
IsInitialized() const5540 bool SystemProfileProto_Hardware_InternalStorageDevice::IsInitialized() const {
5541 return true;
5542 }
5543
InternalSwap(SystemProfileProto_Hardware_InternalStorageDevice * other)5544 void SystemProfileProto_Hardware_InternalStorageDevice::InternalSwap(SystemProfileProto_Hardware_InternalStorageDevice* other) {
5545 using std::swap;
5546 auto* lhs_arena = GetArenaForAllocation();
5547 auto* rhs_arena = other->GetArenaForAllocation();
5548 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
5549 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
5550 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
5551 &_impl_.model_, lhs_arena,
5552 &other->_impl_.model_, rhs_arena
5553 );
5554 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
5555 PROTOBUF_FIELD_OFFSET(SystemProfileProto_Hardware_InternalStorageDevice, _impl_.purpose_)
5556 + sizeof(SystemProfileProto_Hardware_InternalStorageDevice::_impl_.purpose_)
5557 - PROTOBUF_FIELD_OFFSET(SystemProfileProto_Hardware_InternalStorageDevice, _impl_.product_id_)>(
5558 reinterpret_cast<char*>(&_impl_.product_id_),
5559 reinterpret_cast<char*>(&other->_impl_.product_id_));
5560 }
5561
GetTypeName() const5562 std::string SystemProfileProto_Hardware_InternalStorageDevice::GetTypeName() const {
5563 return "metrics.SystemProfileProto.Hardware.InternalStorageDevice";
5564 }
5565
5566
5567 // ===================================================================
5568
5569 class SystemProfileProto_Hardware_Drive::_Internal {
5570 public:
5571 using HasBits = decltype(std::declval<SystemProfileProto_Hardware_Drive>()._impl_._has_bits_);
set_has_has_seek_penalty(HasBits * has_bits)5572 static void set_has_has_seek_penalty(HasBits* has_bits) {
5573 (*has_bits)[0] |= 1u;
5574 }
5575 };
5576
SystemProfileProto_Hardware_Drive(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)5577 SystemProfileProto_Hardware_Drive::SystemProfileProto_Hardware_Drive(::PROTOBUF_NAMESPACE_ID::Arena* arena,
5578 bool is_message_owned)
5579 : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
5580 SharedCtor(arena, is_message_owned);
5581 // @@protoc_insertion_point(arena_constructor:metrics.SystemProfileProto.Hardware.Drive)
5582 }
SystemProfileProto_Hardware_Drive(const SystemProfileProto_Hardware_Drive & from)5583 SystemProfileProto_Hardware_Drive::SystemProfileProto_Hardware_Drive(const SystemProfileProto_Hardware_Drive& from)
5584 : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
5585 SystemProfileProto_Hardware_Drive* const _this = this; (void)_this;
5586 new (&_impl_) Impl_{
5587 decltype(_impl_._has_bits_){from._impl_._has_bits_}
5588 , /*decltype(_impl_._cached_size_)*/{}
5589 , decltype(_impl_.has_seek_penalty_){}};
5590
5591 _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
5592 _this->_impl_.has_seek_penalty_ = from._impl_.has_seek_penalty_;
5593 // @@protoc_insertion_point(copy_constructor:metrics.SystemProfileProto.Hardware.Drive)
5594 }
5595
SharedCtor(::_pb::Arena * arena,bool is_message_owned)5596 inline void SystemProfileProto_Hardware_Drive::SharedCtor(
5597 ::_pb::Arena* arena, bool is_message_owned) {
5598 (void)arena;
5599 (void)is_message_owned;
5600 new (&_impl_) Impl_{
5601 decltype(_impl_._has_bits_){}
5602 , /*decltype(_impl_._cached_size_)*/{}
5603 , decltype(_impl_.has_seek_penalty_){false}
5604 };
5605 }
5606
~SystemProfileProto_Hardware_Drive()5607 SystemProfileProto_Hardware_Drive::~SystemProfileProto_Hardware_Drive() {
5608 // @@protoc_insertion_point(destructor:metrics.SystemProfileProto.Hardware.Drive)
5609 if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
5610 (void)arena;
5611 return;
5612 }
5613 SharedDtor();
5614 }
5615
SharedDtor()5616 inline void SystemProfileProto_Hardware_Drive::SharedDtor() {
5617 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
5618 }
5619
SetCachedSize(int size) const5620 void SystemProfileProto_Hardware_Drive::SetCachedSize(int size) const {
5621 _impl_._cached_size_.Set(size);
5622 }
5623
Clear()5624 void SystemProfileProto_Hardware_Drive::Clear() {
5625 // @@protoc_insertion_point(message_clear_start:metrics.SystemProfileProto.Hardware.Drive)
5626 uint32_t cached_has_bits = 0;
5627 // Prevent compiler warnings about cached_has_bits being unused
5628 (void) cached_has_bits;
5629
5630 _impl_.has_seek_penalty_ = false;
5631 _impl_._has_bits_.Clear();
5632 _internal_metadata_.Clear<std::string>();
5633 }
5634
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)5635 const char* SystemProfileProto_Hardware_Drive::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
5636 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
5637 _Internal::HasBits has_bits{};
5638 while (!ctx->Done(&ptr)) {
5639 uint32_t tag;
5640 ptr = ::_pbi::ReadTag(ptr, &tag);
5641 switch (tag >> 3) {
5642 // optional bool has_seek_penalty = 1;
5643 case 1:
5644 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
5645 _Internal::set_has_has_seek_penalty(&has_bits);
5646 _impl_.has_seek_penalty_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
5647 CHK_(ptr);
5648 } else
5649 goto handle_unusual;
5650 continue;
5651 default:
5652 goto handle_unusual;
5653 } // switch
5654 handle_unusual:
5655 if ((tag == 0) || ((tag & 7) == 4)) {
5656 CHK_(ptr);
5657 ctx->SetLastTag(tag);
5658 goto message_done;
5659 }
5660 ptr = UnknownFieldParse(
5661 tag,
5662 _internal_metadata_.mutable_unknown_fields<std::string>(),
5663 ptr, ctx);
5664 CHK_(ptr != nullptr);
5665 } // while
5666 message_done:
5667 _impl_._has_bits_.Or(has_bits);
5668 return ptr;
5669 failure:
5670 ptr = nullptr;
5671 goto message_done;
5672 #undef CHK_
5673 }
5674
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const5675 uint8_t* SystemProfileProto_Hardware_Drive::_InternalSerialize(
5676 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
5677 // @@protoc_insertion_point(serialize_to_array_start:metrics.SystemProfileProto.Hardware.Drive)
5678 uint32_t cached_has_bits = 0;
5679 (void) cached_has_bits;
5680
5681 cached_has_bits = _impl_._has_bits_[0];
5682 // optional bool has_seek_penalty = 1;
5683 if (cached_has_bits & 0x00000001u) {
5684 target = stream->EnsureSpace(target);
5685 target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_has_seek_penalty(), target);
5686 }
5687
5688 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
5689 target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
5690 static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
5691 }
5692 // @@protoc_insertion_point(serialize_to_array_end:metrics.SystemProfileProto.Hardware.Drive)
5693 return target;
5694 }
5695
ByteSizeLong() const5696 size_t SystemProfileProto_Hardware_Drive::ByteSizeLong() const {
5697 // @@protoc_insertion_point(message_byte_size_start:metrics.SystemProfileProto.Hardware.Drive)
5698 size_t total_size = 0;
5699
5700 uint32_t cached_has_bits = 0;
5701 // Prevent compiler warnings about cached_has_bits being unused
5702 (void) cached_has_bits;
5703
5704 // optional bool has_seek_penalty = 1;
5705 cached_has_bits = _impl_._has_bits_[0];
5706 if (cached_has_bits & 0x00000001u) {
5707 total_size += 1 + 1;
5708 }
5709
5710 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
5711 total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
5712 }
5713 int cached_size = ::_pbi::ToCachedSize(total_size);
5714 SetCachedSize(cached_size);
5715 return total_size;
5716 }
5717
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)5718 void SystemProfileProto_Hardware_Drive::CheckTypeAndMergeFrom(
5719 const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
5720 MergeFrom(*::_pbi::DownCast<const SystemProfileProto_Hardware_Drive*>(
5721 &from));
5722 }
5723
MergeFrom(const SystemProfileProto_Hardware_Drive & from)5724 void SystemProfileProto_Hardware_Drive::MergeFrom(const SystemProfileProto_Hardware_Drive& from) {
5725 SystemProfileProto_Hardware_Drive* const _this = this;
5726 // @@protoc_insertion_point(class_specific_merge_from_start:metrics.SystemProfileProto.Hardware.Drive)
5727 GOOGLE_DCHECK_NE(&from, _this);
5728 uint32_t cached_has_bits = 0;
5729 (void) cached_has_bits;
5730
5731 if (from._internal_has_has_seek_penalty()) {
5732 _this->_internal_set_has_seek_penalty(from._internal_has_seek_penalty());
5733 }
5734 _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
5735 }
5736
CopyFrom(const SystemProfileProto_Hardware_Drive & from)5737 void SystemProfileProto_Hardware_Drive::CopyFrom(const SystemProfileProto_Hardware_Drive& from) {
5738 // @@protoc_insertion_point(class_specific_copy_from_start:metrics.SystemProfileProto.Hardware.Drive)
5739 if (&from == this) return;
5740 Clear();
5741 MergeFrom(from);
5742 }
5743
IsInitialized() const5744 bool SystemProfileProto_Hardware_Drive::IsInitialized() const {
5745 return true;
5746 }
5747
InternalSwap(SystemProfileProto_Hardware_Drive * other)5748 void SystemProfileProto_Hardware_Drive::InternalSwap(SystemProfileProto_Hardware_Drive* other) {
5749 using std::swap;
5750 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
5751 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
5752 swap(_impl_.has_seek_penalty_, other->_impl_.has_seek_penalty_);
5753 }
5754
GetTypeName() const5755 std::string SystemProfileProto_Hardware_Drive::GetTypeName() const {
5756 return "metrics.SystemProfileProto.Hardware.Drive";
5757 }
5758
5759
5760 // ===================================================================
5761
5762 class SystemProfileProto_Hardware::_Internal {
5763 public:
5764 using HasBits = decltype(std::declval<SystemProfileProto_Hardware>()._impl_._has_bits_);
set_has_cpu_architecture(HasBits * has_bits)5765 static void set_has_cpu_architecture(HasBits* has_bits) {
5766 (*has_bits)[0] |= 1u;
5767 }
set_has_app_cpu_architecture(HasBits * has_bits)5768 static void set_has_app_cpu_architecture(HasBits* has_bits) {
5769 (*has_bits)[0] |= 8u;
5770 }
set_has_system_ram_mb(HasBits * has_bits)5771 static void set_has_system_ram_mb(HasBits* has_bits) {
5772 (*has_bits)[0] |= 2048u;
5773 }
set_has_dll_base(HasBits * has_bits)5774 static void set_has_dll_base(HasBits* has_bits) {
5775 (*has_bits)[0] |= 4096u;
5776 }
set_has_hardware_class(HasBits * has_bits)5777 static void set_has_hardware_class(HasBits* has_bits) {
5778 (*has_bits)[0] |= 2u;
5779 }
set_has_full_hardware_class(HasBits * has_bits)5780 static void set_has_full_hardware_class(HasBits* has_bits) {
5781 (*has_bits)[0] |= 4u;
5782 }
set_has_cellular_device_variant(HasBits * has_bits)5783 static void set_has_cellular_device_variant(HasBits* has_bits) {
5784 (*has_bits)[0] |= 16u;
5785 }
set_has_screen_count(HasBits * has_bits)5786 static void set_has_screen_count(HasBits* has_bits) {
5787 (*has_bits)[0] |= 8192u;
5788 }
set_has_primary_screen_width(HasBits * has_bits)5789 static void set_has_primary_screen_width(HasBits* has_bits) {
5790 (*has_bits)[0] |= 16384u;
5791 }
set_has_primary_screen_height(HasBits * has_bits)5792 static void set_has_primary_screen_height(HasBits* has_bits) {
5793 (*has_bits)[0] |= 32768u;
5794 }
set_has_primary_screen_scale_factor(HasBits * has_bits)5795 static void set_has_primary_screen_scale_factor(HasBits* has_bits) {
5796 (*has_bits)[0] |= 262144u;
5797 }
set_has_max_dpi_x(HasBits * has_bits)5798 static void set_has_max_dpi_x(HasBits* has_bits) {
5799 (*has_bits)[0] |= 65536u;
5800 }
set_has_max_dpi_y(HasBits * has_bits)5801 static void set_has_max_dpi_y(HasBits* has_bits) {
5802 (*has_bits)[0] |= 131072u;
5803 }
set_has_form_factor(HasBits * has_bits)5804 static void set_has_form_factor(HasBits* has_bits) {
5805 (*has_bits)[0] |= 1048576u;
5806 }
5807 static const ::metrics::SystemProfileProto_Hardware_CPU& cpu(const SystemProfileProto_Hardware* msg);
set_has_cpu(HasBits * has_bits)5808 static void set_has_cpu(HasBits* has_bits) {
5809 (*has_bits)[0] |= 128u;
5810 }
5811 static const ::metrics::SystemProfileProto_Hardware_Motherboard& motherboard(const SystemProfileProto_Hardware* msg);
set_has_motherboard(HasBits * has_bits)5812 static void set_has_motherboard(HasBits* has_bits) {
5813 (*has_bits)[0] |= 1024u;
5814 }
5815 static const ::metrics::SystemProfileProto_Hardware_Graphics& gpu(const SystemProfileProto_Hardware* msg);
set_has_gpu(HasBits * has_bits)5816 static void set_has_gpu(HasBits* has_bits) {
5817 (*has_bits)[0] |= 64u;
5818 }
set_has_internal_display_supports_touch(HasBits * has_bits)5819 static void set_has_internal_display_supports_touch(HasBits* has_bits) {
5820 (*has_bits)[0] |= 524288u;
5821 }
5822 static const ::metrics::SystemProfileProto_Hardware_Drive& app_drive(const SystemProfileProto_Hardware* msg);
set_has_app_drive(HasBits * has_bits)5823 static void set_has_app_drive(HasBits* has_bits) {
5824 (*has_bits)[0] |= 256u;
5825 }
5826 static const ::metrics::SystemProfileProto_Hardware_Drive& user_data_drive(const SystemProfileProto_Hardware* msg);
set_has_user_data_drive(HasBits * has_bits)5827 static void set_has_user_data_drive(HasBits* has_bits) {
5828 (*has_bits)[0] |= 512u;
5829 }
set_has_tpm_type(HasBits * has_bits)5830 static void set_has_tpm_type(HasBits* has_bits) {
5831 (*has_bits)[0] |= 4194304u;
5832 }
set_has_tpm_firmware_version(HasBits * has_bits)5833 static void set_has_tpm_firmware_version(HasBits* has_bits) {
5834 (*has_bits)[0] |= 2097152u;
5835 }
set_has_tpm_rw_firmware_version(HasBits * has_bits)5836 static void set_has_tpm_rw_firmware_version(HasBits* has_bits) {
5837 (*has_bits)[0] |= 32u;
5838 }
5839 };
5840
5841 const ::metrics::SystemProfileProto_Hardware_CPU&
cpu(const SystemProfileProto_Hardware * msg)5842 SystemProfileProto_Hardware::_Internal::cpu(const SystemProfileProto_Hardware* msg) {
5843 return *msg->_impl_.cpu_;
5844 }
5845 const ::metrics::SystemProfileProto_Hardware_Motherboard&
motherboard(const SystemProfileProto_Hardware * msg)5846 SystemProfileProto_Hardware::_Internal::motherboard(const SystemProfileProto_Hardware* msg) {
5847 return *msg->_impl_.motherboard_;
5848 }
5849 const ::metrics::SystemProfileProto_Hardware_Graphics&
gpu(const SystemProfileProto_Hardware * msg)5850 SystemProfileProto_Hardware::_Internal::gpu(const SystemProfileProto_Hardware* msg) {
5851 return *msg->_impl_.gpu_;
5852 }
5853 const ::metrics::SystemProfileProto_Hardware_Drive&
app_drive(const SystemProfileProto_Hardware * msg)5854 SystemProfileProto_Hardware::_Internal::app_drive(const SystemProfileProto_Hardware* msg) {
5855 return *msg->_impl_.app_drive_;
5856 }
5857 const ::metrics::SystemProfileProto_Hardware_Drive&
user_data_drive(const SystemProfileProto_Hardware * msg)5858 SystemProfileProto_Hardware::_Internal::user_data_drive(const SystemProfileProto_Hardware* msg) {
5859 return *msg->_impl_.user_data_drive_;
5860 }
SystemProfileProto_Hardware(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)5861 SystemProfileProto_Hardware::SystemProfileProto_Hardware(::PROTOBUF_NAMESPACE_ID::Arena* arena,
5862 bool is_message_owned)
5863 : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
5864 SharedCtor(arena, is_message_owned);
5865 // @@protoc_insertion_point(arena_constructor:metrics.SystemProfileProto.Hardware)
5866 }
SystemProfileProto_Hardware(const SystemProfileProto_Hardware & from)5867 SystemProfileProto_Hardware::SystemProfileProto_Hardware(const SystemProfileProto_Hardware& from)
5868 : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
5869 SystemProfileProto_Hardware* const _this = this; (void)_this;
5870 new (&_impl_) Impl_{
5871 decltype(_impl_._has_bits_){from._impl_._has_bits_}
5872 , /*decltype(_impl_._cached_size_)*/{}
5873 , decltype(_impl_.internal_storage_devices_){from._impl_.internal_storage_devices_}
5874 , decltype(_impl_.cpu_architecture_){}
5875 , decltype(_impl_.hardware_class_){}
5876 , decltype(_impl_.full_hardware_class_){}
5877 , decltype(_impl_.app_cpu_architecture_){}
5878 , decltype(_impl_.cellular_device_variant_){}
5879 , decltype(_impl_.tpm_rw_firmware_version_){}
5880 , decltype(_impl_.gpu_){nullptr}
5881 , decltype(_impl_.cpu_){nullptr}
5882 , decltype(_impl_.app_drive_){nullptr}
5883 , decltype(_impl_.user_data_drive_){nullptr}
5884 , decltype(_impl_.motherboard_){nullptr}
5885 , decltype(_impl_.system_ram_mb_){}
5886 , decltype(_impl_.dll_base_){}
5887 , decltype(_impl_.screen_count_){}
5888 , decltype(_impl_.primary_screen_width_){}
5889 , decltype(_impl_.primary_screen_height_){}
5890 , decltype(_impl_.max_dpi_x_){}
5891 , decltype(_impl_.max_dpi_y_){}
5892 , decltype(_impl_.primary_screen_scale_factor_){}
5893 , decltype(_impl_.internal_display_supports_touch_){}
5894 , decltype(_impl_.form_factor_){}
5895 , decltype(_impl_.tpm_firmware_version_){}
5896 , decltype(_impl_.tpm_type_){}};
5897
5898 _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
5899 _impl_.cpu_architecture_.InitDefault();
5900 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
5901 _impl_.cpu_architecture_.Set("", GetArenaForAllocation());
5902 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
5903 if (from._internal_has_cpu_architecture()) {
5904 _this->_impl_.cpu_architecture_.Set(from._internal_cpu_architecture(),
5905 _this->GetArenaForAllocation());
5906 }
5907 _impl_.hardware_class_.InitDefault();
5908 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
5909 _impl_.hardware_class_.Set("", GetArenaForAllocation());
5910 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
5911 if (from._internal_has_hardware_class()) {
5912 _this->_impl_.hardware_class_.Set(from._internal_hardware_class(),
5913 _this->GetArenaForAllocation());
5914 }
5915 _impl_.full_hardware_class_.InitDefault();
5916 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
5917 _impl_.full_hardware_class_.Set("", GetArenaForAllocation());
5918 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
5919 if (from._internal_has_full_hardware_class()) {
5920 _this->_impl_.full_hardware_class_.Set(from._internal_full_hardware_class(),
5921 _this->GetArenaForAllocation());
5922 }
5923 _impl_.app_cpu_architecture_.InitDefault();
5924 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
5925 _impl_.app_cpu_architecture_.Set("", GetArenaForAllocation());
5926 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
5927 if (from._internal_has_app_cpu_architecture()) {
5928 _this->_impl_.app_cpu_architecture_.Set(from._internal_app_cpu_architecture(),
5929 _this->GetArenaForAllocation());
5930 }
5931 _impl_.cellular_device_variant_.InitDefault();
5932 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
5933 _impl_.cellular_device_variant_.Set("", GetArenaForAllocation());
5934 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
5935 if (from._internal_has_cellular_device_variant()) {
5936 _this->_impl_.cellular_device_variant_.Set(from._internal_cellular_device_variant(),
5937 _this->GetArenaForAllocation());
5938 }
5939 _impl_.tpm_rw_firmware_version_.InitDefault();
5940 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
5941 _impl_.tpm_rw_firmware_version_.Set("", GetArenaForAllocation());
5942 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
5943 if (from._internal_has_tpm_rw_firmware_version()) {
5944 _this->_impl_.tpm_rw_firmware_version_.Set(from._internal_tpm_rw_firmware_version(),
5945 _this->GetArenaForAllocation());
5946 }
5947 if (from._internal_has_gpu()) {
5948 _this->_impl_.gpu_ = new ::metrics::SystemProfileProto_Hardware_Graphics(*from._impl_.gpu_);
5949 }
5950 if (from._internal_has_cpu()) {
5951 _this->_impl_.cpu_ = new ::metrics::SystemProfileProto_Hardware_CPU(*from._impl_.cpu_);
5952 }
5953 if (from._internal_has_app_drive()) {
5954 _this->_impl_.app_drive_ = new ::metrics::SystemProfileProto_Hardware_Drive(*from._impl_.app_drive_);
5955 }
5956 if (from._internal_has_user_data_drive()) {
5957 _this->_impl_.user_data_drive_ = new ::metrics::SystemProfileProto_Hardware_Drive(*from._impl_.user_data_drive_);
5958 }
5959 if (from._internal_has_motherboard()) {
5960 _this->_impl_.motherboard_ = new ::metrics::SystemProfileProto_Hardware_Motherboard(*from._impl_.motherboard_);
5961 }
5962 ::memcpy(&_impl_.system_ram_mb_, &from._impl_.system_ram_mb_,
5963 static_cast<size_t>(reinterpret_cast<char*>(&_impl_.tpm_type_) -
5964 reinterpret_cast<char*>(&_impl_.system_ram_mb_)) + sizeof(_impl_.tpm_type_));
5965 // @@protoc_insertion_point(copy_constructor:metrics.SystemProfileProto.Hardware)
5966 }
5967
SharedCtor(::_pb::Arena * arena,bool is_message_owned)5968 inline void SystemProfileProto_Hardware::SharedCtor(
5969 ::_pb::Arena* arena, bool is_message_owned) {
5970 (void)arena;
5971 (void)is_message_owned;
5972 new (&_impl_) Impl_{
5973 decltype(_impl_._has_bits_){}
5974 , /*decltype(_impl_._cached_size_)*/{}
5975 , decltype(_impl_.internal_storage_devices_){arena}
5976 , decltype(_impl_.cpu_architecture_){}
5977 , decltype(_impl_.hardware_class_){}
5978 , decltype(_impl_.full_hardware_class_){}
5979 , decltype(_impl_.app_cpu_architecture_){}
5980 , decltype(_impl_.cellular_device_variant_){}
5981 , decltype(_impl_.tpm_rw_firmware_version_){}
5982 , decltype(_impl_.gpu_){nullptr}
5983 , decltype(_impl_.cpu_){nullptr}
5984 , decltype(_impl_.app_drive_){nullptr}
5985 , decltype(_impl_.user_data_drive_){nullptr}
5986 , decltype(_impl_.motherboard_){nullptr}
5987 , decltype(_impl_.system_ram_mb_){int64_t{0}}
5988 , decltype(_impl_.dll_base_){int64_t{0}}
5989 , decltype(_impl_.screen_count_){0}
5990 , decltype(_impl_.primary_screen_width_){0}
5991 , decltype(_impl_.primary_screen_height_){0}
5992 , decltype(_impl_.max_dpi_x_){0}
5993 , decltype(_impl_.max_dpi_y_){0}
5994 , decltype(_impl_.primary_screen_scale_factor_){0}
5995 , decltype(_impl_.internal_display_supports_touch_){false}
5996 , decltype(_impl_.form_factor_){0}
5997 , decltype(_impl_.tpm_firmware_version_){uint64_t{0u}}
5998 , decltype(_impl_.tpm_type_){0}
5999 };
6000 _impl_.cpu_architecture_.InitDefault();
6001 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
6002 _impl_.cpu_architecture_.Set("", GetArenaForAllocation());
6003 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
6004 _impl_.hardware_class_.InitDefault();
6005 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
6006 _impl_.hardware_class_.Set("", GetArenaForAllocation());
6007 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
6008 _impl_.full_hardware_class_.InitDefault();
6009 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
6010 _impl_.full_hardware_class_.Set("", GetArenaForAllocation());
6011 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
6012 _impl_.app_cpu_architecture_.InitDefault();
6013 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
6014 _impl_.app_cpu_architecture_.Set("", GetArenaForAllocation());
6015 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
6016 _impl_.cellular_device_variant_.InitDefault();
6017 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
6018 _impl_.cellular_device_variant_.Set("", GetArenaForAllocation());
6019 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
6020 _impl_.tpm_rw_firmware_version_.InitDefault();
6021 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
6022 _impl_.tpm_rw_firmware_version_.Set("", GetArenaForAllocation());
6023 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
6024 }
6025
~SystemProfileProto_Hardware()6026 SystemProfileProto_Hardware::~SystemProfileProto_Hardware() {
6027 // @@protoc_insertion_point(destructor:metrics.SystemProfileProto.Hardware)
6028 if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
6029 (void)arena;
6030 return;
6031 }
6032 SharedDtor();
6033 }
6034
SharedDtor()6035 inline void SystemProfileProto_Hardware::SharedDtor() {
6036 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
6037 _impl_.internal_storage_devices_.~RepeatedPtrField();
6038 _impl_.cpu_architecture_.Destroy();
6039 _impl_.hardware_class_.Destroy();
6040 _impl_.full_hardware_class_.Destroy();
6041 _impl_.app_cpu_architecture_.Destroy();
6042 _impl_.cellular_device_variant_.Destroy();
6043 _impl_.tpm_rw_firmware_version_.Destroy();
6044 if (this != internal_default_instance()) delete _impl_.gpu_;
6045 if (this != internal_default_instance()) delete _impl_.cpu_;
6046 if (this != internal_default_instance()) delete _impl_.app_drive_;
6047 if (this != internal_default_instance()) delete _impl_.user_data_drive_;
6048 if (this != internal_default_instance()) delete _impl_.motherboard_;
6049 }
6050
SetCachedSize(int size) const6051 void SystemProfileProto_Hardware::SetCachedSize(int size) const {
6052 _impl_._cached_size_.Set(size);
6053 }
6054
Clear()6055 void SystemProfileProto_Hardware::Clear() {
6056 // @@protoc_insertion_point(message_clear_start:metrics.SystemProfileProto.Hardware)
6057 uint32_t cached_has_bits = 0;
6058 // Prevent compiler warnings about cached_has_bits being unused
6059 (void) cached_has_bits;
6060
6061 _impl_.internal_storage_devices_.Clear();
6062 cached_has_bits = _impl_._has_bits_[0];
6063 if (cached_has_bits & 0x000000ffu) {
6064 if (cached_has_bits & 0x00000001u) {
6065 _impl_.cpu_architecture_.ClearNonDefaultToEmpty();
6066 }
6067 if (cached_has_bits & 0x00000002u) {
6068 _impl_.hardware_class_.ClearNonDefaultToEmpty();
6069 }
6070 if (cached_has_bits & 0x00000004u) {
6071 _impl_.full_hardware_class_.ClearNonDefaultToEmpty();
6072 }
6073 if (cached_has_bits & 0x00000008u) {
6074 _impl_.app_cpu_architecture_.ClearNonDefaultToEmpty();
6075 }
6076 if (cached_has_bits & 0x00000010u) {
6077 _impl_.cellular_device_variant_.ClearNonDefaultToEmpty();
6078 }
6079 if (cached_has_bits & 0x00000020u) {
6080 _impl_.tpm_rw_firmware_version_.ClearNonDefaultToEmpty();
6081 }
6082 if (cached_has_bits & 0x00000040u) {
6083 GOOGLE_DCHECK(_impl_.gpu_ != nullptr);
6084 _impl_.gpu_->Clear();
6085 }
6086 if (cached_has_bits & 0x00000080u) {
6087 GOOGLE_DCHECK(_impl_.cpu_ != nullptr);
6088 _impl_.cpu_->Clear();
6089 }
6090 }
6091 if (cached_has_bits & 0x00000700u) {
6092 if (cached_has_bits & 0x00000100u) {
6093 GOOGLE_DCHECK(_impl_.app_drive_ != nullptr);
6094 _impl_.app_drive_->Clear();
6095 }
6096 if (cached_has_bits & 0x00000200u) {
6097 GOOGLE_DCHECK(_impl_.user_data_drive_ != nullptr);
6098 _impl_.user_data_drive_->Clear();
6099 }
6100 if (cached_has_bits & 0x00000400u) {
6101 GOOGLE_DCHECK(_impl_.motherboard_ != nullptr);
6102 _impl_.motherboard_->Clear();
6103 }
6104 }
6105 if (cached_has_bits & 0x0000f800u) {
6106 ::memset(&_impl_.system_ram_mb_, 0, static_cast<size_t>(
6107 reinterpret_cast<char*>(&_impl_.primary_screen_height_) -
6108 reinterpret_cast<char*>(&_impl_.system_ram_mb_)) + sizeof(_impl_.primary_screen_height_));
6109 }
6110 if (cached_has_bits & 0x007f0000u) {
6111 ::memset(&_impl_.max_dpi_x_, 0, static_cast<size_t>(
6112 reinterpret_cast<char*>(&_impl_.tpm_type_) -
6113 reinterpret_cast<char*>(&_impl_.max_dpi_x_)) + sizeof(_impl_.tpm_type_));
6114 }
6115 _impl_._has_bits_.Clear();
6116 _internal_metadata_.Clear<std::string>();
6117 }
6118
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)6119 const char* SystemProfileProto_Hardware::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
6120 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
6121 _Internal::HasBits has_bits{};
6122 while (!ctx->Done(&ptr)) {
6123 uint32_t tag;
6124 ptr = ::_pbi::ReadTag(ptr, &tag);
6125 switch (tag >> 3) {
6126 // optional string cpu_architecture = 1;
6127 case 1:
6128 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
6129 auto str = _internal_mutable_cpu_architecture();
6130 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
6131 CHK_(ptr);
6132 } else
6133 goto handle_unusual;
6134 continue;
6135 // optional int64 system_ram_mb = 2;
6136 case 2:
6137 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
6138 _Internal::set_has_system_ram_mb(&has_bits);
6139 _impl_.system_ram_mb_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
6140 CHK_(ptr);
6141 } else
6142 goto handle_unusual;
6143 continue;
6144 // optional int64 dll_base = 3;
6145 case 3:
6146 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
6147 _Internal::set_has_dll_base(&has_bits);
6148 _impl_.dll_base_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
6149 CHK_(ptr);
6150 } else
6151 goto handle_unusual;
6152 continue;
6153 // optional string hardware_class = 4;
6154 case 4:
6155 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
6156 auto str = _internal_mutable_hardware_class();
6157 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
6158 CHK_(ptr);
6159 } else
6160 goto handle_unusual;
6161 continue;
6162 // optional int32 screen_count = 5;
6163 case 5:
6164 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
6165 _Internal::set_has_screen_count(&has_bits);
6166 _impl_.screen_count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
6167 CHK_(ptr);
6168 } else
6169 goto handle_unusual;
6170 continue;
6171 // optional int32 primary_screen_width = 6;
6172 case 6:
6173 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48)) {
6174 _Internal::set_has_primary_screen_width(&has_bits);
6175 _impl_.primary_screen_width_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
6176 CHK_(ptr);
6177 } else
6178 goto handle_unusual;
6179 continue;
6180 // optional int32 primary_screen_height = 7;
6181 case 7:
6182 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) {
6183 _Internal::set_has_primary_screen_height(&has_bits);
6184 _impl_.primary_screen_height_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
6185 CHK_(ptr);
6186 } else
6187 goto handle_unusual;
6188 continue;
6189 // optional .metrics.SystemProfileProto.Hardware.Graphics gpu = 8;
6190 case 8:
6191 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 66)) {
6192 ptr = ctx->ParseMessage(_internal_mutable_gpu(), ptr);
6193 CHK_(ptr);
6194 } else
6195 goto handle_unusual;
6196 continue;
6197 // optional float max_dpi_x = 9;
6198 case 9:
6199 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 77)) {
6200 _Internal::set_has_max_dpi_x(&has_bits);
6201 _impl_.max_dpi_x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
6202 ptr += sizeof(float);
6203 } else
6204 goto handle_unusual;
6205 continue;
6206 // optional float max_dpi_y = 10;
6207 case 10:
6208 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 85)) {
6209 _Internal::set_has_max_dpi_y(&has_bits);
6210 _impl_.max_dpi_y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
6211 ptr += sizeof(float);
6212 } else
6213 goto handle_unusual;
6214 continue;
6215 // optional float primary_screen_scale_factor = 12;
6216 case 12:
6217 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 101)) {
6218 _Internal::set_has_primary_screen_scale_factor(&has_bits);
6219 _impl_.primary_screen_scale_factor_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
6220 ptr += sizeof(float);
6221 } else
6222 goto handle_unusual;
6223 continue;
6224 // optional .metrics.SystemProfileProto.Hardware.CPU cpu = 13;
6225 case 13:
6226 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 106)) {
6227 ptr = ctx->ParseMessage(_internal_mutable_cpu(), ptr);
6228 CHK_(ptr);
6229 } else
6230 goto handle_unusual;
6231 continue;
6232 // optional bool internal_display_supports_touch = 14;
6233 case 14:
6234 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 112)) {
6235 _Internal::set_has_internal_display_supports_touch(&has_bits);
6236 _impl_.internal_display_supports_touch_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
6237 CHK_(ptr);
6238 } else
6239 goto handle_unusual;
6240 continue;
6241 // optional .metrics.SystemProfileProto.Hardware.Drive app_drive = 16;
6242 case 16:
6243 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 130)) {
6244 ptr = ctx->ParseMessage(_internal_mutable_app_drive(), ptr);
6245 CHK_(ptr);
6246 } else
6247 goto handle_unusual;
6248 continue;
6249 // optional .metrics.SystemProfileProto.Hardware.Drive user_data_drive = 17;
6250 case 17:
6251 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 138)) {
6252 ptr = ctx->ParseMessage(_internal_mutable_user_data_drive(), ptr);
6253 CHK_(ptr);
6254 } else
6255 goto handle_unusual;
6256 continue;
6257 // optional string full_hardware_class = 18;
6258 case 18:
6259 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 146)) {
6260 auto str = _internal_mutable_full_hardware_class();
6261 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
6262 CHK_(ptr);
6263 } else
6264 goto handle_unusual;
6265 continue;
6266 // repeated .metrics.SystemProfileProto.Hardware.InternalStorageDevice internal_storage_devices = 20;
6267 case 20:
6268 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 162)) {
6269 ptr -= 2;
6270 do {
6271 ptr += 2;
6272 ptr = ctx->ParseMessage(_internal_add_internal_storage_devices(), ptr);
6273 CHK_(ptr);
6274 if (!ctx->DataAvailable(ptr)) break;
6275 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<162>(ptr));
6276 } else
6277 goto handle_unusual;
6278 continue;
6279 // optional string app_cpu_architecture = 21;
6280 case 21:
6281 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 170)) {
6282 auto str = _internal_mutable_app_cpu_architecture();
6283 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
6284 CHK_(ptr);
6285 } else
6286 goto handle_unusual;
6287 continue;
6288 // optional .metrics.SystemProfileProto.Hardware.FormFactor form_factor = 22;
6289 case 22:
6290 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 176)) {
6291 uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
6292 CHK_(ptr);
6293 if (PROTOBUF_PREDICT_TRUE(::metrics::SystemProfileProto_Hardware_FormFactor_IsValid(val))) {
6294 _internal_set_form_factor(static_cast<::metrics::SystemProfileProto_Hardware_FormFactor>(val));
6295 } else {
6296 ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(22, val, mutable_unknown_fields());
6297 }
6298 } else
6299 goto handle_unusual;
6300 continue;
6301 // optional .metrics.SystemProfileProto.Hardware.TpmType tpm_type = 23;
6302 case 23:
6303 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 184)) {
6304 uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
6305 CHK_(ptr);
6306 if (PROTOBUF_PREDICT_TRUE(::metrics::SystemProfileProto_Hardware_TpmType_IsValid(val))) {
6307 _internal_set_tpm_type(static_cast<::metrics::SystemProfileProto_Hardware_TpmType>(val));
6308 } else {
6309 ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(23, val, mutable_unknown_fields());
6310 }
6311 } else
6312 goto handle_unusual;
6313 continue;
6314 // optional string cellular_device_variant = 24;
6315 case 24:
6316 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 194)) {
6317 auto str = _internal_mutable_cellular_device_variant();
6318 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
6319 CHK_(ptr);
6320 } else
6321 goto handle_unusual;
6322 continue;
6323 // optional .metrics.SystemProfileProto.Hardware.Motherboard motherboard = 25;
6324 case 25:
6325 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 202)) {
6326 ptr = ctx->ParseMessage(_internal_mutable_motherboard(), ptr);
6327 CHK_(ptr);
6328 } else
6329 goto handle_unusual;
6330 continue;
6331 // optional uint64 tpm_firmware_version = 26;
6332 case 26:
6333 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 208)) {
6334 _Internal::set_has_tpm_firmware_version(&has_bits);
6335 _impl_.tpm_firmware_version_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
6336 CHK_(ptr);
6337 } else
6338 goto handle_unusual;
6339 continue;
6340 // optional string tpm_rw_firmware_version = 27;
6341 case 27:
6342 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 218)) {
6343 auto str = _internal_mutable_tpm_rw_firmware_version();
6344 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
6345 CHK_(ptr);
6346 } else
6347 goto handle_unusual;
6348 continue;
6349 default:
6350 goto handle_unusual;
6351 } // switch
6352 handle_unusual:
6353 if ((tag == 0) || ((tag & 7) == 4)) {
6354 CHK_(ptr);
6355 ctx->SetLastTag(tag);
6356 goto message_done;
6357 }
6358 ptr = UnknownFieldParse(
6359 tag,
6360 _internal_metadata_.mutable_unknown_fields<std::string>(),
6361 ptr, ctx);
6362 CHK_(ptr != nullptr);
6363 } // while
6364 message_done:
6365 _impl_._has_bits_.Or(has_bits);
6366 return ptr;
6367 failure:
6368 ptr = nullptr;
6369 goto message_done;
6370 #undef CHK_
6371 }
6372
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const6373 uint8_t* SystemProfileProto_Hardware::_InternalSerialize(
6374 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
6375 // @@protoc_insertion_point(serialize_to_array_start:metrics.SystemProfileProto.Hardware)
6376 uint32_t cached_has_bits = 0;
6377 (void) cached_has_bits;
6378
6379 cached_has_bits = _impl_._has_bits_[0];
6380 // optional string cpu_architecture = 1;
6381 if (cached_has_bits & 0x00000001u) {
6382 target = stream->WriteStringMaybeAliased(
6383 1, this->_internal_cpu_architecture(), target);
6384 }
6385
6386 // optional int64 system_ram_mb = 2;
6387 if (cached_has_bits & 0x00000800u) {
6388 target = stream->EnsureSpace(target);
6389 target = ::_pbi::WireFormatLite::WriteInt64ToArray(2, this->_internal_system_ram_mb(), target);
6390 }
6391
6392 // optional int64 dll_base = 3;
6393 if (cached_has_bits & 0x00001000u) {
6394 target = stream->EnsureSpace(target);
6395 target = ::_pbi::WireFormatLite::WriteInt64ToArray(3, this->_internal_dll_base(), target);
6396 }
6397
6398 // optional string hardware_class = 4;
6399 if (cached_has_bits & 0x00000002u) {
6400 target = stream->WriteStringMaybeAliased(
6401 4, this->_internal_hardware_class(), target);
6402 }
6403
6404 // optional int32 screen_count = 5;
6405 if (cached_has_bits & 0x00002000u) {
6406 target = stream->EnsureSpace(target);
6407 target = ::_pbi::WireFormatLite::WriteInt32ToArray(5, this->_internal_screen_count(), target);
6408 }
6409
6410 // optional int32 primary_screen_width = 6;
6411 if (cached_has_bits & 0x00004000u) {
6412 target = stream->EnsureSpace(target);
6413 target = ::_pbi::WireFormatLite::WriteInt32ToArray(6, this->_internal_primary_screen_width(), target);
6414 }
6415
6416 // optional int32 primary_screen_height = 7;
6417 if (cached_has_bits & 0x00008000u) {
6418 target = stream->EnsureSpace(target);
6419 target = ::_pbi::WireFormatLite::WriteInt32ToArray(7, this->_internal_primary_screen_height(), target);
6420 }
6421
6422 // optional .metrics.SystemProfileProto.Hardware.Graphics gpu = 8;
6423 if (cached_has_bits & 0x00000040u) {
6424 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
6425 InternalWriteMessage(8, _Internal::gpu(this),
6426 _Internal::gpu(this).GetCachedSize(), target, stream);
6427 }
6428
6429 // optional float max_dpi_x = 9;
6430 if (cached_has_bits & 0x00010000u) {
6431 target = stream->EnsureSpace(target);
6432 target = ::_pbi::WireFormatLite::WriteFloatToArray(9, this->_internal_max_dpi_x(), target);
6433 }
6434
6435 // optional float max_dpi_y = 10;
6436 if (cached_has_bits & 0x00020000u) {
6437 target = stream->EnsureSpace(target);
6438 target = ::_pbi::WireFormatLite::WriteFloatToArray(10, this->_internal_max_dpi_y(), target);
6439 }
6440
6441 // optional float primary_screen_scale_factor = 12;
6442 if (cached_has_bits & 0x00040000u) {
6443 target = stream->EnsureSpace(target);
6444 target = ::_pbi::WireFormatLite::WriteFloatToArray(12, this->_internal_primary_screen_scale_factor(), target);
6445 }
6446
6447 // optional .metrics.SystemProfileProto.Hardware.CPU cpu = 13;
6448 if (cached_has_bits & 0x00000080u) {
6449 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
6450 InternalWriteMessage(13, _Internal::cpu(this),
6451 _Internal::cpu(this).GetCachedSize(), target, stream);
6452 }
6453
6454 // optional bool internal_display_supports_touch = 14;
6455 if (cached_has_bits & 0x00080000u) {
6456 target = stream->EnsureSpace(target);
6457 target = ::_pbi::WireFormatLite::WriteBoolToArray(14, this->_internal_internal_display_supports_touch(), target);
6458 }
6459
6460 // optional .metrics.SystemProfileProto.Hardware.Drive app_drive = 16;
6461 if (cached_has_bits & 0x00000100u) {
6462 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
6463 InternalWriteMessage(16, _Internal::app_drive(this),
6464 _Internal::app_drive(this).GetCachedSize(), target, stream);
6465 }
6466
6467 // optional .metrics.SystemProfileProto.Hardware.Drive user_data_drive = 17;
6468 if (cached_has_bits & 0x00000200u) {
6469 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
6470 InternalWriteMessage(17, _Internal::user_data_drive(this),
6471 _Internal::user_data_drive(this).GetCachedSize(), target, stream);
6472 }
6473
6474 // optional string full_hardware_class = 18;
6475 if (cached_has_bits & 0x00000004u) {
6476 target = stream->WriteStringMaybeAliased(
6477 18, this->_internal_full_hardware_class(), target);
6478 }
6479
6480 // repeated .metrics.SystemProfileProto.Hardware.InternalStorageDevice internal_storage_devices = 20;
6481 for (unsigned i = 0,
6482 n = static_cast<unsigned>(this->_internal_internal_storage_devices_size()); i < n; i++) {
6483 const auto& repfield = this->_internal_internal_storage_devices(i);
6484 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
6485 InternalWriteMessage(20, repfield, repfield.GetCachedSize(), target, stream);
6486 }
6487
6488 // optional string app_cpu_architecture = 21;
6489 if (cached_has_bits & 0x00000008u) {
6490 target = stream->WriteStringMaybeAliased(
6491 21, this->_internal_app_cpu_architecture(), target);
6492 }
6493
6494 // optional .metrics.SystemProfileProto.Hardware.FormFactor form_factor = 22;
6495 if (cached_has_bits & 0x00100000u) {
6496 target = stream->EnsureSpace(target);
6497 target = ::_pbi::WireFormatLite::WriteEnumToArray(
6498 22, this->_internal_form_factor(), target);
6499 }
6500
6501 // optional .metrics.SystemProfileProto.Hardware.TpmType tpm_type = 23;
6502 if (cached_has_bits & 0x00400000u) {
6503 target = stream->EnsureSpace(target);
6504 target = ::_pbi::WireFormatLite::WriteEnumToArray(
6505 23, this->_internal_tpm_type(), target);
6506 }
6507
6508 // optional string cellular_device_variant = 24;
6509 if (cached_has_bits & 0x00000010u) {
6510 target = stream->WriteStringMaybeAliased(
6511 24, this->_internal_cellular_device_variant(), target);
6512 }
6513
6514 // optional .metrics.SystemProfileProto.Hardware.Motherboard motherboard = 25;
6515 if (cached_has_bits & 0x00000400u) {
6516 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
6517 InternalWriteMessage(25, _Internal::motherboard(this),
6518 _Internal::motherboard(this).GetCachedSize(), target, stream);
6519 }
6520
6521 // optional uint64 tpm_firmware_version = 26;
6522 if (cached_has_bits & 0x00200000u) {
6523 target = stream->EnsureSpace(target);
6524 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(26, this->_internal_tpm_firmware_version(), target);
6525 }
6526
6527 // optional string tpm_rw_firmware_version = 27;
6528 if (cached_has_bits & 0x00000020u) {
6529 target = stream->WriteStringMaybeAliased(
6530 27, this->_internal_tpm_rw_firmware_version(), target);
6531 }
6532
6533 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
6534 target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
6535 static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
6536 }
6537 // @@protoc_insertion_point(serialize_to_array_end:metrics.SystemProfileProto.Hardware)
6538 return target;
6539 }
6540
ByteSizeLong() const6541 size_t SystemProfileProto_Hardware::ByteSizeLong() const {
6542 // @@protoc_insertion_point(message_byte_size_start:metrics.SystemProfileProto.Hardware)
6543 size_t total_size = 0;
6544
6545 uint32_t cached_has_bits = 0;
6546 // Prevent compiler warnings about cached_has_bits being unused
6547 (void) cached_has_bits;
6548
6549 // repeated .metrics.SystemProfileProto.Hardware.InternalStorageDevice internal_storage_devices = 20;
6550 total_size += 2UL * this->_internal_internal_storage_devices_size();
6551 for (const auto& msg : this->_impl_.internal_storage_devices_) {
6552 total_size +=
6553 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
6554 }
6555
6556 cached_has_bits = _impl_._has_bits_[0];
6557 if (cached_has_bits & 0x000000ffu) {
6558 // optional string cpu_architecture = 1;
6559 if (cached_has_bits & 0x00000001u) {
6560 total_size += 1 +
6561 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
6562 this->_internal_cpu_architecture());
6563 }
6564
6565 // optional string hardware_class = 4;
6566 if (cached_has_bits & 0x00000002u) {
6567 total_size += 1 +
6568 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
6569 this->_internal_hardware_class());
6570 }
6571
6572 // optional string full_hardware_class = 18;
6573 if (cached_has_bits & 0x00000004u) {
6574 total_size += 2 +
6575 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
6576 this->_internal_full_hardware_class());
6577 }
6578
6579 // optional string app_cpu_architecture = 21;
6580 if (cached_has_bits & 0x00000008u) {
6581 total_size += 2 +
6582 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
6583 this->_internal_app_cpu_architecture());
6584 }
6585
6586 // optional string cellular_device_variant = 24;
6587 if (cached_has_bits & 0x00000010u) {
6588 total_size += 2 +
6589 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
6590 this->_internal_cellular_device_variant());
6591 }
6592
6593 // optional string tpm_rw_firmware_version = 27;
6594 if (cached_has_bits & 0x00000020u) {
6595 total_size += 2 +
6596 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
6597 this->_internal_tpm_rw_firmware_version());
6598 }
6599
6600 // optional .metrics.SystemProfileProto.Hardware.Graphics gpu = 8;
6601 if (cached_has_bits & 0x00000040u) {
6602 total_size += 1 +
6603 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
6604 *_impl_.gpu_);
6605 }
6606
6607 // optional .metrics.SystemProfileProto.Hardware.CPU cpu = 13;
6608 if (cached_has_bits & 0x00000080u) {
6609 total_size += 1 +
6610 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
6611 *_impl_.cpu_);
6612 }
6613
6614 }
6615 if (cached_has_bits & 0x0000ff00u) {
6616 // optional .metrics.SystemProfileProto.Hardware.Drive app_drive = 16;
6617 if (cached_has_bits & 0x00000100u) {
6618 total_size += 2 +
6619 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
6620 *_impl_.app_drive_);
6621 }
6622
6623 // optional .metrics.SystemProfileProto.Hardware.Drive user_data_drive = 17;
6624 if (cached_has_bits & 0x00000200u) {
6625 total_size += 2 +
6626 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
6627 *_impl_.user_data_drive_);
6628 }
6629
6630 // optional .metrics.SystemProfileProto.Hardware.Motherboard motherboard = 25;
6631 if (cached_has_bits & 0x00000400u) {
6632 total_size += 2 +
6633 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
6634 *_impl_.motherboard_);
6635 }
6636
6637 // optional int64 system_ram_mb = 2;
6638 if (cached_has_bits & 0x00000800u) {
6639 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_system_ram_mb());
6640 }
6641
6642 // optional int64 dll_base = 3;
6643 if (cached_has_bits & 0x00001000u) {
6644 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_dll_base());
6645 }
6646
6647 // optional int32 screen_count = 5;
6648 if (cached_has_bits & 0x00002000u) {
6649 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_screen_count());
6650 }
6651
6652 // optional int32 primary_screen_width = 6;
6653 if (cached_has_bits & 0x00004000u) {
6654 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_primary_screen_width());
6655 }
6656
6657 // optional int32 primary_screen_height = 7;
6658 if (cached_has_bits & 0x00008000u) {
6659 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_primary_screen_height());
6660 }
6661
6662 }
6663 if (cached_has_bits & 0x007f0000u) {
6664 // optional float max_dpi_x = 9;
6665 if (cached_has_bits & 0x00010000u) {
6666 total_size += 1 + 4;
6667 }
6668
6669 // optional float max_dpi_y = 10;
6670 if (cached_has_bits & 0x00020000u) {
6671 total_size += 1 + 4;
6672 }
6673
6674 // optional float primary_screen_scale_factor = 12;
6675 if (cached_has_bits & 0x00040000u) {
6676 total_size += 1 + 4;
6677 }
6678
6679 // optional bool internal_display_supports_touch = 14;
6680 if (cached_has_bits & 0x00080000u) {
6681 total_size += 1 + 1;
6682 }
6683
6684 // optional .metrics.SystemProfileProto.Hardware.FormFactor form_factor = 22;
6685 if (cached_has_bits & 0x00100000u) {
6686 total_size += 2 +
6687 ::_pbi::WireFormatLite::EnumSize(this->_internal_form_factor());
6688 }
6689
6690 // optional uint64 tpm_firmware_version = 26;
6691 if (cached_has_bits & 0x00200000u) {
6692 total_size += 2 +
6693 ::_pbi::WireFormatLite::UInt64Size(
6694 this->_internal_tpm_firmware_version());
6695 }
6696
6697 // optional .metrics.SystemProfileProto.Hardware.TpmType tpm_type = 23;
6698 if (cached_has_bits & 0x00400000u) {
6699 total_size += 2 +
6700 ::_pbi::WireFormatLite::EnumSize(this->_internal_tpm_type());
6701 }
6702
6703 }
6704 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
6705 total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
6706 }
6707 int cached_size = ::_pbi::ToCachedSize(total_size);
6708 SetCachedSize(cached_size);
6709 return total_size;
6710 }
6711
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)6712 void SystemProfileProto_Hardware::CheckTypeAndMergeFrom(
6713 const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
6714 MergeFrom(*::_pbi::DownCast<const SystemProfileProto_Hardware*>(
6715 &from));
6716 }
6717
MergeFrom(const SystemProfileProto_Hardware & from)6718 void SystemProfileProto_Hardware::MergeFrom(const SystemProfileProto_Hardware& from) {
6719 SystemProfileProto_Hardware* const _this = this;
6720 // @@protoc_insertion_point(class_specific_merge_from_start:metrics.SystemProfileProto.Hardware)
6721 GOOGLE_DCHECK_NE(&from, _this);
6722 uint32_t cached_has_bits = 0;
6723 (void) cached_has_bits;
6724
6725 _this->_impl_.internal_storage_devices_.MergeFrom(from._impl_.internal_storage_devices_);
6726 cached_has_bits = from._impl_._has_bits_[0];
6727 if (cached_has_bits & 0x000000ffu) {
6728 if (cached_has_bits & 0x00000001u) {
6729 _this->_internal_set_cpu_architecture(from._internal_cpu_architecture());
6730 }
6731 if (cached_has_bits & 0x00000002u) {
6732 _this->_internal_set_hardware_class(from._internal_hardware_class());
6733 }
6734 if (cached_has_bits & 0x00000004u) {
6735 _this->_internal_set_full_hardware_class(from._internal_full_hardware_class());
6736 }
6737 if (cached_has_bits & 0x00000008u) {
6738 _this->_internal_set_app_cpu_architecture(from._internal_app_cpu_architecture());
6739 }
6740 if (cached_has_bits & 0x00000010u) {
6741 _this->_internal_set_cellular_device_variant(from._internal_cellular_device_variant());
6742 }
6743 if (cached_has_bits & 0x00000020u) {
6744 _this->_internal_set_tpm_rw_firmware_version(from._internal_tpm_rw_firmware_version());
6745 }
6746 if (cached_has_bits & 0x00000040u) {
6747 _this->_internal_mutable_gpu()->::metrics::SystemProfileProto_Hardware_Graphics::MergeFrom(
6748 from._internal_gpu());
6749 }
6750 if (cached_has_bits & 0x00000080u) {
6751 _this->_internal_mutable_cpu()->::metrics::SystemProfileProto_Hardware_CPU::MergeFrom(
6752 from._internal_cpu());
6753 }
6754 }
6755 if (cached_has_bits & 0x0000ff00u) {
6756 if (cached_has_bits & 0x00000100u) {
6757 _this->_internal_mutable_app_drive()->::metrics::SystemProfileProto_Hardware_Drive::MergeFrom(
6758 from._internal_app_drive());
6759 }
6760 if (cached_has_bits & 0x00000200u) {
6761 _this->_internal_mutable_user_data_drive()->::metrics::SystemProfileProto_Hardware_Drive::MergeFrom(
6762 from._internal_user_data_drive());
6763 }
6764 if (cached_has_bits & 0x00000400u) {
6765 _this->_internal_mutable_motherboard()->::metrics::SystemProfileProto_Hardware_Motherboard::MergeFrom(
6766 from._internal_motherboard());
6767 }
6768 if (cached_has_bits & 0x00000800u) {
6769 _this->_impl_.system_ram_mb_ = from._impl_.system_ram_mb_;
6770 }
6771 if (cached_has_bits & 0x00001000u) {
6772 _this->_impl_.dll_base_ = from._impl_.dll_base_;
6773 }
6774 if (cached_has_bits & 0x00002000u) {
6775 _this->_impl_.screen_count_ = from._impl_.screen_count_;
6776 }
6777 if (cached_has_bits & 0x00004000u) {
6778 _this->_impl_.primary_screen_width_ = from._impl_.primary_screen_width_;
6779 }
6780 if (cached_has_bits & 0x00008000u) {
6781 _this->_impl_.primary_screen_height_ = from._impl_.primary_screen_height_;
6782 }
6783 _this->_impl_._has_bits_[0] |= cached_has_bits;
6784 }
6785 if (cached_has_bits & 0x007f0000u) {
6786 if (cached_has_bits & 0x00010000u) {
6787 _this->_impl_.max_dpi_x_ = from._impl_.max_dpi_x_;
6788 }
6789 if (cached_has_bits & 0x00020000u) {
6790 _this->_impl_.max_dpi_y_ = from._impl_.max_dpi_y_;
6791 }
6792 if (cached_has_bits & 0x00040000u) {
6793 _this->_impl_.primary_screen_scale_factor_ = from._impl_.primary_screen_scale_factor_;
6794 }
6795 if (cached_has_bits & 0x00080000u) {
6796 _this->_impl_.internal_display_supports_touch_ = from._impl_.internal_display_supports_touch_;
6797 }
6798 if (cached_has_bits & 0x00100000u) {
6799 _this->_impl_.form_factor_ = from._impl_.form_factor_;
6800 }
6801 if (cached_has_bits & 0x00200000u) {
6802 _this->_impl_.tpm_firmware_version_ = from._impl_.tpm_firmware_version_;
6803 }
6804 if (cached_has_bits & 0x00400000u) {
6805 _this->_impl_.tpm_type_ = from._impl_.tpm_type_;
6806 }
6807 _this->_impl_._has_bits_[0] |= cached_has_bits;
6808 }
6809 _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
6810 }
6811
CopyFrom(const SystemProfileProto_Hardware & from)6812 void SystemProfileProto_Hardware::CopyFrom(const SystemProfileProto_Hardware& from) {
6813 // @@protoc_insertion_point(class_specific_copy_from_start:metrics.SystemProfileProto.Hardware)
6814 if (&from == this) return;
6815 Clear();
6816 MergeFrom(from);
6817 }
6818
IsInitialized() const6819 bool SystemProfileProto_Hardware::IsInitialized() const {
6820 return true;
6821 }
6822
InternalSwap(SystemProfileProto_Hardware * other)6823 void SystemProfileProto_Hardware::InternalSwap(SystemProfileProto_Hardware* other) {
6824 using std::swap;
6825 auto* lhs_arena = GetArenaForAllocation();
6826 auto* rhs_arena = other->GetArenaForAllocation();
6827 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
6828 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
6829 _impl_.internal_storage_devices_.InternalSwap(&other->_impl_.internal_storage_devices_);
6830 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
6831 &_impl_.cpu_architecture_, lhs_arena,
6832 &other->_impl_.cpu_architecture_, rhs_arena
6833 );
6834 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
6835 &_impl_.hardware_class_, lhs_arena,
6836 &other->_impl_.hardware_class_, rhs_arena
6837 );
6838 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
6839 &_impl_.full_hardware_class_, lhs_arena,
6840 &other->_impl_.full_hardware_class_, rhs_arena
6841 );
6842 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
6843 &_impl_.app_cpu_architecture_, lhs_arena,
6844 &other->_impl_.app_cpu_architecture_, rhs_arena
6845 );
6846 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
6847 &_impl_.cellular_device_variant_, lhs_arena,
6848 &other->_impl_.cellular_device_variant_, rhs_arena
6849 );
6850 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
6851 &_impl_.tpm_rw_firmware_version_, lhs_arena,
6852 &other->_impl_.tpm_rw_firmware_version_, rhs_arena
6853 );
6854 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
6855 PROTOBUF_FIELD_OFFSET(SystemProfileProto_Hardware, _impl_.tpm_type_)
6856 + sizeof(SystemProfileProto_Hardware::_impl_.tpm_type_)
6857 - PROTOBUF_FIELD_OFFSET(SystemProfileProto_Hardware, _impl_.gpu_)>(
6858 reinterpret_cast<char*>(&_impl_.gpu_),
6859 reinterpret_cast<char*>(&other->_impl_.gpu_));
6860 }
6861
GetTypeName() const6862 std::string SystemProfileProto_Hardware::GetTypeName() const {
6863 return "metrics.SystemProfileProto.Hardware";
6864 }
6865
6866
6867 // ===================================================================
6868
6869 class SystemProfileProto_Network::_Internal {
6870 public:
6871 using HasBits = decltype(std::declval<SystemProfileProto_Network>()._impl_._has_bits_);
set_has_connection_type_is_ambiguous(HasBits * has_bits)6872 static void set_has_connection_type_is_ambiguous(HasBits* has_bits) {
6873 (*has_bits)[0] |= 2u;
6874 }
set_has_connection_type(HasBits * has_bits)6875 static void set_has_connection_type(HasBits* has_bits) {
6876 (*has_bits)[0] |= 1u;
6877 }
set_has_wifi_phy_layer_protocol_is_ambiguous(HasBits * has_bits)6878 static void set_has_wifi_phy_layer_protocol_is_ambiguous(HasBits* has_bits) {
6879 (*has_bits)[0] |= 4u;
6880 }
set_has_wifi_phy_layer_protocol(HasBits * has_bits)6881 static void set_has_wifi_phy_layer_protocol(HasBits* has_bits) {
6882 (*has_bits)[0] |= 8u;
6883 }
set_has_min_effective_connection_type(HasBits * has_bits)6884 static void set_has_min_effective_connection_type(HasBits* has_bits) {
6885 (*has_bits)[0] |= 16u;
6886 }
set_has_max_effective_connection_type(HasBits * has_bits)6887 static void set_has_max_effective_connection_type(HasBits* has_bits) {
6888 (*has_bits)[0] |= 32u;
6889 }
6890 };
6891
SystemProfileProto_Network(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)6892 SystemProfileProto_Network::SystemProfileProto_Network(::PROTOBUF_NAMESPACE_ID::Arena* arena,
6893 bool is_message_owned)
6894 : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
6895 SharedCtor(arena, is_message_owned);
6896 // @@protoc_insertion_point(arena_constructor:metrics.SystemProfileProto.Network)
6897 }
SystemProfileProto_Network(const SystemProfileProto_Network & from)6898 SystemProfileProto_Network::SystemProfileProto_Network(const SystemProfileProto_Network& from)
6899 : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
6900 SystemProfileProto_Network* const _this = this; (void)_this;
6901 new (&_impl_) Impl_{
6902 decltype(_impl_._has_bits_){from._impl_._has_bits_}
6903 , /*decltype(_impl_._cached_size_)*/{}
6904 , decltype(_impl_.connection_type_){}
6905 , decltype(_impl_.connection_type_is_ambiguous_){}
6906 , decltype(_impl_.wifi_phy_layer_protocol_is_ambiguous_){}
6907 , decltype(_impl_.wifi_phy_layer_protocol_){}
6908 , decltype(_impl_.min_effective_connection_type_){}
6909 , decltype(_impl_.max_effective_connection_type_){}};
6910
6911 _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
6912 ::memcpy(&_impl_.connection_type_, &from._impl_.connection_type_,
6913 static_cast<size_t>(reinterpret_cast<char*>(&_impl_.max_effective_connection_type_) -
6914 reinterpret_cast<char*>(&_impl_.connection_type_)) + sizeof(_impl_.max_effective_connection_type_));
6915 // @@protoc_insertion_point(copy_constructor:metrics.SystemProfileProto.Network)
6916 }
6917
SharedCtor(::_pb::Arena * arena,bool is_message_owned)6918 inline void SystemProfileProto_Network::SharedCtor(
6919 ::_pb::Arena* arena, bool is_message_owned) {
6920 (void)arena;
6921 (void)is_message_owned;
6922 new (&_impl_) Impl_{
6923 decltype(_impl_._has_bits_){}
6924 , /*decltype(_impl_._cached_size_)*/{}
6925 , decltype(_impl_.connection_type_){0}
6926 , decltype(_impl_.connection_type_is_ambiguous_){false}
6927 , decltype(_impl_.wifi_phy_layer_protocol_is_ambiguous_){false}
6928 , decltype(_impl_.wifi_phy_layer_protocol_){0}
6929 , decltype(_impl_.min_effective_connection_type_){0}
6930 , decltype(_impl_.max_effective_connection_type_){0}
6931 };
6932 }
6933
~SystemProfileProto_Network()6934 SystemProfileProto_Network::~SystemProfileProto_Network() {
6935 // @@protoc_insertion_point(destructor:metrics.SystemProfileProto.Network)
6936 if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
6937 (void)arena;
6938 return;
6939 }
6940 SharedDtor();
6941 }
6942
SharedDtor()6943 inline void SystemProfileProto_Network::SharedDtor() {
6944 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
6945 }
6946
SetCachedSize(int size) const6947 void SystemProfileProto_Network::SetCachedSize(int size) const {
6948 _impl_._cached_size_.Set(size);
6949 }
6950
Clear()6951 void SystemProfileProto_Network::Clear() {
6952 // @@protoc_insertion_point(message_clear_start:metrics.SystemProfileProto.Network)
6953 uint32_t cached_has_bits = 0;
6954 // Prevent compiler warnings about cached_has_bits being unused
6955 (void) cached_has_bits;
6956
6957 cached_has_bits = _impl_._has_bits_[0];
6958 if (cached_has_bits & 0x0000003fu) {
6959 ::memset(&_impl_.connection_type_, 0, static_cast<size_t>(
6960 reinterpret_cast<char*>(&_impl_.max_effective_connection_type_) -
6961 reinterpret_cast<char*>(&_impl_.connection_type_)) + sizeof(_impl_.max_effective_connection_type_));
6962 }
6963 _impl_._has_bits_.Clear();
6964 _internal_metadata_.Clear<std::string>();
6965 }
6966
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)6967 const char* SystemProfileProto_Network::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
6968 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
6969 _Internal::HasBits has_bits{};
6970 while (!ctx->Done(&ptr)) {
6971 uint32_t tag;
6972 ptr = ::_pbi::ReadTag(ptr, &tag);
6973 switch (tag >> 3) {
6974 // optional bool connection_type_is_ambiguous = 1;
6975 case 1:
6976 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
6977 _Internal::set_has_connection_type_is_ambiguous(&has_bits);
6978 _impl_.connection_type_is_ambiguous_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
6979 CHK_(ptr);
6980 } else
6981 goto handle_unusual;
6982 continue;
6983 // optional .metrics.SystemProfileProto.Network.ConnectionType connection_type = 2;
6984 case 2:
6985 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
6986 uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
6987 CHK_(ptr);
6988 if (PROTOBUF_PREDICT_TRUE(::metrics::SystemProfileProto_Network_ConnectionType_IsValid(val))) {
6989 _internal_set_connection_type(static_cast<::metrics::SystemProfileProto_Network_ConnectionType>(val));
6990 } else {
6991 ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields());
6992 }
6993 } else
6994 goto handle_unusual;
6995 continue;
6996 // optional bool wifi_phy_layer_protocol_is_ambiguous = 3;
6997 case 3:
6998 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
6999 _Internal::set_has_wifi_phy_layer_protocol_is_ambiguous(&has_bits);
7000 _impl_.wifi_phy_layer_protocol_is_ambiguous_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
7001 CHK_(ptr);
7002 } else
7003 goto handle_unusual;
7004 continue;
7005 // optional .metrics.SystemProfileProto.Network.WifiPHYLayerProtocol wifi_phy_layer_protocol = 4;
7006 case 4:
7007 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
7008 uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
7009 CHK_(ptr);
7010 if (PROTOBUF_PREDICT_TRUE(::metrics::SystemProfileProto_Network_WifiPHYLayerProtocol_IsValid(val))) {
7011 _internal_set_wifi_phy_layer_protocol(static_cast<::metrics::SystemProfileProto_Network_WifiPHYLayerProtocol>(val));
7012 } else {
7013 ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(4, val, mutable_unknown_fields());
7014 }
7015 } else
7016 goto handle_unusual;
7017 continue;
7018 // optional .metrics.SystemProfileProto.Network.EffectiveConnectionType min_effective_connection_type = 7;
7019 case 7:
7020 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) {
7021 uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
7022 CHK_(ptr);
7023 if (PROTOBUF_PREDICT_TRUE(::metrics::SystemProfileProto_Network_EffectiveConnectionType_IsValid(val))) {
7024 _internal_set_min_effective_connection_type(static_cast<::metrics::SystemProfileProto_Network_EffectiveConnectionType>(val));
7025 } else {
7026 ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(7, val, mutable_unknown_fields());
7027 }
7028 } else
7029 goto handle_unusual;
7030 continue;
7031 // optional .metrics.SystemProfileProto.Network.EffectiveConnectionType max_effective_connection_type = 8;
7032 case 8:
7033 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 64)) {
7034 uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
7035 CHK_(ptr);
7036 if (PROTOBUF_PREDICT_TRUE(::metrics::SystemProfileProto_Network_EffectiveConnectionType_IsValid(val))) {
7037 _internal_set_max_effective_connection_type(static_cast<::metrics::SystemProfileProto_Network_EffectiveConnectionType>(val));
7038 } else {
7039 ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(8, val, mutable_unknown_fields());
7040 }
7041 } else
7042 goto handle_unusual;
7043 continue;
7044 default:
7045 goto handle_unusual;
7046 } // switch
7047 handle_unusual:
7048 if ((tag == 0) || ((tag & 7) == 4)) {
7049 CHK_(ptr);
7050 ctx->SetLastTag(tag);
7051 goto message_done;
7052 }
7053 ptr = UnknownFieldParse(
7054 tag,
7055 _internal_metadata_.mutable_unknown_fields<std::string>(),
7056 ptr, ctx);
7057 CHK_(ptr != nullptr);
7058 } // while
7059 message_done:
7060 _impl_._has_bits_.Or(has_bits);
7061 return ptr;
7062 failure:
7063 ptr = nullptr;
7064 goto message_done;
7065 #undef CHK_
7066 }
7067
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const7068 uint8_t* SystemProfileProto_Network::_InternalSerialize(
7069 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
7070 // @@protoc_insertion_point(serialize_to_array_start:metrics.SystemProfileProto.Network)
7071 uint32_t cached_has_bits = 0;
7072 (void) cached_has_bits;
7073
7074 cached_has_bits = _impl_._has_bits_[0];
7075 // optional bool connection_type_is_ambiguous = 1;
7076 if (cached_has_bits & 0x00000002u) {
7077 target = stream->EnsureSpace(target);
7078 target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_connection_type_is_ambiguous(), target);
7079 }
7080
7081 // optional .metrics.SystemProfileProto.Network.ConnectionType connection_type = 2;
7082 if (cached_has_bits & 0x00000001u) {
7083 target = stream->EnsureSpace(target);
7084 target = ::_pbi::WireFormatLite::WriteEnumToArray(
7085 2, this->_internal_connection_type(), target);
7086 }
7087
7088 // optional bool wifi_phy_layer_protocol_is_ambiguous = 3;
7089 if (cached_has_bits & 0x00000004u) {
7090 target = stream->EnsureSpace(target);
7091 target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_wifi_phy_layer_protocol_is_ambiguous(), target);
7092 }
7093
7094 // optional .metrics.SystemProfileProto.Network.WifiPHYLayerProtocol wifi_phy_layer_protocol = 4;
7095 if (cached_has_bits & 0x00000008u) {
7096 target = stream->EnsureSpace(target);
7097 target = ::_pbi::WireFormatLite::WriteEnumToArray(
7098 4, this->_internal_wifi_phy_layer_protocol(), target);
7099 }
7100
7101 // optional .metrics.SystemProfileProto.Network.EffectiveConnectionType min_effective_connection_type = 7;
7102 if (cached_has_bits & 0x00000010u) {
7103 target = stream->EnsureSpace(target);
7104 target = ::_pbi::WireFormatLite::WriteEnumToArray(
7105 7, this->_internal_min_effective_connection_type(), target);
7106 }
7107
7108 // optional .metrics.SystemProfileProto.Network.EffectiveConnectionType max_effective_connection_type = 8;
7109 if (cached_has_bits & 0x00000020u) {
7110 target = stream->EnsureSpace(target);
7111 target = ::_pbi::WireFormatLite::WriteEnumToArray(
7112 8, this->_internal_max_effective_connection_type(), target);
7113 }
7114
7115 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
7116 target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
7117 static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
7118 }
7119 // @@protoc_insertion_point(serialize_to_array_end:metrics.SystemProfileProto.Network)
7120 return target;
7121 }
7122
ByteSizeLong() const7123 size_t SystemProfileProto_Network::ByteSizeLong() const {
7124 // @@protoc_insertion_point(message_byte_size_start:metrics.SystemProfileProto.Network)
7125 size_t total_size = 0;
7126
7127 uint32_t cached_has_bits = 0;
7128 // Prevent compiler warnings about cached_has_bits being unused
7129 (void) cached_has_bits;
7130
7131 cached_has_bits = _impl_._has_bits_[0];
7132 if (cached_has_bits & 0x0000003fu) {
7133 // optional .metrics.SystemProfileProto.Network.ConnectionType connection_type = 2;
7134 if (cached_has_bits & 0x00000001u) {
7135 total_size += 1 +
7136 ::_pbi::WireFormatLite::EnumSize(this->_internal_connection_type());
7137 }
7138
7139 // optional bool connection_type_is_ambiguous = 1;
7140 if (cached_has_bits & 0x00000002u) {
7141 total_size += 1 + 1;
7142 }
7143
7144 // optional bool wifi_phy_layer_protocol_is_ambiguous = 3;
7145 if (cached_has_bits & 0x00000004u) {
7146 total_size += 1 + 1;
7147 }
7148
7149 // optional .metrics.SystemProfileProto.Network.WifiPHYLayerProtocol wifi_phy_layer_protocol = 4;
7150 if (cached_has_bits & 0x00000008u) {
7151 total_size += 1 +
7152 ::_pbi::WireFormatLite::EnumSize(this->_internal_wifi_phy_layer_protocol());
7153 }
7154
7155 // optional .metrics.SystemProfileProto.Network.EffectiveConnectionType min_effective_connection_type = 7;
7156 if (cached_has_bits & 0x00000010u) {
7157 total_size += 1 +
7158 ::_pbi::WireFormatLite::EnumSize(this->_internal_min_effective_connection_type());
7159 }
7160
7161 // optional .metrics.SystemProfileProto.Network.EffectiveConnectionType max_effective_connection_type = 8;
7162 if (cached_has_bits & 0x00000020u) {
7163 total_size += 1 +
7164 ::_pbi::WireFormatLite::EnumSize(this->_internal_max_effective_connection_type());
7165 }
7166
7167 }
7168 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
7169 total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
7170 }
7171 int cached_size = ::_pbi::ToCachedSize(total_size);
7172 SetCachedSize(cached_size);
7173 return total_size;
7174 }
7175
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)7176 void SystemProfileProto_Network::CheckTypeAndMergeFrom(
7177 const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
7178 MergeFrom(*::_pbi::DownCast<const SystemProfileProto_Network*>(
7179 &from));
7180 }
7181
MergeFrom(const SystemProfileProto_Network & from)7182 void SystemProfileProto_Network::MergeFrom(const SystemProfileProto_Network& from) {
7183 SystemProfileProto_Network* const _this = this;
7184 // @@protoc_insertion_point(class_specific_merge_from_start:metrics.SystemProfileProto.Network)
7185 GOOGLE_DCHECK_NE(&from, _this);
7186 uint32_t cached_has_bits = 0;
7187 (void) cached_has_bits;
7188
7189 cached_has_bits = from._impl_._has_bits_[0];
7190 if (cached_has_bits & 0x0000003fu) {
7191 if (cached_has_bits & 0x00000001u) {
7192 _this->_impl_.connection_type_ = from._impl_.connection_type_;
7193 }
7194 if (cached_has_bits & 0x00000002u) {
7195 _this->_impl_.connection_type_is_ambiguous_ = from._impl_.connection_type_is_ambiguous_;
7196 }
7197 if (cached_has_bits & 0x00000004u) {
7198 _this->_impl_.wifi_phy_layer_protocol_is_ambiguous_ = from._impl_.wifi_phy_layer_protocol_is_ambiguous_;
7199 }
7200 if (cached_has_bits & 0x00000008u) {
7201 _this->_impl_.wifi_phy_layer_protocol_ = from._impl_.wifi_phy_layer_protocol_;
7202 }
7203 if (cached_has_bits & 0x00000010u) {
7204 _this->_impl_.min_effective_connection_type_ = from._impl_.min_effective_connection_type_;
7205 }
7206 if (cached_has_bits & 0x00000020u) {
7207 _this->_impl_.max_effective_connection_type_ = from._impl_.max_effective_connection_type_;
7208 }
7209 _this->_impl_._has_bits_[0] |= cached_has_bits;
7210 }
7211 _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
7212 }
7213
CopyFrom(const SystemProfileProto_Network & from)7214 void SystemProfileProto_Network::CopyFrom(const SystemProfileProto_Network& from) {
7215 // @@protoc_insertion_point(class_specific_copy_from_start:metrics.SystemProfileProto.Network)
7216 if (&from == this) return;
7217 Clear();
7218 MergeFrom(from);
7219 }
7220
IsInitialized() const7221 bool SystemProfileProto_Network::IsInitialized() const {
7222 return true;
7223 }
7224
InternalSwap(SystemProfileProto_Network * other)7225 void SystemProfileProto_Network::InternalSwap(SystemProfileProto_Network* other) {
7226 using std::swap;
7227 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
7228 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
7229 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
7230 PROTOBUF_FIELD_OFFSET(SystemProfileProto_Network, _impl_.max_effective_connection_type_)
7231 + sizeof(SystemProfileProto_Network::_impl_.max_effective_connection_type_)
7232 - PROTOBUF_FIELD_OFFSET(SystemProfileProto_Network, _impl_.connection_type_)>(
7233 reinterpret_cast<char*>(&_impl_.connection_type_),
7234 reinterpret_cast<char*>(&other->_impl_.connection_type_));
7235 }
7236
GetTypeName() const7237 std::string SystemProfileProto_Network::GetTypeName() const {
7238 return "metrics.SystemProfileProto.Network";
7239 }
7240
7241
7242 // ===================================================================
7243
7244 class SystemProfileProto_GoogleUpdate_ProductInfo::_Internal {
7245 public:
7246 using HasBits = decltype(std::declval<SystemProfileProto_GoogleUpdate_ProductInfo>()._impl_._has_bits_);
set_has_version(HasBits * has_bits)7247 static void set_has_version(HasBits* has_bits) {
7248 (*has_bits)[0] |= 1u;
7249 }
set_has_last_update_success_timestamp(HasBits * has_bits)7250 static void set_has_last_update_success_timestamp(HasBits* has_bits) {
7251 (*has_bits)[0] |= 2u;
7252 }
set_has_last_result(HasBits * has_bits)7253 static void set_has_last_result(HasBits* has_bits) {
7254 (*has_bits)[0] |= 4u;
7255 }
set_has_last_error(HasBits * has_bits)7256 static void set_has_last_error(HasBits* has_bits) {
7257 (*has_bits)[0] |= 8u;
7258 }
set_has_last_extra_error(HasBits * has_bits)7259 static void set_has_last_extra_error(HasBits* has_bits) {
7260 (*has_bits)[0] |= 16u;
7261 }
7262 };
7263
SystemProfileProto_GoogleUpdate_ProductInfo(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)7264 SystemProfileProto_GoogleUpdate_ProductInfo::SystemProfileProto_GoogleUpdate_ProductInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena,
7265 bool is_message_owned)
7266 : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
7267 SharedCtor(arena, is_message_owned);
7268 // @@protoc_insertion_point(arena_constructor:metrics.SystemProfileProto.GoogleUpdate.ProductInfo)
7269 }
SystemProfileProto_GoogleUpdate_ProductInfo(const SystemProfileProto_GoogleUpdate_ProductInfo & from)7270 SystemProfileProto_GoogleUpdate_ProductInfo::SystemProfileProto_GoogleUpdate_ProductInfo(const SystemProfileProto_GoogleUpdate_ProductInfo& from)
7271 : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
7272 SystemProfileProto_GoogleUpdate_ProductInfo* const _this = this; (void)_this;
7273 new (&_impl_) Impl_{
7274 decltype(_impl_._has_bits_){from._impl_._has_bits_}
7275 , /*decltype(_impl_._cached_size_)*/{}
7276 , decltype(_impl_.version_){}
7277 , decltype(_impl_.last_update_success_timestamp_){}
7278 , decltype(_impl_.last_result_){}
7279 , decltype(_impl_.last_error_){}
7280 , decltype(_impl_.last_extra_error_){}};
7281
7282 _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
7283 _impl_.version_.InitDefault();
7284 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
7285 _impl_.version_.Set("", GetArenaForAllocation());
7286 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
7287 if (from._internal_has_version()) {
7288 _this->_impl_.version_.Set(from._internal_version(),
7289 _this->GetArenaForAllocation());
7290 }
7291 ::memcpy(&_impl_.last_update_success_timestamp_, &from._impl_.last_update_success_timestamp_,
7292 static_cast<size_t>(reinterpret_cast<char*>(&_impl_.last_extra_error_) -
7293 reinterpret_cast<char*>(&_impl_.last_update_success_timestamp_)) + sizeof(_impl_.last_extra_error_));
7294 // @@protoc_insertion_point(copy_constructor:metrics.SystemProfileProto.GoogleUpdate.ProductInfo)
7295 }
7296
SharedCtor(::_pb::Arena * arena,bool is_message_owned)7297 inline void SystemProfileProto_GoogleUpdate_ProductInfo::SharedCtor(
7298 ::_pb::Arena* arena, bool is_message_owned) {
7299 (void)arena;
7300 (void)is_message_owned;
7301 new (&_impl_) Impl_{
7302 decltype(_impl_._has_bits_){}
7303 , /*decltype(_impl_._cached_size_)*/{}
7304 , decltype(_impl_.version_){}
7305 , decltype(_impl_.last_update_success_timestamp_){int64_t{0}}
7306 , decltype(_impl_.last_result_){0}
7307 , decltype(_impl_.last_error_){0}
7308 , decltype(_impl_.last_extra_error_){0}
7309 };
7310 _impl_.version_.InitDefault();
7311 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
7312 _impl_.version_.Set("", GetArenaForAllocation());
7313 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
7314 }
7315
~SystemProfileProto_GoogleUpdate_ProductInfo()7316 SystemProfileProto_GoogleUpdate_ProductInfo::~SystemProfileProto_GoogleUpdate_ProductInfo() {
7317 // @@protoc_insertion_point(destructor:metrics.SystemProfileProto.GoogleUpdate.ProductInfo)
7318 if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
7319 (void)arena;
7320 return;
7321 }
7322 SharedDtor();
7323 }
7324
SharedDtor()7325 inline void SystemProfileProto_GoogleUpdate_ProductInfo::SharedDtor() {
7326 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
7327 _impl_.version_.Destroy();
7328 }
7329
SetCachedSize(int size) const7330 void SystemProfileProto_GoogleUpdate_ProductInfo::SetCachedSize(int size) const {
7331 _impl_._cached_size_.Set(size);
7332 }
7333
Clear()7334 void SystemProfileProto_GoogleUpdate_ProductInfo::Clear() {
7335 // @@protoc_insertion_point(message_clear_start:metrics.SystemProfileProto.GoogleUpdate.ProductInfo)
7336 uint32_t cached_has_bits = 0;
7337 // Prevent compiler warnings about cached_has_bits being unused
7338 (void) cached_has_bits;
7339
7340 cached_has_bits = _impl_._has_bits_[0];
7341 if (cached_has_bits & 0x00000001u) {
7342 _impl_.version_.ClearNonDefaultToEmpty();
7343 }
7344 if (cached_has_bits & 0x0000001eu) {
7345 ::memset(&_impl_.last_update_success_timestamp_, 0, static_cast<size_t>(
7346 reinterpret_cast<char*>(&_impl_.last_extra_error_) -
7347 reinterpret_cast<char*>(&_impl_.last_update_success_timestamp_)) + sizeof(_impl_.last_extra_error_));
7348 }
7349 _impl_._has_bits_.Clear();
7350 _internal_metadata_.Clear<std::string>();
7351 }
7352
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)7353 const char* SystemProfileProto_GoogleUpdate_ProductInfo::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
7354 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
7355 _Internal::HasBits has_bits{};
7356 while (!ctx->Done(&ptr)) {
7357 uint32_t tag;
7358 ptr = ::_pbi::ReadTag(ptr, &tag);
7359 switch (tag >> 3) {
7360 // optional string version = 1;
7361 case 1:
7362 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
7363 auto str = _internal_mutable_version();
7364 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
7365 CHK_(ptr);
7366 } else
7367 goto handle_unusual;
7368 continue;
7369 // optional int64 last_update_success_timestamp = 2;
7370 case 2:
7371 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
7372 _Internal::set_has_last_update_success_timestamp(&has_bits);
7373 _impl_.last_update_success_timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
7374 CHK_(ptr);
7375 } else
7376 goto handle_unusual;
7377 continue;
7378 // optional .metrics.SystemProfileProto.GoogleUpdate.ProductInfo.InstallResult last_result = 3;
7379 case 3:
7380 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
7381 uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
7382 CHK_(ptr);
7383 if (PROTOBUF_PREDICT_TRUE(::metrics::SystemProfileProto_GoogleUpdate_ProductInfo_InstallResult_IsValid(val))) {
7384 _internal_set_last_result(static_cast<::metrics::SystemProfileProto_GoogleUpdate_ProductInfo_InstallResult>(val));
7385 } else {
7386 ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(3, val, mutable_unknown_fields());
7387 }
7388 } else
7389 goto handle_unusual;
7390 continue;
7391 // optional int32 last_error = 4;
7392 case 4:
7393 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
7394 _Internal::set_has_last_error(&has_bits);
7395 _impl_.last_error_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
7396 CHK_(ptr);
7397 } else
7398 goto handle_unusual;
7399 continue;
7400 // optional int32 last_extra_error = 5;
7401 case 5:
7402 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
7403 _Internal::set_has_last_extra_error(&has_bits);
7404 _impl_.last_extra_error_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
7405 CHK_(ptr);
7406 } else
7407 goto handle_unusual;
7408 continue;
7409 default:
7410 goto handle_unusual;
7411 } // switch
7412 handle_unusual:
7413 if ((tag == 0) || ((tag & 7) == 4)) {
7414 CHK_(ptr);
7415 ctx->SetLastTag(tag);
7416 goto message_done;
7417 }
7418 ptr = UnknownFieldParse(
7419 tag,
7420 _internal_metadata_.mutable_unknown_fields<std::string>(),
7421 ptr, ctx);
7422 CHK_(ptr != nullptr);
7423 } // while
7424 message_done:
7425 _impl_._has_bits_.Or(has_bits);
7426 return ptr;
7427 failure:
7428 ptr = nullptr;
7429 goto message_done;
7430 #undef CHK_
7431 }
7432
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const7433 uint8_t* SystemProfileProto_GoogleUpdate_ProductInfo::_InternalSerialize(
7434 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
7435 // @@protoc_insertion_point(serialize_to_array_start:metrics.SystemProfileProto.GoogleUpdate.ProductInfo)
7436 uint32_t cached_has_bits = 0;
7437 (void) cached_has_bits;
7438
7439 cached_has_bits = _impl_._has_bits_[0];
7440 // optional string version = 1;
7441 if (cached_has_bits & 0x00000001u) {
7442 target = stream->WriteStringMaybeAliased(
7443 1, this->_internal_version(), target);
7444 }
7445
7446 // optional int64 last_update_success_timestamp = 2;
7447 if (cached_has_bits & 0x00000002u) {
7448 target = stream->EnsureSpace(target);
7449 target = ::_pbi::WireFormatLite::WriteInt64ToArray(2, this->_internal_last_update_success_timestamp(), target);
7450 }
7451
7452 // optional .metrics.SystemProfileProto.GoogleUpdate.ProductInfo.InstallResult last_result = 3;
7453 if (cached_has_bits & 0x00000004u) {
7454 target = stream->EnsureSpace(target);
7455 target = ::_pbi::WireFormatLite::WriteEnumToArray(
7456 3, this->_internal_last_result(), target);
7457 }
7458
7459 // optional int32 last_error = 4;
7460 if (cached_has_bits & 0x00000008u) {
7461 target = stream->EnsureSpace(target);
7462 target = ::_pbi::WireFormatLite::WriteInt32ToArray(4, this->_internal_last_error(), target);
7463 }
7464
7465 // optional int32 last_extra_error = 5;
7466 if (cached_has_bits & 0x00000010u) {
7467 target = stream->EnsureSpace(target);
7468 target = ::_pbi::WireFormatLite::WriteInt32ToArray(5, this->_internal_last_extra_error(), target);
7469 }
7470
7471 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
7472 target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
7473 static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
7474 }
7475 // @@protoc_insertion_point(serialize_to_array_end:metrics.SystemProfileProto.GoogleUpdate.ProductInfo)
7476 return target;
7477 }
7478
ByteSizeLong() const7479 size_t SystemProfileProto_GoogleUpdate_ProductInfo::ByteSizeLong() const {
7480 // @@protoc_insertion_point(message_byte_size_start:metrics.SystemProfileProto.GoogleUpdate.ProductInfo)
7481 size_t total_size = 0;
7482
7483 uint32_t cached_has_bits = 0;
7484 // Prevent compiler warnings about cached_has_bits being unused
7485 (void) cached_has_bits;
7486
7487 cached_has_bits = _impl_._has_bits_[0];
7488 if (cached_has_bits & 0x0000001fu) {
7489 // optional string version = 1;
7490 if (cached_has_bits & 0x00000001u) {
7491 total_size += 1 +
7492 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
7493 this->_internal_version());
7494 }
7495
7496 // optional int64 last_update_success_timestamp = 2;
7497 if (cached_has_bits & 0x00000002u) {
7498 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_last_update_success_timestamp());
7499 }
7500
7501 // optional .metrics.SystemProfileProto.GoogleUpdate.ProductInfo.InstallResult last_result = 3;
7502 if (cached_has_bits & 0x00000004u) {
7503 total_size += 1 +
7504 ::_pbi::WireFormatLite::EnumSize(this->_internal_last_result());
7505 }
7506
7507 // optional int32 last_error = 4;
7508 if (cached_has_bits & 0x00000008u) {
7509 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_last_error());
7510 }
7511
7512 // optional int32 last_extra_error = 5;
7513 if (cached_has_bits & 0x00000010u) {
7514 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_last_extra_error());
7515 }
7516
7517 }
7518 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
7519 total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
7520 }
7521 int cached_size = ::_pbi::ToCachedSize(total_size);
7522 SetCachedSize(cached_size);
7523 return total_size;
7524 }
7525
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)7526 void SystemProfileProto_GoogleUpdate_ProductInfo::CheckTypeAndMergeFrom(
7527 const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
7528 MergeFrom(*::_pbi::DownCast<const SystemProfileProto_GoogleUpdate_ProductInfo*>(
7529 &from));
7530 }
7531
MergeFrom(const SystemProfileProto_GoogleUpdate_ProductInfo & from)7532 void SystemProfileProto_GoogleUpdate_ProductInfo::MergeFrom(const SystemProfileProto_GoogleUpdate_ProductInfo& from) {
7533 SystemProfileProto_GoogleUpdate_ProductInfo* const _this = this;
7534 // @@protoc_insertion_point(class_specific_merge_from_start:metrics.SystemProfileProto.GoogleUpdate.ProductInfo)
7535 GOOGLE_DCHECK_NE(&from, _this);
7536 uint32_t cached_has_bits = 0;
7537 (void) cached_has_bits;
7538
7539 cached_has_bits = from._impl_._has_bits_[0];
7540 if (cached_has_bits & 0x0000001fu) {
7541 if (cached_has_bits & 0x00000001u) {
7542 _this->_internal_set_version(from._internal_version());
7543 }
7544 if (cached_has_bits & 0x00000002u) {
7545 _this->_impl_.last_update_success_timestamp_ = from._impl_.last_update_success_timestamp_;
7546 }
7547 if (cached_has_bits & 0x00000004u) {
7548 _this->_impl_.last_result_ = from._impl_.last_result_;
7549 }
7550 if (cached_has_bits & 0x00000008u) {
7551 _this->_impl_.last_error_ = from._impl_.last_error_;
7552 }
7553 if (cached_has_bits & 0x00000010u) {
7554 _this->_impl_.last_extra_error_ = from._impl_.last_extra_error_;
7555 }
7556 _this->_impl_._has_bits_[0] |= cached_has_bits;
7557 }
7558 _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
7559 }
7560
CopyFrom(const SystemProfileProto_GoogleUpdate_ProductInfo & from)7561 void SystemProfileProto_GoogleUpdate_ProductInfo::CopyFrom(const SystemProfileProto_GoogleUpdate_ProductInfo& from) {
7562 // @@protoc_insertion_point(class_specific_copy_from_start:metrics.SystemProfileProto.GoogleUpdate.ProductInfo)
7563 if (&from == this) return;
7564 Clear();
7565 MergeFrom(from);
7566 }
7567
IsInitialized() const7568 bool SystemProfileProto_GoogleUpdate_ProductInfo::IsInitialized() const {
7569 return true;
7570 }
7571
InternalSwap(SystemProfileProto_GoogleUpdate_ProductInfo * other)7572 void SystemProfileProto_GoogleUpdate_ProductInfo::InternalSwap(SystemProfileProto_GoogleUpdate_ProductInfo* other) {
7573 using std::swap;
7574 auto* lhs_arena = GetArenaForAllocation();
7575 auto* rhs_arena = other->GetArenaForAllocation();
7576 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
7577 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
7578 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
7579 &_impl_.version_, lhs_arena,
7580 &other->_impl_.version_, rhs_arena
7581 );
7582 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
7583 PROTOBUF_FIELD_OFFSET(SystemProfileProto_GoogleUpdate_ProductInfo, _impl_.last_extra_error_)
7584 + sizeof(SystemProfileProto_GoogleUpdate_ProductInfo::_impl_.last_extra_error_)
7585 - PROTOBUF_FIELD_OFFSET(SystemProfileProto_GoogleUpdate_ProductInfo, _impl_.last_update_success_timestamp_)>(
7586 reinterpret_cast<char*>(&_impl_.last_update_success_timestamp_),
7587 reinterpret_cast<char*>(&other->_impl_.last_update_success_timestamp_));
7588 }
7589
GetTypeName() const7590 std::string SystemProfileProto_GoogleUpdate_ProductInfo::GetTypeName() const {
7591 return "metrics.SystemProfileProto.GoogleUpdate.ProductInfo";
7592 }
7593
7594
7595 // ===================================================================
7596
7597 class SystemProfileProto_GoogleUpdate::_Internal {
7598 public:
7599 using HasBits = decltype(std::declval<SystemProfileProto_GoogleUpdate>()._impl_._has_bits_);
set_has_is_system_install(HasBits * has_bits)7600 static void set_has_is_system_install(HasBits* has_bits) {
7601 (*has_bits)[0] |= 16u;
7602 }
set_has_last_automatic_start_timestamp(HasBits * has_bits)7603 static void set_has_last_automatic_start_timestamp(HasBits* has_bits) {
7604 (*has_bits)[0] |= 4u;
7605 }
set_has_last_update_check_timestamp(HasBits * has_bits)7606 static void set_has_last_update_check_timestamp(HasBits* has_bits) {
7607 (*has_bits)[0] |= 8u;
7608 }
7609 static const ::metrics::SystemProfileProto_GoogleUpdate_ProductInfo& google_update_status(const SystemProfileProto_GoogleUpdate* msg);
set_has_google_update_status(HasBits * has_bits)7610 static void set_has_google_update_status(HasBits* has_bits) {
7611 (*has_bits)[0] |= 1u;
7612 }
7613 static const ::metrics::SystemProfileProto_GoogleUpdate_ProductInfo& client_status(const SystemProfileProto_GoogleUpdate* msg);
set_has_client_status(HasBits * has_bits)7614 static void set_has_client_status(HasBits* has_bits) {
7615 (*has_bits)[0] |= 2u;
7616 }
7617 };
7618
7619 const ::metrics::SystemProfileProto_GoogleUpdate_ProductInfo&
google_update_status(const SystemProfileProto_GoogleUpdate * msg)7620 SystemProfileProto_GoogleUpdate::_Internal::google_update_status(const SystemProfileProto_GoogleUpdate* msg) {
7621 return *msg->_impl_.google_update_status_;
7622 }
7623 const ::metrics::SystemProfileProto_GoogleUpdate_ProductInfo&
client_status(const SystemProfileProto_GoogleUpdate * msg)7624 SystemProfileProto_GoogleUpdate::_Internal::client_status(const SystemProfileProto_GoogleUpdate* msg) {
7625 return *msg->_impl_.client_status_;
7626 }
SystemProfileProto_GoogleUpdate(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)7627 SystemProfileProto_GoogleUpdate::SystemProfileProto_GoogleUpdate(::PROTOBUF_NAMESPACE_ID::Arena* arena,
7628 bool is_message_owned)
7629 : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
7630 SharedCtor(arena, is_message_owned);
7631 // @@protoc_insertion_point(arena_constructor:metrics.SystemProfileProto.GoogleUpdate)
7632 }
SystemProfileProto_GoogleUpdate(const SystemProfileProto_GoogleUpdate & from)7633 SystemProfileProto_GoogleUpdate::SystemProfileProto_GoogleUpdate(const SystemProfileProto_GoogleUpdate& from)
7634 : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
7635 SystemProfileProto_GoogleUpdate* const _this = this; (void)_this;
7636 new (&_impl_) Impl_{
7637 decltype(_impl_._has_bits_){from._impl_._has_bits_}
7638 , /*decltype(_impl_._cached_size_)*/{}
7639 , decltype(_impl_.google_update_status_){nullptr}
7640 , decltype(_impl_.client_status_){nullptr}
7641 , decltype(_impl_.last_automatic_start_timestamp_){}
7642 , decltype(_impl_.last_update_check_timestamp_){}
7643 , decltype(_impl_.is_system_install_){}};
7644
7645 _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
7646 if (from._internal_has_google_update_status()) {
7647 _this->_impl_.google_update_status_ = new ::metrics::SystemProfileProto_GoogleUpdate_ProductInfo(*from._impl_.google_update_status_);
7648 }
7649 if (from._internal_has_client_status()) {
7650 _this->_impl_.client_status_ = new ::metrics::SystemProfileProto_GoogleUpdate_ProductInfo(*from._impl_.client_status_);
7651 }
7652 ::memcpy(&_impl_.last_automatic_start_timestamp_, &from._impl_.last_automatic_start_timestamp_,
7653 static_cast<size_t>(reinterpret_cast<char*>(&_impl_.is_system_install_) -
7654 reinterpret_cast<char*>(&_impl_.last_automatic_start_timestamp_)) + sizeof(_impl_.is_system_install_));
7655 // @@protoc_insertion_point(copy_constructor:metrics.SystemProfileProto.GoogleUpdate)
7656 }
7657
SharedCtor(::_pb::Arena * arena,bool is_message_owned)7658 inline void SystemProfileProto_GoogleUpdate::SharedCtor(
7659 ::_pb::Arena* arena, bool is_message_owned) {
7660 (void)arena;
7661 (void)is_message_owned;
7662 new (&_impl_) Impl_{
7663 decltype(_impl_._has_bits_){}
7664 , /*decltype(_impl_._cached_size_)*/{}
7665 , decltype(_impl_.google_update_status_){nullptr}
7666 , decltype(_impl_.client_status_){nullptr}
7667 , decltype(_impl_.last_automatic_start_timestamp_){int64_t{0}}
7668 , decltype(_impl_.last_update_check_timestamp_){int64_t{0}}
7669 , decltype(_impl_.is_system_install_){false}
7670 };
7671 }
7672
~SystemProfileProto_GoogleUpdate()7673 SystemProfileProto_GoogleUpdate::~SystemProfileProto_GoogleUpdate() {
7674 // @@protoc_insertion_point(destructor:metrics.SystemProfileProto.GoogleUpdate)
7675 if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
7676 (void)arena;
7677 return;
7678 }
7679 SharedDtor();
7680 }
7681
SharedDtor()7682 inline void SystemProfileProto_GoogleUpdate::SharedDtor() {
7683 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
7684 if (this != internal_default_instance()) delete _impl_.google_update_status_;
7685 if (this != internal_default_instance()) delete _impl_.client_status_;
7686 }
7687
SetCachedSize(int size) const7688 void SystemProfileProto_GoogleUpdate::SetCachedSize(int size) const {
7689 _impl_._cached_size_.Set(size);
7690 }
7691
Clear()7692 void SystemProfileProto_GoogleUpdate::Clear() {
7693 // @@protoc_insertion_point(message_clear_start:metrics.SystemProfileProto.GoogleUpdate)
7694 uint32_t cached_has_bits = 0;
7695 // Prevent compiler warnings about cached_has_bits being unused
7696 (void) cached_has_bits;
7697
7698 cached_has_bits = _impl_._has_bits_[0];
7699 if (cached_has_bits & 0x00000003u) {
7700 if (cached_has_bits & 0x00000001u) {
7701 GOOGLE_DCHECK(_impl_.google_update_status_ != nullptr);
7702 _impl_.google_update_status_->Clear();
7703 }
7704 if (cached_has_bits & 0x00000002u) {
7705 GOOGLE_DCHECK(_impl_.client_status_ != nullptr);
7706 _impl_.client_status_->Clear();
7707 }
7708 }
7709 if (cached_has_bits & 0x0000001cu) {
7710 ::memset(&_impl_.last_automatic_start_timestamp_, 0, static_cast<size_t>(
7711 reinterpret_cast<char*>(&_impl_.is_system_install_) -
7712 reinterpret_cast<char*>(&_impl_.last_automatic_start_timestamp_)) + sizeof(_impl_.is_system_install_));
7713 }
7714 _impl_._has_bits_.Clear();
7715 _internal_metadata_.Clear<std::string>();
7716 }
7717
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)7718 const char* SystemProfileProto_GoogleUpdate::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
7719 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
7720 _Internal::HasBits has_bits{};
7721 while (!ctx->Done(&ptr)) {
7722 uint32_t tag;
7723 ptr = ::_pbi::ReadTag(ptr, &tag);
7724 switch (tag >> 3) {
7725 // optional bool is_system_install = 1;
7726 case 1:
7727 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
7728 _Internal::set_has_is_system_install(&has_bits);
7729 _impl_.is_system_install_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
7730 CHK_(ptr);
7731 } else
7732 goto handle_unusual;
7733 continue;
7734 // optional int64 last_automatic_start_timestamp = 2;
7735 case 2:
7736 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
7737 _Internal::set_has_last_automatic_start_timestamp(&has_bits);
7738 _impl_.last_automatic_start_timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
7739 CHK_(ptr);
7740 } else
7741 goto handle_unusual;
7742 continue;
7743 // optional int64 last_update_check_timestamp = 3;
7744 case 3:
7745 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
7746 _Internal::set_has_last_update_check_timestamp(&has_bits);
7747 _impl_.last_update_check_timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
7748 CHK_(ptr);
7749 } else
7750 goto handle_unusual;
7751 continue;
7752 // optional .metrics.SystemProfileProto.GoogleUpdate.ProductInfo google_update_status = 4;
7753 case 4:
7754 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
7755 ptr = ctx->ParseMessage(_internal_mutable_google_update_status(), ptr);
7756 CHK_(ptr);
7757 } else
7758 goto handle_unusual;
7759 continue;
7760 // optional .metrics.SystemProfileProto.GoogleUpdate.ProductInfo client_status = 5;
7761 case 5:
7762 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) {
7763 ptr = ctx->ParseMessage(_internal_mutable_client_status(), ptr);
7764 CHK_(ptr);
7765 } else
7766 goto handle_unusual;
7767 continue;
7768 default:
7769 goto handle_unusual;
7770 } // switch
7771 handle_unusual:
7772 if ((tag == 0) || ((tag & 7) == 4)) {
7773 CHK_(ptr);
7774 ctx->SetLastTag(tag);
7775 goto message_done;
7776 }
7777 ptr = UnknownFieldParse(
7778 tag,
7779 _internal_metadata_.mutable_unknown_fields<std::string>(),
7780 ptr, ctx);
7781 CHK_(ptr != nullptr);
7782 } // while
7783 message_done:
7784 _impl_._has_bits_.Or(has_bits);
7785 return ptr;
7786 failure:
7787 ptr = nullptr;
7788 goto message_done;
7789 #undef CHK_
7790 }
7791
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const7792 uint8_t* SystemProfileProto_GoogleUpdate::_InternalSerialize(
7793 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
7794 // @@protoc_insertion_point(serialize_to_array_start:metrics.SystemProfileProto.GoogleUpdate)
7795 uint32_t cached_has_bits = 0;
7796 (void) cached_has_bits;
7797
7798 cached_has_bits = _impl_._has_bits_[0];
7799 // optional bool is_system_install = 1;
7800 if (cached_has_bits & 0x00000010u) {
7801 target = stream->EnsureSpace(target);
7802 target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_is_system_install(), target);
7803 }
7804
7805 // optional int64 last_automatic_start_timestamp = 2;
7806 if (cached_has_bits & 0x00000004u) {
7807 target = stream->EnsureSpace(target);
7808 target = ::_pbi::WireFormatLite::WriteInt64ToArray(2, this->_internal_last_automatic_start_timestamp(), target);
7809 }
7810
7811 // optional int64 last_update_check_timestamp = 3;
7812 if (cached_has_bits & 0x00000008u) {
7813 target = stream->EnsureSpace(target);
7814 target = ::_pbi::WireFormatLite::WriteInt64ToArray(3, this->_internal_last_update_check_timestamp(), target);
7815 }
7816
7817 // optional .metrics.SystemProfileProto.GoogleUpdate.ProductInfo google_update_status = 4;
7818 if (cached_has_bits & 0x00000001u) {
7819 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
7820 InternalWriteMessage(4, _Internal::google_update_status(this),
7821 _Internal::google_update_status(this).GetCachedSize(), target, stream);
7822 }
7823
7824 // optional .metrics.SystemProfileProto.GoogleUpdate.ProductInfo client_status = 5;
7825 if (cached_has_bits & 0x00000002u) {
7826 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
7827 InternalWriteMessage(5, _Internal::client_status(this),
7828 _Internal::client_status(this).GetCachedSize(), target, stream);
7829 }
7830
7831 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
7832 target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
7833 static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
7834 }
7835 // @@protoc_insertion_point(serialize_to_array_end:metrics.SystemProfileProto.GoogleUpdate)
7836 return target;
7837 }
7838
ByteSizeLong() const7839 size_t SystemProfileProto_GoogleUpdate::ByteSizeLong() const {
7840 // @@protoc_insertion_point(message_byte_size_start:metrics.SystemProfileProto.GoogleUpdate)
7841 size_t total_size = 0;
7842
7843 uint32_t cached_has_bits = 0;
7844 // Prevent compiler warnings about cached_has_bits being unused
7845 (void) cached_has_bits;
7846
7847 cached_has_bits = _impl_._has_bits_[0];
7848 if (cached_has_bits & 0x0000001fu) {
7849 // optional .metrics.SystemProfileProto.GoogleUpdate.ProductInfo google_update_status = 4;
7850 if (cached_has_bits & 0x00000001u) {
7851 total_size += 1 +
7852 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
7853 *_impl_.google_update_status_);
7854 }
7855
7856 // optional .metrics.SystemProfileProto.GoogleUpdate.ProductInfo client_status = 5;
7857 if (cached_has_bits & 0x00000002u) {
7858 total_size += 1 +
7859 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
7860 *_impl_.client_status_);
7861 }
7862
7863 // optional int64 last_automatic_start_timestamp = 2;
7864 if (cached_has_bits & 0x00000004u) {
7865 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_last_automatic_start_timestamp());
7866 }
7867
7868 // optional int64 last_update_check_timestamp = 3;
7869 if (cached_has_bits & 0x00000008u) {
7870 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_last_update_check_timestamp());
7871 }
7872
7873 // optional bool is_system_install = 1;
7874 if (cached_has_bits & 0x00000010u) {
7875 total_size += 1 + 1;
7876 }
7877
7878 }
7879 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
7880 total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
7881 }
7882 int cached_size = ::_pbi::ToCachedSize(total_size);
7883 SetCachedSize(cached_size);
7884 return total_size;
7885 }
7886
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)7887 void SystemProfileProto_GoogleUpdate::CheckTypeAndMergeFrom(
7888 const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
7889 MergeFrom(*::_pbi::DownCast<const SystemProfileProto_GoogleUpdate*>(
7890 &from));
7891 }
7892
MergeFrom(const SystemProfileProto_GoogleUpdate & from)7893 void SystemProfileProto_GoogleUpdate::MergeFrom(const SystemProfileProto_GoogleUpdate& from) {
7894 SystemProfileProto_GoogleUpdate* const _this = this;
7895 // @@protoc_insertion_point(class_specific_merge_from_start:metrics.SystemProfileProto.GoogleUpdate)
7896 GOOGLE_DCHECK_NE(&from, _this);
7897 uint32_t cached_has_bits = 0;
7898 (void) cached_has_bits;
7899
7900 cached_has_bits = from._impl_._has_bits_[0];
7901 if (cached_has_bits & 0x0000001fu) {
7902 if (cached_has_bits & 0x00000001u) {
7903 _this->_internal_mutable_google_update_status()->::metrics::SystemProfileProto_GoogleUpdate_ProductInfo::MergeFrom(
7904 from._internal_google_update_status());
7905 }
7906 if (cached_has_bits & 0x00000002u) {
7907 _this->_internal_mutable_client_status()->::metrics::SystemProfileProto_GoogleUpdate_ProductInfo::MergeFrom(
7908 from._internal_client_status());
7909 }
7910 if (cached_has_bits & 0x00000004u) {
7911 _this->_impl_.last_automatic_start_timestamp_ = from._impl_.last_automatic_start_timestamp_;
7912 }
7913 if (cached_has_bits & 0x00000008u) {
7914 _this->_impl_.last_update_check_timestamp_ = from._impl_.last_update_check_timestamp_;
7915 }
7916 if (cached_has_bits & 0x00000010u) {
7917 _this->_impl_.is_system_install_ = from._impl_.is_system_install_;
7918 }
7919 _this->_impl_._has_bits_[0] |= cached_has_bits;
7920 }
7921 _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
7922 }
7923
CopyFrom(const SystemProfileProto_GoogleUpdate & from)7924 void SystemProfileProto_GoogleUpdate::CopyFrom(const SystemProfileProto_GoogleUpdate& from) {
7925 // @@protoc_insertion_point(class_specific_copy_from_start:metrics.SystemProfileProto.GoogleUpdate)
7926 if (&from == this) return;
7927 Clear();
7928 MergeFrom(from);
7929 }
7930
IsInitialized() const7931 bool SystemProfileProto_GoogleUpdate::IsInitialized() const {
7932 return true;
7933 }
7934
InternalSwap(SystemProfileProto_GoogleUpdate * other)7935 void SystemProfileProto_GoogleUpdate::InternalSwap(SystemProfileProto_GoogleUpdate* other) {
7936 using std::swap;
7937 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
7938 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
7939 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
7940 PROTOBUF_FIELD_OFFSET(SystemProfileProto_GoogleUpdate, _impl_.is_system_install_)
7941 + sizeof(SystemProfileProto_GoogleUpdate::_impl_.is_system_install_)
7942 - PROTOBUF_FIELD_OFFSET(SystemProfileProto_GoogleUpdate, _impl_.google_update_status_)>(
7943 reinterpret_cast<char*>(&_impl_.google_update_status_),
7944 reinterpret_cast<char*>(&other->_impl_.google_update_status_));
7945 }
7946
GetTypeName() const7947 std::string SystemProfileProto_GoogleUpdate::GetTypeName() const {
7948 return "metrics.SystemProfileProto.GoogleUpdate";
7949 }
7950
7951
7952 // ===================================================================
7953
7954 class SystemProfileProto_Stability::_Internal {
7955 public:
7956 using HasBits = decltype(std::declval<SystemProfileProto_Stability>()._impl_._has_bits_);
set_has_incremental_uptime_sec(HasBits * has_bits)7957 static void set_has_incremental_uptime_sec(HasBits* has_bits) {
7958 (*has_bits)[0] |= 1u;
7959 }
set_has_uptime_sec(HasBits * has_bits)7960 static void set_has_uptime_sec(HasBits* has_bits) {
7961 (*has_bits)[0] |= 128u;
7962 }
set_has_page_load_count(HasBits * has_bits)7963 static void set_has_page_load_count(HasBits* has_bits) {
7964 (*has_bits)[0] |= 2u;
7965 }
set_has_renderer_launch_count(HasBits * has_bits)7966 static void set_has_renderer_launch_count(HasBits* has_bits) {
7967 (*has_bits)[0] |= 64u;
7968 }
set_has_other_user_crash_count(HasBits * has_bits)7969 static void set_has_other_user_crash_count(HasBits* has_bits) {
7970 (*has_bits)[0] |= 4u;
7971 }
set_has_kernel_crash_count(HasBits * has_bits)7972 static void set_has_kernel_crash_count(HasBits* has_bits) {
7973 (*has_bits)[0] |= 8u;
7974 }
set_has_unclean_system_shutdown_count(HasBits * has_bits)7975 static void set_has_unclean_system_shutdown_count(HasBits* has_bits) {
7976 (*has_bits)[0] |= 16u;
7977 }
set_has_launch_count(HasBits * has_bits)7978 static void set_has_launch_count(HasBits* has_bits) {
7979 (*has_bits)[0] |= 32u;
7980 }
set_has_crash_count_due_to_gms_core_update(HasBits * has_bits)7981 static void set_has_crash_count_due_to_gms_core_update(HasBits* has_bits) {
7982 (*has_bits)[0] |= 512u;
7983 }
set_has_from_previous_run(HasBits * has_bits)7984 static void set_has_from_previous_run(HasBits* has_bits) {
7985 (*has_bits)[0] |= 256u;
7986 }
7987 };
7988
SystemProfileProto_Stability(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)7989 SystemProfileProto_Stability::SystemProfileProto_Stability(::PROTOBUF_NAMESPACE_ID::Arena* arena,
7990 bool is_message_owned)
7991 : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
7992 SharedCtor(arena, is_message_owned);
7993 // @@protoc_insertion_point(arena_constructor:metrics.SystemProfileProto.Stability)
7994 }
SystemProfileProto_Stability(const SystemProfileProto_Stability & from)7995 SystemProfileProto_Stability::SystemProfileProto_Stability(const SystemProfileProto_Stability& from)
7996 : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
7997 SystemProfileProto_Stability* const _this = this; (void)_this;
7998 new (&_impl_) Impl_{
7999 decltype(_impl_._has_bits_){from._impl_._has_bits_}
8000 , /*decltype(_impl_._cached_size_)*/{}
8001 , decltype(_impl_.incremental_uptime_sec_){}
8002 , decltype(_impl_.page_load_count_){}
8003 , decltype(_impl_.other_user_crash_count_){}
8004 , decltype(_impl_.kernel_crash_count_){}
8005 , decltype(_impl_.unclean_system_shutdown_count_){}
8006 , decltype(_impl_.launch_count_){}
8007 , decltype(_impl_.renderer_launch_count_){}
8008 , decltype(_impl_.uptime_sec_){}
8009 , decltype(_impl_.from_previous_run_){}
8010 , decltype(_impl_.crash_count_due_to_gms_core_update_){}};
8011
8012 _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
8013 ::memcpy(&_impl_.incremental_uptime_sec_, &from._impl_.incremental_uptime_sec_,
8014 static_cast<size_t>(reinterpret_cast<char*>(&_impl_.crash_count_due_to_gms_core_update_) -
8015 reinterpret_cast<char*>(&_impl_.incremental_uptime_sec_)) + sizeof(_impl_.crash_count_due_to_gms_core_update_));
8016 // @@protoc_insertion_point(copy_constructor:metrics.SystemProfileProto.Stability)
8017 }
8018
SharedCtor(::_pb::Arena * arena,bool is_message_owned)8019 inline void SystemProfileProto_Stability::SharedCtor(
8020 ::_pb::Arena* arena, bool is_message_owned) {
8021 (void)arena;
8022 (void)is_message_owned;
8023 new (&_impl_) Impl_{
8024 decltype(_impl_._has_bits_){}
8025 , /*decltype(_impl_._cached_size_)*/{}
8026 , decltype(_impl_.incremental_uptime_sec_){int64_t{0}}
8027 , decltype(_impl_.page_load_count_){0}
8028 , decltype(_impl_.other_user_crash_count_){0}
8029 , decltype(_impl_.kernel_crash_count_){0}
8030 , decltype(_impl_.unclean_system_shutdown_count_){0}
8031 , decltype(_impl_.launch_count_){0}
8032 , decltype(_impl_.renderer_launch_count_){0}
8033 , decltype(_impl_.uptime_sec_){int64_t{0}}
8034 , decltype(_impl_.from_previous_run_){false}
8035 , decltype(_impl_.crash_count_due_to_gms_core_update_){0}
8036 };
8037 }
8038
~SystemProfileProto_Stability()8039 SystemProfileProto_Stability::~SystemProfileProto_Stability() {
8040 // @@protoc_insertion_point(destructor:metrics.SystemProfileProto.Stability)
8041 if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
8042 (void)arena;
8043 return;
8044 }
8045 SharedDtor();
8046 }
8047
SharedDtor()8048 inline void SystemProfileProto_Stability::SharedDtor() {
8049 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
8050 }
8051
SetCachedSize(int size) const8052 void SystemProfileProto_Stability::SetCachedSize(int size) const {
8053 _impl_._cached_size_.Set(size);
8054 }
8055
Clear()8056 void SystemProfileProto_Stability::Clear() {
8057 // @@protoc_insertion_point(message_clear_start:metrics.SystemProfileProto.Stability)
8058 uint32_t cached_has_bits = 0;
8059 // Prevent compiler warnings about cached_has_bits being unused
8060 (void) cached_has_bits;
8061
8062 cached_has_bits = _impl_._has_bits_[0];
8063 if (cached_has_bits & 0x000000ffu) {
8064 ::memset(&_impl_.incremental_uptime_sec_, 0, static_cast<size_t>(
8065 reinterpret_cast<char*>(&_impl_.uptime_sec_) -
8066 reinterpret_cast<char*>(&_impl_.incremental_uptime_sec_)) + sizeof(_impl_.uptime_sec_));
8067 }
8068 if (cached_has_bits & 0x00000300u) {
8069 ::memset(&_impl_.from_previous_run_, 0, static_cast<size_t>(
8070 reinterpret_cast<char*>(&_impl_.crash_count_due_to_gms_core_update_) -
8071 reinterpret_cast<char*>(&_impl_.from_previous_run_)) + sizeof(_impl_.crash_count_due_to_gms_core_update_));
8072 }
8073 _impl_._has_bits_.Clear();
8074 _internal_metadata_.Clear<std::string>();
8075 }
8076
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)8077 const char* SystemProfileProto_Stability::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
8078 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
8079 _Internal::HasBits has_bits{};
8080 while (!ctx->Done(&ptr)) {
8081 uint32_t tag;
8082 ptr = ::_pbi::ReadTag(ptr, &tag);
8083 switch (tag >> 3) {
8084 // optional int64 incremental_uptime_sec = 1;
8085 case 1:
8086 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
8087 _Internal::set_has_incremental_uptime_sec(&has_bits);
8088 _impl_.incremental_uptime_sec_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
8089 CHK_(ptr);
8090 } else
8091 goto handle_unusual;
8092 continue;
8093 // optional int32 page_load_count = 2;
8094 case 2:
8095 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
8096 _Internal::set_has_page_load_count(&has_bits);
8097 _impl_.page_load_count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
8098 CHK_(ptr);
8099 } else
8100 goto handle_unusual;
8101 continue;
8102 // optional int32 other_user_crash_count = 7;
8103 case 7:
8104 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) {
8105 _Internal::set_has_other_user_crash_count(&has_bits);
8106 _impl_.other_user_crash_count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
8107 CHK_(ptr);
8108 } else
8109 goto handle_unusual;
8110 continue;
8111 // optional int32 kernel_crash_count = 8;
8112 case 8:
8113 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 64)) {
8114 _Internal::set_has_kernel_crash_count(&has_bits);
8115 _impl_.kernel_crash_count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
8116 CHK_(ptr);
8117 } else
8118 goto handle_unusual;
8119 continue;
8120 // optional int32 unclean_system_shutdown_count = 9;
8121 case 9:
8122 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 72)) {
8123 _Internal::set_has_unclean_system_shutdown_count(&has_bits);
8124 _impl_.unclean_system_shutdown_count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
8125 CHK_(ptr);
8126 } else
8127 goto handle_unusual;
8128 continue;
8129 // optional int32 launch_count = 15;
8130 case 15:
8131 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 120)) {
8132 _Internal::set_has_launch_count(&has_bits);
8133 _impl_.launch_count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
8134 CHK_(ptr);
8135 } else
8136 goto handle_unusual;
8137 continue;
8138 // optional int64 uptime_sec = 23;
8139 case 23:
8140 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 184)) {
8141 _Internal::set_has_uptime_sec(&has_bits);
8142 _impl_.uptime_sec_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
8143 CHK_(ptr);
8144 } else
8145 goto handle_unusual;
8146 continue;
8147 // optional int32 renderer_launch_count = 26;
8148 case 26:
8149 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 208)) {
8150 _Internal::set_has_renderer_launch_count(&has_bits);
8151 _impl_.renderer_launch_count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
8152 CHK_(ptr);
8153 } else
8154 goto handle_unusual;
8155 continue;
8156 // optional bool from_previous_run = 29;
8157 case 29:
8158 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 232)) {
8159 _Internal::set_has_from_previous_run(&has_bits);
8160 _impl_.from_previous_run_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
8161 CHK_(ptr);
8162 } else
8163 goto handle_unusual;
8164 continue;
8165 // optional int32 crash_count_due_to_gms_core_update = 30;
8166 case 30:
8167 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 240)) {
8168 _Internal::set_has_crash_count_due_to_gms_core_update(&has_bits);
8169 _impl_.crash_count_due_to_gms_core_update_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
8170 CHK_(ptr);
8171 } else
8172 goto handle_unusual;
8173 continue;
8174 default:
8175 goto handle_unusual;
8176 } // switch
8177 handle_unusual:
8178 if ((tag == 0) || ((tag & 7) == 4)) {
8179 CHK_(ptr);
8180 ctx->SetLastTag(tag);
8181 goto message_done;
8182 }
8183 ptr = UnknownFieldParse(
8184 tag,
8185 _internal_metadata_.mutable_unknown_fields<std::string>(),
8186 ptr, ctx);
8187 CHK_(ptr != nullptr);
8188 } // while
8189 message_done:
8190 _impl_._has_bits_.Or(has_bits);
8191 return ptr;
8192 failure:
8193 ptr = nullptr;
8194 goto message_done;
8195 #undef CHK_
8196 }
8197
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const8198 uint8_t* SystemProfileProto_Stability::_InternalSerialize(
8199 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
8200 // @@protoc_insertion_point(serialize_to_array_start:metrics.SystemProfileProto.Stability)
8201 uint32_t cached_has_bits = 0;
8202 (void) cached_has_bits;
8203
8204 cached_has_bits = _impl_._has_bits_[0];
8205 // optional int64 incremental_uptime_sec = 1;
8206 if (cached_has_bits & 0x00000001u) {
8207 target = stream->EnsureSpace(target);
8208 target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_incremental_uptime_sec(), target);
8209 }
8210
8211 // optional int32 page_load_count = 2;
8212 if (cached_has_bits & 0x00000002u) {
8213 target = stream->EnsureSpace(target);
8214 target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_page_load_count(), target);
8215 }
8216
8217 // optional int32 other_user_crash_count = 7;
8218 if (cached_has_bits & 0x00000004u) {
8219 target = stream->EnsureSpace(target);
8220 target = ::_pbi::WireFormatLite::WriteInt32ToArray(7, this->_internal_other_user_crash_count(), target);
8221 }
8222
8223 // optional int32 kernel_crash_count = 8;
8224 if (cached_has_bits & 0x00000008u) {
8225 target = stream->EnsureSpace(target);
8226 target = ::_pbi::WireFormatLite::WriteInt32ToArray(8, this->_internal_kernel_crash_count(), target);
8227 }
8228
8229 // optional int32 unclean_system_shutdown_count = 9;
8230 if (cached_has_bits & 0x00000010u) {
8231 target = stream->EnsureSpace(target);
8232 target = ::_pbi::WireFormatLite::WriteInt32ToArray(9, this->_internal_unclean_system_shutdown_count(), target);
8233 }
8234
8235 // optional int32 launch_count = 15;
8236 if (cached_has_bits & 0x00000020u) {
8237 target = stream->EnsureSpace(target);
8238 target = ::_pbi::WireFormatLite::WriteInt32ToArray(15, this->_internal_launch_count(), target);
8239 }
8240
8241 // optional int64 uptime_sec = 23;
8242 if (cached_has_bits & 0x00000080u) {
8243 target = stream->EnsureSpace(target);
8244 target = ::_pbi::WireFormatLite::WriteInt64ToArray(23, this->_internal_uptime_sec(), target);
8245 }
8246
8247 // optional int32 renderer_launch_count = 26;
8248 if (cached_has_bits & 0x00000040u) {
8249 target = stream->EnsureSpace(target);
8250 target = ::_pbi::WireFormatLite::WriteInt32ToArray(26, this->_internal_renderer_launch_count(), target);
8251 }
8252
8253 // optional bool from_previous_run = 29;
8254 if (cached_has_bits & 0x00000100u) {
8255 target = stream->EnsureSpace(target);
8256 target = ::_pbi::WireFormatLite::WriteBoolToArray(29, this->_internal_from_previous_run(), target);
8257 }
8258
8259 // optional int32 crash_count_due_to_gms_core_update = 30;
8260 if (cached_has_bits & 0x00000200u) {
8261 target = stream->EnsureSpace(target);
8262 target = ::_pbi::WireFormatLite::WriteInt32ToArray(30, this->_internal_crash_count_due_to_gms_core_update(), target);
8263 }
8264
8265 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
8266 target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
8267 static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
8268 }
8269 // @@protoc_insertion_point(serialize_to_array_end:metrics.SystemProfileProto.Stability)
8270 return target;
8271 }
8272
ByteSizeLong() const8273 size_t SystemProfileProto_Stability::ByteSizeLong() const {
8274 // @@protoc_insertion_point(message_byte_size_start:metrics.SystemProfileProto.Stability)
8275 size_t total_size = 0;
8276
8277 uint32_t cached_has_bits = 0;
8278 // Prevent compiler warnings about cached_has_bits being unused
8279 (void) cached_has_bits;
8280
8281 cached_has_bits = _impl_._has_bits_[0];
8282 if (cached_has_bits & 0x000000ffu) {
8283 // optional int64 incremental_uptime_sec = 1;
8284 if (cached_has_bits & 0x00000001u) {
8285 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_incremental_uptime_sec());
8286 }
8287
8288 // optional int32 page_load_count = 2;
8289 if (cached_has_bits & 0x00000002u) {
8290 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_page_load_count());
8291 }
8292
8293 // optional int32 other_user_crash_count = 7;
8294 if (cached_has_bits & 0x00000004u) {
8295 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_other_user_crash_count());
8296 }
8297
8298 // optional int32 kernel_crash_count = 8;
8299 if (cached_has_bits & 0x00000008u) {
8300 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_kernel_crash_count());
8301 }
8302
8303 // optional int32 unclean_system_shutdown_count = 9;
8304 if (cached_has_bits & 0x00000010u) {
8305 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_unclean_system_shutdown_count());
8306 }
8307
8308 // optional int32 launch_count = 15;
8309 if (cached_has_bits & 0x00000020u) {
8310 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_launch_count());
8311 }
8312
8313 // optional int32 renderer_launch_count = 26;
8314 if (cached_has_bits & 0x00000040u) {
8315 total_size += 2 +
8316 ::_pbi::WireFormatLite::Int32Size(
8317 this->_internal_renderer_launch_count());
8318 }
8319
8320 // optional int64 uptime_sec = 23;
8321 if (cached_has_bits & 0x00000080u) {
8322 total_size += 2 +
8323 ::_pbi::WireFormatLite::Int64Size(
8324 this->_internal_uptime_sec());
8325 }
8326
8327 }
8328 if (cached_has_bits & 0x00000300u) {
8329 // optional bool from_previous_run = 29;
8330 if (cached_has_bits & 0x00000100u) {
8331 total_size += 2 + 1;
8332 }
8333
8334 // optional int32 crash_count_due_to_gms_core_update = 30;
8335 if (cached_has_bits & 0x00000200u) {
8336 total_size += 2 +
8337 ::_pbi::WireFormatLite::Int32Size(
8338 this->_internal_crash_count_due_to_gms_core_update());
8339 }
8340
8341 }
8342 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
8343 total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
8344 }
8345 int cached_size = ::_pbi::ToCachedSize(total_size);
8346 SetCachedSize(cached_size);
8347 return total_size;
8348 }
8349
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)8350 void SystemProfileProto_Stability::CheckTypeAndMergeFrom(
8351 const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
8352 MergeFrom(*::_pbi::DownCast<const SystemProfileProto_Stability*>(
8353 &from));
8354 }
8355
MergeFrom(const SystemProfileProto_Stability & from)8356 void SystemProfileProto_Stability::MergeFrom(const SystemProfileProto_Stability& from) {
8357 SystemProfileProto_Stability* const _this = this;
8358 // @@protoc_insertion_point(class_specific_merge_from_start:metrics.SystemProfileProto.Stability)
8359 GOOGLE_DCHECK_NE(&from, _this);
8360 uint32_t cached_has_bits = 0;
8361 (void) cached_has_bits;
8362
8363 cached_has_bits = from._impl_._has_bits_[0];
8364 if (cached_has_bits & 0x000000ffu) {
8365 if (cached_has_bits & 0x00000001u) {
8366 _this->_impl_.incremental_uptime_sec_ = from._impl_.incremental_uptime_sec_;
8367 }
8368 if (cached_has_bits & 0x00000002u) {
8369 _this->_impl_.page_load_count_ = from._impl_.page_load_count_;
8370 }
8371 if (cached_has_bits & 0x00000004u) {
8372 _this->_impl_.other_user_crash_count_ = from._impl_.other_user_crash_count_;
8373 }
8374 if (cached_has_bits & 0x00000008u) {
8375 _this->_impl_.kernel_crash_count_ = from._impl_.kernel_crash_count_;
8376 }
8377 if (cached_has_bits & 0x00000010u) {
8378 _this->_impl_.unclean_system_shutdown_count_ = from._impl_.unclean_system_shutdown_count_;
8379 }
8380 if (cached_has_bits & 0x00000020u) {
8381 _this->_impl_.launch_count_ = from._impl_.launch_count_;
8382 }
8383 if (cached_has_bits & 0x00000040u) {
8384 _this->_impl_.renderer_launch_count_ = from._impl_.renderer_launch_count_;
8385 }
8386 if (cached_has_bits & 0x00000080u) {
8387 _this->_impl_.uptime_sec_ = from._impl_.uptime_sec_;
8388 }
8389 _this->_impl_._has_bits_[0] |= cached_has_bits;
8390 }
8391 if (cached_has_bits & 0x00000300u) {
8392 if (cached_has_bits & 0x00000100u) {
8393 _this->_impl_.from_previous_run_ = from._impl_.from_previous_run_;
8394 }
8395 if (cached_has_bits & 0x00000200u) {
8396 _this->_impl_.crash_count_due_to_gms_core_update_ = from._impl_.crash_count_due_to_gms_core_update_;
8397 }
8398 _this->_impl_._has_bits_[0] |= cached_has_bits;
8399 }
8400 _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
8401 }
8402
CopyFrom(const SystemProfileProto_Stability & from)8403 void SystemProfileProto_Stability::CopyFrom(const SystemProfileProto_Stability& from) {
8404 // @@protoc_insertion_point(class_specific_copy_from_start:metrics.SystemProfileProto.Stability)
8405 if (&from == this) return;
8406 Clear();
8407 MergeFrom(from);
8408 }
8409
IsInitialized() const8410 bool SystemProfileProto_Stability::IsInitialized() const {
8411 return true;
8412 }
8413
InternalSwap(SystemProfileProto_Stability * other)8414 void SystemProfileProto_Stability::InternalSwap(SystemProfileProto_Stability* other) {
8415 using std::swap;
8416 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
8417 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
8418 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
8419 PROTOBUF_FIELD_OFFSET(SystemProfileProto_Stability, _impl_.crash_count_due_to_gms_core_update_)
8420 + sizeof(SystemProfileProto_Stability::_impl_.crash_count_due_to_gms_core_update_)
8421 - PROTOBUF_FIELD_OFFSET(SystemProfileProto_Stability, _impl_.incremental_uptime_sec_)>(
8422 reinterpret_cast<char*>(&_impl_.incremental_uptime_sec_),
8423 reinterpret_cast<char*>(&other->_impl_.incremental_uptime_sec_));
8424 }
8425
GetTypeName() const8426 std::string SystemProfileProto_Stability::GetTypeName() const {
8427 return "metrics.SystemProfileProto.Stability";
8428 }
8429
8430
8431 // ===================================================================
8432
8433 class SystemProfileProto_FieldTrial::_Internal {
8434 public:
8435 using HasBits = decltype(std::declval<SystemProfileProto_FieldTrial>()._impl_._has_bits_);
set_has_name_id(HasBits * has_bits)8436 static void set_has_name_id(HasBits* has_bits) {
8437 (*has_bits)[0] |= 1u;
8438 }
set_has_group_id(HasBits * has_bits)8439 static void set_has_group_id(HasBits* has_bits) {
8440 (*has_bits)[0] |= 2u;
8441 }
8442 };
8443
SystemProfileProto_FieldTrial(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)8444 SystemProfileProto_FieldTrial::SystemProfileProto_FieldTrial(::PROTOBUF_NAMESPACE_ID::Arena* arena,
8445 bool is_message_owned)
8446 : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
8447 SharedCtor(arena, is_message_owned);
8448 // @@protoc_insertion_point(arena_constructor:metrics.SystemProfileProto.FieldTrial)
8449 }
SystemProfileProto_FieldTrial(const SystemProfileProto_FieldTrial & from)8450 SystemProfileProto_FieldTrial::SystemProfileProto_FieldTrial(const SystemProfileProto_FieldTrial& from)
8451 : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
8452 SystemProfileProto_FieldTrial* const _this = this; (void)_this;
8453 new (&_impl_) Impl_{
8454 decltype(_impl_._has_bits_){from._impl_._has_bits_}
8455 , /*decltype(_impl_._cached_size_)*/{}
8456 , decltype(_impl_.name_id_){}
8457 , decltype(_impl_.group_id_){}};
8458
8459 _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
8460 ::memcpy(&_impl_.name_id_, &from._impl_.name_id_,
8461 static_cast<size_t>(reinterpret_cast<char*>(&_impl_.group_id_) -
8462 reinterpret_cast<char*>(&_impl_.name_id_)) + sizeof(_impl_.group_id_));
8463 // @@protoc_insertion_point(copy_constructor:metrics.SystemProfileProto.FieldTrial)
8464 }
8465
SharedCtor(::_pb::Arena * arena,bool is_message_owned)8466 inline void SystemProfileProto_FieldTrial::SharedCtor(
8467 ::_pb::Arena* arena, bool is_message_owned) {
8468 (void)arena;
8469 (void)is_message_owned;
8470 new (&_impl_) Impl_{
8471 decltype(_impl_._has_bits_){}
8472 , /*decltype(_impl_._cached_size_)*/{}
8473 , decltype(_impl_.name_id_){0u}
8474 , decltype(_impl_.group_id_){0u}
8475 };
8476 }
8477
~SystemProfileProto_FieldTrial()8478 SystemProfileProto_FieldTrial::~SystemProfileProto_FieldTrial() {
8479 // @@protoc_insertion_point(destructor:metrics.SystemProfileProto.FieldTrial)
8480 if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
8481 (void)arena;
8482 return;
8483 }
8484 SharedDtor();
8485 }
8486
SharedDtor()8487 inline void SystemProfileProto_FieldTrial::SharedDtor() {
8488 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
8489 }
8490
SetCachedSize(int size) const8491 void SystemProfileProto_FieldTrial::SetCachedSize(int size) const {
8492 _impl_._cached_size_.Set(size);
8493 }
8494
Clear()8495 void SystemProfileProto_FieldTrial::Clear() {
8496 // @@protoc_insertion_point(message_clear_start:metrics.SystemProfileProto.FieldTrial)
8497 uint32_t cached_has_bits = 0;
8498 // Prevent compiler warnings about cached_has_bits being unused
8499 (void) cached_has_bits;
8500
8501 cached_has_bits = _impl_._has_bits_[0];
8502 if (cached_has_bits & 0x00000003u) {
8503 ::memset(&_impl_.name_id_, 0, static_cast<size_t>(
8504 reinterpret_cast<char*>(&_impl_.group_id_) -
8505 reinterpret_cast<char*>(&_impl_.name_id_)) + sizeof(_impl_.group_id_));
8506 }
8507 _impl_._has_bits_.Clear();
8508 _internal_metadata_.Clear<std::string>();
8509 }
8510
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)8511 const char* SystemProfileProto_FieldTrial::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
8512 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
8513 _Internal::HasBits has_bits{};
8514 while (!ctx->Done(&ptr)) {
8515 uint32_t tag;
8516 ptr = ::_pbi::ReadTag(ptr, &tag);
8517 switch (tag >> 3) {
8518 // optional fixed32 name_id = 1;
8519 case 1:
8520 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 13)) {
8521 _Internal::set_has_name_id(&has_bits);
8522 _impl_.name_id_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<uint32_t>(ptr);
8523 ptr += sizeof(uint32_t);
8524 } else
8525 goto handle_unusual;
8526 continue;
8527 // optional fixed32 group_id = 2;
8528 case 2:
8529 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 21)) {
8530 _Internal::set_has_group_id(&has_bits);
8531 _impl_.group_id_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<uint32_t>(ptr);
8532 ptr += sizeof(uint32_t);
8533 } else
8534 goto handle_unusual;
8535 continue;
8536 default:
8537 goto handle_unusual;
8538 } // switch
8539 handle_unusual:
8540 if ((tag == 0) || ((tag & 7) == 4)) {
8541 CHK_(ptr);
8542 ctx->SetLastTag(tag);
8543 goto message_done;
8544 }
8545 ptr = UnknownFieldParse(
8546 tag,
8547 _internal_metadata_.mutable_unknown_fields<std::string>(),
8548 ptr, ctx);
8549 CHK_(ptr != nullptr);
8550 } // while
8551 message_done:
8552 _impl_._has_bits_.Or(has_bits);
8553 return ptr;
8554 failure:
8555 ptr = nullptr;
8556 goto message_done;
8557 #undef CHK_
8558 }
8559
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const8560 uint8_t* SystemProfileProto_FieldTrial::_InternalSerialize(
8561 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
8562 // @@protoc_insertion_point(serialize_to_array_start:metrics.SystemProfileProto.FieldTrial)
8563 uint32_t cached_has_bits = 0;
8564 (void) cached_has_bits;
8565
8566 cached_has_bits = _impl_._has_bits_[0];
8567 // optional fixed32 name_id = 1;
8568 if (cached_has_bits & 0x00000001u) {
8569 target = stream->EnsureSpace(target);
8570 target = ::_pbi::WireFormatLite::WriteFixed32ToArray(1, this->_internal_name_id(), target);
8571 }
8572
8573 // optional fixed32 group_id = 2;
8574 if (cached_has_bits & 0x00000002u) {
8575 target = stream->EnsureSpace(target);
8576 target = ::_pbi::WireFormatLite::WriteFixed32ToArray(2, this->_internal_group_id(), target);
8577 }
8578
8579 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
8580 target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
8581 static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
8582 }
8583 // @@protoc_insertion_point(serialize_to_array_end:metrics.SystemProfileProto.FieldTrial)
8584 return target;
8585 }
8586
ByteSizeLong() const8587 size_t SystemProfileProto_FieldTrial::ByteSizeLong() const {
8588 // @@protoc_insertion_point(message_byte_size_start:metrics.SystemProfileProto.FieldTrial)
8589 size_t total_size = 0;
8590
8591 uint32_t cached_has_bits = 0;
8592 // Prevent compiler warnings about cached_has_bits being unused
8593 (void) cached_has_bits;
8594
8595 cached_has_bits = _impl_._has_bits_[0];
8596 if (cached_has_bits & 0x00000003u) {
8597 // optional fixed32 name_id = 1;
8598 if (cached_has_bits & 0x00000001u) {
8599 total_size += 1 + 4;
8600 }
8601
8602 // optional fixed32 group_id = 2;
8603 if (cached_has_bits & 0x00000002u) {
8604 total_size += 1 + 4;
8605 }
8606
8607 }
8608 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
8609 total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
8610 }
8611 int cached_size = ::_pbi::ToCachedSize(total_size);
8612 SetCachedSize(cached_size);
8613 return total_size;
8614 }
8615
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)8616 void SystemProfileProto_FieldTrial::CheckTypeAndMergeFrom(
8617 const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
8618 MergeFrom(*::_pbi::DownCast<const SystemProfileProto_FieldTrial*>(
8619 &from));
8620 }
8621
MergeFrom(const SystemProfileProto_FieldTrial & from)8622 void SystemProfileProto_FieldTrial::MergeFrom(const SystemProfileProto_FieldTrial& from) {
8623 SystemProfileProto_FieldTrial* const _this = this;
8624 // @@protoc_insertion_point(class_specific_merge_from_start:metrics.SystemProfileProto.FieldTrial)
8625 GOOGLE_DCHECK_NE(&from, _this);
8626 uint32_t cached_has_bits = 0;
8627 (void) cached_has_bits;
8628
8629 cached_has_bits = from._impl_._has_bits_[0];
8630 if (cached_has_bits & 0x00000003u) {
8631 if (cached_has_bits & 0x00000001u) {
8632 _this->_impl_.name_id_ = from._impl_.name_id_;
8633 }
8634 if (cached_has_bits & 0x00000002u) {
8635 _this->_impl_.group_id_ = from._impl_.group_id_;
8636 }
8637 _this->_impl_._has_bits_[0] |= cached_has_bits;
8638 }
8639 _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
8640 }
8641
CopyFrom(const SystemProfileProto_FieldTrial & from)8642 void SystemProfileProto_FieldTrial::CopyFrom(const SystemProfileProto_FieldTrial& from) {
8643 // @@protoc_insertion_point(class_specific_copy_from_start:metrics.SystemProfileProto.FieldTrial)
8644 if (&from == this) return;
8645 Clear();
8646 MergeFrom(from);
8647 }
8648
IsInitialized() const8649 bool SystemProfileProto_FieldTrial::IsInitialized() const {
8650 return true;
8651 }
8652
InternalSwap(SystemProfileProto_FieldTrial * other)8653 void SystemProfileProto_FieldTrial::InternalSwap(SystemProfileProto_FieldTrial* other) {
8654 using std::swap;
8655 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
8656 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
8657 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
8658 PROTOBUF_FIELD_OFFSET(SystemProfileProto_FieldTrial, _impl_.group_id_)
8659 + sizeof(SystemProfileProto_FieldTrial::_impl_.group_id_)
8660 - PROTOBUF_FIELD_OFFSET(SystemProfileProto_FieldTrial, _impl_.name_id_)>(
8661 reinterpret_cast<char*>(&_impl_.name_id_),
8662 reinterpret_cast<char*>(&other->_impl_.name_id_));
8663 }
8664
GetTypeName() const8665 std::string SystemProfileProto_FieldTrial::GetTypeName() const {
8666 return "metrics.SystemProfileProto.FieldTrial";
8667 }
8668
8669
8670 // ===================================================================
8671
8672 class SystemProfileProto_ExternalAudioVideoDevice_AudioDescription::_Internal {
8673 public:
8674 using HasBits = decltype(std::declval<SystemProfileProto_ExternalAudioVideoDevice_AudioDescription>()._impl_._has_bits_);
set_has_audio_format(HasBits * has_bits)8675 static void set_has_audio_format(HasBits* has_bits) {
8676 (*has_bits)[0] |= 1u;
8677 }
set_has_num_channels(HasBits * has_bits)8678 static void set_has_num_channels(HasBits* has_bits) {
8679 (*has_bits)[0] |= 2u;
8680 }
set_has_max_bit_rate_per_second(HasBits * has_bits)8681 static void set_has_max_bit_rate_per_second(HasBits* has_bits) {
8682 (*has_bits)[0] |= 4u;
8683 }
set_has_bit_depth(HasBits * has_bits)8684 static void set_has_bit_depth(HasBits* has_bits) {
8685 (*has_bits)[0] |= 8u;
8686 }
set_has_output_mode(HasBits * has_bits)8687 static void set_has_output_mode(HasBits* has_bits) {
8688 (*has_bits)[0] |= 16u;
8689 }
8690 };
8691
SystemProfileProto_ExternalAudioVideoDevice_AudioDescription(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)8692 SystemProfileProto_ExternalAudioVideoDevice_AudioDescription::SystemProfileProto_ExternalAudioVideoDevice_AudioDescription(::PROTOBUF_NAMESPACE_ID::Arena* arena,
8693 bool is_message_owned)
8694 : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
8695 SharedCtor(arena, is_message_owned);
8696 // @@protoc_insertion_point(arena_constructor:metrics.SystemProfileProto.ExternalAudioVideoDevice.AudioDescription)
8697 }
SystemProfileProto_ExternalAudioVideoDevice_AudioDescription(const SystemProfileProto_ExternalAudioVideoDevice_AudioDescription & from)8698 SystemProfileProto_ExternalAudioVideoDevice_AudioDescription::SystemProfileProto_ExternalAudioVideoDevice_AudioDescription(const SystemProfileProto_ExternalAudioVideoDevice_AudioDescription& from)
8699 : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
8700 SystemProfileProto_ExternalAudioVideoDevice_AudioDescription* const _this = this; (void)_this;
8701 new (&_impl_) Impl_{
8702 decltype(_impl_._has_bits_){from._impl_._has_bits_}
8703 , /*decltype(_impl_._cached_size_)*/{}
8704 , decltype(_impl_.sample_frequency_hz_){from._impl_.sample_frequency_hz_}
8705 , decltype(_impl_.audio_format_){}
8706 , decltype(_impl_.num_channels_){}
8707 , decltype(_impl_.max_bit_rate_per_second_){}
8708 , decltype(_impl_.bit_depth_){}
8709 , decltype(_impl_.output_mode_){}};
8710
8711 _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
8712 ::memcpy(&_impl_.audio_format_, &from._impl_.audio_format_,
8713 static_cast<size_t>(reinterpret_cast<char*>(&_impl_.output_mode_) -
8714 reinterpret_cast<char*>(&_impl_.audio_format_)) + sizeof(_impl_.output_mode_));
8715 // @@protoc_insertion_point(copy_constructor:metrics.SystemProfileProto.ExternalAudioVideoDevice.AudioDescription)
8716 }
8717
SharedCtor(::_pb::Arena * arena,bool is_message_owned)8718 inline void SystemProfileProto_ExternalAudioVideoDevice_AudioDescription::SharedCtor(
8719 ::_pb::Arena* arena, bool is_message_owned) {
8720 (void)arena;
8721 (void)is_message_owned;
8722 new (&_impl_) Impl_{
8723 decltype(_impl_._has_bits_){}
8724 , /*decltype(_impl_._cached_size_)*/{}
8725 , decltype(_impl_.sample_frequency_hz_){arena}
8726 , decltype(_impl_.audio_format_){0}
8727 , decltype(_impl_.num_channels_){0}
8728 , decltype(_impl_.max_bit_rate_per_second_){0}
8729 , decltype(_impl_.bit_depth_){0}
8730 , decltype(_impl_.output_mode_){0}
8731 };
8732 }
8733
~SystemProfileProto_ExternalAudioVideoDevice_AudioDescription()8734 SystemProfileProto_ExternalAudioVideoDevice_AudioDescription::~SystemProfileProto_ExternalAudioVideoDevice_AudioDescription() {
8735 // @@protoc_insertion_point(destructor:metrics.SystemProfileProto.ExternalAudioVideoDevice.AudioDescription)
8736 if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
8737 (void)arena;
8738 return;
8739 }
8740 SharedDtor();
8741 }
8742
SharedDtor()8743 inline void SystemProfileProto_ExternalAudioVideoDevice_AudioDescription::SharedDtor() {
8744 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
8745 _impl_.sample_frequency_hz_.~RepeatedField();
8746 }
8747
SetCachedSize(int size) const8748 void SystemProfileProto_ExternalAudioVideoDevice_AudioDescription::SetCachedSize(int size) const {
8749 _impl_._cached_size_.Set(size);
8750 }
8751
Clear()8752 void SystemProfileProto_ExternalAudioVideoDevice_AudioDescription::Clear() {
8753 // @@protoc_insertion_point(message_clear_start:metrics.SystemProfileProto.ExternalAudioVideoDevice.AudioDescription)
8754 uint32_t cached_has_bits = 0;
8755 // Prevent compiler warnings about cached_has_bits being unused
8756 (void) cached_has_bits;
8757
8758 _impl_.sample_frequency_hz_.Clear();
8759 cached_has_bits = _impl_._has_bits_[0];
8760 if (cached_has_bits & 0x0000001fu) {
8761 ::memset(&_impl_.audio_format_, 0, static_cast<size_t>(
8762 reinterpret_cast<char*>(&_impl_.output_mode_) -
8763 reinterpret_cast<char*>(&_impl_.audio_format_)) + sizeof(_impl_.output_mode_));
8764 }
8765 _impl_._has_bits_.Clear();
8766 _internal_metadata_.Clear<std::string>();
8767 }
8768
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)8769 const char* SystemProfileProto_ExternalAudioVideoDevice_AudioDescription::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
8770 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
8771 _Internal::HasBits has_bits{};
8772 while (!ctx->Done(&ptr)) {
8773 uint32_t tag;
8774 ptr = ::_pbi::ReadTag(ptr, &tag);
8775 switch (tag >> 3) {
8776 // optional .metrics.SystemProfileProto.ExternalAudioVideoDevice.AudioDescription.AudioFormat audio_format = 1;
8777 case 1:
8778 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
8779 uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
8780 CHK_(ptr);
8781 if (PROTOBUF_PREDICT_TRUE(::metrics::SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_AudioFormat_IsValid(val))) {
8782 _internal_set_audio_format(static_cast<::metrics::SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_AudioFormat>(val));
8783 } else {
8784 ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields());
8785 }
8786 } else
8787 goto handle_unusual;
8788 continue;
8789 // optional int32 num_channels = 2;
8790 case 2:
8791 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
8792 _Internal::set_has_num_channels(&has_bits);
8793 _impl_.num_channels_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
8794 CHK_(ptr);
8795 } else
8796 goto handle_unusual;
8797 continue;
8798 // repeated int32 sample_frequency_hz = 3;
8799 case 3:
8800 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
8801 ptr -= 1;
8802 do {
8803 ptr += 1;
8804 _internal_add_sample_frequency_hz(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr));
8805 CHK_(ptr);
8806 if (!ctx->DataAvailable(ptr)) break;
8807 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<24>(ptr));
8808 } else if (static_cast<uint8_t>(tag) == 26) {
8809 ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(_internal_mutable_sample_frequency_hz(), ptr, ctx);
8810 CHK_(ptr);
8811 } else
8812 goto handle_unusual;
8813 continue;
8814 // optional int32 max_bit_rate_per_second = 4;
8815 case 4:
8816 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
8817 _Internal::set_has_max_bit_rate_per_second(&has_bits);
8818 _impl_.max_bit_rate_per_second_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
8819 CHK_(ptr);
8820 } else
8821 goto handle_unusual;
8822 continue;
8823 // optional int32 bit_depth = 5;
8824 case 5:
8825 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
8826 _Internal::set_has_bit_depth(&has_bits);
8827 _impl_.bit_depth_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
8828 CHK_(ptr);
8829 } else
8830 goto handle_unusual;
8831 continue;
8832 // optional .metrics.SystemProfileProto.ExternalAudioVideoDevice.AudioDescription.OutputMode output_mode = 6;
8833 case 6:
8834 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48)) {
8835 uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
8836 CHK_(ptr);
8837 if (PROTOBUF_PREDICT_TRUE(::metrics::SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_OutputMode_IsValid(val))) {
8838 _internal_set_output_mode(static_cast<::metrics::SystemProfileProto_ExternalAudioVideoDevice_AudioDescription_OutputMode>(val));
8839 } else {
8840 ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(6, val, mutable_unknown_fields());
8841 }
8842 } else
8843 goto handle_unusual;
8844 continue;
8845 default:
8846 goto handle_unusual;
8847 } // switch
8848 handle_unusual:
8849 if ((tag == 0) || ((tag & 7) == 4)) {
8850 CHK_(ptr);
8851 ctx->SetLastTag(tag);
8852 goto message_done;
8853 }
8854 ptr = UnknownFieldParse(
8855 tag,
8856 _internal_metadata_.mutable_unknown_fields<std::string>(),
8857 ptr, ctx);
8858 CHK_(ptr != nullptr);
8859 } // while
8860 message_done:
8861 _impl_._has_bits_.Or(has_bits);
8862 return ptr;
8863 failure:
8864 ptr = nullptr;
8865 goto message_done;
8866 #undef CHK_
8867 }
8868
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const8869 uint8_t* SystemProfileProto_ExternalAudioVideoDevice_AudioDescription::_InternalSerialize(
8870 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
8871 // @@protoc_insertion_point(serialize_to_array_start:metrics.SystemProfileProto.ExternalAudioVideoDevice.AudioDescription)
8872 uint32_t cached_has_bits = 0;
8873 (void) cached_has_bits;
8874
8875 cached_has_bits = _impl_._has_bits_[0];
8876 // optional .metrics.SystemProfileProto.ExternalAudioVideoDevice.AudioDescription.AudioFormat audio_format = 1;
8877 if (cached_has_bits & 0x00000001u) {
8878 target = stream->EnsureSpace(target);
8879 target = ::_pbi::WireFormatLite::WriteEnumToArray(
8880 1, this->_internal_audio_format(), target);
8881 }
8882
8883 // optional int32 num_channels = 2;
8884 if (cached_has_bits & 0x00000002u) {
8885 target = stream->EnsureSpace(target);
8886 target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_num_channels(), target);
8887 }
8888
8889 // repeated int32 sample_frequency_hz = 3;
8890 for (int i = 0, n = this->_internal_sample_frequency_hz_size(); i < n; i++) {
8891 target = stream->EnsureSpace(target);
8892 target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_sample_frequency_hz(i), target);
8893 }
8894
8895 // optional int32 max_bit_rate_per_second = 4;
8896 if (cached_has_bits & 0x00000004u) {
8897 target = stream->EnsureSpace(target);
8898 target = ::_pbi::WireFormatLite::WriteInt32ToArray(4, this->_internal_max_bit_rate_per_second(), target);
8899 }
8900
8901 // optional int32 bit_depth = 5;
8902 if (cached_has_bits & 0x00000008u) {
8903 target = stream->EnsureSpace(target);
8904 target = ::_pbi::WireFormatLite::WriteInt32ToArray(5, this->_internal_bit_depth(), target);
8905 }
8906
8907 // optional .metrics.SystemProfileProto.ExternalAudioVideoDevice.AudioDescription.OutputMode output_mode = 6;
8908 if (cached_has_bits & 0x00000010u) {
8909 target = stream->EnsureSpace(target);
8910 target = ::_pbi::WireFormatLite::WriteEnumToArray(
8911 6, this->_internal_output_mode(), target);
8912 }
8913
8914 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
8915 target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
8916 static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
8917 }
8918 // @@protoc_insertion_point(serialize_to_array_end:metrics.SystemProfileProto.ExternalAudioVideoDevice.AudioDescription)
8919 return target;
8920 }
8921
ByteSizeLong() const8922 size_t SystemProfileProto_ExternalAudioVideoDevice_AudioDescription::ByteSizeLong() const {
8923 // @@protoc_insertion_point(message_byte_size_start:metrics.SystemProfileProto.ExternalAudioVideoDevice.AudioDescription)
8924 size_t total_size = 0;
8925
8926 uint32_t cached_has_bits = 0;
8927 // Prevent compiler warnings about cached_has_bits being unused
8928 (void) cached_has_bits;
8929
8930 // repeated int32 sample_frequency_hz = 3;
8931 {
8932 size_t data_size = ::_pbi::WireFormatLite::
8933 Int32Size(this->_impl_.sample_frequency_hz_);
8934 total_size += 1 *
8935 ::_pbi::FromIntSize(this->_internal_sample_frequency_hz_size());
8936 total_size += data_size;
8937 }
8938
8939 cached_has_bits = _impl_._has_bits_[0];
8940 if (cached_has_bits & 0x0000001fu) {
8941 // optional .metrics.SystemProfileProto.ExternalAudioVideoDevice.AudioDescription.AudioFormat audio_format = 1;
8942 if (cached_has_bits & 0x00000001u) {
8943 total_size += 1 +
8944 ::_pbi::WireFormatLite::EnumSize(this->_internal_audio_format());
8945 }
8946
8947 // optional int32 num_channels = 2;
8948 if (cached_has_bits & 0x00000002u) {
8949 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_num_channels());
8950 }
8951
8952 // optional int32 max_bit_rate_per_second = 4;
8953 if (cached_has_bits & 0x00000004u) {
8954 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_max_bit_rate_per_second());
8955 }
8956
8957 // optional int32 bit_depth = 5;
8958 if (cached_has_bits & 0x00000008u) {
8959 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_bit_depth());
8960 }
8961
8962 // optional .metrics.SystemProfileProto.ExternalAudioVideoDevice.AudioDescription.OutputMode output_mode = 6;
8963 if (cached_has_bits & 0x00000010u) {
8964 total_size += 1 +
8965 ::_pbi::WireFormatLite::EnumSize(this->_internal_output_mode());
8966 }
8967
8968 }
8969 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
8970 total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
8971 }
8972 int cached_size = ::_pbi::ToCachedSize(total_size);
8973 SetCachedSize(cached_size);
8974 return total_size;
8975 }
8976
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)8977 void SystemProfileProto_ExternalAudioVideoDevice_AudioDescription::CheckTypeAndMergeFrom(
8978 const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
8979 MergeFrom(*::_pbi::DownCast<const SystemProfileProto_ExternalAudioVideoDevice_AudioDescription*>(
8980 &from));
8981 }
8982
MergeFrom(const SystemProfileProto_ExternalAudioVideoDevice_AudioDescription & from)8983 void SystemProfileProto_ExternalAudioVideoDevice_AudioDescription::MergeFrom(const SystemProfileProto_ExternalAudioVideoDevice_AudioDescription& from) {
8984 SystemProfileProto_ExternalAudioVideoDevice_AudioDescription* const _this = this;
8985 // @@protoc_insertion_point(class_specific_merge_from_start:metrics.SystemProfileProto.ExternalAudioVideoDevice.AudioDescription)
8986 GOOGLE_DCHECK_NE(&from, _this);
8987 uint32_t cached_has_bits = 0;
8988 (void) cached_has_bits;
8989
8990 _this->_impl_.sample_frequency_hz_.MergeFrom(from._impl_.sample_frequency_hz_);
8991 cached_has_bits = from._impl_._has_bits_[0];
8992 if (cached_has_bits & 0x0000001fu) {
8993 if (cached_has_bits & 0x00000001u) {
8994 _this->_impl_.audio_format_ = from._impl_.audio_format_;
8995 }
8996 if (cached_has_bits & 0x00000002u) {
8997 _this->_impl_.num_channels_ = from._impl_.num_channels_;
8998 }
8999 if (cached_has_bits & 0x00000004u) {
9000 _this->_impl_.max_bit_rate_per_second_ = from._impl_.max_bit_rate_per_second_;
9001 }
9002 if (cached_has_bits & 0x00000008u) {
9003 _this->_impl_.bit_depth_ = from._impl_.bit_depth_;
9004 }
9005 if (cached_has_bits & 0x00000010u) {
9006 _this->_impl_.output_mode_ = from._impl_.output_mode_;
9007 }
9008 _this->_impl_._has_bits_[0] |= cached_has_bits;
9009 }
9010 _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
9011 }
9012
CopyFrom(const SystemProfileProto_ExternalAudioVideoDevice_AudioDescription & from)9013 void SystemProfileProto_ExternalAudioVideoDevice_AudioDescription::CopyFrom(const SystemProfileProto_ExternalAudioVideoDevice_AudioDescription& from) {
9014 // @@protoc_insertion_point(class_specific_copy_from_start:metrics.SystemProfileProto.ExternalAudioVideoDevice.AudioDescription)
9015 if (&from == this) return;
9016 Clear();
9017 MergeFrom(from);
9018 }
9019
IsInitialized() const9020 bool SystemProfileProto_ExternalAudioVideoDevice_AudioDescription::IsInitialized() const {
9021 return true;
9022 }
9023
InternalSwap(SystemProfileProto_ExternalAudioVideoDevice_AudioDescription * other)9024 void SystemProfileProto_ExternalAudioVideoDevice_AudioDescription::InternalSwap(SystemProfileProto_ExternalAudioVideoDevice_AudioDescription* other) {
9025 using std::swap;
9026 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
9027 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
9028 _impl_.sample_frequency_hz_.InternalSwap(&other->_impl_.sample_frequency_hz_);
9029 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
9030 PROTOBUF_FIELD_OFFSET(SystemProfileProto_ExternalAudioVideoDevice_AudioDescription, _impl_.output_mode_)
9031 + sizeof(SystemProfileProto_ExternalAudioVideoDevice_AudioDescription::_impl_.output_mode_)
9032 - PROTOBUF_FIELD_OFFSET(SystemProfileProto_ExternalAudioVideoDevice_AudioDescription, _impl_.audio_format_)>(
9033 reinterpret_cast<char*>(&_impl_.audio_format_),
9034 reinterpret_cast<char*>(&other->_impl_.audio_format_));
9035 }
9036
GetTypeName() const9037 std::string SystemProfileProto_ExternalAudioVideoDevice_AudioDescription::GetTypeName() const {
9038 return "metrics.SystemProfileProto.ExternalAudioVideoDevice.AudioDescription";
9039 }
9040
9041
9042 // ===================================================================
9043
9044 class SystemProfileProto_ExternalAudioVideoDevice_CECCommand::_Internal {
9045 public:
9046 using HasBits = decltype(std::declval<SystemProfileProto_ExternalAudioVideoDevice_CECCommand>()._impl_._has_bits_);
set_has_opcode(HasBits * has_bits)9047 static void set_has_opcode(HasBits* has_bits) {
9048 (*has_bits)[0] |= 1u;
9049 }
set_has_num_received_direct(HasBits * has_bits)9050 static void set_has_num_received_direct(HasBits* has_bits) {
9051 (*has_bits)[0] |= 2u;
9052 }
set_has_num_received_broadcast(HasBits * has_bits)9053 static void set_has_num_received_broadcast(HasBits* has_bits) {
9054 (*has_bits)[0] |= 4u;
9055 }
set_has_num_sent_direct(HasBits * has_bits)9056 static void set_has_num_sent_direct(HasBits* has_bits) {
9057 (*has_bits)[0] |= 8u;
9058 }
set_has_num_sent_broadcast(HasBits * has_bits)9059 static void set_has_num_sent_broadcast(HasBits* has_bits) {
9060 (*has_bits)[0] |= 16u;
9061 }
set_has_num_aborted_unknown_reason(HasBits * has_bits)9062 static void set_has_num_aborted_unknown_reason(HasBits* has_bits) {
9063 (*has_bits)[0] |= 32u;
9064 }
set_has_num_aborted_unrecognized(HasBits * has_bits)9065 static void set_has_num_aborted_unrecognized(HasBits* has_bits) {
9066 (*has_bits)[0] |= 64u;
9067 }
9068 };
9069
SystemProfileProto_ExternalAudioVideoDevice_CECCommand(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)9070 SystemProfileProto_ExternalAudioVideoDevice_CECCommand::SystemProfileProto_ExternalAudioVideoDevice_CECCommand(::PROTOBUF_NAMESPACE_ID::Arena* arena,
9071 bool is_message_owned)
9072 : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
9073 SharedCtor(arena, is_message_owned);
9074 // @@protoc_insertion_point(arena_constructor:metrics.SystemProfileProto.ExternalAudioVideoDevice.CECCommand)
9075 }
SystemProfileProto_ExternalAudioVideoDevice_CECCommand(const SystemProfileProto_ExternalAudioVideoDevice_CECCommand & from)9076 SystemProfileProto_ExternalAudioVideoDevice_CECCommand::SystemProfileProto_ExternalAudioVideoDevice_CECCommand(const SystemProfileProto_ExternalAudioVideoDevice_CECCommand& from)
9077 : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
9078 SystemProfileProto_ExternalAudioVideoDevice_CECCommand* const _this = this; (void)_this;
9079 new (&_impl_) Impl_{
9080 decltype(_impl_._has_bits_){from._impl_._has_bits_}
9081 , /*decltype(_impl_._cached_size_)*/{}
9082 , decltype(_impl_.opcode_){}
9083 , decltype(_impl_.num_received_direct_){}
9084 , decltype(_impl_.num_received_broadcast_){}
9085 , decltype(_impl_.num_sent_direct_){}
9086 , decltype(_impl_.num_sent_broadcast_){}
9087 , decltype(_impl_.num_aborted_unknown_reason_){}
9088 , decltype(_impl_.num_aborted_unrecognized_){}};
9089
9090 _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
9091 ::memcpy(&_impl_.opcode_, &from._impl_.opcode_,
9092 static_cast<size_t>(reinterpret_cast<char*>(&_impl_.num_aborted_unrecognized_) -
9093 reinterpret_cast<char*>(&_impl_.opcode_)) + sizeof(_impl_.num_aborted_unrecognized_));
9094 // @@protoc_insertion_point(copy_constructor:metrics.SystemProfileProto.ExternalAudioVideoDevice.CECCommand)
9095 }
9096
SharedCtor(::_pb::Arena * arena,bool is_message_owned)9097 inline void SystemProfileProto_ExternalAudioVideoDevice_CECCommand::SharedCtor(
9098 ::_pb::Arena* arena, bool is_message_owned) {
9099 (void)arena;
9100 (void)is_message_owned;
9101 new (&_impl_) Impl_{
9102 decltype(_impl_._has_bits_){}
9103 , /*decltype(_impl_._cached_size_)*/{}
9104 , decltype(_impl_.opcode_){0}
9105 , decltype(_impl_.num_received_direct_){0}
9106 , decltype(_impl_.num_received_broadcast_){0}
9107 , decltype(_impl_.num_sent_direct_){0}
9108 , decltype(_impl_.num_sent_broadcast_){0}
9109 , decltype(_impl_.num_aborted_unknown_reason_){0}
9110 , decltype(_impl_.num_aborted_unrecognized_){0}
9111 };
9112 }
9113
~SystemProfileProto_ExternalAudioVideoDevice_CECCommand()9114 SystemProfileProto_ExternalAudioVideoDevice_CECCommand::~SystemProfileProto_ExternalAudioVideoDevice_CECCommand() {
9115 // @@protoc_insertion_point(destructor:metrics.SystemProfileProto.ExternalAudioVideoDevice.CECCommand)
9116 if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
9117 (void)arena;
9118 return;
9119 }
9120 SharedDtor();
9121 }
9122
SharedDtor()9123 inline void SystemProfileProto_ExternalAudioVideoDevice_CECCommand::SharedDtor() {
9124 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
9125 }
9126
SetCachedSize(int size) const9127 void SystemProfileProto_ExternalAudioVideoDevice_CECCommand::SetCachedSize(int size) const {
9128 _impl_._cached_size_.Set(size);
9129 }
9130
Clear()9131 void SystemProfileProto_ExternalAudioVideoDevice_CECCommand::Clear() {
9132 // @@protoc_insertion_point(message_clear_start:metrics.SystemProfileProto.ExternalAudioVideoDevice.CECCommand)
9133 uint32_t cached_has_bits = 0;
9134 // Prevent compiler warnings about cached_has_bits being unused
9135 (void) cached_has_bits;
9136
9137 cached_has_bits = _impl_._has_bits_[0];
9138 if (cached_has_bits & 0x0000007fu) {
9139 ::memset(&_impl_.opcode_, 0, static_cast<size_t>(
9140 reinterpret_cast<char*>(&_impl_.num_aborted_unrecognized_) -
9141 reinterpret_cast<char*>(&_impl_.opcode_)) + sizeof(_impl_.num_aborted_unrecognized_));
9142 }
9143 _impl_._has_bits_.Clear();
9144 _internal_metadata_.Clear<std::string>();
9145 }
9146
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)9147 const char* SystemProfileProto_ExternalAudioVideoDevice_CECCommand::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
9148 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
9149 _Internal::HasBits has_bits{};
9150 while (!ctx->Done(&ptr)) {
9151 uint32_t tag;
9152 ptr = ::_pbi::ReadTag(ptr, &tag);
9153 switch (tag >> 3) {
9154 // optional int32 opcode = 1;
9155 case 1:
9156 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
9157 _Internal::set_has_opcode(&has_bits);
9158 _impl_.opcode_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
9159 CHK_(ptr);
9160 } else
9161 goto handle_unusual;
9162 continue;
9163 // optional int32 num_received_direct = 2;
9164 case 2:
9165 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
9166 _Internal::set_has_num_received_direct(&has_bits);
9167 _impl_.num_received_direct_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
9168 CHK_(ptr);
9169 } else
9170 goto handle_unusual;
9171 continue;
9172 // optional int32 num_received_broadcast = 3;
9173 case 3:
9174 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
9175 _Internal::set_has_num_received_broadcast(&has_bits);
9176 _impl_.num_received_broadcast_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
9177 CHK_(ptr);
9178 } else
9179 goto handle_unusual;
9180 continue;
9181 // optional int32 num_sent_direct = 4;
9182 case 4:
9183 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
9184 _Internal::set_has_num_sent_direct(&has_bits);
9185 _impl_.num_sent_direct_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
9186 CHK_(ptr);
9187 } else
9188 goto handle_unusual;
9189 continue;
9190 // optional int32 num_sent_broadcast = 5;
9191 case 5:
9192 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
9193 _Internal::set_has_num_sent_broadcast(&has_bits);
9194 _impl_.num_sent_broadcast_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
9195 CHK_(ptr);
9196 } else
9197 goto handle_unusual;
9198 continue;
9199 // optional int32 num_aborted_unknown_reason = 6;
9200 case 6:
9201 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48)) {
9202 _Internal::set_has_num_aborted_unknown_reason(&has_bits);
9203 _impl_.num_aborted_unknown_reason_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
9204 CHK_(ptr);
9205 } else
9206 goto handle_unusual;
9207 continue;
9208 // optional int32 num_aborted_unrecognized = 7;
9209 case 7:
9210 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) {
9211 _Internal::set_has_num_aborted_unrecognized(&has_bits);
9212 _impl_.num_aborted_unrecognized_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
9213 CHK_(ptr);
9214 } else
9215 goto handle_unusual;
9216 continue;
9217 default:
9218 goto handle_unusual;
9219 } // switch
9220 handle_unusual:
9221 if ((tag == 0) || ((tag & 7) == 4)) {
9222 CHK_(ptr);
9223 ctx->SetLastTag(tag);
9224 goto message_done;
9225 }
9226 ptr = UnknownFieldParse(
9227 tag,
9228 _internal_metadata_.mutable_unknown_fields<std::string>(),
9229 ptr, ctx);
9230 CHK_(ptr != nullptr);
9231 } // while
9232 message_done:
9233 _impl_._has_bits_.Or(has_bits);
9234 return ptr;
9235 failure:
9236 ptr = nullptr;
9237 goto message_done;
9238 #undef CHK_
9239 }
9240
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const9241 uint8_t* SystemProfileProto_ExternalAudioVideoDevice_CECCommand::_InternalSerialize(
9242 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
9243 // @@protoc_insertion_point(serialize_to_array_start:metrics.SystemProfileProto.ExternalAudioVideoDevice.CECCommand)
9244 uint32_t cached_has_bits = 0;
9245 (void) cached_has_bits;
9246
9247 cached_has_bits = _impl_._has_bits_[0];
9248 // optional int32 opcode = 1;
9249 if (cached_has_bits & 0x00000001u) {
9250 target = stream->EnsureSpace(target);
9251 target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_opcode(), target);
9252 }
9253
9254 // optional int32 num_received_direct = 2;
9255 if (cached_has_bits & 0x00000002u) {
9256 target = stream->EnsureSpace(target);
9257 target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_num_received_direct(), target);
9258 }
9259
9260 // optional int32 num_received_broadcast = 3;
9261 if (cached_has_bits & 0x00000004u) {
9262 target = stream->EnsureSpace(target);
9263 target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_num_received_broadcast(), target);
9264 }
9265
9266 // optional int32 num_sent_direct = 4;
9267 if (cached_has_bits & 0x00000008u) {
9268 target = stream->EnsureSpace(target);
9269 target = ::_pbi::WireFormatLite::WriteInt32ToArray(4, this->_internal_num_sent_direct(), target);
9270 }
9271
9272 // optional int32 num_sent_broadcast = 5;
9273 if (cached_has_bits & 0x00000010u) {
9274 target = stream->EnsureSpace(target);
9275 target = ::_pbi::WireFormatLite::WriteInt32ToArray(5, this->_internal_num_sent_broadcast(), target);
9276 }
9277
9278 // optional int32 num_aborted_unknown_reason = 6;
9279 if (cached_has_bits & 0x00000020u) {
9280 target = stream->EnsureSpace(target);
9281 target = ::_pbi::WireFormatLite::WriteInt32ToArray(6, this->_internal_num_aborted_unknown_reason(), target);
9282 }
9283
9284 // optional int32 num_aborted_unrecognized = 7;
9285 if (cached_has_bits & 0x00000040u) {
9286 target = stream->EnsureSpace(target);
9287 target = ::_pbi::WireFormatLite::WriteInt32ToArray(7, this->_internal_num_aborted_unrecognized(), target);
9288 }
9289
9290 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
9291 target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
9292 static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
9293 }
9294 // @@protoc_insertion_point(serialize_to_array_end:metrics.SystemProfileProto.ExternalAudioVideoDevice.CECCommand)
9295 return target;
9296 }
9297
ByteSizeLong() const9298 size_t SystemProfileProto_ExternalAudioVideoDevice_CECCommand::ByteSizeLong() const {
9299 // @@protoc_insertion_point(message_byte_size_start:metrics.SystemProfileProto.ExternalAudioVideoDevice.CECCommand)
9300 size_t total_size = 0;
9301
9302 uint32_t cached_has_bits = 0;
9303 // Prevent compiler warnings about cached_has_bits being unused
9304 (void) cached_has_bits;
9305
9306 cached_has_bits = _impl_._has_bits_[0];
9307 if (cached_has_bits & 0x0000007fu) {
9308 // optional int32 opcode = 1;
9309 if (cached_has_bits & 0x00000001u) {
9310 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_opcode());
9311 }
9312
9313 // optional int32 num_received_direct = 2;
9314 if (cached_has_bits & 0x00000002u) {
9315 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_num_received_direct());
9316 }
9317
9318 // optional int32 num_received_broadcast = 3;
9319 if (cached_has_bits & 0x00000004u) {
9320 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_num_received_broadcast());
9321 }
9322
9323 // optional int32 num_sent_direct = 4;
9324 if (cached_has_bits & 0x00000008u) {
9325 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_num_sent_direct());
9326 }
9327
9328 // optional int32 num_sent_broadcast = 5;
9329 if (cached_has_bits & 0x00000010u) {
9330 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_num_sent_broadcast());
9331 }
9332
9333 // optional int32 num_aborted_unknown_reason = 6;
9334 if (cached_has_bits & 0x00000020u) {
9335 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_num_aborted_unknown_reason());
9336 }
9337
9338 // optional int32 num_aborted_unrecognized = 7;
9339 if (cached_has_bits & 0x00000040u) {
9340 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_num_aborted_unrecognized());
9341 }
9342
9343 }
9344 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
9345 total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
9346 }
9347 int cached_size = ::_pbi::ToCachedSize(total_size);
9348 SetCachedSize(cached_size);
9349 return total_size;
9350 }
9351
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)9352 void SystemProfileProto_ExternalAudioVideoDevice_CECCommand::CheckTypeAndMergeFrom(
9353 const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
9354 MergeFrom(*::_pbi::DownCast<const SystemProfileProto_ExternalAudioVideoDevice_CECCommand*>(
9355 &from));
9356 }
9357
MergeFrom(const SystemProfileProto_ExternalAudioVideoDevice_CECCommand & from)9358 void SystemProfileProto_ExternalAudioVideoDevice_CECCommand::MergeFrom(const SystemProfileProto_ExternalAudioVideoDevice_CECCommand& from) {
9359 SystemProfileProto_ExternalAudioVideoDevice_CECCommand* const _this = this;
9360 // @@protoc_insertion_point(class_specific_merge_from_start:metrics.SystemProfileProto.ExternalAudioVideoDevice.CECCommand)
9361 GOOGLE_DCHECK_NE(&from, _this);
9362 uint32_t cached_has_bits = 0;
9363 (void) cached_has_bits;
9364
9365 cached_has_bits = from._impl_._has_bits_[0];
9366 if (cached_has_bits & 0x0000007fu) {
9367 if (cached_has_bits & 0x00000001u) {
9368 _this->_impl_.opcode_ = from._impl_.opcode_;
9369 }
9370 if (cached_has_bits & 0x00000002u) {
9371 _this->_impl_.num_received_direct_ = from._impl_.num_received_direct_;
9372 }
9373 if (cached_has_bits & 0x00000004u) {
9374 _this->_impl_.num_received_broadcast_ = from._impl_.num_received_broadcast_;
9375 }
9376 if (cached_has_bits & 0x00000008u) {
9377 _this->_impl_.num_sent_direct_ = from._impl_.num_sent_direct_;
9378 }
9379 if (cached_has_bits & 0x00000010u) {
9380 _this->_impl_.num_sent_broadcast_ = from._impl_.num_sent_broadcast_;
9381 }
9382 if (cached_has_bits & 0x00000020u) {
9383 _this->_impl_.num_aborted_unknown_reason_ = from._impl_.num_aborted_unknown_reason_;
9384 }
9385 if (cached_has_bits & 0x00000040u) {
9386 _this->_impl_.num_aborted_unrecognized_ = from._impl_.num_aborted_unrecognized_;
9387 }
9388 _this->_impl_._has_bits_[0] |= cached_has_bits;
9389 }
9390 _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
9391 }
9392
CopyFrom(const SystemProfileProto_ExternalAudioVideoDevice_CECCommand & from)9393 void SystemProfileProto_ExternalAudioVideoDevice_CECCommand::CopyFrom(const SystemProfileProto_ExternalAudioVideoDevice_CECCommand& from) {
9394 // @@protoc_insertion_point(class_specific_copy_from_start:metrics.SystemProfileProto.ExternalAudioVideoDevice.CECCommand)
9395 if (&from == this) return;
9396 Clear();
9397 MergeFrom(from);
9398 }
9399
IsInitialized() const9400 bool SystemProfileProto_ExternalAudioVideoDevice_CECCommand::IsInitialized() const {
9401 return true;
9402 }
9403
InternalSwap(SystemProfileProto_ExternalAudioVideoDevice_CECCommand * other)9404 void SystemProfileProto_ExternalAudioVideoDevice_CECCommand::InternalSwap(SystemProfileProto_ExternalAudioVideoDevice_CECCommand* other) {
9405 using std::swap;
9406 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
9407 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
9408 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
9409 PROTOBUF_FIELD_OFFSET(SystemProfileProto_ExternalAudioVideoDevice_CECCommand, _impl_.num_aborted_unrecognized_)
9410 + sizeof(SystemProfileProto_ExternalAudioVideoDevice_CECCommand::_impl_.num_aborted_unrecognized_)
9411 - PROTOBUF_FIELD_OFFSET(SystemProfileProto_ExternalAudioVideoDevice_CECCommand, _impl_.opcode_)>(
9412 reinterpret_cast<char*>(&_impl_.opcode_),
9413 reinterpret_cast<char*>(&other->_impl_.opcode_));
9414 }
9415
GetTypeName() const9416 std::string SystemProfileProto_ExternalAudioVideoDevice_CECCommand::GetTypeName() const {
9417 return "metrics.SystemProfileProto.ExternalAudioVideoDevice.CECCommand";
9418 }
9419
9420
9421 // ===================================================================
9422
9423 class SystemProfileProto_ExternalAudioVideoDevice::_Internal {
9424 public:
9425 using HasBits = decltype(std::declval<SystemProfileProto_ExternalAudioVideoDevice>()._impl_._has_bits_);
set_has_manufacturer_name(HasBits * has_bits)9426 static void set_has_manufacturer_name(HasBits* has_bits) {
9427 (*has_bits)[0] |= 1u;
9428 }
set_has_model_name(HasBits * has_bits)9429 static void set_has_model_name(HasBits* has_bits) {
9430 (*has_bits)[0] |= 2u;
9431 }
set_has_product_code(HasBits * has_bits)9432 static void set_has_product_code(HasBits* has_bits) {
9433 (*has_bits)[0] |= 4u;
9434 }
set_has_manufacture_year(HasBits * has_bits)9435 static void set_has_manufacture_year(HasBits* has_bits) {
9436 (*has_bits)[0] |= 8u;
9437 }
set_has_manufacture_week(HasBits * has_bits)9438 static void set_has_manufacture_week(HasBits* has_bits) {
9439 (*has_bits)[0] |= 16u;
9440 }
set_has_horizontal_resolution(HasBits * has_bits)9441 static void set_has_horizontal_resolution(HasBits* has_bits) {
9442 (*has_bits)[0] |= 32u;
9443 }
set_has_vertical_resolution(HasBits * has_bits)9444 static void set_has_vertical_resolution(HasBits* has_bits) {
9445 (*has_bits)[0] |= 64u;
9446 }
set_has_position_in_setup(HasBits * has_bits)9447 static void set_has_position_in_setup(HasBits* has_bits) {
9448 (*has_bits)[0] |= 128u;
9449 }
set_has_is_in_path_to_tv(HasBits * has_bits)9450 static void set_has_is_in_path_to_tv(HasBits* has_bits) {
9451 (*has_bits)[0] |= 8192u;
9452 }
set_has_cec_version(HasBits * has_bits)9453 static void set_has_cec_version(HasBits* has_bits) {
9454 (*has_bits)[0] |= 256u;
9455 }
set_has_frame_rate(HasBits * has_bits)9456 static void set_has_frame_rate(HasBits* has_bits) {
9457 (*has_bits)[0] |= 512u;
9458 }
set_has_color_encoding(HasBits * has_bits)9459 static void set_has_color_encoding(HasBits* has_bits) {
9460 (*has_bits)[0] |= 1024u;
9461 }
set_has_bit_depth(HasBits * has_bits)9462 static void set_has_bit_depth(HasBits* has_bits) {
9463 (*has_bits)[0] |= 2048u;
9464 }
set_has_tmds(HasBits * has_bits)9465 static void set_has_tmds(HasBits* has_bits) {
9466 (*has_bits)[0] |= 4096u;
9467 }
set_has_hdr10_support(HasBits * has_bits)9468 static void set_has_hdr10_support(HasBits* has_bits) {
9469 (*has_bits)[0] |= 16384u;
9470 }
set_has_dolby_vision_support(HasBits * has_bits)9471 static void set_has_dolby_vision_support(HasBits* has_bits) {
9472 (*has_bits)[0] |= 32768u;
9473 }
set_has_eotf_support(HasBits * has_bits)9474 static void set_has_eotf_support(HasBits* has_bits) {
9475 (*has_bits)[0] |= 131072u;
9476 }
set_has_yuv_support(HasBits * has_bits)9477 static void set_has_yuv_support(HasBits* has_bits) {
9478 (*has_bits)[0] |= 65536u;
9479 }
set_has_yuv_420_support(HasBits * has_bits)9480 static void set_has_yuv_420_support(HasBits* has_bits) {
9481 (*has_bits)[0] |= 262144u;
9482 }
set_has_maximum_supported_hdcp_version(HasBits * has_bits)9483 static void set_has_maximum_supported_hdcp_version(HasBits* has_bits) {
9484 (*has_bits)[0] |= 524288u;
9485 }
set_has_current_hdcp_version(HasBits * has_bits)9486 static void set_has_current_hdcp_version(HasBits* has_bits) {
9487 (*has_bits)[0] |= 1048576u;
9488 }
9489 };
9490
SystemProfileProto_ExternalAudioVideoDevice(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)9491 SystemProfileProto_ExternalAudioVideoDevice::SystemProfileProto_ExternalAudioVideoDevice(::PROTOBUF_NAMESPACE_ID::Arena* arena,
9492 bool is_message_owned)
9493 : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
9494 SharedCtor(arena, is_message_owned);
9495 // @@protoc_insertion_point(arena_constructor:metrics.SystemProfileProto.ExternalAudioVideoDevice)
9496 }
SystemProfileProto_ExternalAudioVideoDevice(const SystemProfileProto_ExternalAudioVideoDevice & from)9497 SystemProfileProto_ExternalAudioVideoDevice::SystemProfileProto_ExternalAudioVideoDevice(const SystemProfileProto_ExternalAudioVideoDevice& from)
9498 : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
9499 SystemProfileProto_ExternalAudioVideoDevice* const _this = this; (void)_this;
9500 new (&_impl_) Impl_{
9501 decltype(_impl_._has_bits_){from._impl_._has_bits_}
9502 , /*decltype(_impl_._cached_size_)*/{}
9503 , decltype(_impl_.av_device_type_){from._impl_.av_device_type_}
9504 , decltype(_impl_.audio_description_){from._impl_.audio_description_}
9505 , decltype(_impl_.cec_command_){from._impl_.cec_command_}
9506 , decltype(_impl_.manufacturer_name_){}
9507 , decltype(_impl_.model_name_){}
9508 , decltype(_impl_.product_code_){}
9509 , decltype(_impl_.manufacture_year_){}
9510 , decltype(_impl_.manufacture_week_){}
9511 , decltype(_impl_.horizontal_resolution_){}
9512 , decltype(_impl_.vertical_resolution_){}
9513 , decltype(_impl_.position_in_setup_){}
9514 , decltype(_impl_.cec_version_){}
9515 , decltype(_impl_.frame_rate_){}
9516 , decltype(_impl_.color_encoding_){}
9517 , decltype(_impl_.bit_depth_){}
9518 , decltype(_impl_.tmds_){}
9519 , decltype(_impl_.is_in_path_to_tv_){}
9520 , decltype(_impl_.hdr10_support_){}
9521 , decltype(_impl_.dolby_vision_support_){}
9522 , decltype(_impl_.yuv_support_){}
9523 , decltype(_impl_.eotf_support_){}
9524 , decltype(_impl_.yuv_420_support_){}
9525 , decltype(_impl_.maximum_supported_hdcp_version_){}
9526 , decltype(_impl_.current_hdcp_version_){}};
9527
9528 _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
9529 _impl_.manufacturer_name_.InitDefault();
9530 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
9531 _impl_.manufacturer_name_.Set("", GetArenaForAllocation());
9532 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
9533 if (from._internal_has_manufacturer_name()) {
9534 _this->_impl_.manufacturer_name_.Set(from._internal_manufacturer_name(),
9535 _this->GetArenaForAllocation());
9536 }
9537 _impl_.model_name_.InitDefault();
9538 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
9539 _impl_.model_name_.Set("", GetArenaForAllocation());
9540 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
9541 if (from._internal_has_model_name()) {
9542 _this->_impl_.model_name_.Set(from._internal_model_name(),
9543 _this->GetArenaForAllocation());
9544 }
9545 _impl_.product_code_.InitDefault();
9546 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
9547 _impl_.product_code_.Set("", GetArenaForAllocation());
9548 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
9549 if (from._internal_has_product_code()) {
9550 _this->_impl_.product_code_.Set(from._internal_product_code(),
9551 _this->GetArenaForAllocation());
9552 }
9553 ::memcpy(&_impl_.manufacture_year_, &from._impl_.manufacture_year_,
9554 static_cast<size_t>(reinterpret_cast<char*>(&_impl_.current_hdcp_version_) -
9555 reinterpret_cast<char*>(&_impl_.manufacture_year_)) + sizeof(_impl_.current_hdcp_version_));
9556 // @@protoc_insertion_point(copy_constructor:metrics.SystemProfileProto.ExternalAudioVideoDevice)
9557 }
9558
SharedCtor(::_pb::Arena * arena,bool is_message_owned)9559 inline void SystemProfileProto_ExternalAudioVideoDevice::SharedCtor(
9560 ::_pb::Arena* arena, bool is_message_owned) {
9561 (void)arena;
9562 (void)is_message_owned;
9563 new (&_impl_) Impl_{
9564 decltype(_impl_._has_bits_){}
9565 , /*decltype(_impl_._cached_size_)*/{}
9566 , decltype(_impl_.av_device_type_){arena}
9567 , decltype(_impl_.audio_description_){arena}
9568 , decltype(_impl_.cec_command_){arena}
9569 , decltype(_impl_.manufacturer_name_){}
9570 , decltype(_impl_.model_name_){}
9571 , decltype(_impl_.product_code_){}
9572 , decltype(_impl_.manufacture_year_){0}
9573 , decltype(_impl_.manufacture_week_){0}
9574 , decltype(_impl_.horizontal_resolution_){0}
9575 , decltype(_impl_.vertical_resolution_){0}
9576 , decltype(_impl_.position_in_setup_){0}
9577 , decltype(_impl_.cec_version_){0}
9578 , decltype(_impl_.frame_rate_){0}
9579 , decltype(_impl_.color_encoding_){0}
9580 , decltype(_impl_.bit_depth_){0}
9581 , decltype(_impl_.tmds_){0}
9582 , decltype(_impl_.is_in_path_to_tv_){false}
9583 , decltype(_impl_.hdr10_support_){false}
9584 , decltype(_impl_.dolby_vision_support_){false}
9585 , decltype(_impl_.yuv_support_){false}
9586 , decltype(_impl_.eotf_support_){0}
9587 , decltype(_impl_.yuv_420_support_){false}
9588 , decltype(_impl_.maximum_supported_hdcp_version_){0}
9589 , decltype(_impl_.current_hdcp_version_){0}
9590 };
9591 _impl_.manufacturer_name_.InitDefault();
9592 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
9593 _impl_.manufacturer_name_.Set("", GetArenaForAllocation());
9594 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
9595 _impl_.model_name_.InitDefault();
9596 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
9597 _impl_.model_name_.Set("", GetArenaForAllocation());
9598 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
9599 _impl_.product_code_.InitDefault();
9600 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
9601 _impl_.product_code_.Set("", GetArenaForAllocation());
9602 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
9603 }
9604
~SystemProfileProto_ExternalAudioVideoDevice()9605 SystemProfileProto_ExternalAudioVideoDevice::~SystemProfileProto_ExternalAudioVideoDevice() {
9606 // @@protoc_insertion_point(destructor:metrics.SystemProfileProto.ExternalAudioVideoDevice)
9607 if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
9608 (void)arena;
9609 return;
9610 }
9611 SharedDtor();
9612 }
9613
SharedDtor()9614 inline void SystemProfileProto_ExternalAudioVideoDevice::SharedDtor() {
9615 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
9616 _impl_.av_device_type_.~RepeatedField();
9617 _impl_.audio_description_.~RepeatedPtrField();
9618 _impl_.cec_command_.~RepeatedPtrField();
9619 _impl_.manufacturer_name_.Destroy();
9620 _impl_.model_name_.Destroy();
9621 _impl_.product_code_.Destroy();
9622 }
9623
SetCachedSize(int size) const9624 void SystemProfileProto_ExternalAudioVideoDevice::SetCachedSize(int size) const {
9625 _impl_._cached_size_.Set(size);
9626 }
9627
Clear()9628 void SystemProfileProto_ExternalAudioVideoDevice::Clear() {
9629 // @@protoc_insertion_point(message_clear_start:metrics.SystemProfileProto.ExternalAudioVideoDevice)
9630 uint32_t cached_has_bits = 0;
9631 // Prevent compiler warnings about cached_has_bits being unused
9632 (void) cached_has_bits;
9633
9634 _impl_.av_device_type_.Clear();
9635 _impl_.audio_description_.Clear();
9636 _impl_.cec_command_.Clear();
9637 cached_has_bits = _impl_._has_bits_[0];
9638 if (cached_has_bits & 0x00000007u) {
9639 if (cached_has_bits & 0x00000001u) {
9640 _impl_.manufacturer_name_.ClearNonDefaultToEmpty();
9641 }
9642 if (cached_has_bits & 0x00000002u) {
9643 _impl_.model_name_.ClearNonDefaultToEmpty();
9644 }
9645 if (cached_has_bits & 0x00000004u) {
9646 _impl_.product_code_.ClearNonDefaultToEmpty();
9647 }
9648 }
9649 if (cached_has_bits & 0x000000f8u) {
9650 ::memset(&_impl_.manufacture_year_, 0, static_cast<size_t>(
9651 reinterpret_cast<char*>(&_impl_.position_in_setup_) -
9652 reinterpret_cast<char*>(&_impl_.manufacture_year_)) + sizeof(_impl_.position_in_setup_));
9653 }
9654 if (cached_has_bits & 0x0000ff00u) {
9655 ::memset(&_impl_.cec_version_, 0, static_cast<size_t>(
9656 reinterpret_cast<char*>(&_impl_.dolby_vision_support_) -
9657 reinterpret_cast<char*>(&_impl_.cec_version_)) + sizeof(_impl_.dolby_vision_support_));
9658 }
9659 if (cached_has_bits & 0x001f0000u) {
9660 ::memset(&_impl_.yuv_support_, 0, static_cast<size_t>(
9661 reinterpret_cast<char*>(&_impl_.current_hdcp_version_) -
9662 reinterpret_cast<char*>(&_impl_.yuv_support_)) + sizeof(_impl_.current_hdcp_version_));
9663 }
9664 _impl_._has_bits_.Clear();
9665 _internal_metadata_.Clear<std::string>();
9666 }
9667
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)9668 const char* SystemProfileProto_ExternalAudioVideoDevice::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
9669 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
9670 _Internal::HasBits has_bits{};
9671 while (!ctx->Done(&ptr)) {
9672 uint32_t tag;
9673 ptr = ::_pbi::ReadTag(ptr, &tag);
9674 switch (tag >> 3) {
9675 // optional string manufacturer_name = 1;
9676 case 1:
9677 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
9678 auto str = _internal_mutable_manufacturer_name();
9679 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
9680 CHK_(ptr);
9681 } else
9682 goto handle_unusual;
9683 continue;
9684 // optional string model_name = 2;
9685 case 2:
9686 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
9687 auto str = _internal_mutable_model_name();
9688 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
9689 CHK_(ptr);
9690 } else
9691 goto handle_unusual;
9692 continue;
9693 // optional string product_code = 3;
9694 case 3:
9695 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
9696 auto str = _internal_mutable_product_code();
9697 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
9698 CHK_(ptr);
9699 } else
9700 goto handle_unusual;
9701 continue;
9702 // repeated .metrics.SystemProfileProto.ExternalAudioVideoDevice.AVDeviceType av_device_type = 4;
9703 case 4:
9704 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
9705 ptr -= 1;
9706 do {
9707 ptr += 1;
9708 uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
9709 CHK_(ptr);
9710 if (PROTOBUF_PREDICT_TRUE(::metrics::SystemProfileProto_ExternalAudioVideoDevice_AVDeviceType_IsValid(val))) {
9711 _internal_add_av_device_type(static_cast<::metrics::SystemProfileProto_ExternalAudioVideoDevice_AVDeviceType>(val));
9712 } else {
9713 ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(4, val, mutable_unknown_fields());
9714 }
9715 if (!ctx->DataAvailable(ptr)) break;
9716 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<32>(ptr));
9717 } else if (static_cast<uint8_t>(tag) == 34) {
9718 ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser<std::string>(_internal_mutable_av_device_type(), ptr, ctx, ::metrics::SystemProfileProto_ExternalAudioVideoDevice_AVDeviceType_IsValid, &_internal_metadata_, 4);
9719 CHK_(ptr);
9720 } else
9721 goto handle_unusual;
9722 continue;
9723 // optional int32 manufacture_year = 5;
9724 case 5:
9725 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
9726 _Internal::set_has_manufacture_year(&has_bits);
9727 _impl_.manufacture_year_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
9728 CHK_(ptr);
9729 } else
9730 goto handle_unusual;
9731 continue;
9732 // optional int32 manufacture_week = 6;
9733 case 6:
9734 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48)) {
9735 _Internal::set_has_manufacture_week(&has_bits);
9736 _impl_.manufacture_week_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
9737 CHK_(ptr);
9738 } else
9739 goto handle_unusual;
9740 continue;
9741 // optional int32 horizontal_resolution = 7;
9742 case 7:
9743 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) {
9744 _Internal::set_has_horizontal_resolution(&has_bits);
9745 _impl_.horizontal_resolution_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
9746 CHK_(ptr);
9747 } else
9748 goto handle_unusual;
9749 continue;
9750 // optional int32 vertical_resolution = 8;
9751 case 8:
9752 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 64)) {
9753 _Internal::set_has_vertical_resolution(&has_bits);
9754 _impl_.vertical_resolution_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
9755 CHK_(ptr);
9756 } else
9757 goto handle_unusual;
9758 continue;
9759 // repeated .metrics.SystemProfileProto.ExternalAudioVideoDevice.AudioDescription audio_description = 9;
9760 case 9:
9761 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 74)) {
9762 ptr -= 1;
9763 do {
9764 ptr += 1;
9765 ptr = ctx->ParseMessage(_internal_add_audio_description(), ptr);
9766 CHK_(ptr);
9767 if (!ctx->DataAvailable(ptr)) break;
9768 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<74>(ptr));
9769 } else
9770 goto handle_unusual;
9771 continue;
9772 // optional int32 position_in_setup = 10;
9773 case 10:
9774 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 80)) {
9775 _Internal::set_has_position_in_setup(&has_bits);
9776 _impl_.position_in_setup_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
9777 CHK_(ptr);
9778 } else
9779 goto handle_unusual;
9780 continue;
9781 // optional bool is_in_path_to_tv = 11;
9782 case 11:
9783 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 88)) {
9784 _Internal::set_has_is_in_path_to_tv(&has_bits);
9785 _impl_.is_in_path_to_tv_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
9786 CHK_(ptr);
9787 } else
9788 goto handle_unusual;
9789 continue;
9790 // optional int32 cec_version = 12;
9791 case 12:
9792 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 96)) {
9793 _Internal::set_has_cec_version(&has_bits);
9794 _impl_.cec_version_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
9795 CHK_(ptr);
9796 } else
9797 goto handle_unusual;
9798 continue;
9799 // repeated .metrics.SystemProfileProto.ExternalAudioVideoDevice.CECCommand cec_command = 13;
9800 case 13:
9801 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 106)) {
9802 ptr -= 1;
9803 do {
9804 ptr += 1;
9805 ptr = ctx->ParseMessage(_internal_add_cec_command(), ptr);
9806 CHK_(ptr);
9807 if (!ctx->DataAvailable(ptr)) break;
9808 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<106>(ptr));
9809 } else
9810 goto handle_unusual;
9811 continue;
9812 // optional int32 frame_rate = 14;
9813 case 14:
9814 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 112)) {
9815 _Internal::set_has_frame_rate(&has_bits);
9816 _impl_.frame_rate_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
9817 CHK_(ptr);
9818 } else
9819 goto handle_unusual;
9820 continue;
9821 // optional .metrics.SystemProfileProto.ExternalAudioVideoDevice.ColorEncoding color_encoding = 15;
9822 case 15:
9823 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 120)) {
9824 uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
9825 CHK_(ptr);
9826 if (PROTOBUF_PREDICT_TRUE(::metrics::SystemProfileProto_ExternalAudioVideoDevice_ColorEncoding_IsValid(val))) {
9827 _internal_set_color_encoding(static_cast<::metrics::SystemProfileProto_ExternalAudioVideoDevice_ColorEncoding>(val));
9828 } else {
9829 ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(15, val, mutable_unknown_fields());
9830 }
9831 } else
9832 goto handle_unusual;
9833 continue;
9834 // optional int32 bit_depth = 16;
9835 case 16:
9836 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 128)) {
9837 _Internal::set_has_bit_depth(&has_bits);
9838 _impl_.bit_depth_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
9839 CHK_(ptr);
9840 } else
9841 goto handle_unusual;
9842 continue;
9843 // optional int32 tmds = 17;
9844 case 17:
9845 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 136)) {
9846 _Internal::set_has_tmds(&has_bits);
9847 _impl_.tmds_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
9848 CHK_(ptr);
9849 } else
9850 goto handle_unusual;
9851 continue;
9852 // optional bool hdr10_support = 18;
9853 case 18:
9854 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 144)) {
9855 _Internal::set_has_hdr10_support(&has_bits);
9856 _impl_.hdr10_support_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
9857 CHK_(ptr);
9858 } else
9859 goto handle_unusual;
9860 continue;
9861 // optional bool dolby_vision_support = 19;
9862 case 19:
9863 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 152)) {
9864 _Internal::set_has_dolby_vision_support(&has_bits);
9865 _impl_.dolby_vision_support_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
9866 CHK_(ptr);
9867 } else
9868 goto handle_unusual;
9869 continue;
9870 // optional int32 eotf_support = 20;
9871 case 20:
9872 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 160)) {
9873 _Internal::set_has_eotf_support(&has_bits);
9874 _impl_.eotf_support_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
9875 CHK_(ptr);
9876 } else
9877 goto handle_unusual;
9878 continue;
9879 // optional bool yuv_support = 21;
9880 case 21:
9881 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 168)) {
9882 _Internal::set_has_yuv_support(&has_bits);
9883 _impl_.yuv_support_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
9884 CHK_(ptr);
9885 } else
9886 goto handle_unusual;
9887 continue;
9888 // optional bool yuv_420_support = 22;
9889 case 22:
9890 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 176)) {
9891 _Internal::set_has_yuv_420_support(&has_bits);
9892 _impl_.yuv_420_support_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
9893 CHK_(ptr);
9894 } else
9895 goto handle_unusual;
9896 continue;
9897 // optional int32 maximum_supported_hdcp_version = 23;
9898 case 23:
9899 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 184)) {
9900 _Internal::set_has_maximum_supported_hdcp_version(&has_bits);
9901 _impl_.maximum_supported_hdcp_version_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
9902 CHK_(ptr);
9903 } else
9904 goto handle_unusual;
9905 continue;
9906 // optional int32 current_hdcp_version = 24;
9907 case 24:
9908 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 192)) {
9909 _Internal::set_has_current_hdcp_version(&has_bits);
9910 _impl_.current_hdcp_version_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
9911 CHK_(ptr);
9912 } else
9913 goto handle_unusual;
9914 continue;
9915 default:
9916 goto handle_unusual;
9917 } // switch
9918 handle_unusual:
9919 if ((tag == 0) || ((tag & 7) == 4)) {
9920 CHK_(ptr);
9921 ctx->SetLastTag(tag);
9922 goto message_done;
9923 }
9924 ptr = UnknownFieldParse(
9925 tag,
9926 _internal_metadata_.mutable_unknown_fields<std::string>(),
9927 ptr, ctx);
9928 CHK_(ptr != nullptr);
9929 } // while
9930 message_done:
9931 _impl_._has_bits_.Or(has_bits);
9932 return ptr;
9933 failure:
9934 ptr = nullptr;
9935 goto message_done;
9936 #undef CHK_
9937 }
9938
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const9939 uint8_t* SystemProfileProto_ExternalAudioVideoDevice::_InternalSerialize(
9940 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
9941 // @@protoc_insertion_point(serialize_to_array_start:metrics.SystemProfileProto.ExternalAudioVideoDevice)
9942 uint32_t cached_has_bits = 0;
9943 (void) cached_has_bits;
9944
9945 cached_has_bits = _impl_._has_bits_[0];
9946 // optional string manufacturer_name = 1;
9947 if (cached_has_bits & 0x00000001u) {
9948 target = stream->WriteStringMaybeAliased(
9949 1, this->_internal_manufacturer_name(), target);
9950 }
9951
9952 // optional string model_name = 2;
9953 if (cached_has_bits & 0x00000002u) {
9954 target = stream->WriteStringMaybeAliased(
9955 2, this->_internal_model_name(), target);
9956 }
9957
9958 // optional string product_code = 3;
9959 if (cached_has_bits & 0x00000004u) {
9960 target = stream->WriteStringMaybeAliased(
9961 3, this->_internal_product_code(), target);
9962 }
9963
9964 // repeated .metrics.SystemProfileProto.ExternalAudioVideoDevice.AVDeviceType av_device_type = 4;
9965 for (int i = 0, n = this->_internal_av_device_type_size(); i < n; i++) {
9966 target = stream->EnsureSpace(target);
9967 target = ::_pbi::WireFormatLite::WriteEnumToArray(
9968 4, this->_internal_av_device_type(i), target);
9969 }
9970
9971 // optional int32 manufacture_year = 5;
9972 if (cached_has_bits & 0x00000008u) {
9973 target = stream->EnsureSpace(target);
9974 target = ::_pbi::WireFormatLite::WriteInt32ToArray(5, this->_internal_manufacture_year(), target);
9975 }
9976
9977 // optional int32 manufacture_week = 6;
9978 if (cached_has_bits & 0x00000010u) {
9979 target = stream->EnsureSpace(target);
9980 target = ::_pbi::WireFormatLite::WriteInt32ToArray(6, this->_internal_manufacture_week(), target);
9981 }
9982
9983 // optional int32 horizontal_resolution = 7;
9984 if (cached_has_bits & 0x00000020u) {
9985 target = stream->EnsureSpace(target);
9986 target = ::_pbi::WireFormatLite::WriteInt32ToArray(7, this->_internal_horizontal_resolution(), target);
9987 }
9988
9989 // optional int32 vertical_resolution = 8;
9990 if (cached_has_bits & 0x00000040u) {
9991 target = stream->EnsureSpace(target);
9992 target = ::_pbi::WireFormatLite::WriteInt32ToArray(8, this->_internal_vertical_resolution(), target);
9993 }
9994
9995 // repeated .metrics.SystemProfileProto.ExternalAudioVideoDevice.AudioDescription audio_description = 9;
9996 for (unsigned i = 0,
9997 n = static_cast<unsigned>(this->_internal_audio_description_size()); i < n; i++) {
9998 const auto& repfield = this->_internal_audio_description(i);
9999 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
10000 InternalWriteMessage(9, repfield, repfield.GetCachedSize(), target, stream);
10001 }
10002
10003 // optional int32 position_in_setup = 10;
10004 if (cached_has_bits & 0x00000080u) {
10005 target = stream->EnsureSpace(target);
10006 target = ::_pbi::WireFormatLite::WriteInt32ToArray(10, this->_internal_position_in_setup(), target);
10007 }
10008
10009 // optional bool is_in_path_to_tv = 11;
10010 if (cached_has_bits & 0x00002000u) {
10011 target = stream->EnsureSpace(target);
10012 target = ::_pbi::WireFormatLite::WriteBoolToArray(11, this->_internal_is_in_path_to_tv(), target);
10013 }
10014
10015 // optional int32 cec_version = 12;
10016 if (cached_has_bits & 0x00000100u) {
10017 target = stream->EnsureSpace(target);
10018 target = ::_pbi::WireFormatLite::WriteInt32ToArray(12, this->_internal_cec_version(), target);
10019 }
10020
10021 // repeated .metrics.SystemProfileProto.ExternalAudioVideoDevice.CECCommand cec_command = 13;
10022 for (unsigned i = 0,
10023 n = static_cast<unsigned>(this->_internal_cec_command_size()); i < n; i++) {
10024 const auto& repfield = this->_internal_cec_command(i);
10025 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
10026 InternalWriteMessage(13, repfield, repfield.GetCachedSize(), target, stream);
10027 }
10028
10029 // optional int32 frame_rate = 14;
10030 if (cached_has_bits & 0x00000200u) {
10031 target = stream->EnsureSpace(target);
10032 target = ::_pbi::WireFormatLite::WriteInt32ToArray(14, this->_internal_frame_rate(), target);
10033 }
10034
10035 // optional .metrics.SystemProfileProto.ExternalAudioVideoDevice.ColorEncoding color_encoding = 15;
10036 if (cached_has_bits & 0x00000400u) {
10037 target = stream->EnsureSpace(target);
10038 target = ::_pbi::WireFormatLite::WriteEnumToArray(
10039 15, this->_internal_color_encoding(), target);
10040 }
10041
10042 // optional int32 bit_depth = 16;
10043 if (cached_has_bits & 0x00000800u) {
10044 target = stream->EnsureSpace(target);
10045 target = ::_pbi::WireFormatLite::WriteInt32ToArray(16, this->_internal_bit_depth(), target);
10046 }
10047
10048 // optional int32 tmds = 17;
10049 if (cached_has_bits & 0x00001000u) {
10050 target = stream->EnsureSpace(target);
10051 target = ::_pbi::WireFormatLite::WriteInt32ToArray(17, this->_internal_tmds(), target);
10052 }
10053
10054 // optional bool hdr10_support = 18;
10055 if (cached_has_bits & 0x00004000u) {
10056 target = stream->EnsureSpace(target);
10057 target = ::_pbi::WireFormatLite::WriteBoolToArray(18, this->_internal_hdr10_support(), target);
10058 }
10059
10060 // optional bool dolby_vision_support = 19;
10061 if (cached_has_bits & 0x00008000u) {
10062 target = stream->EnsureSpace(target);
10063 target = ::_pbi::WireFormatLite::WriteBoolToArray(19, this->_internal_dolby_vision_support(), target);
10064 }
10065
10066 // optional int32 eotf_support = 20;
10067 if (cached_has_bits & 0x00020000u) {
10068 target = stream->EnsureSpace(target);
10069 target = ::_pbi::WireFormatLite::WriteInt32ToArray(20, this->_internal_eotf_support(), target);
10070 }
10071
10072 // optional bool yuv_support = 21;
10073 if (cached_has_bits & 0x00010000u) {
10074 target = stream->EnsureSpace(target);
10075 target = ::_pbi::WireFormatLite::WriteBoolToArray(21, this->_internal_yuv_support(), target);
10076 }
10077
10078 // optional bool yuv_420_support = 22;
10079 if (cached_has_bits & 0x00040000u) {
10080 target = stream->EnsureSpace(target);
10081 target = ::_pbi::WireFormatLite::WriteBoolToArray(22, this->_internal_yuv_420_support(), target);
10082 }
10083
10084 // optional int32 maximum_supported_hdcp_version = 23;
10085 if (cached_has_bits & 0x00080000u) {
10086 target = stream->EnsureSpace(target);
10087 target = ::_pbi::WireFormatLite::WriteInt32ToArray(23, this->_internal_maximum_supported_hdcp_version(), target);
10088 }
10089
10090 // optional int32 current_hdcp_version = 24;
10091 if (cached_has_bits & 0x00100000u) {
10092 target = stream->EnsureSpace(target);
10093 target = ::_pbi::WireFormatLite::WriteInt32ToArray(24, this->_internal_current_hdcp_version(), target);
10094 }
10095
10096 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
10097 target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
10098 static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
10099 }
10100 // @@protoc_insertion_point(serialize_to_array_end:metrics.SystemProfileProto.ExternalAudioVideoDevice)
10101 return target;
10102 }
10103
ByteSizeLong() const10104 size_t SystemProfileProto_ExternalAudioVideoDevice::ByteSizeLong() const {
10105 // @@protoc_insertion_point(message_byte_size_start:metrics.SystemProfileProto.ExternalAudioVideoDevice)
10106 size_t total_size = 0;
10107
10108 uint32_t cached_has_bits = 0;
10109 // Prevent compiler warnings about cached_has_bits being unused
10110 (void) cached_has_bits;
10111
10112 // repeated .metrics.SystemProfileProto.ExternalAudioVideoDevice.AVDeviceType av_device_type = 4;
10113 {
10114 size_t data_size = 0;
10115 unsigned int count = static_cast<unsigned int>(this->_internal_av_device_type_size());for (unsigned int i = 0; i < count; i++) {
10116 data_size += ::_pbi::WireFormatLite::EnumSize(
10117 this->_internal_av_device_type(static_cast<int>(i)));
10118 }
10119 total_size += (1UL * count) + data_size;
10120 }
10121
10122 // repeated .metrics.SystemProfileProto.ExternalAudioVideoDevice.AudioDescription audio_description = 9;
10123 total_size += 1UL * this->_internal_audio_description_size();
10124 for (const auto& msg : this->_impl_.audio_description_) {
10125 total_size +=
10126 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
10127 }
10128
10129 // repeated .metrics.SystemProfileProto.ExternalAudioVideoDevice.CECCommand cec_command = 13;
10130 total_size += 1UL * this->_internal_cec_command_size();
10131 for (const auto& msg : this->_impl_.cec_command_) {
10132 total_size +=
10133 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
10134 }
10135
10136 cached_has_bits = _impl_._has_bits_[0];
10137 if (cached_has_bits & 0x000000ffu) {
10138 // optional string manufacturer_name = 1;
10139 if (cached_has_bits & 0x00000001u) {
10140 total_size += 1 +
10141 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
10142 this->_internal_manufacturer_name());
10143 }
10144
10145 // optional string model_name = 2;
10146 if (cached_has_bits & 0x00000002u) {
10147 total_size += 1 +
10148 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
10149 this->_internal_model_name());
10150 }
10151
10152 // optional string product_code = 3;
10153 if (cached_has_bits & 0x00000004u) {
10154 total_size += 1 +
10155 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
10156 this->_internal_product_code());
10157 }
10158
10159 // optional int32 manufacture_year = 5;
10160 if (cached_has_bits & 0x00000008u) {
10161 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_manufacture_year());
10162 }
10163
10164 // optional int32 manufacture_week = 6;
10165 if (cached_has_bits & 0x00000010u) {
10166 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_manufacture_week());
10167 }
10168
10169 // optional int32 horizontal_resolution = 7;
10170 if (cached_has_bits & 0x00000020u) {
10171 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_horizontal_resolution());
10172 }
10173
10174 // optional int32 vertical_resolution = 8;
10175 if (cached_has_bits & 0x00000040u) {
10176 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_vertical_resolution());
10177 }
10178
10179 // optional int32 position_in_setup = 10;
10180 if (cached_has_bits & 0x00000080u) {
10181 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_position_in_setup());
10182 }
10183
10184 }
10185 if (cached_has_bits & 0x0000ff00u) {
10186 // optional int32 cec_version = 12;
10187 if (cached_has_bits & 0x00000100u) {
10188 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_cec_version());
10189 }
10190
10191 // optional int32 frame_rate = 14;
10192 if (cached_has_bits & 0x00000200u) {
10193 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_frame_rate());
10194 }
10195
10196 // optional .metrics.SystemProfileProto.ExternalAudioVideoDevice.ColorEncoding color_encoding = 15;
10197 if (cached_has_bits & 0x00000400u) {
10198 total_size += 1 +
10199 ::_pbi::WireFormatLite::EnumSize(this->_internal_color_encoding());
10200 }
10201
10202 // optional int32 bit_depth = 16;
10203 if (cached_has_bits & 0x00000800u) {
10204 total_size += 2 +
10205 ::_pbi::WireFormatLite::Int32Size(
10206 this->_internal_bit_depth());
10207 }
10208
10209 // optional int32 tmds = 17;
10210 if (cached_has_bits & 0x00001000u) {
10211 total_size += 2 +
10212 ::_pbi::WireFormatLite::Int32Size(
10213 this->_internal_tmds());
10214 }
10215
10216 // optional bool is_in_path_to_tv = 11;
10217 if (cached_has_bits & 0x00002000u) {
10218 total_size += 1 + 1;
10219 }
10220
10221 // optional bool hdr10_support = 18;
10222 if (cached_has_bits & 0x00004000u) {
10223 total_size += 2 + 1;
10224 }
10225
10226 // optional bool dolby_vision_support = 19;
10227 if (cached_has_bits & 0x00008000u) {
10228 total_size += 2 + 1;
10229 }
10230
10231 }
10232 if (cached_has_bits & 0x001f0000u) {
10233 // optional bool yuv_support = 21;
10234 if (cached_has_bits & 0x00010000u) {
10235 total_size += 2 + 1;
10236 }
10237
10238 // optional int32 eotf_support = 20;
10239 if (cached_has_bits & 0x00020000u) {
10240 total_size += 2 +
10241 ::_pbi::WireFormatLite::Int32Size(
10242 this->_internal_eotf_support());
10243 }
10244
10245 // optional bool yuv_420_support = 22;
10246 if (cached_has_bits & 0x00040000u) {
10247 total_size += 2 + 1;
10248 }
10249
10250 // optional int32 maximum_supported_hdcp_version = 23;
10251 if (cached_has_bits & 0x00080000u) {
10252 total_size += 2 +
10253 ::_pbi::WireFormatLite::Int32Size(
10254 this->_internal_maximum_supported_hdcp_version());
10255 }
10256
10257 // optional int32 current_hdcp_version = 24;
10258 if (cached_has_bits & 0x00100000u) {
10259 total_size += 2 +
10260 ::_pbi::WireFormatLite::Int32Size(
10261 this->_internal_current_hdcp_version());
10262 }
10263
10264 }
10265 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
10266 total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
10267 }
10268 int cached_size = ::_pbi::ToCachedSize(total_size);
10269 SetCachedSize(cached_size);
10270 return total_size;
10271 }
10272
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)10273 void SystemProfileProto_ExternalAudioVideoDevice::CheckTypeAndMergeFrom(
10274 const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
10275 MergeFrom(*::_pbi::DownCast<const SystemProfileProto_ExternalAudioVideoDevice*>(
10276 &from));
10277 }
10278
MergeFrom(const SystemProfileProto_ExternalAudioVideoDevice & from)10279 void SystemProfileProto_ExternalAudioVideoDevice::MergeFrom(const SystemProfileProto_ExternalAudioVideoDevice& from) {
10280 SystemProfileProto_ExternalAudioVideoDevice* const _this = this;
10281 // @@protoc_insertion_point(class_specific_merge_from_start:metrics.SystemProfileProto.ExternalAudioVideoDevice)
10282 GOOGLE_DCHECK_NE(&from, _this);
10283 uint32_t cached_has_bits = 0;
10284 (void) cached_has_bits;
10285
10286 _this->_impl_.av_device_type_.MergeFrom(from._impl_.av_device_type_);
10287 _this->_impl_.audio_description_.MergeFrom(from._impl_.audio_description_);
10288 _this->_impl_.cec_command_.MergeFrom(from._impl_.cec_command_);
10289 cached_has_bits = from._impl_._has_bits_[0];
10290 if (cached_has_bits & 0x000000ffu) {
10291 if (cached_has_bits & 0x00000001u) {
10292 _this->_internal_set_manufacturer_name(from._internal_manufacturer_name());
10293 }
10294 if (cached_has_bits & 0x00000002u) {
10295 _this->_internal_set_model_name(from._internal_model_name());
10296 }
10297 if (cached_has_bits & 0x00000004u) {
10298 _this->_internal_set_product_code(from._internal_product_code());
10299 }
10300 if (cached_has_bits & 0x00000008u) {
10301 _this->_impl_.manufacture_year_ = from._impl_.manufacture_year_;
10302 }
10303 if (cached_has_bits & 0x00000010u) {
10304 _this->_impl_.manufacture_week_ = from._impl_.manufacture_week_;
10305 }
10306 if (cached_has_bits & 0x00000020u) {
10307 _this->_impl_.horizontal_resolution_ = from._impl_.horizontal_resolution_;
10308 }
10309 if (cached_has_bits & 0x00000040u) {
10310 _this->_impl_.vertical_resolution_ = from._impl_.vertical_resolution_;
10311 }
10312 if (cached_has_bits & 0x00000080u) {
10313 _this->_impl_.position_in_setup_ = from._impl_.position_in_setup_;
10314 }
10315 _this->_impl_._has_bits_[0] |= cached_has_bits;
10316 }
10317 if (cached_has_bits & 0x0000ff00u) {
10318 if (cached_has_bits & 0x00000100u) {
10319 _this->_impl_.cec_version_ = from._impl_.cec_version_;
10320 }
10321 if (cached_has_bits & 0x00000200u) {
10322 _this->_impl_.frame_rate_ = from._impl_.frame_rate_;
10323 }
10324 if (cached_has_bits & 0x00000400u) {
10325 _this->_impl_.color_encoding_ = from._impl_.color_encoding_;
10326 }
10327 if (cached_has_bits & 0x00000800u) {
10328 _this->_impl_.bit_depth_ = from._impl_.bit_depth_;
10329 }
10330 if (cached_has_bits & 0x00001000u) {
10331 _this->_impl_.tmds_ = from._impl_.tmds_;
10332 }
10333 if (cached_has_bits & 0x00002000u) {
10334 _this->_impl_.is_in_path_to_tv_ = from._impl_.is_in_path_to_tv_;
10335 }
10336 if (cached_has_bits & 0x00004000u) {
10337 _this->_impl_.hdr10_support_ = from._impl_.hdr10_support_;
10338 }
10339 if (cached_has_bits & 0x00008000u) {
10340 _this->_impl_.dolby_vision_support_ = from._impl_.dolby_vision_support_;
10341 }
10342 _this->_impl_._has_bits_[0] |= cached_has_bits;
10343 }
10344 if (cached_has_bits & 0x001f0000u) {
10345 if (cached_has_bits & 0x00010000u) {
10346 _this->_impl_.yuv_support_ = from._impl_.yuv_support_;
10347 }
10348 if (cached_has_bits & 0x00020000u) {
10349 _this->_impl_.eotf_support_ = from._impl_.eotf_support_;
10350 }
10351 if (cached_has_bits & 0x00040000u) {
10352 _this->_impl_.yuv_420_support_ = from._impl_.yuv_420_support_;
10353 }
10354 if (cached_has_bits & 0x00080000u) {
10355 _this->_impl_.maximum_supported_hdcp_version_ = from._impl_.maximum_supported_hdcp_version_;
10356 }
10357 if (cached_has_bits & 0x00100000u) {
10358 _this->_impl_.current_hdcp_version_ = from._impl_.current_hdcp_version_;
10359 }
10360 _this->_impl_._has_bits_[0] |= cached_has_bits;
10361 }
10362 _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
10363 }
10364
CopyFrom(const SystemProfileProto_ExternalAudioVideoDevice & from)10365 void SystemProfileProto_ExternalAudioVideoDevice::CopyFrom(const SystemProfileProto_ExternalAudioVideoDevice& from) {
10366 // @@protoc_insertion_point(class_specific_copy_from_start:metrics.SystemProfileProto.ExternalAudioVideoDevice)
10367 if (&from == this) return;
10368 Clear();
10369 MergeFrom(from);
10370 }
10371
IsInitialized() const10372 bool SystemProfileProto_ExternalAudioVideoDevice::IsInitialized() const {
10373 return true;
10374 }
10375
InternalSwap(SystemProfileProto_ExternalAudioVideoDevice * other)10376 void SystemProfileProto_ExternalAudioVideoDevice::InternalSwap(SystemProfileProto_ExternalAudioVideoDevice* other) {
10377 using std::swap;
10378 auto* lhs_arena = GetArenaForAllocation();
10379 auto* rhs_arena = other->GetArenaForAllocation();
10380 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
10381 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
10382 _impl_.av_device_type_.InternalSwap(&other->_impl_.av_device_type_);
10383 _impl_.audio_description_.InternalSwap(&other->_impl_.audio_description_);
10384 _impl_.cec_command_.InternalSwap(&other->_impl_.cec_command_);
10385 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
10386 &_impl_.manufacturer_name_, lhs_arena,
10387 &other->_impl_.manufacturer_name_, rhs_arena
10388 );
10389 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
10390 &_impl_.model_name_, lhs_arena,
10391 &other->_impl_.model_name_, rhs_arena
10392 );
10393 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
10394 &_impl_.product_code_, lhs_arena,
10395 &other->_impl_.product_code_, rhs_arena
10396 );
10397 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
10398 PROTOBUF_FIELD_OFFSET(SystemProfileProto_ExternalAudioVideoDevice, _impl_.current_hdcp_version_)
10399 + sizeof(SystemProfileProto_ExternalAudioVideoDevice::_impl_.current_hdcp_version_)
10400 - PROTOBUF_FIELD_OFFSET(SystemProfileProto_ExternalAudioVideoDevice, _impl_.manufacture_year_)>(
10401 reinterpret_cast<char*>(&_impl_.manufacture_year_),
10402 reinterpret_cast<char*>(&other->_impl_.manufacture_year_));
10403 }
10404
GetTypeName() const10405 std::string SystemProfileProto_ExternalAudioVideoDevice::GetTypeName() const {
10406 return "metrics.SystemProfileProto.ExternalAudioVideoDevice";
10407 }
10408
10409
10410 // ===================================================================
10411
10412 class SystemProfileProto_ExternalAccessPoint::_Internal {
10413 public:
10414 using HasBits = decltype(std::declval<SystemProfileProto_ExternalAccessPoint>()._impl_._has_bits_);
set_has_manufacturer(HasBits * has_bits)10415 static void set_has_manufacturer(HasBits* has_bits) {
10416 (*has_bits)[0] |= 1u;
10417 }
set_has_model_name(HasBits * has_bits)10418 static void set_has_model_name(HasBits* has_bits) {
10419 (*has_bits)[0] |= 2u;
10420 }
set_has_model_number(HasBits * has_bits)10421 static void set_has_model_number(HasBits* has_bits) {
10422 (*has_bits)[0] |= 4u;
10423 }
set_has_device_name(HasBits * has_bits)10424 static void set_has_device_name(HasBits* has_bits) {
10425 (*has_bits)[0] |= 8u;
10426 }
10427 };
10428
SystemProfileProto_ExternalAccessPoint(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)10429 SystemProfileProto_ExternalAccessPoint::SystemProfileProto_ExternalAccessPoint(::PROTOBUF_NAMESPACE_ID::Arena* arena,
10430 bool is_message_owned)
10431 : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
10432 SharedCtor(arena, is_message_owned);
10433 // @@protoc_insertion_point(arena_constructor:metrics.SystemProfileProto.ExternalAccessPoint)
10434 }
SystemProfileProto_ExternalAccessPoint(const SystemProfileProto_ExternalAccessPoint & from)10435 SystemProfileProto_ExternalAccessPoint::SystemProfileProto_ExternalAccessPoint(const SystemProfileProto_ExternalAccessPoint& from)
10436 : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
10437 SystemProfileProto_ExternalAccessPoint* const _this = this; (void)_this;
10438 new (&_impl_) Impl_{
10439 decltype(_impl_._has_bits_){from._impl_._has_bits_}
10440 , /*decltype(_impl_._cached_size_)*/{}
10441 , decltype(_impl_.manufacturer_){}
10442 , decltype(_impl_.model_name_){}
10443 , decltype(_impl_.model_number_){}
10444 , decltype(_impl_.device_name_){}};
10445
10446 _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
10447 _impl_.manufacturer_.InitDefault();
10448 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
10449 _impl_.manufacturer_.Set("", GetArenaForAllocation());
10450 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
10451 if (from._internal_has_manufacturer()) {
10452 _this->_impl_.manufacturer_.Set(from._internal_manufacturer(),
10453 _this->GetArenaForAllocation());
10454 }
10455 _impl_.model_name_.InitDefault();
10456 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
10457 _impl_.model_name_.Set("", GetArenaForAllocation());
10458 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
10459 if (from._internal_has_model_name()) {
10460 _this->_impl_.model_name_.Set(from._internal_model_name(),
10461 _this->GetArenaForAllocation());
10462 }
10463 _impl_.model_number_.InitDefault();
10464 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
10465 _impl_.model_number_.Set("", GetArenaForAllocation());
10466 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
10467 if (from._internal_has_model_number()) {
10468 _this->_impl_.model_number_.Set(from._internal_model_number(),
10469 _this->GetArenaForAllocation());
10470 }
10471 _impl_.device_name_.InitDefault();
10472 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
10473 _impl_.device_name_.Set("", GetArenaForAllocation());
10474 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
10475 if (from._internal_has_device_name()) {
10476 _this->_impl_.device_name_.Set(from._internal_device_name(),
10477 _this->GetArenaForAllocation());
10478 }
10479 // @@protoc_insertion_point(copy_constructor:metrics.SystemProfileProto.ExternalAccessPoint)
10480 }
10481
SharedCtor(::_pb::Arena * arena,bool is_message_owned)10482 inline void SystemProfileProto_ExternalAccessPoint::SharedCtor(
10483 ::_pb::Arena* arena, bool is_message_owned) {
10484 (void)arena;
10485 (void)is_message_owned;
10486 new (&_impl_) Impl_{
10487 decltype(_impl_._has_bits_){}
10488 , /*decltype(_impl_._cached_size_)*/{}
10489 , decltype(_impl_.manufacturer_){}
10490 , decltype(_impl_.model_name_){}
10491 , decltype(_impl_.model_number_){}
10492 , decltype(_impl_.device_name_){}
10493 };
10494 _impl_.manufacturer_.InitDefault();
10495 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
10496 _impl_.manufacturer_.Set("", GetArenaForAllocation());
10497 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
10498 _impl_.model_name_.InitDefault();
10499 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
10500 _impl_.model_name_.Set("", GetArenaForAllocation());
10501 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
10502 _impl_.model_number_.InitDefault();
10503 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
10504 _impl_.model_number_.Set("", GetArenaForAllocation());
10505 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
10506 _impl_.device_name_.InitDefault();
10507 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
10508 _impl_.device_name_.Set("", GetArenaForAllocation());
10509 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
10510 }
10511
~SystemProfileProto_ExternalAccessPoint()10512 SystemProfileProto_ExternalAccessPoint::~SystemProfileProto_ExternalAccessPoint() {
10513 // @@protoc_insertion_point(destructor:metrics.SystemProfileProto.ExternalAccessPoint)
10514 if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
10515 (void)arena;
10516 return;
10517 }
10518 SharedDtor();
10519 }
10520
SharedDtor()10521 inline void SystemProfileProto_ExternalAccessPoint::SharedDtor() {
10522 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
10523 _impl_.manufacturer_.Destroy();
10524 _impl_.model_name_.Destroy();
10525 _impl_.model_number_.Destroy();
10526 _impl_.device_name_.Destroy();
10527 }
10528
SetCachedSize(int size) const10529 void SystemProfileProto_ExternalAccessPoint::SetCachedSize(int size) const {
10530 _impl_._cached_size_.Set(size);
10531 }
10532
Clear()10533 void SystemProfileProto_ExternalAccessPoint::Clear() {
10534 // @@protoc_insertion_point(message_clear_start:metrics.SystemProfileProto.ExternalAccessPoint)
10535 uint32_t cached_has_bits = 0;
10536 // Prevent compiler warnings about cached_has_bits being unused
10537 (void) cached_has_bits;
10538
10539 cached_has_bits = _impl_._has_bits_[0];
10540 if (cached_has_bits & 0x0000000fu) {
10541 if (cached_has_bits & 0x00000001u) {
10542 _impl_.manufacturer_.ClearNonDefaultToEmpty();
10543 }
10544 if (cached_has_bits & 0x00000002u) {
10545 _impl_.model_name_.ClearNonDefaultToEmpty();
10546 }
10547 if (cached_has_bits & 0x00000004u) {
10548 _impl_.model_number_.ClearNonDefaultToEmpty();
10549 }
10550 if (cached_has_bits & 0x00000008u) {
10551 _impl_.device_name_.ClearNonDefaultToEmpty();
10552 }
10553 }
10554 _impl_._has_bits_.Clear();
10555 _internal_metadata_.Clear<std::string>();
10556 }
10557
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)10558 const char* SystemProfileProto_ExternalAccessPoint::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
10559 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
10560 _Internal::HasBits has_bits{};
10561 while (!ctx->Done(&ptr)) {
10562 uint32_t tag;
10563 ptr = ::_pbi::ReadTag(ptr, &tag);
10564 switch (tag >> 3) {
10565 // optional string manufacturer = 1;
10566 case 1:
10567 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
10568 auto str = _internal_mutable_manufacturer();
10569 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
10570 CHK_(ptr);
10571 } else
10572 goto handle_unusual;
10573 continue;
10574 // optional string model_name = 2;
10575 case 2:
10576 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
10577 auto str = _internal_mutable_model_name();
10578 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
10579 CHK_(ptr);
10580 } else
10581 goto handle_unusual;
10582 continue;
10583 // optional string model_number = 3;
10584 case 3:
10585 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
10586 auto str = _internal_mutable_model_number();
10587 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
10588 CHK_(ptr);
10589 } else
10590 goto handle_unusual;
10591 continue;
10592 // optional string device_name = 4;
10593 case 4:
10594 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
10595 auto str = _internal_mutable_device_name();
10596 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
10597 CHK_(ptr);
10598 } else
10599 goto handle_unusual;
10600 continue;
10601 default:
10602 goto handle_unusual;
10603 } // switch
10604 handle_unusual:
10605 if ((tag == 0) || ((tag & 7) == 4)) {
10606 CHK_(ptr);
10607 ctx->SetLastTag(tag);
10608 goto message_done;
10609 }
10610 ptr = UnknownFieldParse(
10611 tag,
10612 _internal_metadata_.mutable_unknown_fields<std::string>(),
10613 ptr, ctx);
10614 CHK_(ptr != nullptr);
10615 } // while
10616 message_done:
10617 _impl_._has_bits_.Or(has_bits);
10618 return ptr;
10619 failure:
10620 ptr = nullptr;
10621 goto message_done;
10622 #undef CHK_
10623 }
10624
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const10625 uint8_t* SystemProfileProto_ExternalAccessPoint::_InternalSerialize(
10626 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
10627 // @@protoc_insertion_point(serialize_to_array_start:metrics.SystemProfileProto.ExternalAccessPoint)
10628 uint32_t cached_has_bits = 0;
10629 (void) cached_has_bits;
10630
10631 cached_has_bits = _impl_._has_bits_[0];
10632 // optional string manufacturer = 1;
10633 if (cached_has_bits & 0x00000001u) {
10634 target = stream->WriteStringMaybeAliased(
10635 1, this->_internal_manufacturer(), target);
10636 }
10637
10638 // optional string model_name = 2;
10639 if (cached_has_bits & 0x00000002u) {
10640 target = stream->WriteStringMaybeAliased(
10641 2, this->_internal_model_name(), target);
10642 }
10643
10644 // optional string model_number = 3;
10645 if (cached_has_bits & 0x00000004u) {
10646 target = stream->WriteStringMaybeAliased(
10647 3, this->_internal_model_number(), target);
10648 }
10649
10650 // optional string device_name = 4;
10651 if (cached_has_bits & 0x00000008u) {
10652 target = stream->WriteStringMaybeAliased(
10653 4, this->_internal_device_name(), target);
10654 }
10655
10656 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
10657 target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
10658 static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
10659 }
10660 // @@protoc_insertion_point(serialize_to_array_end:metrics.SystemProfileProto.ExternalAccessPoint)
10661 return target;
10662 }
10663
ByteSizeLong() const10664 size_t SystemProfileProto_ExternalAccessPoint::ByteSizeLong() const {
10665 // @@protoc_insertion_point(message_byte_size_start:metrics.SystemProfileProto.ExternalAccessPoint)
10666 size_t total_size = 0;
10667
10668 uint32_t cached_has_bits = 0;
10669 // Prevent compiler warnings about cached_has_bits being unused
10670 (void) cached_has_bits;
10671
10672 cached_has_bits = _impl_._has_bits_[0];
10673 if (cached_has_bits & 0x0000000fu) {
10674 // optional string manufacturer = 1;
10675 if (cached_has_bits & 0x00000001u) {
10676 total_size += 1 +
10677 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
10678 this->_internal_manufacturer());
10679 }
10680
10681 // optional string model_name = 2;
10682 if (cached_has_bits & 0x00000002u) {
10683 total_size += 1 +
10684 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
10685 this->_internal_model_name());
10686 }
10687
10688 // optional string model_number = 3;
10689 if (cached_has_bits & 0x00000004u) {
10690 total_size += 1 +
10691 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
10692 this->_internal_model_number());
10693 }
10694
10695 // optional string device_name = 4;
10696 if (cached_has_bits & 0x00000008u) {
10697 total_size += 1 +
10698 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
10699 this->_internal_device_name());
10700 }
10701
10702 }
10703 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
10704 total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
10705 }
10706 int cached_size = ::_pbi::ToCachedSize(total_size);
10707 SetCachedSize(cached_size);
10708 return total_size;
10709 }
10710
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)10711 void SystemProfileProto_ExternalAccessPoint::CheckTypeAndMergeFrom(
10712 const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
10713 MergeFrom(*::_pbi::DownCast<const SystemProfileProto_ExternalAccessPoint*>(
10714 &from));
10715 }
10716
MergeFrom(const SystemProfileProto_ExternalAccessPoint & from)10717 void SystemProfileProto_ExternalAccessPoint::MergeFrom(const SystemProfileProto_ExternalAccessPoint& from) {
10718 SystemProfileProto_ExternalAccessPoint* const _this = this;
10719 // @@protoc_insertion_point(class_specific_merge_from_start:metrics.SystemProfileProto.ExternalAccessPoint)
10720 GOOGLE_DCHECK_NE(&from, _this);
10721 uint32_t cached_has_bits = 0;
10722 (void) cached_has_bits;
10723
10724 cached_has_bits = from._impl_._has_bits_[0];
10725 if (cached_has_bits & 0x0000000fu) {
10726 if (cached_has_bits & 0x00000001u) {
10727 _this->_internal_set_manufacturer(from._internal_manufacturer());
10728 }
10729 if (cached_has_bits & 0x00000002u) {
10730 _this->_internal_set_model_name(from._internal_model_name());
10731 }
10732 if (cached_has_bits & 0x00000004u) {
10733 _this->_internal_set_model_number(from._internal_model_number());
10734 }
10735 if (cached_has_bits & 0x00000008u) {
10736 _this->_internal_set_device_name(from._internal_device_name());
10737 }
10738 }
10739 _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
10740 }
10741
CopyFrom(const SystemProfileProto_ExternalAccessPoint & from)10742 void SystemProfileProto_ExternalAccessPoint::CopyFrom(const SystemProfileProto_ExternalAccessPoint& from) {
10743 // @@protoc_insertion_point(class_specific_copy_from_start:metrics.SystemProfileProto.ExternalAccessPoint)
10744 if (&from == this) return;
10745 Clear();
10746 MergeFrom(from);
10747 }
10748
IsInitialized() const10749 bool SystemProfileProto_ExternalAccessPoint::IsInitialized() const {
10750 return true;
10751 }
10752
InternalSwap(SystemProfileProto_ExternalAccessPoint * other)10753 void SystemProfileProto_ExternalAccessPoint::InternalSwap(SystemProfileProto_ExternalAccessPoint* other) {
10754 using std::swap;
10755 auto* lhs_arena = GetArenaForAllocation();
10756 auto* rhs_arena = other->GetArenaForAllocation();
10757 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
10758 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
10759 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
10760 &_impl_.manufacturer_, lhs_arena,
10761 &other->_impl_.manufacturer_, rhs_arena
10762 );
10763 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
10764 &_impl_.model_name_, lhs_arena,
10765 &other->_impl_.model_name_, rhs_arena
10766 );
10767 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
10768 &_impl_.model_number_, lhs_arena,
10769 &other->_impl_.model_number_, rhs_arena
10770 );
10771 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
10772 &_impl_.device_name_, lhs_arena,
10773 &other->_impl_.device_name_, rhs_arena
10774 );
10775 }
10776
GetTypeName() const10777 std::string SystemProfileProto_ExternalAccessPoint::GetTypeName() const {
10778 return "metrics.SystemProfileProto.ExternalAccessPoint";
10779 }
10780
10781
10782 // ===================================================================
10783
10784 class SystemProfileProto_AntiVirusProduct::_Internal {
10785 public:
10786 using HasBits = decltype(std::declval<SystemProfileProto_AntiVirusProduct>()._impl_._has_bits_);
set_has_product_name(HasBits * has_bits)10787 static void set_has_product_name(HasBits* has_bits) {
10788 (*has_bits)[0] |= 1u;
10789 }
set_has_product_name_hash(HasBits * has_bits)10790 static void set_has_product_name_hash(HasBits* has_bits) {
10791 (*has_bits)[0] |= 4u;
10792 }
set_has_product_version(HasBits * has_bits)10793 static void set_has_product_version(HasBits* has_bits) {
10794 (*has_bits)[0] |= 2u;
10795 }
set_has_product_version_hash(HasBits * has_bits)10796 static void set_has_product_version_hash(HasBits* has_bits) {
10797 (*has_bits)[0] |= 8u;
10798 }
set_has_product_state(HasBits * has_bits)10799 static void set_has_product_state(HasBits* has_bits) {
10800 (*has_bits)[0] |= 16u;
10801 }
10802 };
10803
SystemProfileProto_AntiVirusProduct(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)10804 SystemProfileProto_AntiVirusProduct::SystemProfileProto_AntiVirusProduct(::PROTOBUF_NAMESPACE_ID::Arena* arena,
10805 bool is_message_owned)
10806 : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
10807 SharedCtor(arena, is_message_owned);
10808 // @@protoc_insertion_point(arena_constructor:metrics.SystemProfileProto.AntiVirusProduct)
10809 }
SystemProfileProto_AntiVirusProduct(const SystemProfileProto_AntiVirusProduct & from)10810 SystemProfileProto_AntiVirusProduct::SystemProfileProto_AntiVirusProduct(const SystemProfileProto_AntiVirusProduct& from)
10811 : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
10812 SystemProfileProto_AntiVirusProduct* const _this = this; (void)_this;
10813 new (&_impl_) Impl_{
10814 decltype(_impl_._has_bits_){from._impl_._has_bits_}
10815 , /*decltype(_impl_._cached_size_)*/{}
10816 , decltype(_impl_.product_name_){}
10817 , decltype(_impl_.product_version_){}
10818 , decltype(_impl_.product_name_hash_){}
10819 , decltype(_impl_.product_version_hash_){}
10820 , decltype(_impl_.product_state_){}};
10821
10822 _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
10823 _impl_.product_name_.InitDefault();
10824 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
10825 _impl_.product_name_.Set("", GetArenaForAllocation());
10826 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
10827 if (from._internal_has_product_name()) {
10828 _this->_impl_.product_name_.Set(from._internal_product_name(),
10829 _this->GetArenaForAllocation());
10830 }
10831 _impl_.product_version_.InitDefault();
10832 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
10833 _impl_.product_version_.Set("", GetArenaForAllocation());
10834 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
10835 if (from._internal_has_product_version()) {
10836 _this->_impl_.product_version_.Set(from._internal_product_version(),
10837 _this->GetArenaForAllocation());
10838 }
10839 ::memcpy(&_impl_.product_name_hash_, &from._impl_.product_name_hash_,
10840 static_cast<size_t>(reinterpret_cast<char*>(&_impl_.product_state_) -
10841 reinterpret_cast<char*>(&_impl_.product_name_hash_)) + sizeof(_impl_.product_state_));
10842 // @@protoc_insertion_point(copy_constructor:metrics.SystemProfileProto.AntiVirusProduct)
10843 }
10844
SharedCtor(::_pb::Arena * arena,bool is_message_owned)10845 inline void SystemProfileProto_AntiVirusProduct::SharedCtor(
10846 ::_pb::Arena* arena, bool is_message_owned) {
10847 (void)arena;
10848 (void)is_message_owned;
10849 new (&_impl_) Impl_{
10850 decltype(_impl_._has_bits_){}
10851 , /*decltype(_impl_._cached_size_)*/{}
10852 , decltype(_impl_.product_name_){}
10853 , decltype(_impl_.product_version_){}
10854 , decltype(_impl_.product_name_hash_){0u}
10855 , decltype(_impl_.product_version_hash_){0u}
10856 , decltype(_impl_.product_state_){0}
10857 };
10858 _impl_.product_name_.InitDefault();
10859 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
10860 _impl_.product_name_.Set("", GetArenaForAllocation());
10861 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
10862 _impl_.product_version_.InitDefault();
10863 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
10864 _impl_.product_version_.Set("", GetArenaForAllocation());
10865 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
10866 }
10867
~SystemProfileProto_AntiVirusProduct()10868 SystemProfileProto_AntiVirusProduct::~SystemProfileProto_AntiVirusProduct() {
10869 // @@protoc_insertion_point(destructor:metrics.SystemProfileProto.AntiVirusProduct)
10870 if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
10871 (void)arena;
10872 return;
10873 }
10874 SharedDtor();
10875 }
10876
SharedDtor()10877 inline void SystemProfileProto_AntiVirusProduct::SharedDtor() {
10878 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
10879 _impl_.product_name_.Destroy();
10880 _impl_.product_version_.Destroy();
10881 }
10882
SetCachedSize(int size) const10883 void SystemProfileProto_AntiVirusProduct::SetCachedSize(int size) const {
10884 _impl_._cached_size_.Set(size);
10885 }
10886
Clear()10887 void SystemProfileProto_AntiVirusProduct::Clear() {
10888 // @@protoc_insertion_point(message_clear_start:metrics.SystemProfileProto.AntiVirusProduct)
10889 uint32_t cached_has_bits = 0;
10890 // Prevent compiler warnings about cached_has_bits being unused
10891 (void) cached_has_bits;
10892
10893 cached_has_bits = _impl_._has_bits_[0];
10894 if (cached_has_bits & 0x00000003u) {
10895 if (cached_has_bits & 0x00000001u) {
10896 _impl_.product_name_.ClearNonDefaultToEmpty();
10897 }
10898 if (cached_has_bits & 0x00000002u) {
10899 _impl_.product_version_.ClearNonDefaultToEmpty();
10900 }
10901 }
10902 if (cached_has_bits & 0x0000001cu) {
10903 ::memset(&_impl_.product_name_hash_, 0, static_cast<size_t>(
10904 reinterpret_cast<char*>(&_impl_.product_state_) -
10905 reinterpret_cast<char*>(&_impl_.product_name_hash_)) + sizeof(_impl_.product_state_));
10906 }
10907 _impl_._has_bits_.Clear();
10908 _internal_metadata_.Clear<std::string>();
10909 }
10910
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)10911 const char* SystemProfileProto_AntiVirusProduct::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
10912 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
10913 _Internal::HasBits has_bits{};
10914 while (!ctx->Done(&ptr)) {
10915 uint32_t tag;
10916 ptr = ::_pbi::ReadTag(ptr, &tag);
10917 switch (tag >> 3) {
10918 // optional string product_name = 1;
10919 case 1:
10920 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
10921 auto str = _internal_mutable_product_name();
10922 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
10923 CHK_(ptr);
10924 } else
10925 goto handle_unusual;
10926 continue;
10927 // optional fixed32 product_name_hash = 2;
10928 case 2:
10929 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 21)) {
10930 _Internal::set_has_product_name_hash(&has_bits);
10931 _impl_.product_name_hash_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<uint32_t>(ptr);
10932 ptr += sizeof(uint32_t);
10933 } else
10934 goto handle_unusual;
10935 continue;
10936 // optional string product_version = 3;
10937 case 3:
10938 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
10939 auto str = _internal_mutable_product_version();
10940 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
10941 CHK_(ptr);
10942 } else
10943 goto handle_unusual;
10944 continue;
10945 // optional fixed32 product_version_hash = 4;
10946 case 4:
10947 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 37)) {
10948 _Internal::set_has_product_version_hash(&has_bits);
10949 _impl_.product_version_hash_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<uint32_t>(ptr);
10950 ptr += sizeof(uint32_t);
10951 } else
10952 goto handle_unusual;
10953 continue;
10954 // optional .metrics.SystemProfileProto.AntiVirusState product_state = 5;
10955 case 5:
10956 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
10957 uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
10958 CHK_(ptr);
10959 if (PROTOBUF_PREDICT_TRUE(::metrics::SystemProfileProto_AntiVirusState_IsValid(val))) {
10960 _internal_set_product_state(static_cast<::metrics::SystemProfileProto_AntiVirusState>(val));
10961 } else {
10962 ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(5, val, mutable_unknown_fields());
10963 }
10964 } else
10965 goto handle_unusual;
10966 continue;
10967 default:
10968 goto handle_unusual;
10969 } // switch
10970 handle_unusual:
10971 if ((tag == 0) || ((tag & 7) == 4)) {
10972 CHK_(ptr);
10973 ctx->SetLastTag(tag);
10974 goto message_done;
10975 }
10976 ptr = UnknownFieldParse(
10977 tag,
10978 _internal_metadata_.mutable_unknown_fields<std::string>(),
10979 ptr, ctx);
10980 CHK_(ptr != nullptr);
10981 } // while
10982 message_done:
10983 _impl_._has_bits_.Or(has_bits);
10984 return ptr;
10985 failure:
10986 ptr = nullptr;
10987 goto message_done;
10988 #undef CHK_
10989 }
10990
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const10991 uint8_t* SystemProfileProto_AntiVirusProduct::_InternalSerialize(
10992 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
10993 // @@protoc_insertion_point(serialize_to_array_start:metrics.SystemProfileProto.AntiVirusProduct)
10994 uint32_t cached_has_bits = 0;
10995 (void) cached_has_bits;
10996
10997 cached_has_bits = _impl_._has_bits_[0];
10998 // optional string product_name = 1;
10999 if (cached_has_bits & 0x00000001u) {
11000 target = stream->WriteStringMaybeAliased(
11001 1, this->_internal_product_name(), target);
11002 }
11003
11004 // optional fixed32 product_name_hash = 2;
11005 if (cached_has_bits & 0x00000004u) {
11006 target = stream->EnsureSpace(target);
11007 target = ::_pbi::WireFormatLite::WriteFixed32ToArray(2, this->_internal_product_name_hash(), target);
11008 }
11009
11010 // optional string product_version = 3;
11011 if (cached_has_bits & 0x00000002u) {
11012 target = stream->WriteStringMaybeAliased(
11013 3, this->_internal_product_version(), target);
11014 }
11015
11016 // optional fixed32 product_version_hash = 4;
11017 if (cached_has_bits & 0x00000008u) {
11018 target = stream->EnsureSpace(target);
11019 target = ::_pbi::WireFormatLite::WriteFixed32ToArray(4, this->_internal_product_version_hash(), target);
11020 }
11021
11022 // optional .metrics.SystemProfileProto.AntiVirusState product_state = 5;
11023 if (cached_has_bits & 0x00000010u) {
11024 target = stream->EnsureSpace(target);
11025 target = ::_pbi::WireFormatLite::WriteEnumToArray(
11026 5, this->_internal_product_state(), target);
11027 }
11028
11029 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
11030 target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
11031 static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
11032 }
11033 // @@protoc_insertion_point(serialize_to_array_end:metrics.SystemProfileProto.AntiVirusProduct)
11034 return target;
11035 }
11036
ByteSizeLong() const11037 size_t SystemProfileProto_AntiVirusProduct::ByteSizeLong() const {
11038 // @@protoc_insertion_point(message_byte_size_start:metrics.SystemProfileProto.AntiVirusProduct)
11039 size_t total_size = 0;
11040
11041 uint32_t cached_has_bits = 0;
11042 // Prevent compiler warnings about cached_has_bits being unused
11043 (void) cached_has_bits;
11044
11045 cached_has_bits = _impl_._has_bits_[0];
11046 if (cached_has_bits & 0x0000001fu) {
11047 // optional string product_name = 1;
11048 if (cached_has_bits & 0x00000001u) {
11049 total_size += 1 +
11050 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
11051 this->_internal_product_name());
11052 }
11053
11054 // optional string product_version = 3;
11055 if (cached_has_bits & 0x00000002u) {
11056 total_size += 1 +
11057 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
11058 this->_internal_product_version());
11059 }
11060
11061 // optional fixed32 product_name_hash = 2;
11062 if (cached_has_bits & 0x00000004u) {
11063 total_size += 1 + 4;
11064 }
11065
11066 // optional fixed32 product_version_hash = 4;
11067 if (cached_has_bits & 0x00000008u) {
11068 total_size += 1 + 4;
11069 }
11070
11071 // optional .metrics.SystemProfileProto.AntiVirusState product_state = 5;
11072 if (cached_has_bits & 0x00000010u) {
11073 total_size += 1 +
11074 ::_pbi::WireFormatLite::EnumSize(this->_internal_product_state());
11075 }
11076
11077 }
11078 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
11079 total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
11080 }
11081 int cached_size = ::_pbi::ToCachedSize(total_size);
11082 SetCachedSize(cached_size);
11083 return total_size;
11084 }
11085
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)11086 void SystemProfileProto_AntiVirusProduct::CheckTypeAndMergeFrom(
11087 const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
11088 MergeFrom(*::_pbi::DownCast<const SystemProfileProto_AntiVirusProduct*>(
11089 &from));
11090 }
11091
MergeFrom(const SystemProfileProto_AntiVirusProduct & from)11092 void SystemProfileProto_AntiVirusProduct::MergeFrom(const SystemProfileProto_AntiVirusProduct& from) {
11093 SystemProfileProto_AntiVirusProduct* const _this = this;
11094 // @@protoc_insertion_point(class_specific_merge_from_start:metrics.SystemProfileProto.AntiVirusProduct)
11095 GOOGLE_DCHECK_NE(&from, _this);
11096 uint32_t cached_has_bits = 0;
11097 (void) cached_has_bits;
11098
11099 cached_has_bits = from._impl_._has_bits_[0];
11100 if (cached_has_bits & 0x0000001fu) {
11101 if (cached_has_bits & 0x00000001u) {
11102 _this->_internal_set_product_name(from._internal_product_name());
11103 }
11104 if (cached_has_bits & 0x00000002u) {
11105 _this->_internal_set_product_version(from._internal_product_version());
11106 }
11107 if (cached_has_bits & 0x00000004u) {
11108 _this->_impl_.product_name_hash_ = from._impl_.product_name_hash_;
11109 }
11110 if (cached_has_bits & 0x00000008u) {
11111 _this->_impl_.product_version_hash_ = from._impl_.product_version_hash_;
11112 }
11113 if (cached_has_bits & 0x00000010u) {
11114 _this->_impl_.product_state_ = from._impl_.product_state_;
11115 }
11116 _this->_impl_._has_bits_[0] |= cached_has_bits;
11117 }
11118 _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
11119 }
11120
CopyFrom(const SystemProfileProto_AntiVirusProduct & from)11121 void SystemProfileProto_AntiVirusProduct::CopyFrom(const SystemProfileProto_AntiVirusProduct& from) {
11122 // @@protoc_insertion_point(class_specific_copy_from_start:metrics.SystemProfileProto.AntiVirusProduct)
11123 if (&from == this) return;
11124 Clear();
11125 MergeFrom(from);
11126 }
11127
IsInitialized() const11128 bool SystemProfileProto_AntiVirusProduct::IsInitialized() const {
11129 return true;
11130 }
11131
InternalSwap(SystemProfileProto_AntiVirusProduct * other)11132 void SystemProfileProto_AntiVirusProduct::InternalSwap(SystemProfileProto_AntiVirusProduct* other) {
11133 using std::swap;
11134 auto* lhs_arena = GetArenaForAllocation();
11135 auto* rhs_arena = other->GetArenaForAllocation();
11136 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
11137 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
11138 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
11139 &_impl_.product_name_, lhs_arena,
11140 &other->_impl_.product_name_, rhs_arena
11141 );
11142 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
11143 &_impl_.product_version_, lhs_arena,
11144 &other->_impl_.product_version_, rhs_arena
11145 );
11146 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
11147 PROTOBUF_FIELD_OFFSET(SystemProfileProto_AntiVirusProduct, _impl_.product_state_)
11148 + sizeof(SystemProfileProto_AntiVirusProduct::_impl_.product_state_)
11149 - PROTOBUF_FIELD_OFFSET(SystemProfileProto_AntiVirusProduct, _impl_.product_name_hash_)>(
11150 reinterpret_cast<char*>(&_impl_.product_name_hash_),
11151 reinterpret_cast<char*>(&other->_impl_.product_name_hash_));
11152 }
11153
GetTypeName() const11154 std::string SystemProfileProto_AntiVirusProduct::GetTypeName() const {
11155 return "metrics.SystemProfileProto.AntiVirusProduct";
11156 }
11157
11158
11159 // ===================================================================
11160
11161 class SystemProfileProto_ChromeComponent::_Internal {
11162 public:
11163 using HasBits = decltype(std::declval<SystemProfileProto_ChromeComponent>()._impl_._has_bits_);
set_has_component_id(HasBits * has_bits)11164 static void set_has_component_id(HasBits* has_bits) {
11165 (*has_bits)[0] |= 8u;
11166 }
set_has_version(HasBits * has_bits)11167 static void set_has_version(HasBits* has_bits) {
11168 (*has_bits)[0] |= 1u;
11169 }
set_has_omaha_fingerprint(HasBits * has_bits)11170 static void set_has_omaha_fingerprint(HasBits* has_bits) {
11171 (*has_bits)[0] |= 2u;
11172 }
set_has_cohort_hash(HasBits * has_bits)11173 static void set_has_cohort_hash(HasBits* has_bits) {
11174 (*has_bits)[0] |= 4u;
11175 }
11176 };
11177
SystemProfileProto_ChromeComponent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)11178 SystemProfileProto_ChromeComponent::SystemProfileProto_ChromeComponent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
11179 bool is_message_owned)
11180 : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
11181 SharedCtor(arena, is_message_owned);
11182 // @@protoc_insertion_point(arena_constructor:metrics.SystemProfileProto.ChromeComponent)
11183 }
SystemProfileProto_ChromeComponent(const SystemProfileProto_ChromeComponent & from)11184 SystemProfileProto_ChromeComponent::SystemProfileProto_ChromeComponent(const SystemProfileProto_ChromeComponent& from)
11185 : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
11186 SystemProfileProto_ChromeComponent* const _this = this; (void)_this;
11187 new (&_impl_) Impl_{
11188 decltype(_impl_._has_bits_){from._impl_._has_bits_}
11189 , /*decltype(_impl_._cached_size_)*/{}
11190 , decltype(_impl_.version_){}
11191 , decltype(_impl_.omaha_fingerprint_){}
11192 , decltype(_impl_.cohort_hash_){}
11193 , decltype(_impl_.component_id_){}};
11194
11195 _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
11196 _impl_.version_.InitDefault();
11197 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
11198 _impl_.version_.Set("", GetArenaForAllocation());
11199 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
11200 if (from._internal_has_version()) {
11201 _this->_impl_.version_.Set(from._internal_version(),
11202 _this->GetArenaForAllocation());
11203 }
11204 ::memcpy(&_impl_.omaha_fingerprint_, &from._impl_.omaha_fingerprint_,
11205 static_cast<size_t>(reinterpret_cast<char*>(&_impl_.component_id_) -
11206 reinterpret_cast<char*>(&_impl_.omaha_fingerprint_)) + sizeof(_impl_.component_id_));
11207 // @@protoc_insertion_point(copy_constructor:metrics.SystemProfileProto.ChromeComponent)
11208 }
11209
SharedCtor(::_pb::Arena * arena,bool is_message_owned)11210 inline void SystemProfileProto_ChromeComponent::SharedCtor(
11211 ::_pb::Arena* arena, bool is_message_owned) {
11212 (void)arena;
11213 (void)is_message_owned;
11214 new (&_impl_) Impl_{
11215 decltype(_impl_._has_bits_){}
11216 , /*decltype(_impl_._cached_size_)*/{}
11217 , decltype(_impl_.version_){}
11218 , decltype(_impl_.omaha_fingerprint_){0u}
11219 , decltype(_impl_.cohort_hash_){0u}
11220 , decltype(_impl_.component_id_){1}
11221 };
11222 _impl_.version_.InitDefault();
11223 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
11224 _impl_.version_.Set("", GetArenaForAllocation());
11225 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
11226 }
11227
~SystemProfileProto_ChromeComponent()11228 SystemProfileProto_ChromeComponent::~SystemProfileProto_ChromeComponent() {
11229 // @@protoc_insertion_point(destructor:metrics.SystemProfileProto.ChromeComponent)
11230 if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
11231 (void)arena;
11232 return;
11233 }
11234 SharedDtor();
11235 }
11236
SharedDtor()11237 inline void SystemProfileProto_ChromeComponent::SharedDtor() {
11238 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
11239 _impl_.version_.Destroy();
11240 }
11241
SetCachedSize(int size) const11242 void SystemProfileProto_ChromeComponent::SetCachedSize(int size) const {
11243 _impl_._cached_size_.Set(size);
11244 }
11245
Clear()11246 void SystemProfileProto_ChromeComponent::Clear() {
11247 // @@protoc_insertion_point(message_clear_start:metrics.SystemProfileProto.ChromeComponent)
11248 uint32_t cached_has_bits = 0;
11249 // Prevent compiler warnings about cached_has_bits being unused
11250 (void) cached_has_bits;
11251
11252 cached_has_bits = _impl_._has_bits_[0];
11253 if (cached_has_bits & 0x00000001u) {
11254 _impl_.version_.ClearNonDefaultToEmpty();
11255 }
11256 if (cached_has_bits & 0x0000000eu) {
11257 ::memset(&_impl_.omaha_fingerprint_, 0, static_cast<size_t>(
11258 reinterpret_cast<char*>(&_impl_.cohort_hash_) -
11259 reinterpret_cast<char*>(&_impl_.omaha_fingerprint_)) + sizeof(_impl_.cohort_hash_));
11260 _impl_.component_id_ = 1;
11261 }
11262 _impl_._has_bits_.Clear();
11263 _internal_metadata_.Clear<std::string>();
11264 }
11265
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)11266 const char* SystemProfileProto_ChromeComponent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
11267 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
11268 _Internal::HasBits has_bits{};
11269 while (!ctx->Done(&ptr)) {
11270 uint32_t tag;
11271 ptr = ::_pbi::ReadTag(ptr, &tag);
11272 switch (tag >> 3) {
11273 // optional .metrics.SystemProfileProto.ComponentId component_id = 1 [default = UNKNOWN];
11274 case 1:
11275 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
11276 uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
11277 CHK_(ptr);
11278 if (PROTOBUF_PREDICT_TRUE(::metrics::SystemProfileProto_ComponentId_IsValid(val))) {
11279 _internal_set_component_id(static_cast<::metrics::SystemProfileProto_ComponentId>(val));
11280 } else {
11281 ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields());
11282 }
11283 } else
11284 goto handle_unusual;
11285 continue;
11286 // optional string version = 2;
11287 case 2:
11288 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
11289 auto str = _internal_mutable_version();
11290 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
11291 CHK_(ptr);
11292 } else
11293 goto handle_unusual;
11294 continue;
11295 // optional fixed32 omaha_fingerprint = 3;
11296 case 3:
11297 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 29)) {
11298 _Internal::set_has_omaha_fingerprint(&has_bits);
11299 _impl_.omaha_fingerprint_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<uint32_t>(ptr);
11300 ptr += sizeof(uint32_t);
11301 } else
11302 goto handle_unusual;
11303 continue;
11304 // optional fixed32 cohort_hash = 4;
11305 case 4:
11306 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 37)) {
11307 _Internal::set_has_cohort_hash(&has_bits);
11308 _impl_.cohort_hash_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<uint32_t>(ptr);
11309 ptr += sizeof(uint32_t);
11310 } else
11311 goto handle_unusual;
11312 continue;
11313 default:
11314 goto handle_unusual;
11315 } // switch
11316 handle_unusual:
11317 if ((tag == 0) || ((tag & 7) == 4)) {
11318 CHK_(ptr);
11319 ctx->SetLastTag(tag);
11320 goto message_done;
11321 }
11322 ptr = UnknownFieldParse(
11323 tag,
11324 _internal_metadata_.mutable_unknown_fields<std::string>(),
11325 ptr, ctx);
11326 CHK_(ptr != nullptr);
11327 } // while
11328 message_done:
11329 _impl_._has_bits_.Or(has_bits);
11330 return ptr;
11331 failure:
11332 ptr = nullptr;
11333 goto message_done;
11334 #undef CHK_
11335 }
11336
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const11337 uint8_t* SystemProfileProto_ChromeComponent::_InternalSerialize(
11338 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
11339 // @@protoc_insertion_point(serialize_to_array_start:metrics.SystemProfileProto.ChromeComponent)
11340 uint32_t cached_has_bits = 0;
11341 (void) cached_has_bits;
11342
11343 cached_has_bits = _impl_._has_bits_[0];
11344 // optional .metrics.SystemProfileProto.ComponentId component_id = 1 [default = UNKNOWN];
11345 if (cached_has_bits & 0x00000008u) {
11346 target = stream->EnsureSpace(target);
11347 target = ::_pbi::WireFormatLite::WriteEnumToArray(
11348 1, this->_internal_component_id(), target);
11349 }
11350
11351 // optional string version = 2;
11352 if (cached_has_bits & 0x00000001u) {
11353 target = stream->WriteStringMaybeAliased(
11354 2, this->_internal_version(), target);
11355 }
11356
11357 // optional fixed32 omaha_fingerprint = 3;
11358 if (cached_has_bits & 0x00000002u) {
11359 target = stream->EnsureSpace(target);
11360 target = ::_pbi::WireFormatLite::WriteFixed32ToArray(3, this->_internal_omaha_fingerprint(), target);
11361 }
11362
11363 // optional fixed32 cohort_hash = 4;
11364 if (cached_has_bits & 0x00000004u) {
11365 target = stream->EnsureSpace(target);
11366 target = ::_pbi::WireFormatLite::WriteFixed32ToArray(4, this->_internal_cohort_hash(), target);
11367 }
11368
11369 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
11370 target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
11371 static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
11372 }
11373 // @@protoc_insertion_point(serialize_to_array_end:metrics.SystemProfileProto.ChromeComponent)
11374 return target;
11375 }
11376
ByteSizeLong() const11377 size_t SystemProfileProto_ChromeComponent::ByteSizeLong() const {
11378 // @@protoc_insertion_point(message_byte_size_start:metrics.SystemProfileProto.ChromeComponent)
11379 size_t total_size = 0;
11380
11381 uint32_t cached_has_bits = 0;
11382 // Prevent compiler warnings about cached_has_bits being unused
11383 (void) cached_has_bits;
11384
11385 cached_has_bits = _impl_._has_bits_[0];
11386 if (cached_has_bits & 0x0000000fu) {
11387 // optional string version = 2;
11388 if (cached_has_bits & 0x00000001u) {
11389 total_size += 1 +
11390 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
11391 this->_internal_version());
11392 }
11393
11394 // optional fixed32 omaha_fingerprint = 3;
11395 if (cached_has_bits & 0x00000002u) {
11396 total_size += 1 + 4;
11397 }
11398
11399 // optional fixed32 cohort_hash = 4;
11400 if (cached_has_bits & 0x00000004u) {
11401 total_size += 1 + 4;
11402 }
11403
11404 // optional .metrics.SystemProfileProto.ComponentId component_id = 1 [default = UNKNOWN];
11405 if (cached_has_bits & 0x00000008u) {
11406 total_size += 1 +
11407 ::_pbi::WireFormatLite::EnumSize(this->_internal_component_id());
11408 }
11409
11410 }
11411 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
11412 total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
11413 }
11414 int cached_size = ::_pbi::ToCachedSize(total_size);
11415 SetCachedSize(cached_size);
11416 return total_size;
11417 }
11418
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)11419 void SystemProfileProto_ChromeComponent::CheckTypeAndMergeFrom(
11420 const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
11421 MergeFrom(*::_pbi::DownCast<const SystemProfileProto_ChromeComponent*>(
11422 &from));
11423 }
11424
MergeFrom(const SystemProfileProto_ChromeComponent & from)11425 void SystemProfileProto_ChromeComponent::MergeFrom(const SystemProfileProto_ChromeComponent& from) {
11426 SystemProfileProto_ChromeComponent* const _this = this;
11427 // @@protoc_insertion_point(class_specific_merge_from_start:metrics.SystemProfileProto.ChromeComponent)
11428 GOOGLE_DCHECK_NE(&from, _this);
11429 uint32_t cached_has_bits = 0;
11430 (void) cached_has_bits;
11431
11432 cached_has_bits = from._impl_._has_bits_[0];
11433 if (cached_has_bits & 0x0000000fu) {
11434 if (cached_has_bits & 0x00000001u) {
11435 _this->_internal_set_version(from._internal_version());
11436 }
11437 if (cached_has_bits & 0x00000002u) {
11438 _this->_impl_.omaha_fingerprint_ = from._impl_.omaha_fingerprint_;
11439 }
11440 if (cached_has_bits & 0x00000004u) {
11441 _this->_impl_.cohort_hash_ = from._impl_.cohort_hash_;
11442 }
11443 if (cached_has_bits & 0x00000008u) {
11444 _this->_impl_.component_id_ = from._impl_.component_id_;
11445 }
11446 _this->_impl_._has_bits_[0] |= cached_has_bits;
11447 }
11448 _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
11449 }
11450
CopyFrom(const SystemProfileProto_ChromeComponent & from)11451 void SystemProfileProto_ChromeComponent::CopyFrom(const SystemProfileProto_ChromeComponent& from) {
11452 // @@protoc_insertion_point(class_specific_copy_from_start:metrics.SystemProfileProto.ChromeComponent)
11453 if (&from == this) return;
11454 Clear();
11455 MergeFrom(from);
11456 }
11457
IsInitialized() const11458 bool SystemProfileProto_ChromeComponent::IsInitialized() const {
11459 return true;
11460 }
11461
InternalSwap(SystemProfileProto_ChromeComponent * other)11462 void SystemProfileProto_ChromeComponent::InternalSwap(SystemProfileProto_ChromeComponent* other) {
11463 using std::swap;
11464 auto* lhs_arena = GetArenaForAllocation();
11465 auto* rhs_arena = other->GetArenaForAllocation();
11466 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
11467 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
11468 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
11469 &_impl_.version_, lhs_arena,
11470 &other->_impl_.version_, rhs_arena
11471 );
11472 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
11473 PROTOBUF_FIELD_OFFSET(SystemProfileProto_ChromeComponent, _impl_.cohort_hash_)
11474 + sizeof(SystemProfileProto_ChromeComponent::_impl_.cohort_hash_)
11475 - PROTOBUF_FIELD_OFFSET(SystemProfileProto_ChromeComponent, _impl_.omaha_fingerprint_)>(
11476 reinterpret_cast<char*>(&_impl_.omaha_fingerprint_),
11477 reinterpret_cast<char*>(&other->_impl_.omaha_fingerprint_));
11478 swap(_impl_.component_id_, other->_impl_.component_id_);
11479 }
11480
GetTypeName() const11481 std::string SystemProfileProto_ChromeComponent::GetTypeName() const {
11482 return "metrics.SystemProfileProto.ChromeComponent";
11483 }
11484
11485
11486 // ===================================================================
11487
11488 class SystemProfileProto_LinkedAndroidPhoneData::_Internal {
11489 public:
11490 using HasBits = decltype(std::declval<SystemProfileProto_LinkedAndroidPhoneData>()._impl_._has_bits_);
set_has_phone_model_name_hash(HasBits * has_bits)11491 static void set_has_phone_model_name_hash(HasBits* has_bits) {
11492 (*has_bits)[0] |= 1u;
11493 }
set_has_is_smartlock_enabled(HasBits * has_bits)11494 static void set_has_is_smartlock_enabled(HasBits* has_bits) {
11495 (*has_bits)[0] |= 2u;
11496 }
set_has_is_instant_tethering_enabled(HasBits * has_bits)11497 static void set_has_is_instant_tethering_enabled(HasBits* has_bits) {
11498 (*has_bits)[0] |= 4u;
11499 }
set_has_is_messages_enabled(HasBits * has_bits)11500 static void set_has_is_messages_enabled(HasBits* has_bits) {
11501 (*has_bits)[0] |= 8u;
11502 }
11503 };
11504
SystemProfileProto_LinkedAndroidPhoneData(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)11505 SystemProfileProto_LinkedAndroidPhoneData::SystemProfileProto_LinkedAndroidPhoneData(::PROTOBUF_NAMESPACE_ID::Arena* arena,
11506 bool is_message_owned)
11507 : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
11508 SharedCtor(arena, is_message_owned);
11509 // @@protoc_insertion_point(arena_constructor:metrics.SystemProfileProto.LinkedAndroidPhoneData)
11510 }
SystemProfileProto_LinkedAndroidPhoneData(const SystemProfileProto_LinkedAndroidPhoneData & from)11511 SystemProfileProto_LinkedAndroidPhoneData::SystemProfileProto_LinkedAndroidPhoneData(const SystemProfileProto_LinkedAndroidPhoneData& from)
11512 : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
11513 SystemProfileProto_LinkedAndroidPhoneData* const _this = this; (void)_this;
11514 new (&_impl_) Impl_{
11515 decltype(_impl_._has_bits_){from._impl_._has_bits_}
11516 , /*decltype(_impl_._cached_size_)*/{}
11517 , decltype(_impl_.phone_model_name_hash_){}
11518 , decltype(_impl_.is_smartlock_enabled_){}
11519 , decltype(_impl_.is_instant_tethering_enabled_){}
11520 , decltype(_impl_.is_messages_enabled_){}};
11521
11522 _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
11523 ::memcpy(&_impl_.phone_model_name_hash_, &from._impl_.phone_model_name_hash_,
11524 static_cast<size_t>(reinterpret_cast<char*>(&_impl_.is_messages_enabled_) -
11525 reinterpret_cast<char*>(&_impl_.phone_model_name_hash_)) + sizeof(_impl_.is_messages_enabled_));
11526 // @@protoc_insertion_point(copy_constructor:metrics.SystemProfileProto.LinkedAndroidPhoneData)
11527 }
11528
SharedCtor(::_pb::Arena * arena,bool is_message_owned)11529 inline void SystemProfileProto_LinkedAndroidPhoneData::SharedCtor(
11530 ::_pb::Arena* arena, bool is_message_owned) {
11531 (void)arena;
11532 (void)is_message_owned;
11533 new (&_impl_) Impl_{
11534 decltype(_impl_._has_bits_){}
11535 , /*decltype(_impl_._cached_size_)*/{}
11536 , decltype(_impl_.phone_model_name_hash_){0u}
11537 , decltype(_impl_.is_smartlock_enabled_){false}
11538 , decltype(_impl_.is_instant_tethering_enabled_){false}
11539 , decltype(_impl_.is_messages_enabled_){false}
11540 };
11541 }
11542
~SystemProfileProto_LinkedAndroidPhoneData()11543 SystemProfileProto_LinkedAndroidPhoneData::~SystemProfileProto_LinkedAndroidPhoneData() {
11544 // @@protoc_insertion_point(destructor:metrics.SystemProfileProto.LinkedAndroidPhoneData)
11545 if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
11546 (void)arena;
11547 return;
11548 }
11549 SharedDtor();
11550 }
11551
SharedDtor()11552 inline void SystemProfileProto_LinkedAndroidPhoneData::SharedDtor() {
11553 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
11554 }
11555
SetCachedSize(int size) const11556 void SystemProfileProto_LinkedAndroidPhoneData::SetCachedSize(int size) const {
11557 _impl_._cached_size_.Set(size);
11558 }
11559
Clear()11560 void SystemProfileProto_LinkedAndroidPhoneData::Clear() {
11561 // @@protoc_insertion_point(message_clear_start:metrics.SystemProfileProto.LinkedAndroidPhoneData)
11562 uint32_t cached_has_bits = 0;
11563 // Prevent compiler warnings about cached_has_bits being unused
11564 (void) cached_has_bits;
11565
11566 cached_has_bits = _impl_._has_bits_[0];
11567 if (cached_has_bits & 0x0000000fu) {
11568 ::memset(&_impl_.phone_model_name_hash_, 0, static_cast<size_t>(
11569 reinterpret_cast<char*>(&_impl_.is_messages_enabled_) -
11570 reinterpret_cast<char*>(&_impl_.phone_model_name_hash_)) + sizeof(_impl_.is_messages_enabled_));
11571 }
11572 _impl_._has_bits_.Clear();
11573 _internal_metadata_.Clear<std::string>();
11574 }
11575
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)11576 const char* SystemProfileProto_LinkedAndroidPhoneData::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
11577 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
11578 _Internal::HasBits has_bits{};
11579 while (!ctx->Done(&ptr)) {
11580 uint32_t tag;
11581 ptr = ::_pbi::ReadTag(ptr, &tag);
11582 switch (tag >> 3) {
11583 // optional fixed32 phone_model_name_hash = 1;
11584 case 1:
11585 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 13)) {
11586 _Internal::set_has_phone_model_name_hash(&has_bits);
11587 _impl_.phone_model_name_hash_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<uint32_t>(ptr);
11588 ptr += sizeof(uint32_t);
11589 } else
11590 goto handle_unusual;
11591 continue;
11592 // optional bool is_smartlock_enabled = 2;
11593 case 2:
11594 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
11595 _Internal::set_has_is_smartlock_enabled(&has_bits);
11596 _impl_.is_smartlock_enabled_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
11597 CHK_(ptr);
11598 } else
11599 goto handle_unusual;
11600 continue;
11601 // optional bool is_instant_tethering_enabled = 3;
11602 case 3:
11603 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
11604 _Internal::set_has_is_instant_tethering_enabled(&has_bits);
11605 _impl_.is_instant_tethering_enabled_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
11606 CHK_(ptr);
11607 } else
11608 goto handle_unusual;
11609 continue;
11610 // optional bool is_messages_enabled = 4 [deprecated = true];
11611 case 4:
11612 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
11613 _Internal::set_has_is_messages_enabled(&has_bits);
11614 _impl_.is_messages_enabled_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
11615 CHK_(ptr);
11616 } else
11617 goto handle_unusual;
11618 continue;
11619 default:
11620 goto handle_unusual;
11621 } // switch
11622 handle_unusual:
11623 if ((tag == 0) || ((tag & 7) == 4)) {
11624 CHK_(ptr);
11625 ctx->SetLastTag(tag);
11626 goto message_done;
11627 }
11628 ptr = UnknownFieldParse(
11629 tag,
11630 _internal_metadata_.mutable_unknown_fields<std::string>(),
11631 ptr, ctx);
11632 CHK_(ptr != nullptr);
11633 } // while
11634 message_done:
11635 _impl_._has_bits_.Or(has_bits);
11636 return ptr;
11637 failure:
11638 ptr = nullptr;
11639 goto message_done;
11640 #undef CHK_
11641 }
11642
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const11643 uint8_t* SystemProfileProto_LinkedAndroidPhoneData::_InternalSerialize(
11644 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
11645 // @@protoc_insertion_point(serialize_to_array_start:metrics.SystemProfileProto.LinkedAndroidPhoneData)
11646 uint32_t cached_has_bits = 0;
11647 (void) cached_has_bits;
11648
11649 cached_has_bits = _impl_._has_bits_[0];
11650 // optional fixed32 phone_model_name_hash = 1;
11651 if (cached_has_bits & 0x00000001u) {
11652 target = stream->EnsureSpace(target);
11653 target = ::_pbi::WireFormatLite::WriteFixed32ToArray(1, this->_internal_phone_model_name_hash(), target);
11654 }
11655
11656 // optional bool is_smartlock_enabled = 2;
11657 if (cached_has_bits & 0x00000002u) {
11658 target = stream->EnsureSpace(target);
11659 target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_is_smartlock_enabled(), target);
11660 }
11661
11662 // optional bool is_instant_tethering_enabled = 3;
11663 if (cached_has_bits & 0x00000004u) {
11664 target = stream->EnsureSpace(target);
11665 target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_is_instant_tethering_enabled(), target);
11666 }
11667
11668 // optional bool is_messages_enabled = 4 [deprecated = true];
11669 if (cached_has_bits & 0x00000008u) {
11670 target = stream->EnsureSpace(target);
11671 target = ::_pbi::WireFormatLite::WriteBoolToArray(4, this->_internal_is_messages_enabled(), target);
11672 }
11673
11674 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
11675 target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
11676 static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
11677 }
11678 // @@protoc_insertion_point(serialize_to_array_end:metrics.SystemProfileProto.LinkedAndroidPhoneData)
11679 return target;
11680 }
11681
ByteSizeLong() const11682 size_t SystemProfileProto_LinkedAndroidPhoneData::ByteSizeLong() const {
11683 // @@protoc_insertion_point(message_byte_size_start:metrics.SystemProfileProto.LinkedAndroidPhoneData)
11684 size_t total_size = 0;
11685
11686 uint32_t cached_has_bits = 0;
11687 // Prevent compiler warnings about cached_has_bits being unused
11688 (void) cached_has_bits;
11689
11690 cached_has_bits = _impl_._has_bits_[0];
11691 if (cached_has_bits & 0x0000000fu) {
11692 // optional fixed32 phone_model_name_hash = 1;
11693 if (cached_has_bits & 0x00000001u) {
11694 total_size += 1 + 4;
11695 }
11696
11697 // optional bool is_smartlock_enabled = 2;
11698 if (cached_has_bits & 0x00000002u) {
11699 total_size += 1 + 1;
11700 }
11701
11702 // optional bool is_instant_tethering_enabled = 3;
11703 if (cached_has_bits & 0x00000004u) {
11704 total_size += 1 + 1;
11705 }
11706
11707 // optional bool is_messages_enabled = 4 [deprecated = true];
11708 if (cached_has_bits & 0x00000008u) {
11709 total_size += 1 + 1;
11710 }
11711
11712 }
11713 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
11714 total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
11715 }
11716 int cached_size = ::_pbi::ToCachedSize(total_size);
11717 SetCachedSize(cached_size);
11718 return total_size;
11719 }
11720
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)11721 void SystemProfileProto_LinkedAndroidPhoneData::CheckTypeAndMergeFrom(
11722 const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
11723 MergeFrom(*::_pbi::DownCast<const SystemProfileProto_LinkedAndroidPhoneData*>(
11724 &from));
11725 }
11726
MergeFrom(const SystemProfileProto_LinkedAndroidPhoneData & from)11727 void SystemProfileProto_LinkedAndroidPhoneData::MergeFrom(const SystemProfileProto_LinkedAndroidPhoneData& from) {
11728 SystemProfileProto_LinkedAndroidPhoneData* const _this = this;
11729 // @@protoc_insertion_point(class_specific_merge_from_start:metrics.SystemProfileProto.LinkedAndroidPhoneData)
11730 GOOGLE_DCHECK_NE(&from, _this);
11731 uint32_t cached_has_bits = 0;
11732 (void) cached_has_bits;
11733
11734 cached_has_bits = from._impl_._has_bits_[0];
11735 if (cached_has_bits & 0x0000000fu) {
11736 if (cached_has_bits & 0x00000001u) {
11737 _this->_impl_.phone_model_name_hash_ = from._impl_.phone_model_name_hash_;
11738 }
11739 if (cached_has_bits & 0x00000002u) {
11740 _this->_impl_.is_smartlock_enabled_ = from._impl_.is_smartlock_enabled_;
11741 }
11742 if (cached_has_bits & 0x00000004u) {
11743 _this->_impl_.is_instant_tethering_enabled_ = from._impl_.is_instant_tethering_enabled_;
11744 }
11745 if (cached_has_bits & 0x00000008u) {
11746 _this->_impl_.is_messages_enabled_ = from._impl_.is_messages_enabled_;
11747 }
11748 _this->_impl_._has_bits_[0] |= cached_has_bits;
11749 }
11750 _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
11751 }
11752
CopyFrom(const SystemProfileProto_LinkedAndroidPhoneData & from)11753 void SystemProfileProto_LinkedAndroidPhoneData::CopyFrom(const SystemProfileProto_LinkedAndroidPhoneData& from) {
11754 // @@protoc_insertion_point(class_specific_copy_from_start:metrics.SystemProfileProto.LinkedAndroidPhoneData)
11755 if (&from == this) return;
11756 Clear();
11757 MergeFrom(from);
11758 }
11759
IsInitialized() const11760 bool SystemProfileProto_LinkedAndroidPhoneData::IsInitialized() const {
11761 return true;
11762 }
11763
InternalSwap(SystemProfileProto_LinkedAndroidPhoneData * other)11764 void SystemProfileProto_LinkedAndroidPhoneData::InternalSwap(SystemProfileProto_LinkedAndroidPhoneData* other) {
11765 using std::swap;
11766 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
11767 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
11768 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
11769 PROTOBUF_FIELD_OFFSET(SystemProfileProto_LinkedAndroidPhoneData, _impl_.is_messages_enabled_)
11770 + sizeof(SystemProfileProto_LinkedAndroidPhoneData::_impl_.is_messages_enabled_)
11771 - PROTOBUF_FIELD_OFFSET(SystemProfileProto_LinkedAndroidPhoneData, _impl_.phone_model_name_hash_)>(
11772 reinterpret_cast<char*>(&_impl_.phone_model_name_hash_),
11773 reinterpret_cast<char*>(&other->_impl_.phone_model_name_hash_));
11774 }
11775
GetTypeName() const11776 std::string SystemProfileProto_LinkedAndroidPhoneData::GetTypeName() const {
11777 return "metrics.SystemProfileProto.LinkedAndroidPhoneData";
11778 }
11779
11780
11781 // ===================================================================
11782
11783 class SystemProfileProto_DemoModeDimensions_Retailer::_Internal {
11784 public:
11785 using HasBits = decltype(std::declval<SystemProfileProto_DemoModeDimensions_Retailer>()._impl_._has_bits_);
set_has_retailer_id(HasBits * has_bits)11786 static void set_has_retailer_id(HasBits* has_bits) {
11787 (*has_bits)[0] |= 1u;
11788 }
set_has_store_id(HasBits * has_bits)11789 static void set_has_store_id(HasBits* has_bits) {
11790 (*has_bits)[0] |= 2u;
11791 }
11792 };
11793
SystemProfileProto_DemoModeDimensions_Retailer(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)11794 SystemProfileProto_DemoModeDimensions_Retailer::SystemProfileProto_DemoModeDimensions_Retailer(::PROTOBUF_NAMESPACE_ID::Arena* arena,
11795 bool is_message_owned)
11796 : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
11797 SharedCtor(arena, is_message_owned);
11798 // @@protoc_insertion_point(arena_constructor:metrics.SystemProfileProto.DemoModeDimensions.Retailer)
11799 }
SystemProfileProto_DemoModeDimensions_Retailer(const SystemProfileProto_DemoModeDimensions_Retailer & from)11800 SystemProfileProto_DemoModeDimensions_Retailer::SystemProfileProto_DemoModeDimensions_Retailer(const SystemProfileProto_DemoModeDimensions_Retailer& from)
11801 : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
11802 SystemProfileProto_DemoModeDimensions_Retailer* const _this = this; (void)_this;
11803 new (&_impl_) Impl_{
11804 decltype(_impl_._has_bits_){from._impl_._has_bits_}
11805 , /*decltype(_impl_._cached_size_)*/{}
11806 , decltype(_impl_.retailer_id_){}
11807 , decltype(_impl_.store_id_){}};
11808
11809 _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
11810 _impl_.retailer_id_.InitDefault();
11811 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
11812 _impl_.retailer_id_.Set("", GetArenaForAllocation());
11813 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
11814 if (from._internal_has_retailer_id()) {
11815 _this->_impl_.retailer_id_.Set(from._internal_retailer_id(),
11816 _this->GetArenaForAllocation());
11817 }
11818 _impl_.store_id_.InitDefault();
11819 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
11820 _impl_.store_id_.Set("", GetArenaForAllocation());
11821 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
11822 if (from._internal_has_store_id()) {
11823 _this->_impl_.store_id_.Set(from._internal_store_id(),
11824 _this->GetArenaForAllocation());
11825 }
11826 // @@protoc_insertion_point(copy_constructor:metrics.SystemProfileProto.DemoModeDimensions.Retailer)
11827 }
11828
SharedCtor(::_pb::Arena * arena,bool is_message_owned)11829 inline void SystemProfileProto_DemoModeDimensions_Retailer::SharedCtor(
11830 ::_pb::Arena* arena, bool is_message_owned) {
11831 (void)arena;
11832 (void)is_message_owned;
11833 new (&_impl_) Impl_{
11834 decltype(_impl_._has_bits_){}
11835 , /*decltype(_impl_._cached_size_)*/{}
11836 , decltype(_impl_.retailer_id_){}
11837 , decltype(_impl_.store_id_){}
11838 };
11839 _impl_.retailer_id_.InitDefault();
11840 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
11841 _impl_.retailer_id_.Set("", GetArenaForAllocation());
11842 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
11843 _impl_.store_id_.InitDefault();
11844 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
11845 _impl_.store_id_.Set("", GetArenaForAllocation());
11846 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
11847 }
11848
~SystemProfileProto_DemoModeDimensions_Retailer()11849 SystemProfileProto_DemoModeDimensions_Retailer::~SystemProfileProto_DemoModeDimensions_Retailer() {
11850 // @@protoc_insertion_point(destructor:metrics.SystemProfileProto.DemoModeDimensions.Retailer)
11851 if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
11852 (void)arena;
11853 return;
11854 }
11855 SharedDtor();
11856 }
11857
SharedDtor()11858 inline void SystemProfileProto_DemoModeDimensions_Retailer::SharedDtor() {
11859 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
11860 _impl_.retailer_id_.Destroy();
11861 _impl_.store_id_.Destroy();
11862 }
11863
SetCachedSize(int size) const11864 void SystemProfileProto_DemoModeDimensions_Retailer::SetCachedSize(int size) const {
11865 _impl_._cached_size_.Set(size);
11866 }
11867
Clear()11868 void SystemProfileProto_DemoModeDimensions_Retailer::Clear() {
11869 // @@protoc_insertion_point(message_clear_start:metrics.SystemProfileProto.DemoModeDimensions.Retailer)
11870 uint32_t cached_has_bits = 0;
11871 // Prevent compiler warnings about cached_has_bits being unused
11872 (void) cached_has_bits;
11873
11874 cached_has_bits = _impl_._has_bits_[0];
11875 if (cached_has_bits & 0x00000003u) {
11876 if (cached_has_bits & 0x00000001u) {
11877 _impl_.retailer_id_.ClearNonDefaultToEmpty();
11878 }
11879 if (cached_has_bits & 0x00000002u) {
11880 _impl_.store_id_.ClearNonDefaultToEmpty();
11881 }
11882 }
11883 _impl_._has_bits_.Clear();
11884 _internal_metadata_.Clear<std::string>();
11885 }
11886
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)11887 const char* SystemProfileProto_DemoModeDimensions_Retailer::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
11888 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
11889 _Internal::HasBits has_bits{};
11890 while (!ctx->Done(&ptr)) {
11891 uint32_t tag;
11892 ptr = ::_pbi::ReadTag(ptr, &tag);
11893 switch (tag >> 3) {
11894 // optional string retailer_id = 1;
11895 case 1:
11896 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
11897 auto str = _internal_mutable_retailer_id();
11898 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
11899 CHK_(ptr);
11900 } else
11901 goto handle_unusual;
11902 continue;
11903 // optional string store_id = 2;
11904 case 2:
11905 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
11906 auto str = _internal_mutable_store_id();
11907 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
11908 CHK_(ptr);
11909 } else
11910 goto handle_unusual;
11911 continue;
11912 default:
11913 goto handle_unusual;
11914 } // switch
11915 handle_unusual:
11916 if ((tag == 0) || ((tag & 7) == 4)) {
11917 CHK_(ptr);
11918 ctx->SetLastTag(tag);
11919 goto message_done;
11920 }
11921 ptr = UnknownFieldParse(
11922 tag,
11923 _internal_metadata_.mutable_unknown_fields<std::string>(),
11924 ptr, ctx);
11925 CHK_(ptr != nullptr);
11926 } // while
11927 message_done:
11928 _impl_._has_bits_.Or(has_bits);
11929 return ptr;
11930 failure:
11931 ptr = nullptr;
11932 goto message_done;
11933 #undef CHK_
11934 }
11935
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const11936 uint8_t* SystemProfileProto_DemoModeDimensions_Retailer::_InternalSerialize(
11937 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
11938 // @@protoc_insertion_point(serialize_to_array_start:metrics.SystemProfileProto.DemoModeDimensions.Retailer)
11939 uint32_t cached_has_bits = 0;
11940 (void) cached_has_bits;
11941
11942 cached_has_bits = _impl_._has_bits_[0];
11943 // optional string retailer_id = 1;
11944 if (cached_has_bits & 0x00000001u) {
11945 target = stream->WriteStringMaybeAliased(
11946 1, this->_internal_retailer_id(), target);
11947 }
11948
11949 // optional string store_id = 2;
11950 if (cached_has_bits & 0x00000002u) {
11951 target = stream->WriteStringMaybeAliased(
11952 2, this->_internal_store_id(), target);
11953 }
11954
11955 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
11956 target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
11957 static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
11958 }
11959 // @@protoc_insertion_point(serialize_to_array_end:metrics.SystemProfileProto.DemoModeDimensions.Retailer)
11960 return target;
11961 }
11962
ByteSizeLong() const11963 size_t SystemProfileProto_DemoModeDimensions_Retailer::ByteSizeLong() const {
11964 // @@protoc_insertion_point(message_byte_size_start:metrics.SystemProfileProto.DemoModeDimensions.Retailer)
11965 size_t total_size = 0;
11966
11967 uint32_t cached_has_bits = 0;
11968 // Prevent compiler warnings about cached_has_bits being unused
11969 (void) cached_has_bits;
11970
11971 cached_has_bits = _impl_._has_bits_[0];
11972 if (cached_has_bits & 0x00000003u) {
11973 // optional string retailer_id = 1;
11974 if (cached_has_bits & 0x00000001u) {
11975 total_size += 1 +
11976 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
11977 this->_internal_retailer_id());
11978 }
11979
11980 // optional string store_id = 2;
11981 if (cached_has_bits & 0x00000002u) {
11982 total_size += 1 +
11983 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
11984 this->_internal_store_id());
11985 }
11986
11987 }
11988 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
11989 total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
11990 }
11991 int cached_size = ::_pbi::ToCachedSize(total_size);
11992 SetCachedSize(cached_size);
11993 return total_size;
11994 }
11995
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)11996 void SystemProfileProto_DemoModeDimensions_Retailer::CheckTypeAndMergeFrom(
11997 const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
11998 MergeFrom(*::_pbi::DownCast<const SystemProfileProto_DemoModeDimensions_Retailer*>(
11999 &from));
12000 }
12001
MergeFrom(const SystemProfileProto_DemoModeDimensions_Retailer & from)12002 void SystemProfileProto_DemoModeDimensions_Retailer::MergeFrom(const SystemProfileProto_DemoModeDimensions_Retailer& from) {
12003 SystemProfileProto_DemoModeDimensions_Retailer* const _this = this;
12004 // @@protoc_insertion_point(class_specific_merge_from_start:metrics.SystemProfileProto.DemoModeDimensions.Retailer)
12005 GOOGLE_DCHECK_NE(&from, _this);
12006 uint32_t cached_has_bits = 0;
12007 (void) cached_has_bits;
12008
12009 cached_has_bits = from._impl_._has_bits_[0];
12010 if (cached_has_bits & 0x00000003u) {
12011 if (cached_has_bits & 0x00000001u) {
12012 _this->_internal_set_retailer_id(from._internal_retailer_id());
12013 }
12014 if (cached_has_bits & 0x00000002u) {
12015 _this->_internal_set_store_id(from._internal_store_id());
12016 }
12017 }
12018 _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
12019 }
12020
CopyFrom(const SystemProfileProto_DemoModeDimensions_Retailer & from)12021 void SystemProfileProto_DemoModeDimensions_Retailer::CopyFrom(const SystemProfileProto_DemoModeDimensions_Retailer& from) {
12022 // @@protoc_insertion_point(class_specific_copy_from_start:metrics.SystemProfileProto.DemoModeDimensions.Retailer)
12023 if (&from == this) return;
12024 Clear();
12025 MergeFrom(from);
12026 }
12027
IsInitialized() const12028 bool SystemProfileProto_DemoModeDimensions_Retailer::IsInitialized() const {
12029 return true;
12030 }
12031
InternalSwap(SystemProfileProto_DemoModeDimensions_Retailer * other)12032 void SystemProfileProto_DemoModeDimensions_Retailer::InternalSwap(SystemProfileProto_DemoModeDimensions_Retailer* other) {
12033 using std::swap;
12034 auto* lhs_arena = GetArenaForAllocation();
12035 auto* rhs_arena = other->GetArenaForAllocation();
12036 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
12037 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
12038 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
12039 &_impl_.retailer_id_, lhs_arena,
12040 &other->_impl_.retailer_id_, rhs_arena
12041 );
12042 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
12043 &_impl_.store_id_, lhs_arena,
12044 &other->_impl_.store_id_, rhs_arena
12045 );
12046 }
12047
GetTypeName() const12048 std::string SystemProfileProto_DemoModeDimensions_Retailer::GetTypeName() const {
12049 return "metrics.SystemProfileProto.DemoModeDimensions.Retailer";
12050 }
12051
12052
12053 // ===================================================================
12054
12055 class SystemProfileProto_DemoModeDimensions::_Internal {
12056 public:
12057 using HasBits = decltype(std::declval<SystemProfileProto_DemoModeDimensions>()._impl_._has_bits_);
set_has_country(HasBits * has_bits)12058 static void set_has_country(HasBits* has_bits) {
12059 (*has_bits)[0] |= 1u;
12060 }
12061 static const ::metrics::SystemProfileProto_DemoModeDimensions_Retailer& retailer(const SystemProfileProto_DemoModeDimensions* msg);
set_has_retailer(HasBits * has_bits)12062 static void set_has_retailer(HasBits* has_bits) {
12063 (*has_bits)[0] |= 8u;
12064 }
set_has_app_version(HasBits * has_bits)12065 static void set_has_app_version(HasBits* has_bits) {
12066 (*has_bits)[0] |= 2u;
12067 }
set_has_resources_version(HasBits * has_bits)12068 static void set_has_resources_version(HasBits* has_bits) {
12069 (*has_bits)[0] |= 4u;
12070 }
12071 };
12072
12073 const ::metrics::SystemProfileProto_DemoModeDimensions_Retailer&
retailer(const SystemProfileProto_DemoModeDimensions * msg)12074 SystemProfileProto_DemoModeDimensions::_Internal::retailer(const SystemProfileProto_DemoModeDimensions* msg) {
12075 return *msg->_impl_.retailer_;
12076 }
SystemProfileProto_DemoModeDimensions(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)12077 SystemProfileProto_DemoModeDimensions::SystemProfileProto_DemoModeDimensions(::PROTOBUF_NAMESPACE_ID::Arena* arena,
12078 bool is_message_owned)
12079 : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
12080 SharedCtor(arena, is_message_owned);
12081 // @@protoc_insertion_point(arena_constructor:metrics.SystemProfileProto.DemoModeDimensions)
12082 }
SystemProfileProto_DemoModeDimensions(const SystemProfileProto_DemoModeDimensions & from)12083 SystemProfileProto_DemoModeDimensions::SystemProfileProto_DemoModeDimensions(const SystemProfileProto_DemoModeDimensions& from)
12084 : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
12085 SystemProfileProto_DemoModeDimensions* const _this = this; (void)_this;
12086 new (&_impl_) Impl_{
12087 decltype(_impl_._has_bits_){from._impl_._has_bits_}
12088 , /*decltype(_impl_._cached_size_)*/{}
12089 , decltype(_impl_.customization_facet_){from._impl_.customization_facet_}
12090 , /*decltype(_impl_._customization_facet_cached_byte_size_)*/{0}
12091 , decltype(_impl_.country_){}
12092 , decltype(_impl_.app_version_){}
12093 , decltype(_impl_.resources_version_){}
12094 , decltype(_impl_.retailer_){nullptr}};
12095
12096 _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
12097 _impl_.country_.InitDefault();
12098 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
12099 _impl_.country_.Set("", GetArenaForAllocation());
12100 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
12101 if (from._internal_has_country()) {
12102 _this->_impl_.country_.Set(from._internal_country(),
12103 _this->GetArenaForAllocation());
12104 }
12105 _impl_.app_version_.InitDefault();
12106 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
12107 _impl_.app_version_.Set("", GetArenaForAllocation());
12108 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
12109 if (from._internal_has_app_version()) {
12110 _this->_impl_.app_version_.Set(from._internal_app_version(),
12111 _this->GetArenaForAllocation());
12112 }
12113 _impl_.resources_version_.InitDefault();
12114 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
12115 _impl_.resources_version_.Set("", GetArenaForAllocation());
12116 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
12117 if (from._internal_has_resources_version()) {
12118 _this->_impl_.resources_version_.Set(from._internal_resources_version(),
12119 _this->GetArenaForAllocation());
12120 }
12121 if (from._internal_has_retailer()) {
12122 _this->_impl_.retailer_ = new ::metrics::SystemProfileProto_DemoModeDimensions_Retailer(*from._impl_.retailer_);
12123 }
12124 // @@protoc_insertion_point(copy_constructor:metrics.SystemProfileProto.DemoModeDimensions)
12125 }
12126
SharedCtor(::_pb::Arena * arena,bool is_message_owned)12127 inline void SystemProfileProto_DemoModeDimensions::SharedCtor(
12128 ::_pb::Arena* arena, bool is_message_owned) {
12129 (void)arena;
12130 (void)is_message_owned;
12131 new (&_impl_) Impl_{
12132 decltype(_impl_._has_bits_){}
12133 , /*decltype(_impl_._cached_size_)*/{}
12134 , decltype(_impl_.customization_facet_){arena}
12135 , /*decltype(_impl_._customization_facet_cached_byte_size_)*/{0}
12136 , decltype(_impl_.country_){}
12137 , decltype(_impl_.app_version_){}
12138 , decltype(_impl_.resources_version_){}
12139 , decltype(_impl_.retailer_){nullptr}
12140 };
12141 _impl_.country_.InitDefault();
12142 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
12143 _impl_.country_.Set("", GetArenaForAllocation());
12144 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
12145 _impl_.app_version_.InitDefault();
12146 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
12147 _impl_.app_version_.Set("", GetArenaForAllocation());
12148 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
12149 _impl_.resources_version_.InitDefault();
12150 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
12151 _impl_.resources_version_.Set("", GetArenaForAllocation());
12152 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
12153 }
12154
~SystemProfileProto_DemoModeDimensions()12155 SystemProfileProto_DemoModeDimensions::~SystemProfileProto_DemoModeDimensions() {
12156 // @@protoc_insertion_point(destructor:metrics.SystemProfileProto.DemoModeDimensions)
12157 if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
12158 (void)arena;
12159 return;
12160 }
12161 SharedDtor();
12162 }
12163
SharedDtor()12164 inline void SystemProfileProto_DemoModeDimensions::SharedDtor() {
12165 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
12166 _impl_.customization_facet_.~RepeatedField();
12167 _impl_.country_.Destroy();
12168 _impl_.app_version_.Destroy();
12169 _impl_.resources_version_.Destroy();
12170 if (this != internal_default_instance()) delete _impl_.retailer_;
12171 }
12172
SetCachedSize(int size) const12173 void SystemProfileProto_DemoModeDimensions::SetCachedSize(int size) const {
12174 _impl_._cached_size_.Set(size);
12175 }
12176
Clear()12177 void SystemProfileProto_DemoModeDimensions::Clear() {
12178 // @@protoc_insertion_point(message_clear_start:metrics.SystemProfileProto.DemoModeDimensions)
12179 uint32_t cached_has_bits = 0;
12180 // Prevent compiler warnings about cached_has_bits being unused
12181 (void) cached_has_bits;
12182
12183 _impl_.customization_facet_.Clear();
12184 cached_has_bits = _impl_._has_bits_[0];
12185 if (cached_has_bits & 0x0000000fu) {
12186 if (cached_has_bits & 0x00000001u) {
12187 _impl_.country_.ClearNonDefaultToEmpty();
12188 }
12189 if (cached_has_bits & 0x00000002u) {
12190 _impl_.app_version_.ClearNonDefaultToEmpty();
12191 }
12192 if (cached_has_bits & 0x00000004u) {
12193 _impl_.resources_version_.ClearNonDefaultToEmpty();
12194 }
12195 if (cached_has_bits & 0x00000008u) {
12196 GOOGLE_DCHECK(_impl_.retailer_ != nullptr);
12197 _impl_.retailer_->Clear();
12198 }
12199 }
12200 _impl_._has_bits_.Clear();
12201 _internal_metadata_.Clear<std::string>();
12202 }
12203
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)12204 const char* SystemProfileProto_DemoModeDimensions::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
12205 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
12206 _Internal::HasBits has_bits{};
12207 while (!ctx->Done(&ptr)) {
12208 uint32_t tag;
12209 ptr = ::_pbi::ReadTag(ptr, &tag);
12210 switch (tag >> 3) {
12211 // optional string country = 1;
12212 case 1:
12213 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
12214 auto str = _internal_mutable_country();
12215 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
12216 CHK_(ptr);
12217 } else
12218 goto handle_unusual;
12219 continue;
12220 // optional .metrics.SystemProfileProto.DemoModeDimensions.Retailer retailer = 2;
12221 case 2:
12222 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
12223 ptr = ctx->ParseMessage(_internal_mutable_retailer(), ptr);
12224 CHK_(ptr);
12225 } else
12226 goto handle_unusual;
12227 continue;
12228 // repeated .metrics.SystemProfileProto.DemoModeDimensions.CustomizationFacet customization_facet = 3 [packed = true];
12229 case 3:
12230 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
12231 ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser<std::string>(_internal_mutable_customization_facet(), ptr, ctx, ::metrics::SystemProfileProto_DemoModeDimensions_CustomizationFacet_IsValid, &_internal_metadata_, 3);
12232 CHK_(ptr);
12233 } else if (static_cast<uint8_t>(tag) == 24) {
12234 uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
12235 CHK_(ptr);
12236 if (PROTOBUF_PREDICT_TRUE(::metrics::SystemProfileProto_DemoModeDimensions_CustomizationFacet_IsValid(val))) {
12237 _internal_add_customization_facet(static_cast<::metrics::SystemProfileProto_DemoModeDimensions_CustomizationFacet>(val));
12238 } else {
12239 ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(3, val, mutable_unknown_fields());
12240 }
12241 } else
12242 goto handle_unusual;
12243 continue;
12244 // optional string app_version = 4;
12245 case 4:
12246 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
12247 auto str = _internal_mutable_app_version();
12248 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
12249 CHK_(ptr);
12250 } else
12251 goto handle_unusual;
12252 continue;
12253 // optional string resources_version = 5;
12254 case 5:
12255 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) {
12256 auto str = _internal_mutable_resources_version();
12257 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
12258 CHK_(ptr);
12259 } else
12260 goto handle_unusual;
12261 continue;
12262 default:
12263 goto handle_unusual;
12264 } // switch
12265 handle_unusual:
12266 if ((tag == 0) || ((tag & 7) == 4)) {
12267 CHK_(ptr);
12268 ctx->SetLastTag(tag);
12269 goto message_done;
12270 }
12271 ptr = UnknownFieldParse(
12272 tag,
12273 _internal_metadata_.mutable_unknown_fields<std::string>(),
12274 ptr, ctx);
12275 CHK_(ptr != nullptr);
12276 } // while
12277 message_done:
12278 _impl_._has_bits_.Or(has_bits);
12279 return ptr;
12280 failure:
12281 ptr = nullptr;
12282 goto message_done;
12283 #undef CHK_
12284 }
12285
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const12286 uint8_t* SystemProfileProto_DemoModeDimensions::_InternalSerialize(
12287 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
12288 // @@protoc_insertion_point(serialize_to_array_start:metrics.SystemProfileProto.DemoModeDimensions)
12289 uint32_t cached_has_bits = 0;
12290 (void) cached_has_bits;
12291
12292 cached_has_bits = _impl_._has_bits_[0];
12293 // optional string country = 1;
12294 if (cached_has_bits & 0x00000001u) {
12295 target = stream->WriteStringMaybeAliased(
12296 1, this->_internal_country(), target);
12297 }
12298
12299 // optional .metrics.SystemProfileProto.DemoModeDimensions.Retailer retailer = 2;
12300 if (cached_has_bits & 0x00000008u) {
12301 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
12302 InternalWriteMessage(2, _Internal::retailer(this),
12303 _Internal::retailer(this).GetCachedSize(), target, stream);
12304 }
12305
12306 // repeated .metrics.SystemProfileProto.DemoModeDimensions.CustomizationFacet customization_facet = 3 [packed = true];
12307 {
12308 int byte_size = _impl_._customization_facet_cached_byte_size_.load(std::memory_order_relaxed);
12309 if (byte_size > 0) {
12310 target = stream->WriteEnumPacked(
12311 3, _impl_.customization_facet_, byte_size, target);
12312 }
12313 }
12314
12315 // optional string app_version = 4;
12316 if (cached_has_bits & 0x00000002u) {
12317 target = stream->WriteStringMaybeAliased(
12318 4, this->_internal_app_version(), target);
12319 }
12320
12321 // optional string resources_version = 5;
12322 if (cached_has_bits & 0x00000004u) {
12323 target = stream->WriteStringMaybeAliased(
12324 5, this->_internal_resources_version(), target);
12325 }
12326
12327 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
12328 target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
12329 static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
12330 }
12331 // @@protoc_insertion_point(serialize_to_array_end:metrics.SystemProfileProto.DemoModeDimensions)
12332 return target;
12333 }
12334
ByteSizeLong() const12335 size_t SystemProfileProto_DemoModeDimensions::ByteSizeLong() const {
12336 // @@protoc_insertion_point(message_byte_size_start:metrics.SystemProfileProto.DemoModeDimensions)
12337 size_t total_size = 0;
12338
12339 uint32_t cached_has_bits = 0;
12340 // Prevent compiler warnings about cached_has_bits being unused
12341 (void) cached_has_bits;
12342
12343 // repeated .metrics.SystemProfileProto.DemoModeDimensions.CustomizationFacet customization_facet = 3 [packed = true];
12344 {
12345 size_t data_size = 0;
12346 unsigned int count = static_cast<unsigned int>(this->_internal_customization_facet_size());for (unsigned int i = 0; i < count; i++) {
12347 data_size += ::_pbi::WireFormatLite::EnumSize(
12348 this->_internal_customization_facet(static_cast<int>(i)));
12349 }
12350 if (data_size > 0) {
12351 total_size += 1 +
12352 ::_pbi::WireFormatLite::Int32Size(static_cast<int32_t>(data_size));
12353 }
12354 int cached_size = ::_pbi::ToCachedSize(data_size);
12355 _impl_._customization_facet_cached_byte_size_.store(cached_size,
12356 std::memory_order_relaxed);
12357 total_size += data_size;
12358 }
12359
12360 cached_has_bits = _impl_._has_bits_[0];
12361 if (cached_has_bits & 0x0000000fu) {
12362 // optional string country = 1;
12363 if (cached_has_bits & 0x00000001u) {
12364 total_size += 1 +
12365 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
12366 this->_internal_country());
12367 }
12368
12369 // optional string app_version = 4;
12370 if (cached_has_bits & 0x00000002u) {
12371 total_size += 1 +
12372 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
12373 this->_internal_app_version());
12374 }
12375
12376 // optional string resources_version = 5;
12377 if (cached_has_bits & 0x00000004u) {
12378 total_size += 1 +
12379 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
12380 this->_internal_resources_version());
12381 }
12382
12383 // optional .metrics.SystemProfileProto.DemoModeDimensions.Retailer retailer = 2;
12384 if (cached_has_bits & 0x00000008u) {
12385 total_size += 1 +
12386 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
12387 *_impl_.retailer_);
12388 }
12389
12390 }
12391 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
12392 total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
12393 }
12394 int cached_size = ::_pbi::ToCachedSize(total_size);
12395 SetCachedSize(cached_size);
12396 return total_size;
12397 }
12398
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)12399 void SystemProfileProto_DemoModeDimensions::CheckTypeAndMergeFrom(
12400 const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
12401 MergeFrom(*::_pbi::DownCast<const SystemProfileProto_DemoModeDimensions*>(
12402 &from));
12403 }
12404
MergeFrom(const SystemProfileProto_DemoModeDimensions & from)12405 void SystemProfileProto_DemoModeDimensions::MergeFrom(const SystemProfileProto_DemoModeDimensions& from) {
12406 SystemProfileProto_DemoModeDimensions* const _this = this;
12407 // @@protoc_insertion_point(class_specific_merge_from_start:metrics.SystemProfileProto.DemoModeDimensions)
12408 GOOGLE_DCHECK_NE(&from, _this);
12409 uint32_t cached_has_bits = 0;
12410 (void) cached_has_bits;
12411
12412 _this->_impl_.customization_facet_.MergeFrom(from._impl_.customization_facet_);
12413 cached_has_bits = from._impl_._has_bits_[0];
12414 if (cached_has_bits & 0x0000000fu) {
12415 if (cached_has_bits & 0x00000001u) {
12416 _this->_internal_set_country(from._internal_country());
12417 }
12418 if (cached_has_bits & 0x00000002u) {
12419 _this->_internal_set_app_version(from._internal_app_version());
12420 }
12421 if (cached_has_bits & 0x00000004u) {
12422 _this->_internal_set_resources_version(from._internal_resources_version());
12423 }
12424 if (cached_has_bits & 0x00000008u) {
12425 _this->_internal_mutable_retailer()->::metrics::SystemProfileProto_DemoModeDimensions_Retailer::MergeFrom(
12426 from._internal_retailer());
12427 }
12428 }
12429 _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
12430 }
12431
CopyFrom(const SystemProfileProto_DemoModeDimensions & from)12432 void SystemProfileProto_DemoModeDimensions::CopyFrom(const SystemProfileProto_DemoModeDimensions& from) {
12433 // @@protoc_insertion_point(class_specific_copy_from_start:metrics.SystemProfileProto.DemoModeDimensions)
12434 if (&from == this) return;
12435 Clear();
12436 MergeFrom(from);
12437 }
12438
IsInitialized() const12439 bool SystemProfileProto_DemoModeDimensions::IsInitialized() const {
12440 return true;
12441 }
12442
InternalSwap(SystemProfileProto_DemoModeDimensions * other)12443 void SystemProfileProto_DemoModeDimensions::InternalSwap(SystemProfileProto_DemoModeDimensions* other) {
12444 using std::swap;
12445 auto* lhs_arena = GetArenaForAllocation();
12446 auto* rhs_arena = other->GetArenaForAllocation();
12447 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
12448 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
12449 _impl_.customization_facet_.InternalSwap(&other->_impl_.customization_facet_);
12450 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
12451 &_impl_.country_, lhs_arena,
12452 &other->_impl_.country_, rhs_arena
12453 );
12454 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
12455 &_impl_.app_version_, lhs_arena,
12456 &other->_impl_.app_version_, rhs_arena
12457 );
12458 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
12459 &_impl_.resources_version_, lhs_arena,
12460 &other->_impl_.resources_version_, rhs_arena
12461 );
12462 swap(_impl_.retailer_, other->_impl_.retailer_);
12463 }
12464
GetTypeName() const12465 std::string SystemProfileProto_DemoModeDimensions::GetTypeName() const {
12466 return "metrics.SystemProfileProto.DemoModeDimensions";
12467 }
12468
12469
12470 // ===================================================================
12471
12472 class SystemProfileProto::_Internal {
12473 public:
12474 using HasBits = decltype(std::declval<SystemProfileProto>()._impl_._has_bits_);
set_has_build_timestamp(HasBits * has_bits)12475 static void set_has_build_timestamp(HasBits* has_bits) {
12476 (*has_bits)[0] |= 65536u;
12477 }
set_has_app_version(HasBits * has_bits)12478 static void set_has_app_version(HasBits* has_bits) {
12479 (*has_bits)[0] |= 1u;
12480 }
set_has_log_written_by_app_version(HasBits * has_bits)12481 static void set_has_log_written_by_app_version(HasBits* has_bits) {
12482 (*has_bits)[0] |= 64u;
12483 }
set_has_brand_code(HasBits * has_bits)12484 static void set_has_brand_code(HasBits* has_bits) {
12485 (*has_bits)[0] |= 4u;
12486 }
set_has_channel(HasBits * has_bits)12487 static void set_has_channel(HasBits* has_bits) {
12488 (*has_bits)[0] |= 262144u;
12489 }
set_has_is_extended_stable_channel(HasBits * has_bits)12490 static void set_has_is_extended_stable_channel(HasBits* has_bits) {
12491 (*has_bits)[0] |= 8388608u;
12492 }
set_has_is_instrumented_build(HasBits * has_bits)12493 static void set_has_is_instrumented_build(HasBits* has_bits) {
12494 (*has_bits)[0] |= 16777216u;
12495 }
set_has_uma_enabled_date(HasBits * has_bits)12496 static void set_has_uma_enabled_date(HasBits* has_bits) {
12497 (*has_bits)[0] |= 131072u;
12498 }
set_has_install_date(HasBits * has_bits)12499 static void set_has_install_date(HasBits* has_bits) {
12500 (*has_bits)[0] |= 1048576u;
12501 }
12502 static const ::metrics::SystemProfileProto_ClonedInstallInfo& cloned_install_info(const SystemProfileProto* msg);
set_has_cloned_install_info(HasBits * has_bits)12503 static void set_has_cloned_install_info(HasBits* has_bits) {
12504 (*has_bits)[0] |= 16384u;
12505 }
set_has_low_entropy_source(HasBits * has_bits)12506 static void set_has_low_entropy_source(HasBits* has_bits) {
12507 (*has_bits)[0] |= 67108864u;
12508 }
set_has_old_low_entropy_source(HasBits * has_bits)12509 static void set_has_old_low_entropy_source(HasBits* has_bits) {
12510 (*has_bits)[0] |= 134217728u;
12511 }
set_has_pseudo_low_entropy_source(HasBits * has_bits)12512 static void set_has_pseudo_low_entropy_source(HasBits* has_bits) {
12513 (*has_bits)[0] |= 536870912u;
12514 }
set_has_application_locale(HasBits * has_bits)12515 static void set_has_application_locale(HasBits* has_bits) {
12516 (*has_bits)[0] |= 2u;
12517 }
12518 static const ::metrics::SystemProfileProto_OS& os(const SystemProfileProto* msg);
set_has_os(HasBits * has_bits)12519 static void set_has_os(HasBits* has_bits) {
12520 (*has_bits)[0] |= 128u;
12521 }
12522 static const ::metrics::SystemProfileProto_Hardware& hardware(const SystemProfileProto* msg);
set_has_hardware(HasBits * has_bits)12523 static void set_has_hardware(HasBits* has_bits) {
12524 (*has_bits)[0] |= 256u;
12525 }
12526 static const ::metrics::SystemProfileProto_Network& network(const SystemProfileProto* msg);
set_has_network(HasBits * has_bits)12527 static void set_has_network(HasBits* has_bits) {
12528 (*has_bits)[0] |= 2048u;
12529 }
12530 static const ::metrics::SystemProfileProto_GoogleUpdate& google_update(const SystemProfileProto* msg);
set_has_google_update(HasBits * has_bits)12531 static void set_has_google_update(HasBits* has_bits) {
12532 (*has_bits)[0] |= 1024u;
12533 }
12534 static const ::metrics::SystemProfileProto_Stability& stability(const SystemProfileProto* msg);
set_has_stability(HasBits * has_bits)12535 static void set_has_stability(HasBits* has_bits) {
12536 (*has_bits)[0] |= 512u;
12537 }
set_has_variations_seed_version(HasBits * has_bits)12538 static void set_has_variations_seed_version(HasBits* has_bits) {
12539 (*has_bits)[0] |= 16u;
12540 }
set_has_client_id_was_used_for_trial_assignment(HasBits * has_bits)12541 static void set_has_client_id_was_used_for_trial_assignment(HasBits* has_bits) {
12542 (*has_bits)[0] |= 33554432u;
12543 }
set_has_client_uuid(HasBits * has_bits)12544 static void set_has_client_uuid(HasBits* has_bits) {
12545 (*has_bits)[0] |= 32u;
12546 }
set_has_session_hash(HasBits * has_bits)12547 static void set_has_session_hash(HasBits* has_bits) {
12548 (*has_bits)[1] |= 2u;
12549 }
12550 static const ::metrics::SystemProfileProto_ExternalAccessPoint& external_access_point(const SystemProfileProto* msg);
set_has_external_access_point(HasBits * has_bits)12551 static void set_has_external_access_point(HasBits* has_bits) {
12552 (*has_bits)[0] |= 4096u;
12553 }
set_has_multi_profile_user_count(HasBits * has_bits)12554 static void set_has_multi_profile_user_count(HasBits* has_bits) {
12555 (*has_bits)[0] |= 524288u;
12556 }
set_has_offstore_extensions_state(HasBits * has_bits)12557 static void set_has_offstore_extensions_state(HasBits* has_bits) {
12558 (*has_bits)[0] |= 2097152u;
12559 }
set_has_uma_default_state(HasBits * has_bits)12560 static void set_has_uma_default_state(HasBits* has_bits) {
12561 (*has_bits)[0] |= 4194304u;
12562 }
set_has_app_package_name(HasBits * has_bits)12563 static void set_has_app_package_name(HasBits* has_bits) {
12564 (*has_bits)[0] |= 8u;
12565 }
set_has_app_package_name_allowlist_filter(HasBits * has_bits)12566 static void set_has_app_package_name_allowlist_filter(HasBits* has_bits) {
12567 (*has_bits)[0] |= 1073741824u;
12568 }
set_has_client_side_sampling_status(HasBits * has_bits)12569 static void set_has_client_side_sampling_status(HasBits* has_bits) {
12570 (*has_bits)[0] |= 2147483648u;
12571 }
set_has_metrics_filtering_status(HasBits * has_bits)12572 static void set_has_metrics_filtering_status(HasBits* has_bits) {
12573 (*has_bits)[1] |= 1u;
12574 }
set_has_installer_package(HasBits * has_bits)12575 static void set_has_installer_package(HasBits* has_bits) {
12576 (*has_bits)[0] |= 268435456u;
12577 }
12578 static const ::metrics::SystemProfileProto_LinkedAndroidPhoneData& linked_android_phone_data(const SystemProfileProto* msg);
set_has_linked_android_phone_data(HasBits * has_bits)12579 static void set_has_linked_android_phone_data(HasBits* has_bits) {
12580 (*has_bits)[0] |= 8192u;
12581 }
12582 static const ::metrics::SystemProfileProto_DemoModeDimensions& demo_mode_dimensions(const SystemProfileProto* msg);
set_has_demo_mode_dimensions(HasBits * has_bits)12583 static void set_has_demo_mode_dimensions(HasBits* has_bits) {
12584 (*has_bits)[0] |= 32768u;
12585 }
set_has_lts_channel(HasBits * has_bits)12586 static void set_has_lts_channel(HasBits* has_bits) {
12587 (*has_bits)[1] |= 4u;
12588 }
12589 };
12590
12591 const ::metrics::SystemProfileProto_ClonedInstallInfo&
cloned_install_info(const SystemProfileProto * msg)12592 SystemProfileProto::_Internal::cloned_install_info(const SystemProfileProto* msg) {
12593 return *msg->_impl_.cloned_install_info_;
12594 }
12595 const ::metrics::SystemProfileProto_OS&
os(const SystemProfileProto * msg)12596 SystemProfileProto::_Internal::os(const SystemProfileProto* msg) {
12597 return *msg->_impl_.os_;
12598 }
12599 const ::metrics::SystemProfileProto_Hardware&
hardware(const SystemProfileProto * msg)12600 SystemProfileProto::_Internal::hardware(const SystemProfileProto* msg) {
12601 return *msg->_impl_.hardware_;
12602 }
12603 const ::metrics::SystemProfileProto_Network&
network(const SystemProfileProto * msg)12604 SystemProfileProto::_Internal::network(const SystemProfileProto* msg) {
12605 return *msg->_impl_.network_;
12606 }
12607 const ::metrics::SystemProfileProto_GoogleUpdate&
google_update(const SystemProfileProto * msg)12608 SystemProfileProto::_Internal::google_update(const SystemProfileProto* msg) {
12609 return *msg->_impl_.google_update_;
12610 }
12611 const ::metrics::SystemProfileProto_Stability&
stability(const SystemProfileProto * msg)12612 SystemProfileProto::_Internal::stability(const SystemProfileProto* msg) {
12613 return *msg->_impl_.stability_;
12614 }
12615 const ::metrics::SystemProfileProto_ExternalAccessPoint&
external_access_point(const SystemProfileProto * msg)12616 SystemProfileProto::_Internal::external_access_point(const SystemProfileProto* msg) {
12617 return *msg->_impl_.external_access_point_;
12618 }
12619 const ::metrics::SystemProfileProto_LinkedAndroidPhoneData&
linked_android_phone_data(const SystemProfileProto * msg)12620 SystemProfileProto::_Internal::linked_android_phone_data(const SystemProfileProto* msg) {
12621 return *msg->_impl_.linked_android_phone_data_;
12622 }
12623 const ::metrics::SystemProfileProto_DemoModeDimensions&
demo_mode_dimensions(const SystemProfileProto * msg)12624 SystemProfileProto::_Internal::demo_mode_dimensions(const SystemProfileProto* msg) {
12625 return *msg->_impl_.demo_mode_dimensions_;
12626 }
clear_extension_install()12627 void SystemProfileProto::clear_extension_install() {
12628 _impl_.extension_install_.Clear();
12629 }
SystemProfileProto(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)12630 SystemProfileProto::SystemProfileProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
12631 bool is_message_owned)
12632 : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
12633 SharedCtor(arena, is_message_owned);
12634 // @@protoc_insertion_point(arena_constructor:metrics.SystemProfileProto)
12635 }
SystemProfileProto(const SystemProfileProto & from)12636 SystemProfileProto::SystemProfileProto(const SystemProfileProto& from)
12637 : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
12638 SystemProfileProto* const _this = this; (void)_this;
12639 new (&_impl_) Impl_{
12640 decltype(_impl_._has_bits_){from._impl_._has_bits_}
12641 , /*decltype(_impl_._cached_size_)*/{}
12642 , decltype(_impl_.field_trial_){from._impl_.field_trial_}
12643 , decltype(_impl_.external_audio_video_device_){from._impl_.external_audio_video_device_}
12644 , decltype(_impl_.occupied_extension_bucket_){from._impl_.occupied_extension_bucket_}
12645 , decltype(_impl_.antivirus_product_){from._impl_.antivirus_product_}
12646 , decltype(_impl_.chrome_component_){from._impl_.chrome_component_}
12647 , decltype(_impl_.extension_install_){from._impl_.extension_install_}
12648 , decltype(_impl_.command_line_key_hash_){from._impl_.command_line_key_hash_}
12649 , decltype(_impl_.app_version_){}
12650 , decltype(_impl_.application_locale_){}
12651 , decltype(_impl_.brand_code_){}
12652 , decltype(_impl_.app_package_name_){}
12653 , decltype(_impl_.variations_seed_version_){}
12654 , decltype(_impl_.client_uuid_){}
12655 , decltype(_impl_.log_written_by_app_version_){}
12656 , decltype(_impl_.os_){nullptr}
12657 , decltype(_impl_.hardware_){nullptr}
12658 , decltype(_impl_.stability_){nullptr}
12659 , decltype(_impl_.google_update_){nullptr}
12660 , decltype(_impl_.network_){nullptr}
12661 , decltype(_impl_.external_access_point_){nullptr}
12662 , decltype(_impl_.linked_android_phone_data_){nullptr}
12663 , decltype(_impl_.cloned_install_info_){nullptr}
12664 , decltype(_impl_.demo_mode_dimensions_){nullptr}
12665 , decltype(_impl_.build_timestamp_){}
12666 , decltype(_impl_.uma_enabled_date_){}
12667 , decltype(_impl_.channel_){}
12668 , decltype(_impl_.multi_profile_user_count_){}
12669 , decltype(_impl_.install_date_){}
12670 , decltype(_impl_.offstore_extensions_state_){}
12671 , decltype(_impl_.uma_default_state_){}
12672 , decltype(_impl_.is_extended_stable_channel_){}
12673 , decltype(_impl_.is_instrumented_build_){}
12674 , decltype(_impl_.client_id_was_used_for_trial_assignment_){}
12675 , decltype(_impl_.low_entropy_source_){}
12676 , decltype(_impl_.old_low_entropy_source_){}
12677 , decltype(_impl_.installer_package_){}
12678 , decltype(_impl_.pseudo_low_entropy_source_){}
12679 , decltype(_impl_.app_package_name_allowlist_filter_){}
12680 , decltype(_impl_.client_side_sampling_status_){}
12681 , decltype(_impl_.metrics_filtering_status_){}
12682 , decltype(_impl_.session_hash_){}
12683 , decltype(_impl_.lts_channel_){}};
12684
12685 _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
12686 _impl_.app_version_.InitDefault();
12687 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
12688 _impl_.app_version_.Set("", GetArenaForAllocation());
12689 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
12690 if (from._internal_has_app_version()) {
12691 _this->_impl_.app_version_.Set(from._internal_app_version(),
12692 _this->GetArenaForAllocation());
12693 }
12694 _impl_.application_locale_.InitDefault();
12695 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
12696 _impl_.application_locale_.Set("", GetArenaForAllocation());
12697 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
12698 if (from._internal_has_application_locale()) {
12699 _this->_impl_.application_locale_.Set(from._internal_application_locale(),
12700 _this->GetArenaForAllocation());
12701 }
12702 _impl_.brand_code_.InitDefault();
12703 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
12704 _impl_.brand_code_.Set("", GetArenaForAllocation());
12705 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
12706 if (from._internal_has_brand_code()) {
12707 _this->_impl_.brand_code_.Set(from._internal_brand_code(),
12708 _this->GetArenaForAllocation());
12709 }
12710 _impl_.app_package_name_.InitDefault();
12711 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
12712 _impl_.app_package_name_.Set("", GetArenaForAllocation());
12713 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
12714 if (from._internal_has_app_package_name()) {
12715 _this->_impl_.app_package_name_.Set(from._internal_app_package_name(),
12716 _this->GetArenaForAllocation());
12717 }
12718 _impl_.variations_seed_version_.InitDefault();
12719 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
12720 _impl_.variations_seed_version_.Set("", GetArenaForAllocation());
12721 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
12722 if (from._internal_has_variations_seed_version()) {
12723 _this->_impl_.variations_seed_version_.Set(from._internal_variations_seed_version(),
12724 _this->GetArenaForAllocation());
12725 }
12726 _impl_.client_uuid_.InitDefault();
12727 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
12728 _impl_.client_uuid_.Set("", GetArenaForAllocation());
12729 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
12730 if (from._internal_has_client_uuid()) {
12731 _this->_impl_.client_uuid_.Set(from._internal_client_uuid(),
12732 _this->GetArenaForAllocation());
12733 }
12734 _impl_.log_written_by_app_version_.InitDefault();
12735 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
12736 _impl_.log_written_by_app_version_.Set("", GetArenaForAllocation());
12737 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
12738 if (from._internal_has_log_written_by_app_version()) {
12739 _this->_impl_.log_written_by_app_version_.Set(from._internal_log_written_by_app_version(),
12740 _this->GetArenaForAllocation());
12741 }
12742 if (from._internal_has_os()) {
12743 _this->_impl_.os_ = new ::metrics::SystemProfileProto_OS(*from._impl_.os_);
12744 }
12745 if (from._internal_has_hardware()) {
12746 _this->_impl_.hardware_ = new ::metrics::SystemProfileProto_Hardware(*from._impl_.hardware_);
12747 }
12748 if (from._internal_has_stability()) {
12749 _this->_impl_.stability_ = new ::metrics::SystemProfileProto_Stability(*from._impl_.stability_);
12750 }
12751 if (from._internal_has_google_update()) {
12752 _this->_impl_.google_update_ = new ::metrics::SystemProfileProto_GoogleUpdate(*from._impl_.google_update_);
12753 }
12754 if (from._internal_has_network()) {
12755 _this->_impl_.network_ = new ::metrics::SystemProfileProto_Network(*from._impl_.network_);
12756 }
12757 if (from._internal_has_external_access_point()) {
12758 _this->_impl_.external_access_point_ = new ::metrics::SystemProfileProto_ExternalAccessPoint(*from._impl_.external_access_point_);
12759 }
12760 if (from._internal_has_linked_android_phone_data()) {
12761 _this->_impl_.linked_android_phone_data_ = new ::metrics::SystemProfileProto_LinkedAndroidPhoneData(*from._impl_.linked_android_phone_data_);
12762 }
12763 if (from._internal_has_cloned_install_info()) {
12764 _this->_impl_.cloned_install_info_ = new ::metrics::SystemProfileProto_ClonedInstallInfo(*from._impl_.cloned_install_info_);
12765 }
12766 if (from._internal_has_demo_mode_dimensions()) {
12767 _this->_impl_.demo_mode_dimensions_ = new ::metrics::SystemProfileProto_DemoModeDimensions(*from._impl_.demo_mode_dimensions_);
12768 }
12769 ::memcpy(&_impl_.build_timestamp_, &from._impl_.build_timestamp_,
12770 static_cast<size_t>(reinterpret_cast<char*>(&_impl_.lts_channel_) -
12771 reinterpret_cast<char*>(&_impl_.build_timestamp_)) + sizeof(_impl_.lts_channel_));
12772 // @@protoc_insertion_point(copy_constructor:metrics.SystemProfileProto)
12773 }
12774
SharedCtor(::_pb::Arena * arena,bool is_message_owned)12775 inline void SystemProfileProto::SharedCtor(
12776 ::_pb::Arena* arena, bool is_message_owned) {
12777 (void)arena;
12778 (void)is_message_owned;
12779 new (&_impl_) Impl_{
12780 decltype(_impl_._has_bits_){}
12781 , /*decltype(_impl_._cached_size_)*/{}
12782 , decltype(_impl_.field_trial_){arena}
12783 , decltype(_impl_.external_audio_video_device_){arena}
12784 , decltype(_impl_.occupied_extension_bucket_){arena}
12785 , decltype(_impl_.antivirus_product_){arena}
12786 , decltype(_impl_.chrome_component_){arena}
12787 , decltype(_impl_.extension_install_){arena}
12788 , decltype(_impl_.command_line_key_hash_){arena}
12789 , decltype(_impl_.app_version_){}
12790 , decltype(_impl_.application_locale_){}
12791 , decltype(_impl_.brand_code_){}
12792 , decltype(_impl_.app_package_name_){}
12793 , decltype(_impl_.variations_seed_version_){}
12794 , decltype(_impl_.client_uuid_){}
12795 , decltype(_impl_.log_written_by_app_version_){}
12796 , decltype(_impl_.os_){nullptr}
12797 , decltype(_impl_.hardware_){nullptr}
12798 , decltype(_impl_.stability_){nullptr}
12799 , decltype(_impl_.google_update_){nullptr}
12800 , decltype(_impl_.network_){nullptr}
12801 , decltype(_impl_.external_access_point_){nullptr}
12802 , decltype(_impl_.linked_android_phone_data_){nullptr}
12803 , decltype(_impl_.cloned_install_info_){nullptr}
12804 , decltype(_impl_.demo_mode_dimensions_){nullptr}
12805 , decltype(_impl_.build_timestamp_){int64_t{0}}
12806 , decltype(_impl_.uma_enabled_date_){int64_t{0}}
12807 , decltype(_impl_.channel_){0}
12808 , decltype(_impl_.multi_profile_user_count_){0u}
12809 , decltype(_impl_.install_date_){int64_t{0}}
12810 , decltype(_impl_.offstore_extensions_state_){0}
12811 , decltype(_impl_.uma_default_state_){0}
12812 , decltype(_impl_.is_extended_stable_channel_){false}
12813 , decltype(_impl_.is_instrumented_build_){false}
12814 , decltype(_impl_.client_id_was_used_for_trial_assignment_){false}
12815 , decltype(_impl_.low_entropy_source_){0}
12816 , decltype(_impl_.old_low_entropy_source_){0}
12817 , decltype(_impl_.installer_package_){0}
12818 , decltype(_impl_.pseudo_low_entropy_source_){0}
12819 , decltype(_impl_.app_package_name_allowlist_filter_){0}
12820 , decltype(_impl_.client_side_sampling_status_){0}
12821 , decltype(_impl_.metrics_filtering_status_){0}
12822 , decltype(_impl_.session_hash_){uint64_t{0u}}
12823 , decltype(_impl_.lts_channel_){0}
12824 };
12825 _impl_.app_version_.InitDefault();
12826 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
12827 _impl_.app_version_.Set("", GetArenaForAllocation());
12828 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
12829 _impl_.application_locale_.InitDefault();
12830 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
12831 _impl_.application_locale_.Set("", GetArenaForAllocation());
12832 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
12833 _impl_.brand_code_.InitDefault();
12834 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
12835 _impl_.brand_code_.Set("", GetArenaForAllocation());
12836 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
12837 _impl_.app_package_name_.InitDefault();
12838 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
12839 _impl_.app_package_name_.Set("", GetArenaForAllocation());
12840 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
12841 _impl_.variations_seed_version_.InitDefault();
12842 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
12843 _impl_.variations_seed_version_.Set("", GetArenaForAllocation());
12844 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
12845 _impl_.client_uuid_.InitDefault();
12846 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
12847 _impl_.client_uuid_.Set("", GetArenaForAllocation());
12848 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
12849 _impl_.log_written_by_app_version_.InitDefault();
12850 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
12851 _impl_.log_written_by_app_version_.Set("", GetArenaForAllocation());
12852 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
12853 }
12854
~SystemProfileProto()12855 SystemProfileProto::~SystemProfileProto() {
12856 // @@protoc_insertion_point(destructor:metrics.SystemProfileProto)
12857 if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
12858 (void)arena;
12859 return;
12860 }
12861 SharedDtor();
12862 }
12863
SharedDtor()12864 inline void SystemProfileProto::SharedDtor() {
12865 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
12866 _impl_.field_trial_.~RepeatedPtrField();
12867 _impl_.external_audio_video_device_.~RepeatedPtrField();
12868 _impl_.occupied_extension_bucket_.~RepeatedField();
12869 _impl_.antivirus_product_.~RepeatedPtrField();
12870 _impl_.chrome_component_.~RepeatedPtrField();
12871 _impl_.extension_install_.~RepeatedPtrField();
12872 _impl_.command_line_key_hash_.~RepeatedField();
12873 _impl_.app_version_.Destroy();
12874 _impl_.application_locale_.Destroy();
12875 _impl_.brand_code_.Destroy();
12876 _impl_.app_package_name_.Destroy();
12877 _impl_.variations_seed_version_.Destroy();
12878 _impl_.client_uuid_.Destroy();
12879 _impl_.log_written_by_app_version_.Destroy();
12880 if (this != internal_default_instance()) delete _impl_.os_;
12881 if (this != internal_default_instance()) delete _impl_.hardware_;
12882 if (this != internal_default_instance()) delete _impl_.stability_;
12883 if (this != internal_default_instance()) delete _impl_.google_update_;
12884 if (this != internal_default_instance()) delete _impl_.network_;
12885 if (this != internal_default_instance()) delete _impl_.external_access_point_;
12886 if (this != internal_default_instance()) delete _impl_.linked_android_phone_data_;
12887 if (this != internal_default_instance()) delete _impl_.cloned_install_info_;
12888 if (this != internal_default_instance()) delete _impl_.demo_mode_dimensions_;
12889 }
12890
SetCachedSize(int size) const12891 void SystemProfileProto::SetCachedSize(int size) const {
12892 _impl_._cached_size_.Set(size);
12893 }
12894
Clear()12895 void SystemProfileProto::Clear() {
12896 // @@protoc_insertion_point(message_clear_start:metrics.SystemProfileProto)
12897 uint32_t cached_has_bits = 0;
12898 // Prevent compiler warnings about cached_has_bits being unused
12899 (void) cached_has_bits;
12900
12901 _impl_.field_trial_.Clear();
12902 _impl_.external_audio_video_device_.Clear();
12903 _impl_.occupied_extension_bucket_.Clear();
12904 _impl_.antivirus_product_.Clear();
12905 _impl_.chrome_component_.Clear();
12906 _impl_.extension_install_.Clear();
12907 _impl_.command_line_key_hash_.Clear();
12908 cached_has_bits = _impl_._has_bits_[0];
12909 if (cached_has_bits & 0x000000ffu) {
12910 if (cached_has_bits & 0x00000001u) {
12911 _impl_.app_version_.ClearNonDefaultToEmpty();
12912 }
12913 if (cached_has_bits & 0x00000002u) {
12914 _impl_.application_locale_.ClearNonDefaultToEmpty();
12915 }
12916 if (cached_has_bits & 0x00000004u) {
12917 _impl_.brand_code_.ClearNonDefaultToEmpty();
12918 }
12919 if (cached_has_bits & 0x00000008u) {
12920 _impl_.app_package_name_.ClearNonDefaultToEmpty();
12921 }
12922 if (cached_has_bits & 0x00000010u) {
12923 _impl_.variations_seed_version_.ClearNonDefaultToEmpty();
12924 }
12925 if (cached_has_bits & 0x00000020u) {
12926 _impl_.client_uuid_.ClearNonDefaultToEmpty();
12927 }
12928 if (cached_has_bits & 0x00000040u) {
12929 _impl_.log_written_by_app_version_.ClearNonDefaultToEmpty();
12930 }
12931 if (cached_has_bits & 0x00000080u) {
12932 GOOGLE_DCHECK(_impl_.os_ != nullptr);
12933 _impl_.os_->Clear();
12934 }
12935 }
12936 if (cached_has_bits & 0x0000ff00u) {
12937 if (cached_has_bits & 0x00000100u) {
12938 GOOGLE_DCHECK(_impl_.hardware_ != nullptr);
12939 _impl_.hardware_->Clear();
12940 }
12941 if (cached_has_bits & 0x00000200u) {
12942 GOOGLE_DCHECK(_impl_.stability_ != nullptr);
12943 _impl_.stability_->Clear();
12944 }
12945 if (cached_has_bits & 0x00000400u) {
12946 GOOGLE_DCHECK(_impl_.google_update_ != nullptr);
12947 _impl_.google_update_->Clear();
12948 }
12949 if (cached_has_bits & 0x00000800u) {
12950 GOOGLE_DCHECK(_impl_.network_ != nullptr);
12951 _impl_.network_->Clear();
12952 }
12953 if (cached_has_bits & 0x00001000u) {
12954 GOOGLE_DCHECK(_impl_.external_access_point_ != nullptr);
12955 _impl_.external_access_point_->Clear();
12956 }
12957 if (cached_has_bits & 0x00002000u) {
12958 GOOGLE_DCHECK(_impl_.linked_android_phone_data_ != nullptr);
12959 _impl_.linked_android_phone_data_->Clear();
12960 }
12961 if (cached_has_bits & 0x00004000u) {
12962 GOOGLE_DCHECK(_impl_.cloned_install_info_ != nullptr);
12963 _impl_.cloned_install_info_->Clear();
12964 }
12965 if (cached_has_bits & 0x00008000u) {
12966 GOOGLE_DCHECK(_impl_.demo_mode_dimensions_ != nullptr);
12967 _impl_.demo_mode_dimensions_->Clear();
12968 }
12969 }
12970 if (cached_has_bits & 0x00ff0000u) {
12971 ::memset(&_impl_.build_timestamp_, 0, static_cast<size_t>(
12972 reinterpret_cast<char*>(&_impl_.is_extended_stable_channel_) -
12973 reinterpret_cast<char*>(&_impl_.build_timestamp_)) + sizeof(_impl_.is_extended_stable_channel_));
12974 }
12975 if (cached_has_bits & 0xff000000u) {
12976 ::memset(&_impl_.is_instrumented_build_, 0, static_cast<size_t>(
12977 reinterpret_cast<char*>(&_impl_.client_side_sampling_status_) -
12978 reinterpret_cast<char*>(&_impl_.is_instrumented_build_)) + sizeof(_impl_.client_side_sampling_status_));
12979 }
12980 cached_has_bits = _impl_._has_bits_[1];
12981 if (cached_has_bits & 0x00000007u) {
12982 ::memset(&_impl_.metrics_filtering_status_, 0, static_cast<size_t>(
12983 reinterpret_cast<char*>(&_impl_.lts_channel_) -
12984 reinterpret_cast<char*>(&_impl_.metrics_filtering_status_)) + sizeof(_impl_.lts_channel_));
12985 }
12986 _impl_._has_bits_.Clear();
12987 _internal_metadata_.Clear<std::string>();
12988 }
12989
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)12990 const char* SystemProfileProto::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
12991 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
12992 while (!ctx->Done(&ptr)) {
12993 uint32_t tag;
12994 ptr = ::_pbi::ReadTag(ptr, &tag);
12995 switch (tag >> 3) {
12996 // optional int64 build_timestamp = 1;
12997 case 1:
12998 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
12999 _Internal::set_has_build_timestamp(&_impl_._has_bits_);
13000 _impl_.build_timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
13001 CHK_(ptr);
13002 } else
13003 goto handle_unusual;
13004 continue;
13005 // optional string app_version = 2;
13006 case 2:
13007 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
13008 auto str = _internal_mutable_app_version();
13009 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
13010 CHK_(ptr);
13011 } else
13012 goto handle_unusual;
13013 continue;
13014 // optional int64 uma_enabled_date = 3;
13015 case 3:
13016 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
13017 _Internal::set_has_uma_enabled_date(&_impl_._has_bits_);
13018 _impl_.uma_enabled_date_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
13019 CHK_(ptr);
13020 } else
13021 goto handle_unusual;
13022 continue;
13023 // optional string application_locale = 4;
13024 case 4:
13025 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
13026 auto str = _internal_mutable_application_locale();
13027 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
13028 CHK_(ptr);
13029 } else
13030 goto handle_unusual;
13031 continue;
13032 // optional .metrics.SystemProfileProto.OS os = 5;
13033 case 5:
13034 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) {
13035 ptr = ctx->ParseMessage(_internal_mutable_os(), ptr);
13036 CHK_(ptr);
13037 } else
13038 goto handle_unusual;
13039 continue;
13040 // optional .metrics.SystemProfileProto.Hardware hardware = 6;
13041 case 6:
13042 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) {
13043 ptr = ctx->ParseMessage(_internal_mutable_hardware(), ptr);
13044 CHK_(ptr);
13045 } else
13046 goto handle_unusual;
13047 continue;
13048 // optional .metrics.SystemProfileProto.Stability stability = 8;
13049 case 8:
13050 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 66)) {
13051 ptr = ctx->ParseMessage(_internal_mutable_stability(), ptr);
13052 CHK_(ptr);
13053 } else
13054 goto handle_unusual;
13055 continue;
13056 // repeated .metrics.SystemProfileProto.FieldTrial field_trial = 9;
13057 case 9:
13058 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 74)) {
13059 ptr -= 1;
13060 do {
13061 ptr += 1;
13062 ptr = ctx->ParseMessage(_internal_add_field_trial(), ptr);
13063 CHK_(ptr);
13064 if (!ctx->DataAvailable(ptr)) break;
13065 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<74>(ptr));
13066 } else
13067 goto handle_unusual;
13068 continue;
13069 // optional .metrics.SystemProfileProto.Channel channel = 10;
13070 case 10:
13071 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 80)) {
13072 uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
13073 CHK_(ptr);
13074 if (PROTOBUF_PREDICT_TRUE(::metrics::SystemProfileProto_Channel_IsValid(val))) {
13075 _internal_set_channel(static_cast<::metrics::SystemProfileProto_Channel>(val));
13076 } else {
13077 ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(10, val, mutable_unknown_fields());
13078 }
13079 } else
13080 goto handle_unusual;
13081 continue;
13082 // optional .metrics.SystemProfileProto.GoogleUpdate google_update = 11;
13083 case 11:
13084 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 90)) {
13085 ptr = ctx->ParseMessage(_internal_mutable_google_update(), ptr);
13086 CHK_(ptr);
13087 } else
13088 goto handle_unusual;
13089 continue;
13090 // optional string brand_code = 12;
13091 case 12:
13092 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 98)) {
13093 auto str = _internal_mutable_brand_code();
13094 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
13095 CHK_(ptr);
13096 } else
13097 goto handle_unusual;
13098 continue;
13099 // optional .metrics.SystemProfileProto.Network network = 13;
13100 case 13:
13101 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 106)) {
13102 ptr = ctx->ParseMessage(_internal_mutable_network(), ptr);
13103 CHK_(ptr);
13104 } else
13105 goto handle_unusual;
13106 continue;
13107 // repeated .metrics.SystemProfileProto.ExternalAudioVideoDevice external_audio_video_device = 14;
13108 case 14:
13109 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 114)) {
13110 ptr -= 1;
13111 do {
13112 ptr += 1;
13113 ptr = ctx->ParseMessage(_internal_add_external_audio_video_device(), ptr);
13114 CHK_(ptr);
13115 if (!ctx->DataAvailable(ptr)) break;
13116 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<114>(ptr));
13117 } else
13118 goto handle_unusual;
13119 continue;
13120 // optional .metrics.SystemProfileProto.ExternalAccessPoint external_access_point = 15;
13121 case 15:
13122 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 122)) {
13123 ptr = ctx->ParseMessage(_internal_mutable_external_access_point(), ptr);
13124 CHK_(ptr);
13125 } else
13126 goto handle_unusual;
13127 continue;
13128 // optional int64 install_date = 16;
13129 case 16:
13130 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 128)) {
13131 _Internal::set_has_install_date(&_impl_._has_bits_);
13132 _impl_.install_date_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
13133 CHK_(ptr);
13134 } else
13135 goto handle_unusual;
13136 continue;
13137 // optional uint32 multi_profile_user_count = 17;
13138 case 17:
13139 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 136)) {
13140 _Internal::set_has_multi_profile_user_count(&_impl_._has_bits_);
13141 _impl_.multi_profile_user_count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
13142 CHK_(ptr);
13143 } else
13144 goto handle_unusual;
13145 continue;
13146 // repeated int32 occupied_extension_bucket = 18;
13147 case 18:
13148 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 144)) {
13149 ptr -= 2;
13150 do {
13151 ptr += 2;
13152 _internal_add_occupied_extension_bucket(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr));
13153 CHK_(ptr);
13154 if (!ctx->DataAvailable(ptr)) break;
13155 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<144>(ptr));
13156 } else if (static_cast<uint8_t>(tag) == 146) {
13157 ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(_internal_mutable_occupied_extension_bucket(), ptr, ctx);
13158 CHK_(ptr);
13159 } else
13160 goto handle_unusual;
13161 continue;
13162 // optional .metrics.SystemProfileProto.ExtensionsState offstore_extensions_state = 19;
13163 case 19:
13164 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 152)) {
13165 uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
13166 CHK_(ptr);
13167 if (PROTOBUF_PREDICT_TRUE(::metrics::SystemProfileProto_ExtensionsState_IsValid(val))) {
13168 _internal_set_offstore_extensions_state(static_cast<::metrics::SystemProfileProto_ExtensionsState>(val));
13169 } else {
13170 ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(19, val, mutable_unknown_fields());
13171 }
13172 } else
13173 goto handle_unusual;
13174 continue;
13175 // optional bool is_instrumented_build = 20 [default = false];
13176 case 20:
13177 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 160)) {
13178 _Internal::set_has_is_instrumented_build(&_impl_._has_bits_);
13179 _impl_.is_instrumented_build_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
13180 CHK_(ptr);
13181 } else
13182 goto handle_unusual;
13183 continue;
13184 // optional .metrics.SystemProfileProto.UmaDefaultState uma_default_state = 22;
13185 case 22:
13186 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 176)) {
13187 uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
13188 CHK_(ptr);
13189 if (PROTOBUF_PREDICT_TRUE(::metrics::SystemProfileProto_UmaDefaultState_IsValid(val))) {
13190 _internal_set_uma_default_state(static_cast<::metrics::SystemProfileProto_UmaDefaultState>(val));
13191 } else {
13192 ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(22, val, mutable_unknown_fields());
13193 }
13194 } else
13195 goto handle_unusual;
13196 continue;
13197 // repeated .metrics.SystemProfileProto.AntiVirusProduct antivirus_product = 23;
13198 case 23:
13199 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 186)) {
13200 ptr -= 2;
13201 do {
13202 ptr += 2;
13203 ptr = ctx->ParseMessage(_internal_add_antivirus_product(), ptr);
13204 CHK_(ptr);
13205 if (!ctx->DataAvailable(ptr)) break;
13206 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<186>(ptr));
13207 } else
13208 goto handle_unusual;
13209 continue;
13210 // repeated .metrics.SystemProfileProto.ChromeComponent chrome_component = 24;
13211 case 24:
13212 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 194)) {
13213 ptr -= 2;
13214 do {
13215 ptr += 2;
13216 ptr = ctx->ParseMessage(_internal_add_chrome_component(), ptr);
13217 CHK_(ptr);
13218 if (!ctx->DataAvailable(ptr)) break;
13219 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<194>(ptr));
13220 } else
13221 goto handle_unusual;
13222 continue;
13223 // repeated .metrics.ExtensionInstallProto extension_install = 25;
13224 case 25:
13225 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 202)) {
13226 ptr -= 2;
13227 do {
13228 ptr += 2;
13229 ptr = ctx->ParseMessage(_internal_add_extension_install(), ptr);
13230 CHK_(ptr);
13231 if (!ctx->DataAvailable(ptr)) break;
13232 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<202>(ptr));
13233 } else
13234 goto handle_unusual;
13235 continue;
13236 // optional string app_package_name = 26;
13237 case 26:
13238 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 210)) {
13239 auto str = _internal_mutable_app_package_name();
13240 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
13241 CHK_(ptr);
13242 } else
13243 goto handle_unusual;
13244 continue;
13245 // optional string variations_seed_version = 28;
13246 case 28:
13247 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 226)) {
13248 auto str = _internal_mutable_variations_seed_version();
13249 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
13250 CHK_(ptr);
13251 } else
13252 goto handle_unusual;
13253 continue;
13254 // optional .metrics.SystemProfileProto.LinkedAndroidPhoneData linked_android_phone_data = 29;
13255 case 29:
13256 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 234)) {
13257 ptr = ctx->ParseMessage(_internal_mutable_linked_android_phone_data(), ptr);
13258 CHK_(ptr);
13259 } else
13260 goto handle_unusual;
13261 continue;
13262 // optional int32 low_entropy_source = 31;
13263 case 31:
13264 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 248)) {
13265 _Internal::set_has_low_entropy_source(&_impl_._has_bits_);
13266 _impl_.low_entropy_source_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
13267 CHK_(ptr);
13268 } else
13269 goto handle_unusual;
13270 continue;
13271 // optional int32 old_low_entropy_source = 32;
13272 case 32:
13273 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 0)) {
13274 _Internal::set_has_old_low_entropy_source(&_impl_._has_bits_);
13275 _impl_.old_low_entropy_source_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
13276 CHK_(ptr);
13277 } else
13278 goto handle_unusual;
13279 continue;
13280 // optional bool client_id_was_used_for_trial_assignment = 33;
13281 case 33:
13282 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
13283 _Internal::set_has_client_id_was_used_for_trial_assignment(&_impl_._has_bits_);
13284 _impl_.client_id_was_used_for_trial_assignment_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
13285 CHK_(ptr);
13286 } else
13287 goto handle_unusual;
13288 continue;
13289 // optional string client_uuid = 34;
13290 case 34:
13291 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
13292 auto str = _internal_mutable_client_uuid();
13293 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
13294 CHK_(ptr);
13295 } else
13296 goto handle_unusual;
13297 continue;
13298 // optional .metrics.SystemProfileProto.InstallerPackage installer_package = 35;
13299 case 35:
13300 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
13301 uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
13302 CHK_(ptr);
13303 if (PROTOBUF_PREDICT_TRUE(::metrics::SystemProfileProto_InstallerPackage_IsValid(val))) {
13304 _internal_set_installer_package(static_cast<::metrics::SystemProfileProto_InstallerPackage>(val));
13305 } else {
13306 ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(35, val, mutable_unknown_fields());
13307 }
13308 } else
13309 goto handle_unusual;
13310 continue;
13311 // optional bool is_extended_stable_channel = 36 [default = false];
13312 case 36:
13313 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
13314 _Internal::set_has_is_extended_stable_channel(&_impl_._has_bits_);
13315 _impl_.is_extended_stable_channel_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
13316 CHK_(ptr);
13317 } else
13318 goto handle_unusual;
13319 continue;
13320 // optional int32 pseudo_low_entropy_source = 37;
13321 case 37:
13322 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
13323 _Internal::set_has_pseudo_low_entropy_source(&_impl_._has_bits_);
13324 _impl_.pseudo_low_entropy_source_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
13325 CHK_(ptr);
13326 } else
13327 goto handle_unusual;
13328 continue;
13329 // repeated fixed32 command_line_key_hash = 38 [packed = true];
13330 case 38:
13331 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) {
13332 ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedFixed32Parser(_internal_mutable_command_line_key_hash(), ptr, ctx);
13333 CHK_(ptr);
13334 } else if (static_cast<uint8_t>(tag) == 53) {
13335 _internal_add_command_line_key_hash(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<uint32_t>(ptr));
13336 ptr += sizeof(uint32_t);
13337 } else
13338 goto handle_unusual;
13339 continue;
13340 // optional .metrics.SystemProfileProto.ClonedInstallInfo cloned_install_info = 39;
13341 case 39:
13342 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 58)) {
13343 ptr = ctx->ParseMessage(_internal_mutable_cloned_install_info(), ptr);
13344 CHK_(ptr);
13345 } else
13346 goto handle_unusual;
13347 continue;
13348 // optional string log_written_by_app_version = 40;
13349 case 40:
13350 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 66)) {
13351 auto str = _internal_mutable_log_written_by_app_version();
13352 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
13353 CHK_(ptr);
13354 } else
13355 goto handle_unusual;
13356 continue;
13357 // optional .metrics.SystemProfileProto.DemoModeDimensions demo_mode_dimensions = 41;
13358 case 41:
13359 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 74)) {
13360 ptr = ctx->ParseMessage(_internal_mutable_demo_mode_dimensions(), ptr);
13361 CHK_(ptr);
13362 } else
13363 goto handle_unusual;
13364 continue;
13365 // optional .metrics.SystemProfileProto.AppPackageNameAllowlistFilter app_package_name_allowlist_filter = 42;
13366 case 42:
13367 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 80)) {
13368 uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
13369 CHK_(ptr);
13370 if (PROTOBUF_PREDICT_TRUE(::metrics::SystemProfileProto_AppPackageNameAllowlistFilter_IsValid(val))) {
13371 _internal_set_app_package_name_allowlist_filter(static_cast<::metrics::SystemProfileProto_AppPackageNameAllowlistFilter>(val));
13372 } else {
13373 ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(42, val, mutable_unknown_fields());
13374 }
13375 } else
13376 goto handle_unusual;
13377 continue;
13378 // optional .metrics.SystemProfileProto.ClientSideSamplingStatus client_side_sampling_status = 43;
13379 case 43:
13380 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 88)) {
13381 uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
13382 CHK_(ptr);
13383 if (PROTOBUF_PREDICT_TRUE(::metrics::SystemProfileProto_ClientSideSamplingStatus_IsValid(val))) {
13384 _internal_set_client_side_sampling_status(static_cast<::metrics::SystemProfileProto_ClientSideSamplingStatus>(val));
13385 } else {
13386 ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(43, val, mutable_unknown_fields());
13387 }
13388 } else
13389 goto handle_unusual;
13390 continue;
13391 // optional .metrics.SystemProfileProto.MetricsFilteringStatus metrics_filtering_status = 44;
13392 case 44:
13393 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 96)) {
13394 uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
13395 CHK_(ptr);
13396 if (PROTOBUF_PREDICT_TRUE(::metrics::SystemProfileProto_MetricsFilteringStatus_IsValid(val))) {
13397 _internal_set_metrics_filtering_status(static_cast<::metrics::SystemProfileProto_MetricsFilteringStatus>(val));
13398 } else {
13399 ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(44, val, mutable_unknown_fields());
13400 }
13401 } else
13402 goto handle_unusual;
13403 continue;
13404 // optional .metrics.SystemProfileProto.LTSChannel lts_channel = 45;
13405 case 45:
13406 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 104)) {
13407 uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
13408 CHK_(ptr);
13409 if (PROTOBUF_PREDICT_TRUE(::metrics::SystemProfileProto_LTSChannel_IsValid(val))) {
13410 _internal_set_lts_channel(static_cast<::metrics::SystemProfileProto_LTSChannel>(val));
13411 } else {
13412 ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(45, val, mutable_unknown_fields());
13413 }
13414 } else
13415 goto handle_unusual;
13416 continue;
13417 // optional fixed64 session_hash = 46;
13418 case 46:
13419 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 113)) {
13420 _Internal::set_has_session_hash(&_impl_._has_bits_);
13421 _impl_.session_hash_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<uint64_t>(ptr);
13422 ptr += sizeof(uint64_t);
13423 } else
13424 goto handle_unusual;
13425 continue;
13426 default:
13427 goto handle_unusual;
13428 } // switch
13429 handle_unusual:
13430 if ((tag == 0) || ((tag & 7) == 4)) {
13431 CHK_(ptr);
13432 ctx->SetLastTag(tag);
13433 goto message_done;
13434 }
13435 ptr = UnknownFieldParse(
13436 tag,
13437 _internal_metadata_.mutable_unknown_fields<std::string>(),
13438 ptr, ctx);
13439 CHK_(ptr != nullptr);
13440 } // while
13441 message_done:
13442 return ptr;
13443 failure:
13444 ptr = nullptr;
13445 goto message_done;
13446 #undef CHK_
13447 }
13448
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const13449 uint8_t* SystemProfileProto::_InternalSerialize(
13450 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
13451 // @@protoc_insertion_point(serialize_to_array_start:metrics.SystemProfileProto)
13452 uint32_t cached_has_bits = 0;
13453 (void) cached_has_bits;
13454
13455 cached_has_bits = _impl_._has_bits_[0];
13456 // optional int64 build_timestamp = 1;
13457 if (cached_has_bits & 0x00010000u) {
13458 target = stream->EnsureSpace(target);
13459 target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_build_timestamp(), target);
13460 }
13461
13462 // optional string app_version = 2;
13463 if (cached_has_bits & 0x00000001u) {
13464 target = stream->WriteStringMaybeAliased(
13465 2, this->_internal_app_version(), target);
13466 }
13467
13468 // optional int64 uma_enabled_date = 3;
13469 if (cached_has_bits & 0x00020000u) {
13470 target = stream->EnsureSpace(target);
13471 target = ::_pbi::WireFormatLite::WriteInt64ToArray(3, this->_internal_uma_enabled_date(), target);
13472 }
13473
13474 // optional string application_locale = 4;
13475 if (cached_has_bits & 0x00000002u) {
13476 target = stream->WriteStringMaybeAliased(
13477 4, this->_internal_application_locale(), target);
13478 }
13479
13480 // optional .metrics.SystemProfileProto.OS os = 5;
13481 if (cached_has_bits & 0x00000080u) {
13482 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
13483 InternalWriteMessage(5, _Internal::os(this),
13484 _Internal::os(this).GetCachedSize(), target, stream);
13485 }
13486
13487 // optional .metrics.SystemProfileProto.Hardware hardware = 6;
13488 if (cached_has_bits & 0x00000100u) {
13489 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
13490 InternalWriteMessage(6, _Internal::hardware(this),
13491 _Internal::hardware(this).GetCachedSize(), target, stream);
13492 }
13493
13494 // optional .metrics.SystemProfileProto.Stability stability = 8;
13495 if (cached_has_bits & 0x00000200u) {
13496 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
13497 InternalWriteMessage(8, _Internal::stability(this),
13498 _Internal::stability(this).GetCachedSize(), target, stream);
13499 }
13500
13501 // repeated .metrics.SystemProfileProto.FieldTrial field_trial = 9;
13502 for (unsigned i = 0,
13503 n = static_cast<unsigned>(this->_internal_field_trial_size()); i < n; i++) {
13504 const auto& repfield = this->_internal_field_trial(i);
13505 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
13506 InternalWriteMessage(9, repfield, repfield.GetCachedSize(), target, stream);
13507 }
13508
13509 // optional .metrics.SystemProfileProto.Channel channel = 10;
13510 if (cached_has_bits & 0x00040000u) {
13511 target = stream->EnsureSpace(target);
13512 target = ::_pbi::WireFormatLite::WriteEnumToArray(
13513 10, this->_internal_channel(), target);
13514 }
13515
13516 // optional .metrics.SystemProfileProto.GoogleUpdate google_update = 11;
13517 if (cached_has_bits & 0x00000400u) {
13518 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
13519 InternalWriteMessage(11, _Internal::google_update(this),
13520 _Internal::google_update(this).GetCachedSize(), target, stream);
13521 }
13522
13523 // optional string brand_code = 12;
13524 if (cached_has_bits & 0x00000004u) {
13525 target = stream->WriteStringMaybeAliased(
13526 12, this->_internal_brand_code(), target);
13527 }
13528
13529 // optional .metrics.SystemProfileProto.Network network = 13;
13530 if (cached_has_bits & 0x00000800u) {
13531 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
13532 InternalWriteMessage(13, _Internal::network(this),
13533 _Internal::network(this).GetCachedSize(), target, stream);
13534 }
13535
13536 // repeated .metrics.SystemProfileProto.ExternalAudioVideoDevice external_audio_video_device = 14;
13537 for (unsigned i = 0,
13538 n = static_cast<unsigned>(this->_internal_external_audio_video_device_size()); i < n; i++) {
13539 const auto& repfield = this->_internal_external_audio_video_device(i);
13540 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
13541 InternalWriteMessage(14, repfield, repfield.GetCachedSize(), target, stream);
13542 }
13543
13544 // optional .metrics.SystemProfileProto.ExternalAccessPoint external_access_point = 15;
13545 if (cached_has_bits & 0x00001000u) {
13546 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
13547 InternalWriteMessage(15, _Internal::external_access_point(this),
13548 _Internal::external_access_point(this).GetCachedSize(), target, stream);
13549 }
13550
13551 // optional int64 install_date = 16;
13552 if (cached_has_bits & 0x00100000u) {
13553 target = stream->EnsureSpace(target);
13554 target = ::_pbi::WireFormatLite::WriteInt64ToArray(16, this->_internal_install_date(), target);
13555 }
13556
13557 // optional uint32 multi_profile_user_count = 17;
13558 if (cached_has_bits & 0x00080000u) {
13559 target = stream->EnsureSpace(target);
13560 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(17, this->_internal_multi_profile_user_count(), target);
13561 }
13562
13563 // repeated int32 occupied_extension_bucket = 18;
13564 for (int i = 0, n = this->_internal_occupied_extension_bucket_size(); i < n; i++) {
13565 target = stream->EnsureSpace(target);
13566 target = ::_pbi::WireFormatLite::WriteInt32ToArray(18, this->_internal_occupied_extension_bucket(i), target);
13567 }
13568
13569 // optional .metrics.SystemProfileProto.ExtensionsState offstore_extensions_state = 19;
13570 if (cached_has_bits & 0x00200000u) {
13571 target = stream->EnsureSpace(target);
13572 target = ::_pbi::WireFormatLite::WriteEnumToArray(
13573 19, this->_internal_offstore_extensions_state(), target);
13574 }
13575
13576 // optional bool is_instrumented_build = 20 [default = false];
13577 if (cached_has_bits & 0x01000000u) {
13578 target = stream->EnsureSpace(target);
13579 target = ::_pbi::WireFormatLite::WriteBoolToArray(20, this->_internal_is_instrumented_build(), target);
13580 }
13581
13582 // optional .metrics.SystemProfileProto.UmaDefaultState uma_default_state = 22;
13583 if (cached_has_bits & 0x00400000u) {
13584 target = stream->EnsureSpace(target);
13585 target = ::_pbi::WireFormatLite::WriteEnumToArray(
13586 22, this->_internal_uma_default_state(), target);
13587 }
13588
13589 // repeated .metrics.SystemProfileProto.AntiVirusProduct antivirus_product = 23;
13590 for (unsigned i = 0,
13591 n = static_cast<unsigned>(this->_internal_antivirus_product_size()); i < n; i++) {
13592 const auto& repfield = this->_internal_antivirus_product(i);
13593 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
13594 InternalWriteMessage(23, repfield, repfield.GetCachedSize(), target, stream);
13595 }
13596
13597 // repeated .metrics.SystemProfileProto.ChromeComponent chrome_component = 24;
13598 for (unsigned i = 0,
13599 n = static_cast<unsigned>(this->_internal_chrome_component_size()); i < n; i++) {
13600 const auto& repfield = this->_internal_chrome_component(i);
13601 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
13602 InternalWriteMessage(24, repfield, repfield.GetCachedSize(), target, stream);
13603 }
13604
13605 // repeated .metrics.ExtensionInstallProto extension_install = 25;
13606 for (unsigned i = 0,
13607 n = static_cast<unsigned>(this->_internal_extension_install_size()); i < n; i++) {
13608 const auto& repfield = this->_internal_extension_install(i);
13609 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
13610 InternalWriteMessage(25, repfield, repfield.GetCachedSize(), target, stream);
13611 }
13612
13613 // optional string app_package_name = 26;
13614 if (cached_has_bits & 0x00000008u) {
13615 target = stream->WriteStringMaybeAliased(
13616 26, this->_internal_app_package_name(), target);
13617 }
13618
13619 // optional string variations_seed_version = 28;
13620 if (cached_has_bits & 0x00000010u) {
13621 target = stream->WriteStringMaybeAliased(
13622 28, this->_internal_variations_seed_version(), target);
13623 }
13624
13625 // optional .metrics.SystemProfileProto.LinkedAndroidPhoneData linked_android_phone_data = 29;
13626 if (cached_has_bits & 0x00002000u) {
13627 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
13628 InternalWriteMessage(29, _Internal::linked_android_phone_data(this),
13629 _Internal::linked_android_phone_data(this).GetCachedSize(), target, stream);
13630 }
13631
13632 // optional int32 low_entropy_source = 31;
13633 if (cached_has_bits & 0x04000000u) {
13634 target = stream->EnsureSpace(target);
13635 target = ::_pbi::WireFormatLite::WriteInt32ToArray(31, this->_internal_low_entropy_source(), target);
13636 }
13637
13638 // optional int32 old_low_entropy_source = 32;
13639 if (cached_has_bits & 0x08000000u) {
13640 target = stream->EnsureSpace(target);
13641 target = ::_pbi::WireFormatLite::WriteInt32ToArray(32, this->_internal_old_low_entropy_source(), target);
13642 }
13643
13644 // optional bool client_id_was_used_for_trial_assignment = 33;
13645 if (cached_has_bits & 0x02000000u) {
13646 target = stream->EnsureSpace(target);
13647 target = ::_pbi::WireFormatLite::WriteBoolToArray(33, this->_internal_client_id_was_used_for_trial_assignment(), target);
13648 }
13649
13650 // optional string client_uuid = 34;
13651 if (cached_has_bits & 0x00000020u) {
13652 target = stream->WriteStringMaybeAliased(
13653 34, this->_internal_client_uuid(), target);
13654 }
13655
13656 // optional .metrics.SystemProfileProto.InstallerPackage installer_package = 35;
13657 if (cached_has_bits & 0x10000000u) {
13658 target = stream->EnsureSpace(target);
13659 target = ::_pbi::WireFormatLite::WriteEnumToArray(
13660 35, this->_internal_installer_package(), target);
13661 }
13662
13663 // optional bool is_extended_stable_channel = 36 [default = false];
13664 if (cached_has_bits & 0x00800000u) {
13665 target = stream->EnsureSpace(target);
13666 target = ::_pbi::WireFormatLite::WriteBoolToArray(36, this->_internal_is_extended_stable_channel(), target);
13667 }
13668
13669 // optional int32 pseudo_low_entropy_source = 37;
13670 if (cached_has_bits & 0x20000000u) {
13671 target = stream->EnsureSpace(target);
13672 target = ::_pbi::WireFormatLite::WriteInt32ToArray(37, this->_internal_pseudo_low_entropy_source(), target);
13673 }
13674
13675 // repeated fixed32 command_line_key_hash = 38 [packed = true];
13676 if (this->_internal_command_line_key_hash_size() > 0) {
13677 target = stream->WriteFixedPacked(38, _internal_command_line_key_hash(), target);
13678 }
13679
13680 // optional .metrics.SystemProfileProto.ClonedInstallInfo cloned_install_info = 39;
13681 if (cached_has_bits & 0x00004000u) {
13682 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
13683 InternalWriteMessage(39, _Internal::cloned_install_info(this),
13684 _Internal::cloned_install_info(this).GetCachedSize(), target, stream);
13685 }
13686
13687 // optional string log_written_by_app_version = 40;
13688 if (cached_has_bits & 0x00000040u) {
13689 target = stream->WriteStringMaybeAliased(
13690 40, this->_internal_log_written_by_app_version(), target);
13691 }
13692
13693 // optional .metrics.SystemProfileProto.DemoModeDimensions demo_mode_dimensions = 41;
13694 if (cached_has_bits & 0x00008000u) {
13695 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
13696 InternalWriteMessage(41, _Internal::demo_mode_dimensions(this),
13697 _Internal::demo_mode_dimensions(this).GetCachedSize(), target, stream);
13698 }
13699
13700 // optional .metrics.SystemProfileProto.AppPackageNameAllowlistFilter app_package_name_allowlist_filter = 42;
13701 if (cached_has_bits & 0x40000000u) {
13702 target = stream->EnsureSpace(target);
13703 target = ::_pbi::WireFormatLite::WriteEnumToArray(
13704 42, this->_internal_app_package_name_allowlist_filter(), target);
13705 }
13706
13707 // optional .metrics.SystemProfileProto.ClientSideSamplingStatus client_side_sampling_status = 43;
13708 if (cached_has_bits & 0x80000000u) {
13709 target = stream->EnsureSpace(target);
13710 target = ::_pbi::WireFormatLite::WriteEnumToArray(
13711 43, this->_internal_client_side_sampling_status(), target);
13712 }
13713
13714 cached_has_bits = _impl_._has_bits_[1];
13715 // optional .metrics.SystemProfileProto.MetricsFilteringStatus metrics_filtering_status = 44;
13716 if (cached_has_bits & 0x00000001u) {
13717 target = stream->EnsureSpace(target);
13718 target = ::_pbi::WireFormatLite::WriteEnumToArray(
13719 44, this->_internal_metrics_filtering_status(), target);
13720 }
13721
13722 // optional .metrics.SystemProfileProto.LTSChannel lts_channel = 45;
13723 if (cached_has_bits & 0x00000004u) {
13724 target = stream->EnsureSpace(target);
13725 target = ::_pbi::WireFormatLite::WriteEnumToArray(
13726 45, this->_internal_lts_channel(), target);
13727 }
13728
13729 // optional fixed64 session_hash = 46;
13730 if (cached_has_bits & 0x00000002u) {
13731 target = stream->EnsureSpace(target);
13732 target = ::_pbi::WireFormatLite::WriteFixed64ToArray(46, this->_internal_session_hash(), target);
13733 }
13734
13735 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
13736 target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
13737 static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
13738 }
13739 // @@protoc_insertion_point(serialize_to_array_end:metrics.SystemProfileProto)
13740 return target;
13741 }
13742
ByteSizeLong() const13743 size_t SystemProfileProto::ByteSizeLong() const {
13744 // @@protoc_insertion_point(message_byte_size_start:metrics.SystemProfileProto)
13745 size_t total_size = 0;
13746
13747 uint32_t cached_has_bits = 0;
13748 // Prevent compiler warnings about cached_has_bits being unused
13749 (void) cached_has_bits;
13750
13751 // repeated .metrics.SystemProfileProto.FieldTrial field_trial = 9;
13752 total_size += 1UL * this->_internal_field_trial_size();
13753 for (const auto& msg : this->_impl_.field_trial_) {
13754 total_size +=
13755 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
13756 }
13757
13758 // repeated .metrics.SystemProfileProto.ExternalAudioVideoDevice external_audio_video_device = 14;
13759 total_size += 1UL * this->_internal_external_audio_video_device_size();
13760 for (const auto& msg : this->_impl_.external_audio_video_device_) {
13761 total_size +=
13762 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
13763 }
13764
13765 // repeated int32 occupied_extension_bucket = 18;
13766 {
13767 size_t data_size = ::_pbi::WireFormatLite::
13768 Int32Size(this->_impl_.occupied_extension_bucket_);
13769 total_size += 2 *
13770 ::_pbi::FromIntSize(this->_internal_occupied_extension_bucket_size());
13771 total_size += data_size;
13772 }
13773
13774 // repeated .metrics.SystemProfileProto.AntiVirusProduct antivirus_product = 23;
13775 total_size += 2UL * this->_internal_antivirus_product_size();
13776 for (const auto& msg : this->_impl_.antivirus_product_) {
13777 total_size +=
13778 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
13779 }
13780
13781 // repeated .metrics.SystemProfileProto.ChromeComponent chrome_component = 24;
13782 total_size += 2UL * this->_internal_chrome_component_size();
13783 for (const auto& msg : this->_impl_.chrome_component_) {
13784 total_size +=
13785 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
13786 }
13787
13788 // repeated .metrics.ExtensionInstallProto extension_install = 25;
13789 total_size += 2UL * this->_internal_extension_install_size();
13790 for (const auto& msg : this->_impl_.extension_install_) {
13791 total_size +=
13792 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
13793 }
13794
13795 // repeated fixed32 command_line_key_hash = 38 [packed = true];
13796 {
13797 unsigned int count = static_cast<unsigned int>(this->_internal_command_line_key_hash_size());
13798 size_t data_size = 4UL * count;
13799 if (data_size > 0) {
13800 total_size += 2 +
13801 ::_pbi::WireFormatLite::Int32Size(static_cast<int32_t>(data_size));
13802 }
13803 total_size += data_size;
13804 }
13805
13806 cached_has_bits = _impl_._has_bits_[0];
13807 if (cached_has_bits & 0x000000ffu) {
13808 // optional string app_version = 2;
13809 if (cached_has_bits & 0x00000001u) {
13810 total_size += 1 +
13811 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
13812 this->_internal_app_version());
13813 }
13814
13815 // optional string application_locale = 4;
13816 if (cached_has_bits & 0x00000002u) {
13817 total_size += 1 +
13818 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
13819 this->_internal_application_locale());
13820 }
13821
13822 // optional string brand_code = 12;
13823 if (cached_has_bits & 0x00000004u) {
13824 total_size += 1 +
13825 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
13826 this->_internal_brand_code());
13827 }
13828
13829 // optional string app_package_name = 26;
13830 if (cached_has_bits & 0x00000008u) {
13831 total_size += 2 +
13832 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
13833 this->_internal_app_package_name());
13834 }
13835
13836 // optional string variations_seed_version = 28;
13837 if (cached_has_bits & 0x00000010u) {
13838 total_size += 2 +
13839 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
13840 this->_internal_variations_seed_version());
13841 }
13842
13843 // optional string client_uuid = 34;
13844 if (cached_has_bits & 0x00000020u) {
13845 total_size += 2 +
13846 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
13847 this->_internal_client_uuid());
13848 }
13849
13850 // optional string log_written_by_app_version = 40;
13851 if (cached_has_bits & 0x00000040u) {
13852 total_size += 2 +
13853 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
13854 this->_internal_log_written_by_app_version());
13855 }
13856
13857 // optional .metrics.SystemProfileProto.OS os = 5;
13858 if (cached_has_bits & 0x00000080u) {
13859 total_size += 1 +
13860 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
13861 *_impl_.os_);
13862 }
13863
13864 }
13865 if (cached_has_bits & 0x0000ff00u) {
13866 // optional .metrics.SystemProfileProto.Hardware hardware = 6;
13867 if (cached_has_bits & 0x00000100u) {
13868 total_size += 1 +
13869 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
13870 *_impl_.hardware_);
13871 }
13872
13873 // optional .metrics.SystemProfileProto.Stability stability = 8;
13874 if (cached_has_bits & 0x00000200u) {
13875 total_size += 1 +
13876 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
13877 *_impl_.stability_);
13878 }
13879
13880 // optional .metrics.SystemProfileProto.GoogleUpdate google_update = 11;
13881 if (cached_has_bits & 0x00000400u) {
13882 total_size += 1 +
13883 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
13884 *_impl_.google_update_);
13885 }
13886
13887 // optional .metrics.SystemProfileProto.Network network = 13;
13888 if (cached_has_bits & 0x00000800u) {
13889 total_size += 1 +
13890 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
13891 *_impl_.network_);
13892 }
13893
13894 // optional .metrics.SystemProfileProto.ExternalAccessPoint external_access_point = 15;
13895 if (cached_has_bits & 0x00001000u) {
13896 total_size += 1 +
13897 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
13898 *_impl_.external_access_point_);
13899 }
13900
13901 // optional .metrics.SystemProfileProto.LinkedAndroidPhoneData linked_android_phone_data = 29;
13902 if (cached_has_bits & 0x00002000u) {
13903 total_size += 2 +
13904 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
13905 *_impl_.linked_android_phone_data_);
13906 }
13907
13908 // optional .metrics.SystemProfileProto.ClonedInstallInfo cloned_install_info = 39;
13909 if (cached_has_bits & 0x00004000u) {
13910 total_size += 2 +
13911 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
13912 *_impl_.cloned_install_info_);
13913 }
13914
13915 // optional .metrics.SystemProfileProto.DemoModeDimensions demo_mode_dimensions = 41;
13916 if (cached_has_bits & 0x00008000u) {
13917 total_size += 2 +
13918 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
13919 *_impl_.demo_mode_dimensions_);
13920 }
13921
13922 }
13923 if (cached_has_bits & 0x00ff0000u) {
13924 // optional int64 build_timestamp = 1;
13925 if (cached_has_bits & 0x00010000u) {
13926 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_build_timestamp());
13927 }
13928
13929 // optional int64 uma_enabled_date = 3;
13930 if (cached_has_bits & 0x00020000u) {
13931 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_uma_enabled_date());
13932 }
13933
13934 // optional .metrics.SystemProfileProto.Channel channel = 10;
13935 if (cached_has_bits & 0x00040000u) {
13936 total_size += 1 +
13937 ::_pbi::WireFormatLite::EnumSize(this->_internal_channel());
13938 }
13939
13940 // optional uint32 multi_profile_user_count = 17;
13941 if (cached_has_bits & 0x00080000u) {
13942 total_size += 2 +
13943 ::_pbi::WireFormatLite::UInt32Size(
13944 this->_internal_multi_profile_user_count());
13945 }
13946
13947 // optional int64 install_date = 16;
13948 if (cached_has_bits & 0x00100000u) {
13949 total_size += 2 +
13950 ::_pbi::WireFormatLite::Int64Size(
13951 this->_internal_install_date());
13952 }
13953
13954 // optional .metrics.SystemProfileProto.ExtensionsState offstore_extensions_state = 19;
13955 if (cached_has_bits & 0x00200000u) {
13956 total_size += 2 +
13957 ::_pbi::WireFormatLite::EnumSize(this->_internal_offstore_extensions_state());
13958 }
13959
13960 // optional .metrics.SystemProfileProto.UmaDefaultState uma_default_state = 22;
13961 if (cached_has_bits & 0x00400000u) {
13962 total_size += 2 +
13963 ::_pbi::WireFormatLite::EnumSize(this->_internal_uma_default_state());
13964 }
13965
13966 // optional bool is_extended_stable_channel = 36 [default = false];
13967 if (cached_has_bits & 0x00800000u) {
13968 total_size += 2 + 1;
13969 }
13970
13971 }
13972 if (cached_has_bits & 0xff000000u) {
13973 // optional bool is_instrumented_build = 20 [default = false];
13974 if (cached_has_bits & 0x01000000u) {
13975 total_size += 2 + 1;
13976 }
13977
13978 // optional bool client_id_was_used_for_trial_assignment = 33;
13979 if (cached_has_bits & 0x02000000u) {
13980 total_size += 2 + 1;
13981 }
13982
13983 // optional int32 low_entropy_source = 31;
13984 if (cached_has_bits & 0x04000000u) {
13985 total_size += 2 +
13986 ::_pbi::WireFormatLite::Int32Size(
13987 this->_internal_low_entropy_source());
13988 }
13989
13990 // optional int32 old_low_entropy_source = 32;
13991 if (cached_has_bits & 0x08000000u) {
13992 total_size += 2 +
13993 ::_pbi::WireFormatLite::Int32Size(
13994 this->_internal_old_low_entropy_source());
13995 }
13996
13997 // optional .metrics.SystemProfileProto.InstallerPackage installer_package = 35;
13998 if (cached_has_bits & 0x10000000u) {
13999 total_size += 2 +
14000 ::_pbi::WireFormatLite::EnumSize(this->_internal_installer_package());
14001 }
14002
14003 // optional int32 pseudo_low_entropy_source = 37;
14004 if (cached_has_bits & 0x20000000u) {
14005 total_size += 2 +
14006 ::_pbi::WireFormatLite::Int32Size(
14007 this->_internal_pseudo_low_entropy_source());
14008 }
14009
14010 // optional .metrics.SystemProfileProto.AppPackageNameAllowlistFilter app_package_name_allowlist_filter = 42;
14011 if (cached_has_bits & 0x40000000u) {
14012 total_size += 2 +
14013 ::_pbi::WireFormatLite::EnumSize(this->_internal_app_package_name_allowlist_filter());
14014 }
14015
14016 // optional .metrics.SystemProfileProto.ClientSideSamplingStatus client_side_sampling_status = 43;
14017 if (cached_has_bits & 0x80000000u) {
14018 total_size += 2 +
14019 ::_pbi::WireFormatLite::EnumSize(this->_internal_client_side_sampling_status());
14020 }
14021
14022 }
14023 cached_has_bits = _impl_._has_bits_[1];
14024 if (cached_has_bits & 0x00000007u) {
14025 // optional .metrics.SystemProfileProto.MetricsFilteringStatus metrics_filtering_status = 44;
14026 if (cached_has_bits & 0x00000001u) {
14027 total_size += 2 +
14028 ::_pbi::WireFormatLite::EnumSize(this->_internal_metrics_filtering_status());
14029 }
14030
14031 // optional fixed64 session_hash = 46;
14032 if (cached_has_bits & 0x00000002u) {
14033 total_size += 2 + 8;
14034 }
14035
14036 // optional .metrics.SystemProfileProto.LTSChannel lts_channel = 45;
14037 if (cached_has_bits & 0x00000004u) {
14038 total_size += 2 +
14039 ::_pbi::WireFormatLite::EnumSize(this->_internal_lts_channel());
14040 }
14041
14042 }
14043 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
14044 total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
14045 }
14046 int cached_size = ::_pbi::ToCachedSize(total_size);
14047 SetCachedSize(cached_size);
14048 return total_size;
14049 }
14050
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)14051 void SystemProfileProto::CheckTypeAndMergeFrom(
14052 const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
14053 MergeFrom(*::_pbi::DownCast<const SystemProfileProto*>(
14054 &from));
14055 }
14056
MergeFrom(const SystemProfileProto & from)14057 void SystemProfileProto::MergeFrom(const SystemProfileProto& from) {
14058 SystemProfileProto* const _this = this;
14059 // @@protoc_insertion_point(class_specific_merge_from_start:metrics.SystemProfileProto)
14060 GOOGLE_DCHECK_NE(&from, _this);
14061 uint32_t cached_has_bits = 0;
14062 (void) cached_has_bits;
14063
14064 _this->_impl_.field_trial_.MergeFrom(from._impl_.field_trial_);
14065 _this->_impl_.external_audio_video_device_.MergeFrom(from._impl_.external_audio_video_device_);
14066 _this->_impl_.occupied_extension_bucket_.MergeFrom(from._impl_.occupied_extension_bucket_);
14067 _this->_impl_.antivirus_product_.MergeFrom(from._impl_.antivirus_product_);
14068 _this->_impl_.chrome_component_.MergeFrom(from._impl_.chrome_component_);
14069 _this->_impl_.extension_install_.MergeFrom(from._impl_.extension_install_);
14070 _this->_impl_.command_line_key_hash_.MergeFrom(from._impl_.command_line_key_hash_);
14071 cached_has_bits = from._impl_._has_bits_[0];
14072 if (cached_has_bits & 0x000000ffu) {
14073 if (cached_has_bits & 0x00000001u) {
14074 _this->_internal_set_app_version(from._internal_app_version());
14075 }
14076 if (cached_has_bits & 0x00000002u) {
14077 _this->_internal_set_application_locale(from._internal_application_locale());
14078 }
14079 if (cached_has_bits & 0x00000004u) {
14080 _this->_internal_set_brand_code(from._internal_brand_code());
14081 }
14082 if (cached_has_bits & 0x00000008u) {
14083 _this->_internal_set_app_package_name(from._internal_app_package_name());
14084 }
14085 if (cached_has_bits & 0x00000010u) {
14086 _this->_internal_set_variations_seed_version(from._internal_variations_seed_version());
14087 }
14088 if (cached_has_bits & 0x00000020u) {
14089 _this->_internal_set_client_uuid(from._internal_client_uuid());
14090 }
14091 if (cached_has_bits & 0x00000040u) {
14092 _this->_internal_set_log_written_by_app_version(from._internal_log_written_by_app_version());
14093 }
14094 if (cached_has_bits & 0x00000080u) {
14095 _this->_internal_mutable_os()->::metrics::SystemProfileProto_OS::MergeFrom(
14096 from._internal_os());
14097 }
14098 }
14099 if (cached_has_bits & 0x0000ff00u) {
14100 if (cached_has_bits & 0x00000100u) {
14101 _this->_internal_mutable_hardware()->::metrics::SystemProfileProto_Hardware::MergeFrom(
14102 from._internal_hardware());
14103 }
14104 if (cached_has_bits & 0x00000200u) {
14105 _this->_internal_mutable_stability()->::metrics::SystemProfileProto_Stability::MergeFrom(
14106 from._internal_stability());
14107 }
14108 if (cached_has_bits & 0x00000400u) {
14109 _this->_internal_mutable_google_update()->::metrics::SystemProfileProto_GoogleUpdate::MergeFrom(
14110 from._internal_google_update());
14111 }
14112 if (cached_has_bits & 0x00000800u) {
14113 _this->_internal_mutable_network()->::metrics::SystemProfileProto_Network::MergeFrom(
14114 from._internal_network());
14115 }
14116 if (cached_has_bits & 0x00001000u) {
14117 _this->_internal_mutable_external_access_point()->::metrics::SystemProfileProto_ExternalAccessPoint::MergeFrom(
14118 from._internal_external_access_point());
14119 }
14120 if (cached_has_bits & 0x00002000u) {
14121 _this->_internal_mutable_linked_android_phone_data()->::metrics::SystemProfileProto_LinkedAndroidPhoneData::MergeFrom(
14122 from._internal_linked_android_phone_data());
14123 }
14124 if (cached_has_bits & 0x00004000u) {
14125 _this->_internal_mutable_cloned_install_info()->::metrics::SystemProfileProto_ClonedInstallInfo::MergeFrom(
14126 from._internal_cloned_install_info());
14127 }
14128 if (cached_has_bits & 0x00008000u) {
14129 _this->_internal_mutable_demo_mode_dimensions()->::metrics::SystemProfileProto_DemoModeDimensions::MergeFrom(
14130 from._internal_demo_mode_dimensions());
14131 }
14132 }
14133 if (cached_has_bits & 0x00ff0000u) {
14134 if (cached_has_bits & 0x00010000u) {
14135 _this->_impl_.build_timestamp_ = from._impl_.build_timestamp_;
14136 }
14137 if (cached_has_bits & 0x00020000u) {
14138 _this->_impl_.uma_enabled_date_ = from._impl_.uma_enabled_date_;
14139 }
14140 if (cached_has_bits & 0x00040000u) {
14141 _this->_impl_.channel_ = from._impl_.channel_;
14142 }
14143 if (cached_has_bits & 0x00080000u) {
14144 _this->_impl_.multi_profile_user_count_ = from._impl_.multi_profile_user_count_;
14145 }
14146 if (cached_has_bits & 0x00100000u) {
14147 _this->_impl_.install_date_ = from._impl_.install_date_;
14148 }
14149 if (cached_has_bits & 0x00200000u) {
14150 _this->_impl_.offstore_extensions_state_ = from._impl_.offstore_extensions_state_;
14151 }
14152 if (cached_has_bits & 0x00400000u) {
14153 _this->_impl_.uma_default_state_ = from._impl_.uma_default_state_;
14154 }
14155 if (cached_has_bits & 0x00800000u) {
14156 _this->_impl_.is_extended_stable_channel_ = from._impl_.is_extended_stable_channel_;
14157 }
14158 _this->_impl_._has_bits_[0] |= cached_has_bits;
14159 }
14160 if (cached_has_bits & 0xff000000u) {
14161 if (cached_has_bits & 0x01000000u) {
14162 _this->_impl_.is_instrumented_build_ = from._impl_.is_instrumented_build_;
14163 }
14164 if (cached_has_bits & 0x02000000u) {
14165 _this->_impl_.client_id_was_used_for_trial_assignment_ = from._impl_.client_id_was_used_for_trial_assignment_;
14166 }
14167 if (cached_has_bits & 0x04000000u) {
14168 _this->_impl_.low_entropy_source_ = from._impl_.low_entropy_source_;
14169 }
14170 if (cached_has_bits & 0x08000000u) {
14171 _this->_impl_.old_low_entropy_source_ = from._impl_.old_low_entropy_source_;
14172 }
14173 if (cached_has_bits & 0x10000000u) {
14174 _this->_impl_.installer_package_ = from._impl_.installer_package_;
14175 }
14176 if (cached_has_bits & 0x20000000u) {
14177 _this->_impl_.pseudo_low_entropy_source_ = from._impl_.pseudo_low_entropy_source_;
14178 }
14179 if (cached_has_bits & 0x40000000u) {
14180 _this->_impl_.app_package_name_allowlist_filter_ = from._impl_.app_package_name_allowlist_filter_;
14181 }
14182 if (cached_has_bits & 0x80000000u) {
14183 _this->_impl_.client_side_sampling_status_ = from._impl_.client_side_sampling_status_;
14184 }
14185 _this->_impl_._has_bits_[0] |= cached_has_bits;
14186 }
14187 cached_has_bits = from._impl_._has_bits_[1];
14188 if (cached_has_bits & 0x00000007u) {
14189 if (cached_has_bits & 0x00000001u) {
14190 _this->_impl_.metrics_filtering_status_ = from._impl_.metrics_filtering_status_;
14191 }
14192 if (cached_has_bits & 0x00000002u) {
14193 _this->_impl_.session_hash_ = from._impl_.session_hash_;
14194 }
14195 if (cached_has_bits & 0x00000004u) {
14196 _this->_impl_.lts_channel_ = from._impl_.lts_channel_;
14197 }
14198 _this->_impl_._has_bits_[1] |= cached_has_bits;
14199 }
14200 _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
14201 }
14202
CopyFrom(const SystemProfileProto & from)14203 void SystemProfileProto::CopyFrom(const SystemProfileProto& from) {
14204 // @@protoc_insertion_point(class_specific_copy_from_start:metrics.SystemProfileProto)
14205 if (&from == this) return;
14206 Clear();
14207 MergeFrom(from);
14208 }
14209
IsInitialized() const14210 bool SystemProfileProto::IsInitialized() const {
14211 return true;
14212 }
14213
InternalSwap(SystemProfileProto * other)14214 void SystemProfileProto::InternalSwap(SystemProfileProto* other) {
14215 using std::swap;
14216 auto* lhs_arena = GetArenaForAllocation();
14217 auto* rhs_arena = other->GetArenaForAllocation();
14218 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
14219 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
14220 swap(_impl_._has_bits_[1], other->_impl_._has_bits_[1]);
14221 _impl_.field_trial_.InternalSwap(&other->_impl_.field_trial_);
14222 _impl_.external_audio_video_device_.InternalSwap(&other->_impl_.external_audio_video_device_);
14223 _impl_.occupied_extension_bucket_.InternalSwap(&other->_impl_.occupied_extension_bucket_);
14224 _impl_.antivirus_product_.InternalSwap(&other->_impl_.antivirus_product_);
14225 _impl_.chrome_component_.InternalSwap(&other->_impl_.chrome_component_);
14226 _impl_.extension_install_.InternalSwap(&other->_impl_.extension_install_);
14227 _impl_.command_line_key_hash_.InternalSwap(&other->_impl_.command_line_key_hash_);
14228 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
14229 &_impl_.app_version_, lhs_arena,
14230 &other->_impl_.app_version_, rhs_arena
14231 );
14232 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
14233 &_impl_.application_locale_, lhs_arena,
14234 &other->_impl_.application_locale_, rhs_arena
14235 );
14236 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
14237 &_impl_.brand_code_, lhs_arena,
14238 &other->_impl_.brand_code_, rhs_arena
14239 );
14240 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
14241 &_impl_.app_package_name_, lhs_arena,
14242 &other->_impl_.app_package_name_, rhs_arena
14243 );
14244 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
14245 &_impl_.variations_seed_version_, lhs_arena,
14246 &other->_impl_.variations_seed_version_, rhs_arena
14247 );
14248 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
14249 &_impl_.client_uuid_, lhs_arena,
14250 &other->_impl_.client_uuid_, rhs_arena
14251 );
14252 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
14253 &_impl_.log_written_by_app_version_, lhs_arena,
14254 &other->_impl_.log_written_by_app_version_, rhs_arena
14255 );
14256 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
14257 PROTOBUF_FIELD_OFFSET(SystemProfileProto, _impl_.lts_channel_)
14258 + sizeof(SystemProfileProto::_impl_.lts_channel_)
14259 - PROTOBUF_FIELD_OFFSET(SystemProfileProto, _impl_.os_)>(
14260 reinterpret_cast<char*>(&_impl_.os_),
14261 reinterpret_cast<char*>(&other->_impl_.os_));
14262 }
14263
GetTypeName() const14264 std::string SystemProfileProto::GetTypeName() const {
14265 return "metrics.SystemProfileProto";
14266 }
14267
14268
14269 // @@protoc_insertion_point(namespace_scope)
14270 } // namespace metrics
14271 PROTOBUF_NAMESPACE_OPEN
14272 template<> PROTOBUF_NOINLINE ::metrics::SystemProfileProto_ClonedInstallInfo*
CreateMaybeMessage(Arena * arena)14273 Arena::CreateMaybeMessage< ::metrics::SystemProfileProto_ClonedInstallInfo >(Arena* arena) {
14274 return Arena::CreateMessageInternal< ::metrics::SystemProfileProto_ClonedInstallInfo >(arena);
14275 }
14276 template<> PROTOBUF_NOINLINE ::metrics::SystemProfileProto_OS_Arc*
CreateMaybeMessage(Arena * arena)14277 Arena::CreateMaybeMessage< ::metrics::SystemProfileProto_OS_Arc >(Arena* arena) {
14278 return Arena::CreateMessageInternal< ::metrics::SystemProfileProto_OS_Arc >(arena);
14279 }
14280 template<> PROTOBUF_NOINLINE ::metrics::SystemProfileProto_OS*
CreateMaybeMessage(Arena * arena)14281 Arena::CreateMaybeMessage< ::metrics::SystemProfileProto_OS >(Arena* arena) {
14282 return Arena::CreateMessageInternal< ::metrics::SystemProfileProto_OS >(arena);
14283 }
14284 template<> PROTOBUF_NOINLINE ::metrics::SystemProfileProto_Hardware_CPU*
CreateMaybeMessage(Arena * arena)14285 Arena::CreateMaybeMessage< ::metrics::SystemProfileProto_Hardware_CPU >(Arena* arena) {
14286 return Arena::CreateMessageInternal< ::metrics::SystemProfileProto_Hardware_CPU >(arena);
14287 }
14288 template<> PROTOBUF_NOINLINE ::metrics::SystemProfileProto_Hardware_Motherboard*
CreateMaybeMessage(Arena * arena)14289 Arena::CreateMaybeMessage< ::metrics::SystemProfileProto_Hardware_Motherboard >(Arena* arena) {
14290 return Arena::CreateMessageInternal< ::metrics::SystemProfileProto_Hardware_Motherboard >(arena);
14291 }
14292 template<> PROTOBUF_NOINLINE ::metrics::SystemProfileProto_Hardware_Graphics*
CreateMaybeMessage(Arena * arena)14293 Arena::CreateMaybeMessage< ::metrics::SystemProfileProto_Hardware_Graphics >(Arena* arena) {
14294 return Arena::CreateMessageInternal< ::metrics::SystemProfileProto_Hardware_Graphics >(arena);
14295 }
14296 template<> PROTOBUF_NOINLINE ::metrics::SystemProfileProto_Hardware_InternalStorageDevice*
CreateMaybeMessage(Arena * arena)14297 Arena::CreateMaybeMessage< ::metrics::SystemProfileProto_Hardware_InternalStorageDevice >(Arena* arena) {
14298 return Arena::CreateMessageInternal< ::metrics::SystemProfileProto_Hardware_InternalStorageDevice >(arena);
14299 }
14300 template<> PROTOBUF_NOINLINE ::metrics::SystemProfileProto_Hardware_Drive*
CreateMaybeMessage(Arena * arena)14301 Arena::CreateMaybeMessage< ::metrics::SystemProfileProto_Hardware_Drive >(Arena* arena) {
14302 return Arena::CreateMessageInternal< ::metrics::SystemProfileProto_Hardware_Drive >(arena);
14303 }
14304 template<> PROTOBUF_NOINLINE ::metrics::SystemProfileProto_Hardware*
CreateMaybeMessage(Arena * arena)14305 Arena::CreateMaybeMessage< ::metrics::SystemProfileProto_Hardware >(Arena* arena) {
14306 return Arena::CreateMessageInternal< ::metrics::SystemProfileProto_Hardware >(arena);
14307 }
14308 template<> PROTOBUF_NOINLINE ::metrics::SystemProfileProto_Network*
CreateMaybeMessage(Arena * arena)14309 Arena::CreateMaybeMessage< ::metrics::SystemProfileProto_Network >(Arena* arena) {
14310 return Arena::CreateMessageInternal< ::metrics::SystemProfileProto_Network >(arena);
14311 }
14312 template<> PROTOBUF_NOINLINE ::metrics::SystemProfileProto_GoogleUpdate_ProductInfo*
CreateMaybeMessage(Arena * arena)14313 Arena::CreateMaybeMessage< ::metrics::SystemProfileProto_GoogleUpdate_ProductInfo >(Arena* arena) {
14314 return Arena::CreateMessageInternal< ::metrics::SystemProfileProto_GoogleUpdate_ProductInfo >(arena);
14315 }
14316 template<> PROTOBUF_NOINLINE ::metrics::SystemProfileProto_GoogleUpdate*
CreateMaybeMessage(Arena * arena)14317 Arena::CreateMaybeMessage< ::metrics::SystemProfileProto_GoogleUpdate >(Arena* arena) {
14318 return Arena::CreateMessageInternal< ::metrics::SystemProfileProto_GoogleUpdate >(arena);
14319 }
14320 template<> PROTOBUF_NOINLINE ::metrics::SystemProfileProto_Stability*
CreateMaybeMessage(Arena * arena)14321 Arena::CreateMaybeMessage< ::metrics::SystemProfileProto_Stability >(Arena* arena) {
14322 return Arena::CreateMessageInternal< ::metrics::SystemProfileProto_Stability >(arena);
14323 }
14324 template<> PROTOBUF_NOINLINE ::metrics::SystemProfileProto_FieldTrial*
CreateMaybeMessage(Arena * arena)14325 Arena::CreateMaybeMessage< ::metrics::SystemProfileProto_FieldTrial >(Arena* arena) {
14326 return Arena::CreateMessageInternal< ::metrics::SystemProfileProto_FieldTrial >(arena);
14327 }
14328 template<> PROTOBUF_NOINLINE ::metrics::SystemProfileProto_ExternalAudioVideoDevice_AudioDescription*
CreateMaybeMessage(Arena * arena)14329 Arena::CreateMaybeMessage< ::metrics::SystemProfileProto_ExternalAudioVideoDevice_AudioDescription >(Arena* arena) {
14330 return Arena::CreateMessageInternal< ::metrics::SystemProfileProto_ExternalAudioVideoDevice_AudioDescription >(arena);
14331 }
14332 template<> PROTOBUF_NOINLINE ::metrics::SystemProfileProto_ExternalAudioVideoDevice_CECCommand*
CreateMaybeMessage(Arena * arena)14333 Arena::CreateMaybeMessage< ::metrics::SystemProfileProto_ExternalAudioVideoDevice_CECCommand >(Arena* arena) {
14334 return Arena::CreateMessageInternal< ::metrics::SystemProfileProto_ExternalAudioVideoDevice_CECCommand >(arena);
14335 }
14336 template<> PROTOBUF_NOINLINE ::metrics::SystemProfileProto_ExternalAudioVideoDevice*
CreateMaybeMessage(Arena * arena)14337 Arena::CreateMaybeMessage< ::metrics::SystemProfileProto_ExternalAudioVideoDevice >(Arena* arena) {
14338 return Arena::CreateMessageInternal< ::metrics::SystemProfileProto_ExternalAudioVideoDevice >(arena);
14339 }
14340 template<> PROTOBUF_NOINLINE ::metrics::SystemProfileProto_ExternalAccessPoint*
CreateMaybeMessage(Arena * arena)14341 Arena::CreateMaybeMessage< ::metrics::SystemProfileProto_ExternalAccessPoint >(Arena* arena) {
14342 return Arena::CreateMessageInternal< ::metrics::SystemProfileProto_ExternalAccessPoint >(arena);
14343 }
14344 template<> PROTOBUF_NOINLINE ::metrics::SystemProfileProto_AntiVirusProduct*
CreateMaybeMessage(Arena * arena)14345 Arena::CreateMaybeMessage< ::metrics::SystemProfileProto_AntiVirusProduct >(Arena* arena) {
14346 return Arena::CreateMessageInternal< ::metrics::SystemProfileProto_AntiVirusProduct >(arena);
14347 }
14348 template<> PROTOBUF_NOINLINE ::metrics::SystemProfileProto_ChromeComponent*
CreateMaybeMessage(Arena * arena)14349 Arena::CreateMaybeMessage< ::metrics::SystemProfileProto_ChromeComponent >(Arena* arena) {
14350 return Arena::CreateMessageInternal< ::metrics::SystemProfileProto_ChromeComponent >(arena);
14351 }
14352 template<> PROTOBUF_NOINLINE ::metrics::SystemProfileProto_LinkedAndroidPhoneData*
CreateMaybeMessage(Arena * arena)14353 Arena::CreateMaybeMessage< ::metrics::SystemProfileProto_LinkedAndroidPhoneData >(Arena* arena) {
14354 return Arena::CreateMessageInternal< ::metrics::SystemProfileProto_LinkedAndroidPhoneData >(arena);
14355 }
14356 template<> PROTOBUF_NOINLINE ::metrics::SystemProfileProto_DemoModeDimensions_Retailer*
CreateMaybeMessage(Arena * arena)14357 Arena::CreateMaybeMessage< ::metrics::SystemProfileProto_DemoModeDimensions_Retailer >(Arena* arena) {
14358 return Arena::CreateMessageInternal< ::metrics::SystemProfileProto_DemoModeDimensions_Retailer >(arena);
14359 }
14360 template<> PROTOBUF_NOINLINE ::metrics::SystemProfileProto_DemoModeDimensions*
CreateMaybeMessage(Arena * arena)14361 Arena::CreateMaybeMessage< ::metrics::SystemProfileProto_DemoModeDimensions >(Arena* arena) {
14362 return Arena::CreateMessageInternal< ::metrics::SystemProfileProto_DemoModeDimensions >(arena);
14363 }
14364 template<> PROTOBUF_NOINLINE ::metrics::SystemProfileProto*
CreateMaybeMessage(Arena * arena)14365 Arena::CreateMaybeMessage< ::metrics::SystemProfileProto >(Arena* arena) {
14366 return Arena::CreateMessageInternal< ::metrics::SystemProfileProto >(arena);
14367 }
14368 PROTOBUF_NAMESPACE_CLOSE
14369
14370 // @@protoc_insertion_point(global_scope)
14371 #include <google/protobuf/port_undef.inc>
14372