1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: cast_logs.proto
3
4 #include "cast_logs.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 {
CastLogsProto_CastDeviceInfo_HardwareInfo(::_pbi::ConstantInitialized)21 PROTOBUF_CONSTEXPR CastLogsProto_CastDeviceInfo_HardwareInfo::CastLogsProto_CastDeviceInfo_HardwareInfo(
22 ::_pbi::ConstantInitialized): _impl_{
23 /*decltype(_impl_._has_bits_)*/{}
24 , /*decltype(_impl_._cached_size_)*/{}
25 , /*decltype(_impl_.color_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
26 , /*decltype(_impl_.mic_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
27 , /*decltype(_impl_.memory_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
28 , /*decltype(_impl_.nand_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
29 , /*decltype(_impl_.mfg_date_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
30 , /*decltype(_impl_.build_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
31 , /*decltype(_impl_.config_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
32 , /*decltype(_impl_.emmc_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
33 , /*decltype(_impl_.display_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
34 , /*decltype(_impl_.amp_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
35 , /*decltype(_impl_.board_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}} {}
36 struct CastLogsProto_CastDeviceInfo_HardwareInfoDefaultTypeInternal {
CastLogsProto_CastDeviceInfo_HardwareInfoDefaultTypeInternalmetrics::CastLogsProto_CastDeviceInfo_HardwareInfoDefaultTypeInternal37 PROTOBUF_CONSTEXPR CastLogsProto_CastDeviceInfo_HardwareInfoDefaultTypeInternal()
38 : _instance(::_pbi::ConstantInitialized{}) {}
~CastLogsProto_CastDeviceInfo_HardwareInfoDefaultTypeInternalmetrics::CastLogsProto_CastDeviceInfo_HardwareInfoDefaultTypeInternal39 ~CastLogsProto_CastDeviceInfo_HardwareInfoDefaultTypeInternal() {}
40 union {
41 CastLogsProto_CastDeviceInfo_HardwareInfo _instance;
42 };
43 };
44 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CastLogsProto_CastDeviceInfo_HardwareInfoDefaultTypeInternal _CastLogsProto_CastDeviceInfo_HardwareInfo_default_instance_;
CastLogsProto_CastDeviceInfo(::_pbi::ConstantInitialized)45 PROTOBUF_CONSTEXPR CastLogsProto_CastDeviceInfo::CastLogsProto_CastDeviceInfo(
46 ::_pbi::ConstantInitialized): _impl_{
47 /*decltype(_impl_._has_bits_)*/{}
48 , /*decltype(_impl_._cached_size_)*/{}
49 , /*decltype(_impl_.hardware_revision_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
50 , /*decltype(_impl_.manufacturer_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
51 , /*decltype(_impl_.model_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
52 , /*decltype(_impl_.serial_number_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
53 , /*decltype(_impl_.hardware_info_)*/nullptr
54 , /*decltype(_impl_.type_)*/0} {}
55 struct CastLogsProto_CastDeviceInfoDefaultTypeInternal {
CastLogsProto_CastDeviceInfoDefaultTypeInternalmetrics::CastLogsProto_CastDeviceInfoDefaultTypeInternal56 PROTOBUF_CONSTEXPR CastLogsProto_CastDeviceInfoDefaultTypeInternal()
57 : _instance(::_pbi::ConstantInitialized{}) {}
~CastLogsProto_CastDeviceInfoDefaultTypeInternalmetrics::CastLogsProto_CastDeviceInfoDefaultTypeInternal58 ~CastLogsProto_CastDeviceInfoDefaultTypeInternal() {}
59 union {
60 CastLogsProto_CastDeviceInfo _instance;
61 };
62 };
63 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CastLogsProto_CastDeviceInfoDefaultTypeInternal _CastLogsProto_CastDeviceInfo_default_instance_;
CastLogsProto_CastConnectionInfo_SenderInfo(::_pbi::ConstantInitialized)64 PROTOBUF_CONSTEXPR CastLogsProto_CastConnectionInfo_SenderInfo::CastLogsProto_CastConnectionInfo_SenderInfo(
65 ::_pbi::ConstantInitialized): _impl_{
66 /*decltype(_impl_._has_bits_)*/{}
67 , /*decltype(_impl_._cached_size_)*/{}
68 , /*decltype(_impl_.version_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
69 , /*decltype(_impl_.chrome_browser_version_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
70 , /*decltype(_impl_.system_version_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
71 , /*decltype(_impl_.model_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
72 , /*decltype(_impl_.sender_device_id_)*/uint64_t{0u}
73 , /*decltype(_impl_.sdk_type_)*/0
74 , /*decltype(_impl_.platform_)*/0
75 , /*decltype(_impl_.transport_connection_type_)*/0
76 , /*decltype(_impl_.sender_local_ip_fragment_)*/0} {}
77 struct CastLogsProto_CastConnectionInfo_SenderInfoDefaultTypeInternal {
CastLogsProto_CastConnectionInfo_SenderInfoDefaultTypeInternalmetrics::CastLogsProto_CastConnectionInfo_SenderInfoDefaultTypeInternal78 PROTOBUF_CONSTEXPR CastLogsProto_CastConnectionInfo_SenderInfoDefaultTypeInternal()
79 : _instance(::_pbi::ConstantInitialized{}) {}
~CastLogsProto_CastConnectionInfo_SenderInfoDefaultTypeInternalmetrics::CastLogsProto_CastConnectionInfo_SenderInfoDefaultTypeInternal80 ~CastLogsProto_CastConnectionInfo_SenderInfoDefaultTypeInternal() {}
81 union {
82 CastLogsProto_CastConnectionInfo_SenderInfo _instance;
83 };
84 };
85 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CastLogsProto_CastConnectionInfo_SenderInfoDefaultTypeInternal _CastLogsProto_CastConnectionInfo_SenderInfo_default_instance_;
CastLogsProto_CastConnectionInfo(::_pbi::ConstantInitialized)86 PROTOBUF_CONSTEXPR CastLogsProto_CastConnectionInfo::CastLogsProto_CastConnectionInfo(
87 ::_pbi::ConstantInitialized): _impl_{
88 /*decltype(_impl_._has_bits_)*/{}
89 , /*decltype(_impl_._cached_size_)*/{}
90 , /*decltype(_impl_.sender_info_)*/nullptr
91 , /*decltype(_impl_.transport_connection_id_)*/0u
92 , /*decltype(_impl_.virtual_connection_id_)*/0u} {}
93 struct CastLogsProto_CastConnectionInfoDefaultTypeInternal {
CastLogsProto_CastConnectionInfoDefaultTypeInternalmetrics::CastLogsProto_CastConnectionInfoDefaultTypeInternal94 PROTOBUF_CONSTEXPR CastLogsProto_CastConnectionInfoDefaultTypeInternal()
95 : _instance(::_pbi::ConstantInitialized{}) {}
~CastLogsProto_CastConnectionInfoDefaultTypeInternalmetrics::CastLogsProto_CastConnectionInfoDefaultTypeInternal96 ~CastLogsProto_CastConnectionInfoDefaultTypeInternal() {}
97 union {
98 CastLogsProto_CastConnectionInfo _instance;
99 };
100 };
101 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CastLogsProto_CastConnectionInfoDefaultTypeInternal _CastLogsProto_CastConnectionInfo_default_instance_;
CastLogsProto_CastEventProto_Metadata(::_pbi::ConstantInitialized)102 PROTOBUF_CONSTEXPR CastLogsProto_CastEventProto_Metadata::CastLogsProto_CastEventProto_Metadata(
103 ::_pbi::ConstantInitialized): _impl_{
104 /*decltype(_impl_._has_bits_)*/{}
105 , /*decltype(_impl_._cached_size_)*/{}
106 , /*decltype(_impl_.name_hash_)*/uint64_t{0u}
107 , /*decltype(_impl_.value_)*/int64_t{0}} {}
108 struct CastLogsProto_CastEventProto_MetadataDefaultTypeInternal {
CastLogsProto_CastEventProto_MetadataDefaultTypeInternalmetrics::CastLogsProto_CastEventProto_MetadataDefaultTypeInternal109 PROTOBUF_CONSTEXPR CastLogsProto_CastEventProto_MetadataDefaultTypeInternal()
110 : _instance(::_pbi::ConstantInitialized{}) {}
~CastLogsProto_CastEventProto_MetadataDefaultTypeInternalmetrics::CastLogsProto_CastEventProto_MetadataDefaultTypeInternal111 ~CastLogsProto_CastEventProto_MetadataDefaultTypeInternal() {}
112 union {
113 CastLogsProto_CastEventProto_Metadata _instance;
114 };
115 };
116 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CastLogsProto_CastEventProto_MetadataDefaultTypeInternal _CastLogsProto_CastEventProto_Metadata_default_instance_;
CastLogsProto_CastEventProto(::_pbi::ConstantInitialized)117 PROTOBUF_CONSTEXPR CastLogsProto_CastEventProto::CastLogsProto_CastEventProto(
118 ::_pbi::ConstantInitialized): _impl_{
119 /*decltype(_impl_._has_bits_)*/{}
120 , /*decltype(_impl_._cached_size_)*/{}
121 , /*decltype(_impl_.metadata_)*/{}
122 , /*decltype(_impl_.feature_vector_)*/{}
123 , /*decltype(_impl_.event_id_list_)*/{}
124 , /*decltype(_impl_.conversation_key_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
125 , /*decltype(_impl_.event_id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
126 , /*decltype(_impl_.aogh_request_id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
127 , /*decltype(_impl_.timezone_id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
128 , /*decltype(_impl_.ui_version_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
129 , /*decltype(_impl_.aogh_agent_id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
130 , /*decltype(_impl_.selinux_audit_detail_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
131 , /*decltype(_impl_.hotword_model_id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
132 , /*decltype(_impl_.aogh_standard_agent_id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
133 , /*decltype(_impl_.name_hash_)*/uint64_t{0u}
134 , /*decltype(_impl_.time_msec_)*/int64_t{0}
135 , /*decltype(_impl_.application_session_id_)*/uint64_t{0u}
136 , /*decltype(_impl_.app_id_)*/0u
137 , /*decltype(_impl_.transport_connection_id_)*/0u
138 , /*decltype(_impl_.cast_receiver_version_)*/uint64_t{0u}
139 , /*decltype(_impl_.value_)*/int64_t{0}
140 , /*decltype(_impl_.cast_mpl_version_)*/uint64_t{0u}
141 , /*decltype(_impl_.virtual_connection_id_)*/0u
142 , /*decltype(_impl_.request_id_)*/0u
143 , /*decltype(_impl_.group_uuid_)*/uint64_t{0u}
144 , /*decltype(_impl_.aogh_local_device_id_)*/int64_t{0}
145 , /*decltype(_impl_.remote_app_id_)*/0u
146 , /*decltype(_impl_.launch_from_)*/0
147 , /*decltype(_impl_.duo_core_version_)*/uint64_t{0u}
148 , /*decltype(_impl_.runtime_type_)*/0} {}
149 struct CastLogsProto_CastEventProtoDefaultTypeInternal {
CastLogsProto_CastEventProtoDefaultTypeInternalmetrics::CastLogsProto_CastEventProtoDefaultTypeInternal150 PROTOBUF_CONSTEXPR CastLogsProto_CastEventProtoDefaultTypeInternal()
151 : _instance(::_pbi::ConstantInitialized{}) {}
~CastLogsProto_CastEventProtoDefaultTypeInternalmetrics::CastLogsProto_CastEventProtoDefaultTypeInternal152 ~CastLogsProto_CastEventProtoDefaultTypeInternal() {}
153 union {
154 CastLogsProto_CastEventProto _instance;
155 };
156 };
157 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CastLogsProto_CastEventProtoDefaultTypeInternal _CastLogsProto_CastEventProto_default_instance_;
CastLogsProto_CastDeviceMutableInfo(::_pbi::ConstantInitialized)158 PROTOBUF_CONSTEXPR CastLogsProto_CastDeviceMutableInfo::CastLogsProto_CastDeviceMutableInfo(
159 ::_pbi::ConstantInitialized): _impl_{
160 /*decltype(_impl_._has_bits_)*/{}
161 , /*decltype(_impl_._cached_size_)*/{}
162 , /*decltype(_impl_.backdrop_app_device_id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
163 , /*decltype(_impl_.timezone_id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
164 , /*decltype(_impl_.latest_ui_version_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
165 , /*decltype(_impl_.google_wifi_station_shmac_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
166 , /*decltype(_impl_.installed_manifest_platform_version_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
167 , /*decltype(_impl_.system_bundle_version_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
168 , /*decltype(_impl_.system_build_number_)*/uint64_t{0u}
169 , /*decltype(_impl_.last_reboot_type_)*/0
170 , /*decltype(_impl_.release_version_)*/0u
171 , /*decltype(_impl_.netif_ip_version_)*/0
172 , /*decltype(_impl_.ip_dual_stack_supported_)*/false
173 , /*decltype(_impl_.installed_manifest_version_)*/0u} {}
174 struct CastLogsProto_CastDeviceMutableInfoDefaultTypeInternal {
CastLogsProto_CastDeviceMutableInfoDefaultTypeInternalmetrics::CastLogsProto_CastDeviceMutableInfoDefaultTypeInternal175 PROTOBUF_CONSTEXPR CastLogsProto_CastDeviceMutableInfoDefaultTypeInternal()
176 : _instance(::_pbi::ConstantInitialized{}) {}
~CastLogsProto_CastDeviceMutableInfoDefaultTypeInternalmetrics::CastLogsProto_CastDeviceMutableInfoDefaultTypeInternal177 ~CastLogsProto_CastDeviceMutableInfoDefaultTypeInternal() {}
178 union {
179 CastLogsProto_CastDeviceMutableInfo _instance;
180 };
181 };
182 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CastLogsProto_CastDeviceMutableInfoDefaultTypeInternal _CastLogsProto_CastDeviceMutableInfo_default_instance_;
CastLogsProto(::_pbi::ConstantInitialized)183 PROTOBUF_CONSTEXPR CastLogsProto::CastLogsProto(
184 ::_pbi::ConstantInitialized): _impl_{
185 /*decltype(_impl_._has_bits_)*/{}
186 , /*decltype(_impl_._cached_size_)*/{}
187 , /*decltype(_impl_.cast_connection_info_)*/{}
188 , /*decltype(_impl_.cast_event_)*/{}
189 , /*decltype(_impl_.cast_device_info_)*/nullptr
190 , /*decltype(_impl_.cast_device_mutable_info_)*/nullptr
191 , /*decltype(_impl_.receiver_metrics_id_)*/uint64_t{0u}
192 , /*decltype(_impl_.virtual_release_track_)*/0u
193 , /*decltype(_impl_.source_virtual_release_track_)*/0u
194 , /*decltype(_impl_.ephemeral_id_)*/uint64_t{0u}} {}
195 struct CastLogsProtoDefaultTypeInternal {
CastLogsProtoDefaultTypeInternalmetrics::CastLogsProtoDefaultTypeInternal196 PROTOBUF_CONSTEXPR CastLogsProtoDefaultTypeInternal()
197 : _instance(::_pbi::ConstantInitialized{}) {}
~CastLogsProtoDefaultTypeInternalmetrics::CastLogsProtoDefaultTypeInternal198 ~CastLogsProtoDefaultTypeInternal() {}
199 union {
200 CastLogsProto _instance;
201 };
202 };
203 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CastLogsProtoDefaultTypeInternal _CastLogsProto_default_instance_;
204 } // namespace metrics
205 namespace metrics {
CastLogsProto_CastDeviceInfo_CastProductType_IsValid(int value)206 bool CastLogsProto_CastDeviceInfo_CastProductType_IsValid(int value) {
207 switch (value) {
208 case 0:
209 case 1:
210 case 2:
211 case 3:
212 case 4:
213 case 5:
214 case 6:
215 case 7:
216 case 8:
217 case 9:
218 case 10:
219 case 11:
220 case 12:
221 case 13:
222 return true;
223 default:
224 return false;
225 }
226 }
227
228 static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> CastLogsProto_CastDeviceInfo_CastProductType_strings[14] = {};
229
230 static const char CastLogsProto_CastDeviceInfo_CastProductType_names[] =
231 "CAST_PRODUCT_TYPE_11"
232 "CAST_PRODUCT_TYPE_ANDROID"
233 "CAST_PRODUCT_TYPE_ANDROID_AUTOMOTIVE"
234 "CAST_PRODUCT_TYPE_ANDROID_THINGS"
235 "CAST_PRODUCT_TYPE_ANDROID_TV"
236 "CAST_PRODUCT_TYPE_ASSISTANT"
237 "CAST_PRODUCT_TYPE_AUDIO"
238 "CAST_PRODUCT_TYPE_CHROMECAST"
239 "CAST_PRODUCT_TYPE_CHROME_OS"
240 "CAST_PRODUCT_TYPE_CORE"
241 "CAST_PRODUCT_TYPE_FUCHSIA_OS"
242 "CAST_PRODUCT_TYPE_LITE"
243 "CAST_PRODUCT_TYPE_TV"
244 "CAST_PRODUCT_TYPE_UNKNOWN";
245
246 static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry CastLogsProto_CastDeviceInfo_CastProductType_entries[] = {
247 { {CastLogsProto_CastDeviceInfo_CastProductType_names + 0, 20}, 11 },
248 { {CastLogsProto_CastDeviceInfo_CastProductType_names + 20, 25}, 13 },
249 { {CastLogsProto_CastDeviceInfo_CastProductType_names + 45, 36}, 12 },
250 { {CastLogsProto_CastDeviceInfo_CastProductType_names + 81, 32}, 6 },
251 { {CastLogsProto_CastDeviceInfo_CastProductType_names + 113, 28}, 4 },
252 { {CastLogsProto_CastDeviceInfo_CastProductType_names + 141, 27}, 5 },
253 { {CastLogsProto_CastDeviceInfo_CastProductType_names + 168, 23}, 3 },
254 { {CastLogsProto_CastDeviceInfo_CastProductType_names + 191, 28}, 1 },
255 { {CastLogsProto_CastDeviceInfo_CastProductType_names + 219, 27}, 7 },
256 { {CastLogsProto_CastDeviceInfo_CastProductType_names + 246, 22}, 10 },
257 { {CastLogsProto_CastDeviceInfo_CastProductType_names + 268, 28}, 8 },
258 { {CastLogsProto_CastDeviceInfo_CastProductType_names + 296, 22}, 9 },
259 { {CastLogsProto_CastDeviceInfo_CastProductType_names + 318, 20}, 2 },
260 { {CastLogsProto_CastDeviceInfo_CastProductType_names + 338, 25}, 0 },
261 };
262
263 static const int CastLogsProto_CastDeviceInfo_CastProductType_entries_by_number[] = {
264 13, // 0 -> CAST_PRODUCT_TYPE_UNKNOWN
265 7, // 1 -> CAST_PRODUCT_TYPE_CHROMECAST
266 12, // 2 -> CAST_PRODUCT_TYPE_TV
267 6, // 3 -> CAST_PRODUCT_TYPE_AUDIO
268 4, // 4 -> CAST_PRODUCT_TYPE_ANDROID_TV
269 5, // 5 -> CAST_PRODUCT_TYPE_ASSISTANT
270 3, // 6 -> CAST_PRODUCT_TYPE_ANDROID_THINGS
271 8, // 7 -> CAST_PRODUCT_TYPE_CHROME_OS
272 10, // 8 -> CAST_PRODUCT_TYPE_FUCHSIA_OS
273 11, // 9 -> CAST_PRODUCT_TYPE_LITE
274 9, // 10 -> CAST_PRODUCT_TYPE_CORE
275 0, // 11 -> CAST_PRODUCT_TYPE_11
276 2, // 12 -> CAST_PRODUCT_TYPE_ANDROID_AUTOMOTIVE
277 1, // 13 -> CAST_PRODUCT_TYPE_ANDROID
278 };
279
CastLogsProto_CastDeviceInfo_CastProductType_Name(CastLogsProto_CastDeviceInfo_CastProductType value)280 const std::string& CastLogsProto_CastDeviceInfo_CastProductType_Name(
281 CastLogsProto_CastDeviceInfo_CastProductType value) {
282 static const bool dummy =
283 ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
284 CastLogsProto_CastDeviceInfo_CastProductType_entries,
285 CastLogsProto_CastDeviceInfo_CastProductType_entries_by_number,
286 14, CastLogsProto_CastDeviceInfo_CastProductType_strings);
287 (void) dummy;
288 int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
289 CastLogsProto_CastDeviceInfo_CastProductType_entries,
290 CastLogsProto_CastDeviceInfo_CastProductType_entries_by_number,
291 14, value);
292 return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
293 CastLogsProto_CastDeviceInfo_CastProductType_strings[idx].get();
294 }
CastLogsProto_CastDeviceInfo_CastProductType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,CastLogsProto_CastDeviceInfo_CastProductType * value)295 bool CastLogsProto_CastDeviceInfo_CastProductType_Parse(
296 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, CastLogsProto_CastDeviceInfo_CastProductType* value) {
297 int int_value;
298 bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
299 CastLogsProto_CastDeviceInfo_CastProductType_entries, 14, name, &int_value);
300 if (success) {
301 *value = static_cast<CastLogsProto_CastDeviceInfo_CastProductType>(int_value);
302 }
303 return success;
304 }
305 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
306 constexpr CastLogsProto_CastDeviceInfo_CastProductType CastLogsProto_CastDeviceInfo::CAST_PRODUCT_TYPE_UNKNOWN;
307 constexpr CastLogsProto_CastDeviceInfo_CastProductType CastLogsProto_CastDeviceInfo::CAST_PRODUCT_TYPE_CHROMECAST;
308 constexpr CastLogsProto_CastDeviceInfo_CastProductType CastLogsProto_CastDeviceInfo::CAST_PRODUCT_TYPE_TV;
309 constexpr CastLogsProto_CastDeviceInfo_CastProductType CastLogsProto_CastDeviceInfo::CAST_PRODUCT_TYPE_AUDIO;
310 constexpr CastLogsProto_CastDeviceInfo_CastProductType CastLogsProto_CastDeviceInfo::CAST_PRODUCT_TYPE_ANDROID_TV;
311 constexpr CastLogsProto_CastDeviceInfo_CastProductType CastLogsProto_CastDeviceInfo::CAST_PRODUCT_TYPE_ASSISTANT;
312 constexpr CastLogsProto_CastDeviceInfo_CastProductType CastLogsProto_CastDeviceInfo::CAST_PRODUCT_TYPE_ANDROID_THINGS;
313 constexpr CastLogsProto_CastDeviceInfo_CastProductType CastLogsProto_CastDeviceInfo::CAST_PRODUCT_TYPE_CHROME_OS;
314 constexpr CastLogsProto_CastDeviceInfo_CastProductType CastLogsProto_CastDeviceInfo::CAST_PRODUCT_TYPE_FUCHSIA_OS;
315 constexpr CastLogsProto_CastDeviceInfo_CastProductType CastLogsProto_CastDeviceInfo::CAST_PRODUCT_TYPE_LITE;
316 constexpr CastLogsProto_CastDeviceInfo_CastProductType CastLogsProto_CastDeviceInfo::CAST_PRODUCT_TYPE_CORE;
317 constexpr CastLogsProto_CastDeviceInfo_CastProductType CastLogsProto_CastDeviceInfo::CAST_PRODUCT_TYPE_11;
318 constexpr CastLogsProto_CastDeviceInfo_CastProductType CastLogsProto_CastDeviceInfo::CAST_PRODUCT_TYPE_ANDROID_AUTOMOTIVE;
319 constexpr CastLogsProto_CastDeviceInfo_CastProductType CastLogsProto_CastDeviceInfo::CAST_PRODUCT_TYPE_ANDROID;
320 constexpr CastLogsProto_CastDeviceInfo_CastProductType CastLogsProto_CastDeviceInfo::CastProductType_MIN;
321 constexpr CastLogsProto_CastDeviceInfo_CastProductType CastLogsProto_CastDeviceInfo::CastProductType_MAX;
322 constexpr int CastLogsProto_CastDeviceInfo::CastProductType_ARRAYSIZE;
323 #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
CastLogsProto_CastConnectionInfo_SenderInfo_SDKType_IsValid(int value)324 bool CastLogsProto_CastConnectionInfo_SenderInfo_SDKType_IsValid(int value) {
325 switch (value) {
326 case 0:
327 case 1:
328 case 2:
329 return true;
330 default:
331 return false;
332 }
333 }
334
335 static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> CastLogsProto_CastConnectionInfo_SenderInfo_SDKType_strings[3] = {};
336
337 static const char CastLogsProto_CastConnectionInfo_SenderInfo_SDKType_names[] =
338 "SDK_CHROME_EXTENSION"
339 "SDK_NATIVE"
340 "SDK_UNKNOWN";
341
342 static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry CastLogsProto_CastConnectionInfo_SenderInfo_SDKType_entries[] = {
343 { {CastLogsProto_CastConnectionInfo_SenderInfo_SDKType_names + 0, 20}, 2 },
344 { {CastLogsProto_CastConnectionInfo_SenderInfo_SDKType_names + 20, 10}, 1 },
345 { {CastLogsProto_CastConnectionInfo_SenderInfo_SDKType_names + 30, 11}, 0 },
346 };
347
348 static const int CastLogsProto_CastConnectionInfo_SenderInfo_SDKType_entries_by_number[] = {
349 2, // 0 -> SDK_UNKNOWN
350 1, // 1 -> SDK_NATIVE
351 0, // 2 -> SDK_CHROME_EXTENSION
352 };
353
CastLogsProto_CastConnectionInfo_SenderInfo_SDKType_Name(CastLogsProto_CastConnectionInfo_SenderInfo_SDKType value)354 const std::string& CastLogsProto_CastConnectionInfo_SenderInfo_SDKType_Name(
355 CastLogsProto_CastConnectionInfo_SenderInfo_SDKType value) {
356 static const bool dummy =
357 ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
358 CastLogsProto_CastConnectionInfo_SenderInfo_SDKType_entries,
359 CastLogsProto_CastConnectionInfo_SenderInfo_SDKType_entries_by_number,
360 3, CastLogsProto_CastConnectionInfo_SenderInfo_SDKType_strings);
361 (void) dummy;
362 int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
363 CastLogsProto_CastConnectionInfo_SenderInfo_SDKType_entries,
364 CastLogsProto_CastConnectionInfo_SenderInfo_SDKType_entries_by_number,
365 3, value);
366 return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
367 CastLogsProto_CastConnectionInfo_SenderInfo_SDKType_strings[idx].get();
368 }
CastLogsProto_CastConnectionInfo_SenderInfo_SDKType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,CastLogsProto_CastConnectionInfo_SenderInfo_SDKType * value)369 bool CastLogsProto_CastConnectionInfo_SenderInfo_SDKType_Parse(
370 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, CastLogsProto_CastConnectionInfo_SenderInfo_SDKType* value) {
371 int int_value;
372 bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
373 CastLogsProto_CastConnectionInfo_SenderInfo_SDKType_entries, 3, name, &int_value);
374 if (success) {
375 *value = static_cast<CastLogsProto_CastConnectionInfo_SenderInfo_SDKType>(int_value);
376 }
377 return success;
378 }
379 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
380 constexpr CastLogsProto_CastConnectionInfo_SenderInfo_SDKType CastLogsProto_CastConnectionInfo_SenderInfo::SDK_UNKNOWN;
381 constexpr CastLogsProto_CastConnectionInfo_SenderInfo_SDKType CastLogsProto_CastConnectionInfo_SenderInfo::SDK_NATIVE;
382 constexpr CastLogsProto_CastConnectionInfo_SenderInfo_SDKType CastLogsProto_CastConnectionInfo_SenderInfo::SDK_CHROME_EXTENSION;
383 constexpr CastLogsProto_CastConnectionInfo_SenderInfo_SDKType CastLogsProto_CastConnectionInfo_SenderInfo::SDKType_MIN;
384 constexpr CastLogsProto_CastConnectionInfo_SenderInfo_SDKType CastLogsProto_CastConnectionInfo_SenderInfo::SDKType_MAX;
385 constexpr int CastLogsProto_CastConnectionInfo_SenderInfo::SDKType_ARRAYSIZE;
386 #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
CastLogsProto_CastConnectionInfo_SenderInfo_Platform_IsValid(int value)387 bool CastLogsProto_CastConnectionInfo_SenderInfo_Platform_IsValid(int value) {
388 switch (value) {
389 case 0:
390 case 1:
391 case 2:
392 case 3:
393 case 4:
394 case 5:
395 case 6:
396 case 7:
397 return true;
398 default:
399 return false;
400 }
401 }
402
403 static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> CastLogsProto_CastConnectionInfo_SenderInfo_Platform_strings[8] = {};
404
405 static const char CastLogsProto_CastConnectionInfo_SenderInfo_Platform_names[] =
406 "PLATFORM_ANDROID"
407 "PLATFORM_CAST"
408 "PLATFORM_CHROMEOS"
409 "PLATFORM_IOS"
410 "PLATFORM_LINUX"
411 "PLATFORM_OSX"
412 "PLATFORM_OTHER"
413 "PLATFORM_WINDOWS";
414
415 static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry CastLogsProto_CastConnectionInfo_SenderInfo_Platform_entries[] = {
416 { {CastLogsProto_CastConnectionInfo_SenderInfo_Platform_names + 0, 16}, 1 },
417 { {CastLogsProto_CastConnectionInfo_SenderInfo_Platform_names + 16, 13}, 7 },
418 { {CastLogsProto_CastConnectionInfo_SenderInfo_Platform_names + 29, 17}, 5 },
419 { {CastLogsProto_CastConnectionInfo_SenderInfo_Platform_names + 46, 12}, 2 },
420 { {CastLogsProto_CastConnectionInfo_SenderInfo_Platform_names + 58, 14}, 6 },
421 { {CastLogsProto_CastConnectionInfo_SenderInfo_Platform_names + 72, 12}, 4 },
422 { {CastLogsProto_CastConnectionInfo_SenderInfo_Platform_names + 84, 14}, 0 },
423 { {CastLogsProto_CastConnectionInfo_SenderInfo_Platform_names + 98, 16}, 3 },
424 };
425
426 static const int CastLogsProto_CastConnectionInfo_SenderInfo_Platform_entries_by_number[] = {
427 6, // 0 -> PLATFORM_OTHER
428 0, // 1 -> PLATFORM_ANDROID
429 3, // 2 -> PLATFORM_IOS
430 7, // 3 -> PLATFORM_WINDOWS
431 5, // 4 -> PLATFORM_OSX
432 2, // 5 -> PLATFORM_CHROMEOS
433 4, // 6 -> PLATFORM_LINUX
434 1, // 7 -> PLATFORM_CAST
435 };
436
CastLogsProto_CastConnectionInfo_SenderInfo_Platform_Name(CastLogsProto_CastConnectionInfo_SenderInfo_Platform value)437 const std::string& CastLogsProto_CastConnectionInfo_SenderInfo_Platform_Name(
438 CastLogsProto_CastConnectionInfo_SenderInfo_Platform value) {
439 static const bool dummy =
440 ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
441 CastLogsProto_CastConnectionInfo_SenderInfo_Platform_entries,
442 CastLogsProto_CastConnectionInfo_SenderInfo_Platform_entries_by_number,
443 8, CastLogsProto_CastConnectionInfo_SenderInfo_Platform_strings);
444 (void) dummy;
445 int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
446 CastLogsProto_CastConnectionInfo_SenderInfo_Platform_entries,
447 CastLogsProto_CastConnectionInfo_SenderInfo_Platform_entries_by_number,
448 8, value);
449 return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
450 CastLogsProto_CastConnectionInfo_SenderInfo_Platform_strings[idx].get();
451 }
CastLogsProto_CastConnectionInfo_SenderInfo_Platform_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,CastLogsProto_CastConnectionInfo_SenderInfo_Platform * value)452 bool CastLogsProto_CastConnectionInfo_SenderInfo_Platform_Parse(
453 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, CastLogsProto_CastConnectionInfo_SenderInfo_Platform* value) {
454 int int_value;
455 bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
456 CastLogsProto_CastConnectionInfo_SenderInfo_Platform_entries, 8, name, &int_value);
457 if (success) {
458 *value = static_cast<CastLogsProto_CastConnectionInfo_SenderInfo_Platform>(int_value);
459 }
460 return success;
461 }
462 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
463 constexpr CastLogsProto_CastConnectionInfo_SenderInfo_Platform CastLogsProto_CastConnectionInfo_SenderInfo::PLATFORM_OTHER;
464 constexpr CastLogsProto_CastConnectionInfo_SenderInfo_Platform CastLogsProto_CastConnectionInfo_SenderInfo::PLATFORM_ANDROID;
465 constexpr CastLogsProto_CastConnectionInfo_SenderInfo_Platform CastLogsProto_CastConnectionInfo_SenderInfo::PLATFORM_IOS;
466 constexpr CastLogsProto_CastConnectionInfo_SenderInfo_Platform CastLogsProto_CastConnectionInfo_SenderInfo::PLATFORM_WINDOWS;
467 constexpr CastLogsProto_CastConnectionInfo_SenderInfo_Platform CastLogsProto_CastConnectionInfo_SenderInfo::PLATFORM_OSX;
468 constexpr CastLogsProto_CastConnectionInfo_SenderInfo_Platform CastLogsProto_CastConnectionInfo_SenderInfo::PLATFORM_CHROMEOS;
469 constexpr CastLogsProto_CastConnectionInfo_SenderInfo_Platform CastLogsProto_CastConnectionInfo_SenderInfo::PLATFORM_LINUX;
470 constexpr CastLogsProto_CastConnectionInfo_SenderInfo_Platform CastLogsProto_CastConnectionInfo_SenderInfo::PLATFORM_CAST;
471 constexpr CastLogsProto_CastConnectionInfo_SenderInfo_Platform CastLogsProto_CastConnectionInfo_SenderInfo::Platform_MIN;
472 constexpr CastLogsProto_CastConnectionInfo_SenderInfo_Platform CastLogsProto_CastConnectionInfo_SenderInfo::Platform_MAX;
473 constexpr int CastLogsProto_CastConnectionInfo_SenderInfo::Platform_ARRAYSIZE;
474 #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
CastLogsProto_CastConnectionInfo_SenderInfo_ConnectionType_IsValid(int value)475 bool CastLogsProto_CastConnectionInfo_SenderInfo_ConnectionType_IsValid(int value) {
476 switch (value) {
477 case 0:
478 case 1:
479 case 2:
480 case 3:
481 return true;
482 default:
483 return false;
484 }
485 }
486
487 static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> CastLogsProto_CastConnectionInfo_SenderInfo_ConnectionType_strings[4] = {};
488
489 static const char CastLogsProto_CastConnectionInfo_SenderInfo_ConnectionType_names[] =
490 "CONNECTION_TYPE_INTERNAL"
491 "CONNECTION_TYPE_LOCAL"
492 "CONNECTION_TYPE_RELAY"
493 "CONNECTION_TYPE_UNKNOWN";
494
495 static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry CastLogsProto_CastConnectionInfo_SenderInfo_ConnectionType_entries[] = {
496 { {CastLogsProto_CastConnectionInfo_SenderInfo_ConnectionType_names + 0, 24}, 3 },
497 { {CastLogsProto_CastConnectionInfo_SenderInfo_ConnectionType_names + 24, 21}, 1 },
498 { {CastLogsProto_CastConnectionInfo_SenderInfo_ConnectionType_names + 45, 21}, 2 },
499 { {CastLogsProto_CastConnectionInfo_SenderInfo_ConnectionType_names + 66, 23}, 0 },
500 };
501
502 static const int CastLogsProto_CastConnectionInfo_SenderInfo_ConnectionType_entries_by_number[] = {
503 3, // 0 -> CONNECTION_TYPE_UNKNOWN
504 1, // 1 -> CONNECTION_TYPE_LOCAL
505 2, // 2 -> CONNECTION_TYPE_RELAY
506 0, // 3 -> CONNECTION_TYPE_INTERNAL
507 };
508
CastLogsProto_CastConnectionInfo_SenderInfo_ConnectionType_Name(CastLogsProto_CastConnectionInfo_SenderInfo_ConnectionType value)509 const std::string& CastLogsProto_CastConnectionInfo_SenderInfo_ConnectionType_Name(
510 CastLogsProto_CastConnectionInfo_SenderInfo_ConnectionType value) {
511 static const bool dummy =
512 ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
513 CastLogsProto_CastConnectionInfo_SenderInfo_ConnectionType_entries,
514 CastLogsProto_CastConnectionInfo_SenderInfo_ConnectionType_entries_by_number,
515 4, CastLogsProto_CastConnectionInfo_SenderInfo_ConnectionType_strings);
516 (void) dummy;
517 int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
518 CastLogsProto_CastConnectionInfo_SenderInfo_ConnectionType_entries,
519 CastLogsProto_CastConnectionInfo_SenderInfo_ConnectionType_entries_by_number,
520 4, value);
521 return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
522 CastLogsProto_CastConnectionInfo_SenderInfo_ConnectionType_strings[idx].get();
523 }
CastLogsProto_CastConnectionInfo_SenderInfo_ConnectionType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,CastLogsProto_CastConnectionInfo_SenderInfo_ConnectionType * value)524 bool CastLogsProto_CastConnectionInfo_SenderInfo_ConnectionType_Parse(
525 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, CastLogsProto_CastConnectionInfo_SenderInfo_ConnectionType* value) {
526 int int_value;
527 bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
528 CastLogsProto_CastConnectionInfo_SenderInfo_ConnectionType_entries, 4, name, &int_value);
529 if (success) {
530 *value = static_cast<CastLogsProto_CastConnectionInfo_SenderInfo_ConnectionType>(int_value);
531 }
532 return success;
533 }
534 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
535 constexpr CastLogsProto_CastConnectionInfo_SenderInfo_ConnectionType CastLogsProto_CastConnectionInfo_SenderInfo::CONNECTION_TYPE_UNKNOWN;
536 constexpr CastLogsProto_CastConnectionInfo_SenderInfo_ConnectionType CastLogsProto_CastConnectionInfo_SenderInfo::CONNECTION_TYPE_LOCAL;
537 constexpr CastLogsProto_CastConnectionInfo_SenderInfo_ConnectionType CastLogsProto_CastConnectionInfo_SenderInfo::CONNECTION_TYPE_RELAY;
538 constexpr CastLogsProto_CastConnectionInfo_SenderInfo_ConnectionType CastLogsProto_CastConnectionInfo_SenderInfo::CONNECTION_TYPE_INTERNAL;
539 constexpr CastLogsProto_CastConnectionInfo_SenderInfo_ConnectionType CastLogsProto_CastConnectionInfo_SenderInfo::ConnectionType_MIN;
540 constexpr CastLogsProto_CastConnectionInfo_SenderInfo_ConnectionType CastLogsProto_CastConnectionInfo_SenderInfo::ConnectionType_MAX;
541 constexpr int CastLogsProto_CastConnectionInfo_SenderInfo::ConnectionType_ARRAYSIZE;
542 #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
CastLogsProto_CastEventProto_LaunchFrom_IsValid(int value)543 bool CastLogsProto_CastEventProto_LaunchFrom_IsValid(int value) {
544 switch (value) {
545 case 0:
546 case 1:
547 case 2:
548 case 3:
549 case 4:
550 return true;
551 default:
552 return false;
553 }
554 }
555
556 static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> CastLogsProto_CastEventProto_LaunchFrom_strings[5] = {};
557
558 static const char CastLogsProto_CastEventProto_LaunchFrom_names[] =
559 "FROM_CAST_V2"
560 "FROM_CCS"
561 "FROM_DIAL"
562 "FROM_LOCAL"
563 "FROM_UNKNOWN";
564
565 static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry CastLogsProto_CastEventProto_LaunchFrom_entries[] = {
566 { {CastLogsProto_CastEventProto_LaunchFrom_names + 0, 12}, 3 },
567 { {CastLogsProto_CastEventProto_LaunchFrom_names + 12, 8}, 4 },
568 { {CastLogsProto_CastEventProto_LaunchFrom_names + 20, 9}, 2 },
569 { {CastLogsProto_CastEventProto_LaunchFrom_names + 29, 10}, 1 },
570 { {CastLogsProto_CastEventProto_LaunchFrom_names + 39, 12}, 0 },
571 };
572
573 static const int CastLogsProto_CastEventProto_LaunchFrom_entries_by_number[] = {
574 4, // 0 -> FROM_UNKNOWN
575 3, // 1 -> FROM_LOCAL
576 2, // 2 -> FROM_DIAL
577 0, // 3 -> FROM_CAST_V2
578 1, // 4 -> FROM_CCS
579 };
580
CastLogsProto_CastEventProto_LaunchFrom_Name(CastLogsProto_CastEventProto_LaunchFrom value)581 const std::string& CastLogsProto_CastEventProto_LaunchFrom_Name(
582 CastLogsProto_CastEventProto_LaunchFrom value) {
583 static const bool dummy =
584 ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
585 CastLogsProto_CastEventProto_LaunchFrom_entries,
586 CastLogsProto_CastEventProto_LaunchFrom_entries_by_number,
587 5, CastLogsProto_CastEventProto_LaunchFrom_strings);
588 (void) dummy;
589 int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
590 CastLogsProto_CastEventProto_LaunchFrom_entries,
591 CastLogsProto_CastEventProto_LaunchFrom_entries_by_number,
592 5, value);
593 return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
594 CastLogsProto_CastEventProto_LaunchFrom_strings[idx].get();
595 }
CastLogsProto_CastEventProto_LaunchFrom_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,CastLogsProto_CastEventProto_LaunchFrom * value)596 bool CastLogsProto_CastEventProto_LaunchFrom_Parse(
597 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, CastLogsProto_CastEventProto_LaunchFrom* value) {
598 int int_value;
599 bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
600 CastLogsProto_CastEventProto_LaunchFrom_entries, 5, name, &int_value);
601 if (success) {
602 *value = static_cast<CastLogsProto_CastEventProto_LaunchFrom>(int_value);
603 }
604 return success;
605 }
606 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
607 constexpr CastLogsProto_CastEventProto_LaunchFrom CastLogsProto_CastEventProto::FROM_UNKNOWN;
608 constexpr CastLogsProto_CastEventProto_LaunchFrom CastLogsProto_CastEventProto::FROM_LOCAL;
609 constexpr CastLogsProto_CastEventProto_LaunchFrom CastLogsProto_CastEventProto::FROM_DIAL;
610 constexpr CastLogsProto_CastEventProto_LaunchFrom CastLogsProto_CastEventProto::FROM_CAST_V2;
611 constexpr CastLogsProto_CastEventProto_LaunchFrom CastLogsProto_CastEventProto::FROM_CCS;
612 constexpr CastLogsProto_CastEventProto_LaunchFrom CastLogsProto_CastEventProto::LaunchFrom_MIN;
613 constexpr CastLogsProto_CastEventProto_LaunchFrom CastLogsProto_CastEventProto::LaunchFrom_MAX;
614 constexpr int CastLogsProto_CastEventProto::LaunchFrom_ARRAYSIZE;
615 #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
CastLogsProto_CastEventProto_RuntimeType_IsValid(int value)616 bool CastLogsProto_CastEventProto_RuntimeType_IsValid(int value) {
617 switch (value) {
618 case 0:
619 case 1:
620 case 2:
621 case 3:
622 return true;
623 default:
624 return false;
625 }
626 }
627
628 static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> CastLogsProto_CastEventProto_RuntimeType_strings[4] = {};
629
630 static const char CastLogsProto_CastEventProto_RuntimeType_names[] =
631 "RUNTIME_TYPE_CAST_LITE"
632 "RUNTIME_TYPE_CAST_WEB"
633 "RUNTIME_TYPE_NATIVE"
634 "RUNTIME_TYPE_UNKNOWN";
635
636 static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry CastLogsProto_CastEventProto_RuntimeType_entries[] = {
637 { {CastLogsProto_CastEventProto_RuntimeType_names + 0, 22}, 2 },
638 { {CastLogsProto_CastEventProto_RuntimeType_names + 22, 21}, 1 },
639 { {CastLogsProto_CastEventProto_RuntimeType_names + 43, 19}, 3 },
640 { {CastLogsProto_CastEventProto_RuntimeType_names + 62, 20}, 0 },
641 };
642
643 static const int CastLogsProto_CastEventProto_RuntimeType_entries_by_number[] = {
644 3, // 0 -> RUNTIME_TYPE_UNKNOWN
645 1, // 1 -> RUNTIME_TYPE_CAST_WEB
646 0, // 2 -> RUNTIME_TYPE_CAST_LITE
647 2, // 3 -> RUNTIME_TYPE_NATIVE
648 };
649
CastLogsProto_CastEventProto_RuntimeType_Name(CastLogsProto_CastEventProto_RuntimeType value)650 const std::string& CastLogsProto_CastEventProto_RuntimeType_Name(
651 CastLogsProto_CastEventProto_RuntimeType value) {
652 static const bool dummy =
653 ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
654 CastLogsProto_CastEventProto_RuntimeType_entries,
655 CastLogsProto_CastEventProto_RuntimeType_entries_by_number,
656 4, CastLogsProto_CastEventProto_RuntimeType_strings);
657 (void) dummy;
658 int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
659 CastLogsProto_CastEventProto_RuntimeType_entries,
660 CastLogsProto_CastEventProto_RuntimeType_entries_by_number,
661 4, value);
662 return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
663 CastLogsProto_CastEventProto_RuntimeType_strings[idx].get();
664 }
CastLogsProto_CastEventProto_RuntimeType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,CastLogsProto_CastEventProto_RuntimeType * value)665 bool CastLogsProto_CastEventProto_RuntimeType_Parse(
666 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, CastLogsProto_CastEventProto_RuntimeType* value) {
667 int int_value;
668 bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
669 CastLogsProto_CastEventProto_RuntimeType_entries, 4, name, &int_value);
670 if (success) {
671 *value = static_cast<CastLogsProto_CastEventProto_RuntimeType>(int_value);
672 }
673 return success;
674 }
675 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
676 constexpr CastLogsProto_CastEventProto_RuntimeType CastLogsProto_CastEventProto::RUNTIME_TYPE_UNKNOWN;
677 constexpr CastLogsProto_CastEventProto_RuntimeType CastLogsProto_CastEventProto::RUNTIME_TYPE_CAST_WEB;
678 constexpr CastLogsProto_CastEventProto_RuntimeType CastLogsProto_CastEventProto::RUNTIME_TYPE_CAST_LITE;
679 constexpr CastLogsProto_CastEventProto_RuntimeType CastLogsProto_CastEventProto::RUNTIME_TYPE_NATIVE;
680 constexpr CastLogsProto_CastEventProto_RuntimeType CastLogsProto_CastEventProto::RuntimeType_MIN;
681 constexpr CastLogsProto_CastEventProto_RuntimeType CastLogsProto_CastEventProto::RuntimeType_MAX;
682 constexpr int CastLogsProto_CastEventProto::RuntimeType_ARRAYSIZE;
683 #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
CastLogsProto_CastDeviceMutableInfo_RebootType_IsValid(int value)684 bool CastLogsProto_CastDeviceMutableInfo_RebootType_IsValid(int value) {
685 switch (value) {
686 case 0:
687 case 1:
688 case 2:
689 case 3:
690 case 4:
691 case 5:
692 case 6:
693 case 7:
694 case 8:
695 case 9:
696 case 10:
697 case 11:
698 case 12:
699 case 13:
700 case 14:
701 case 15:
702 case 16:
703 case 17:
704 case 18:
705 case 19:
706 case 20:
707 case 21:
708 return true;
709 default:
710 return false;
711 }
712 }
713
714 static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> CastLogsProto_CastDeviceMutableInfo_RebootType_strings[22] = {};
715
716 static const char CastLogsProto_CastDeviceMutableInfo_RebootType_names[] =
717 "ANOMALY_DETECTION"
718 "EXPERIMENT_CHANGE"
719 "KERNEL_PANIC"
720 "MULTI_SERVICE_BUG"
721 "POWER_MANAGER"
722 "REBOOT_TYPE_API"
723 "REBOOT_TYPE_CRASH_UPLOADER"
724 "REBOOT_TYPE_FDR"
725 "REBOOT_TYPE_FORCED"
726 "REBOOT_TYPE_GRACEFUL_RESTART"
727 "REBOOT_TYPE_HW_WATCHDOG"
728 "REBOOT_TYPE_NIGHTLY"
729 "REBOOT_TYPE_OTA"
730 "REBOOT_TYPE_OVERHEAT"
731 "REBOOT_TYPE_PROCESS_MANAGER"
732 "REBOOT_TYPE_REGENERATE_CLOUD_ID"
733 "REBOOT_TYPE_REPEATED_OOM"
734 "REBOOT_TYPE_SW_OTHER"
735 "REBOOT_TYPE_UNGRACEFUL_RESTART"
736 "REBOOT_TYPE_UNKNOWN"
737 "REBOOT_TYPE_UTILITY_PROCESS_CRASH"
738 "REBOOT_TYPE_WATCHDOG";
739
740 static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry CastLogsProto_CastDeviceMutableInfo_RebootType_entries[] = {
741 { {CastLogsProto_CastDeviceMutableInfo_RebootType_names + 0, 17}, 20 },
742 { {CastLogsProto_CastDeviceMutableInfo_RebootType_names + 17, 17}, 19 },
743 { {CastLogsProto_CastDeviceMutableInfo_RebootType_names + 34, 12}, 21 },
744 { {CastLogsProto_CastDeviceMutableInfo_RebootType_names + 46, 17}, 17 },
745 { {CastLogsProto_CastDeviceMutableInfo_RebootType_names + 63, 13}, 18 },
746 { {CastLogsProto_CastDeviceMutableInfo_RebootType_names + 76, 15}, 2 },
747 { {CastLogsProto_CastDeviceMutableInfo_RebootType_names + 91, 26}, 7 },
748 { {CastLogsProto_CastDeviceMutableInfo_RebootType_names + 117, 15}, 8 },
749 { {CastLogsProto_CastDeviceMutableInfo_RebootType_names + 132, 18}, 1 },
750 { {CastLogsProto_CastDeviceMutableInfo_RebootType_names + 150, 28}, 15 },
751 { {CastLogsProto_CastDeviceMutableInfo_RebootType_names + 178, 23}, 9 },
752 { {CastLogsProto_CastDeviceMutableInfo_RebootType_names + 201, 19}, 3 },
753 { {CastLogsProto_CastDeviceMutableInfo_RebootType_names + 220, 15}, 4 },
754 { {CastLogsProto_CastDeviceMutableInfo_RebootType_names + 235, 20}, 11 },
755 { {CastLogsProto_CastDeviceMutableInfo_RebootType_names + 255, 27}, 6 },
756 { {CastLogsProto_CastDeviceMutableInfo_RebootType_names + 282, 31}, 12 },
757 { {CastLogsProto_CastDeviceMutableInfo_RebootType_names + 313, 24}, 13 },
758 { {CastLogsProto_CastDeviceMutableInfo_RebootType_names + 337, 20}, 10 },
759 { {CastLogsProto_CastDeviceMutableInfo_RebootType_names + 357, 30}, 16 },
760 { {CastLogsProto_CastDeviceMutableInfo_RebootType_names + 387, 19}, 0 },
761 { {CastLogsProto_CastDeviceMutableInfo_RebootType_names + 406, 33}, 14 },
762 { {CastLogsProto_CastDeviceMutableInfo_RebootType_names + 439, 20}, 5 },
763 };
764
765 static const int CastLogsProto_CastDeviceMutableInfo_RebootType_entries_by_number[] = {
766 19, // 0 -> REBOOT_TYPE_UNKNOWN
767 8, // 1 -> REBOOT_TYPE_FORCED
768 5, // 2 -> REBOOT_TYPE_API
769 11, // 3 -> REBOOT_TYPE_NIGHTLY
770 12, // 4 -> REBOOT_TYPE_OTA
771 21, // 5 -> REBOOT_TYPE_WATCHDOG
772 14, // 6 -> REBOOT_TYPE_PROCESS_MANAGER
773 6, // 7 -> REBOOT_TYPE_CRASH_UPLOADER
774 7, // 8 -> REBOOT_TYPE_FDR
775 10, // 9 -> REBOOT_TYPE_HW_WATCHDOG
776 17, // 10 -> REBOOT_TYPE_SW_OTHER
777 13, // 11 -> REBOOT_TYPE_OVERHEAT
778 15, // 12 -> REBOOT_TYPE_REGENERATE_CLOUD_ID
779 16, // 13 -> REBOOT_TYPE_REPEATED_OOM
780 20, // 14 -> REBOOT_TYPE_UTILITY_PROCESS_CRASH
781 9, // 15 -> REBOOT_TYPE_GRACEFUL_RESTART
782 18, // 16 -> REBOOT_TYPE_UNGRACEFUL_RESTART
783 3, // 17 -> MULTI_SERVICE_BUG
784 4, // 18 -> POWER_MANAGER
785 1, // 19 -> EXPERIMENT_CHANGE
786 0, // 20 -> ANOMALY_DETECTION
787 2, // 21 -> KERNEL_PANIC
788 };
789
CastLogsProto_CastDeviceMutableInfo_RebootType_Name(CastLogsProto_CastDeviceMutableInfo_RebootType value)790 const std::string& CastLogsProto_CastDeviceMutableInfo_RebootType_Name(
791 CastLogsProto_CastDeviceMutableInfo_RebootType value) {
792 static const bool dummy =
793 ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
794 CastLogsProto_CastDeviceMutableInfo_RebootType_entries,
795 CastLogsProto_CastDeviceMutableInfo_RebootType_entries_by_number,
796 22, CastLogsProto_CastDeviceMutableInfo_RebootType_strings);
797 (void) dummy;
798 int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
799 CastLogsProto_CastDeviceMutableInfo_RebootType_entries,
800 CastLogsProto_CastDeviceMutableInfo_RebootType_entries_by_number,
801 22, value);
802 return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
803 CastLogsProto_CastDeviceMutableInfo_RebootType_strings[idx].get();
804 }
CastLogsProto_CastDeviceMutableInfo_RebootType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,CastLogsProto_CastDeviceMutableInfo_RebootType * value)805 bool CastLogsProto_CastDeviceMutableInfo_RebootType_Parse(
806 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, CastLogsProto_CastDeviceMutableInfo_RebootType* value) {
807 int int_value;
808 bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
809 CastLogsProto_CastDeviceMutableInfo_RebootType_entries, 22, name, &int_value);
810 if (success) {
811 *value = static_cast<CastLogsProto_CastDeviceMutableInfo_RebootType>(int_value);
812 }
813 return success;
814 }
815 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
816 constexpr CastLogsProto_CastDeviceMutableInfo_RebootType CastLogsProto_CastDeviceMutableInfo::REBOOT_TYPE_UNKNOWN;
817 constexpr CastLogsProto_CastDeviceMutableInfo_RebootType CastLogsProto_CastDeviceMutableInfo::REBOOT_TYPE_FORCED;
818 constexpr CastLogsProto_CastDeviceMutableInfo_RebootType CastLogsProto_CastDeviceMutableInfo::REBOOT_TYPE_API;
819 constexpr CastLogsProto_CastDeviceMutableInfo_RebootType CastLogsProto_CastDeviceMutableInfo::REBOOT_TYPE_NIGHTLY;
820 constexpr CastLogsProto_CastDeviceMutableInfo_RebootType CastLogsProto_CastDeviceMutableInfo::REBOOT_TYPE_OTA;
821 constexpr CastLogsProto_CastDeviceMutableInfo_RebootType CastLogsProto_CastDeviceMutableInfo::REBOOT_TYPE_WATCHDOG;
822 constexpr CastLogsProto_CastDeviceMutableInfo_RebootType CastLogsProto_CastDeviceMutableInfo::REBOOT_TYPE_PROCESS_MANAGER;
823 constexpr CastLogsProto_CastDeviceMutableInfo_RebootType CastLogsProto_CastDeviceMutableInfo::REBOOT_TYPE_CRASH_UPLOADER;
824 constexpr CastLogsProto_CastDeviceMutableInfo_RebootType CastLogsProto_CastDeviceMutableInfo::REBOOT_TYPE_FDR;
825 constexpr CastLogsProto_CastDeviceMutableInfo_RebootType CastLogsProto_CastDeviceMutableInfo::REBOOT_TYPE_HW_WATCHDOG;
826 constexpr CastLogsProto_CastDeviceMutableInfo_RebootType CastLogsProto_CastDeviceMutableInfo::REBOOT_TYPE_SW_OTHER;
827 constexpr CastLogsProto_CastDeviceMutableInfo_RebootType CastLogsProto_CastDeviceMutableInfo::REBOOT_TYPE_OVERHEAT;
828 constexpr CastLogsProto_CastDeviceMutableInfo_RebootType CastLogsProto_CastDeviceMutableInfo::REBOOT_TYPE_REGENERATE_CLOUD_ID;
829 constexpr CastLogsProto_CastDeviceMutableInfo_RebootType CastLogsProto_CastDeviceMutableInfo::REBOOT_TYPE_REPEATED_OOM;
830 constexpr CastLogsProto_CastDeviceMutableInfo_RebootType CastLogsProto_CastDeviceMutableInfo::REBOOT_TYPE_UTILITY_PROCESS_CRASH;
831 constexpr CastLogsProto_CastDeviceMutableInfo_RebootType CastLogsProto_CastDeviceMutableInfo::REBOOT_TYPE_GRACEFUL_RESTART;
832 constexpr CastLogsProto_CastDeviceMutableInfo_RebootType CastLogsProto_CastDeviceMutableInfo::REBOOT_TYPE_UNGRACEFUL_RESTART;
833 constexpr CastLogsProto_CastDeviceMutableInfo_RebootType CastLogsProto_CastDeviceMutableInfo::MULTI_SERVICE_BUG;
834 constexpr CastLogsProto_CastDeviceMutableInfo_RebootType CastLogsProto_CastDeviceMutableInfo::POWER_MANAGER;
835 constexpr CastLogsProto_CastDeviceMutableInfo_RebootType CastLogsProto_CastDeviceMutableInfo::EXPERIMENT_CHANGE;
836 constexpr CastLogsProto_CastDeviceMutableInfo_RebootType CastLogsProto_CastDeviceMutableInfo::ANOMALY_DETECTION;
837 constexpr CastLogsProto_CastDeviceMutableInfo_RebootType CastLogsProto_CastDeviceMutableInfo::KERNEL_PANIC;
838 constexpr CastLogsProto_CastDeviceMutableInfo_RebootType CastLogsProto_CastDeviceMutableInfo::RebootType_MIN;
839 constexpr CastLogsProto_CastDeviceMutableInfo_RebootType CastLogsProto_CastDeviceMutableInfo::RebootType_MAX;
840 constexpr int CastLogsProto_CastDeviceMutableInfo::RebootType_ARRAYSIZE;
841 #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
CastLogsProto_CastDeviceMutableInfo_NetifIPVersion_IsValid(int value)842 bool CastLogsProto_CastDeviceMutableInfo_NetifIPVersion_IsValid(int value) {
843 switch (value) {
844 case 0:
845 case 1:
846 case 2:
847 case 3:
848 return true;
849 default:
850 return false;
851 }
852 }
853
854 static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> CastLogsProto_CastDeviceMutableInfo_NetifIPVersion_strings[4] = {};
855
856 static const char CastLogsProto_CastDeviceMutableInfo_NetifIPVersion_names[] =
857 "IP_DUAL_STACK"
858 "IP_UNKNOWN"
859 "IP_V4"
860 "IP_V6";
861
862 static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry CastLogsProto_CastDeviceMutableInfo_NetifIPVersion_entries[] = {
863 { {CastLogsProto_CastDeviceMutableInfo_NetifIPVersion_names + 0, 13}, 3 },
864 { {CastLogsProto_CastDeviceMutableInfo_NetifIPVersion_names + 13, 10}, 0 },
865 { {CastLogsProto_CastDeviceMutableInfo_NetifIPVersion_names + 23, 5}, 1 },
866 { {CastLogsProto_CastDeviceMutableInfo_NetifIPVersion_names + 28, 5}, 2 },
867 };
868
869 static const int CastLogsProto_CastDeviceMutableInfo_NetifIPVersion_entries_by_number[] = {
870 1, // 0 -> IP_UNKNOWN
871 2, // 1 -> IP_V4
872 3, // 2 -> IP_V6
873 0, // 3 -> IP_DUAL_STACK
874 };
875
CastLogsProto_CastDeviceMutableInfo_NetifIPVersion_Name(CastLogsProto_CastDeviceMutableInfo_NetifIPVersion value)876 const std::string& CastLogsProto_CastDeviceMutableInfo_NetifIPVersion_Name(
877 CastLogsProto_CastDeviceMutableInfo_NetifIPVersion value) {
878 static const bool dummy =
879 ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
880 CastLogsProto_CastDeviceMutableInfo_NetifIPVersion_entries,
881 CastLogsProto_CastDeviceMutableInfo_NetifIPVersion_entries_by_number,
882 4, CastLogsProto_CastDeviceMutableInfo_NetifIPVersion_strings);
883 (void) dummy;
884 int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
885 CastLogsProto_CastDeviceMutableInfo_NetifIPVersion_entries,
886 CastLogsProto_CastDeviceMutableInfo_NetifIPVersion_entries_by_number,
887 4, value);
888 return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
889 CastLogsProto_CastDeviceMutableInfo_NetifIPVersion_strings[idx].get();
890 }
CastLogsProto_CastDeviceMutableInfo_NetifIPVersion_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,CastLogsProto_CastDeviceMutableInfo_NetifIPVersion * value)891 bool CastLogsProto_CastDeviceMutableInfo_NetifIPVersion_Parse(
892 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, CastLogsProto_CastDeviceMutableInfo_NetifIPVersion* value) {
893 int int_value;
894 bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
895 CastLogsProto_CastDeviceMutableInfo_NetifIPVersion_entries, 4, name, &int_value);
896 if (success) {
897 *value = static_cast<CastLogsProto_CastDeviceMutableInfo_NetifIPVersion>(int_value);
898 }
899 return success;
900 }
901 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
902 constexpr CastLogsProto_CastDeviceMutableInfo_NetifIPVersion CastLogsProto_CastDeviceMutableInfo::IP_UNKNOWN;
903 constexpr CastLogsProto_CastDeviceMutableInfo_NetifIPVersion CastLogsProto_CastDeviceMutableInfo::IP_V4;
904 constexpr CastLogsProto_CastDeviceMutableInfo_NetifIPVersion CastLogsProto_CastDeviceMutableInfo::IP_V6;
905 constexpr CastLogsProto_CastDeviceMutableInfo_NetifIPVersion CastLogsProto_CastDeviceMutableInfo::IP_DUAL_STACK;
906 constexpr CastLogsProto_CastDeviceMutableInfo_NetifIPVersion CastLogsProto_CastDeviceMutableInfo::NetifIPVersion_MIN;
907 constexpr CastLogsProto_CastDeviceMutableInfo_NetifIPVersion CastLogsProto_CastDeviceMutableInfo::NetifIPVersion_MAX;
908 constexpr int CastLogsProto_CastDeviceMutableInfo::NetifIPVersion_ARRAYSIZE;
909 #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
910
911 // ===================================================================
912
913 class CastLogsProto_CastDeviceInfo_HardwareInfo::_Internal {
914 public:
915 using HasBits = decltype(std::declval<CastLogsProto_CastDeviceInfo_HardwareInfo>()._impl_._has_bits_);
set_has_color(HasBits * has_bits)916 static void set_has_color(HasBits* has_bits) {
917 (*has_bits)[0] |= 1u;
918 }
set_has_mic(HasBits * has_bits)919 static void set_has_mic(HasBits* has_bits) {
920 (*has_bits)[0] |= 2u;
921 }
set_has_memory(HasBits * has_bits)922 static void set_has_memory(HasBits* has_bits) {
923 (*has_bits)[0] |= 4u;
924 }
set_has_nand(HasBits * has_bits)925 static void set_has_nand(HasBits* has_bits) {
926 (*has_bits)[0] |= 8u;
927 }
set_has_mfg_date(HasBits * has_bits)928 static void set_has_mfg_date(HasBits* has_bits) {
929 (*has_bits)[0] |= 16u;
930 }
set_has_build_name(HasBits * has_bits)931 static void set_has_build_name(HasBits* has_bits) {
932 (*has_bits)[0] |= 32u;
933 }
set_has_config(HasBits * has_bits)934 static void set_has_config(HasBits* has_bits) {
935 (*has_bits)[0] |= 64u;
936 }
set_has_emmc(HasBits * has_bits)937 static void set_has_emmc(HasBits* has_bits) {
938 (*has_bits)[0] |= 128u;
939 }
set_has_display(HasBits * has_bits)940 static void set_has_display(HasBits* has_bits) {
941 (*has_bits)[0] |= 256u;
942 }
set_has_amp(HasBits * has_bits)943 static void set_has_amp(HasBits* has_bits) {
944 (*has_bits)[0] |= 512u;
945 }
set_has_board_name(HasBits * has_bits)946 static void set_has_board_name(HasBits* has_bits) {
947 (*has_bits)[0] |= 1024u;
948 }
949 };
950
CastLogsProto_CastDeviceInfo_HardwareInfo(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)951 CastLogsProto_CastDeviceInfo_HardwareInfo::CastLogsProto_CastDeviceInfo_HardwareInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena,
952 bool is_message_owned)
953 : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
954 SharedCtor(arena, is_message_owned);
955 // @@protoc_insertion_point(arena_constructor:metrics.CastLogsProto.CastDeviceInfo.HardwareInfo)
956 }
CastLogsProto_CastDeviceInfo_HardwareInfo(const CastLogsProto_CastDeviceInfo_HardwareInfo & from)957 CastLogsProto_CastDeviceInfo_HardwareInfo::CastLogsProto_CastDeviceInfo_HardwareInfo(const CastLogsProto_CastDeviceInfo_HardwareInfo& from)
958 : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
959 CastLogsProto_CastDeviceInfo_HardwareInfo* const _this = this; (void)_this;
960 new (&_impl_) Impl_{
961 decltype(_impl_._has_bits_){from._impl_._has_bits_}
962 , /*decltype(_impl_._cached_size_)*/{}
963 , decltype(_impl_.color_){}
964 , decltype(_impl_.mic_){}
965 , decltype(_impl_.memory_){}
966 , decltype(_impl_.nand_){}
967 , decltype(_impl_.mfg_date_){}
968 , decltype(_impl_.build_name_){}
969 , decltype(_impl_.config_){}
970 , decltype(_impl_.emmc_){}
971 , decltype(_impl_.display_){}
972 , decltype(_impl_.amp_){}
973 , decltype(_impl_.board_name_){}};
974
975 _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
976 _impl_.color_.InitDefault();
977 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
978 _impl_.color_.Set("", GetArenaForAllocation());
979 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
980 if (from._internal_has_color()) {
981 _this->_impl_.color_.Set(from._internal_color(),
982 _this->GetArenaForAllocation());
983 }
984 _impl_.mic_.InitDefault();
985 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
986 _impl_.mic_.Set("", GetArenaForAllocation());
987 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
988 if (from._internal_has_mic()) {
989 _this->_impl_.mic_.Set(from._internal_mic(),
990 _this->GetArenaForAllocation());
991 }
992 _impl_.memory_.InitDefault();
993 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
994 _impl_.memory_.Set("", GetArenaForAllocation());
995 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
996 if (from._internal_has_memory()) {
997 _this->_impl_.memory_.Set(from._internal_memory(),
998 _this->GetArenaForAllocation());
999 }
1000 _impl_.nand_.InitDefault();
1001 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1002 _impl_.nand_.Set("", GetArenaForAllocation());
1003 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1004 if (from._internal_has_nand()) {
1005 _this->_impl_.nand_.Set(from._internal_nand(),
1006 _this->GetArenaForAllocation());
1007 }
1008 _impl_.mfg_date_.InitDefault();
1009 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1010 _impl_.mfg_date_.Set("", GetArenaForAllocation());
1011 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1012 if (from._internal_has_mfg_date()) {
1013 _this->_impl_.mfg_date_.Set(from._internal_mfg_date(),
1014 _this->GetArenaForAllocation());
1015 }
1016 _impl_.build_name_.InitDefault();
1017 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1018 _impl_.build_name_.Set("", GetArenaForAllocation());
1019 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1020 if (from._internal_has_build_name()) {
1021 _this->_impl_.build_name_.Set(from._internal_build_name(),
1022 _this->GetArenaForAllocation());
1023 }
1024 _impl_.config_.InitDefault();
1025 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1026 _impl_.config_.Set("", GetArenaForAllocation());
1027 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1028 if (from._internal_has_config()) {
1029 _this->_impl_.config_.Set(from._internal_config(),
1030 _this->GetArenaForAllocation());
1031 }
1032 _impl_.emmc_.InitDefault();
1033 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1034 _impl_.emmc_.Set("", GetArenaForAllocation());
1035 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1036 if (from._internal_has_emmc()) {
1037 _this->_impl_.emmc_.Set(from._internal_emmc(),
1038 _this->GetArenaForAllocation());
1039 }
1040 _impl_.display_.InitDefault();
1041 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1042 _impl_.display_.Set("", GetArenaForAllocation());
1043 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1044 if (from._internal_has_display()) {
1045 _this->_impl_.display_.Set(from._internal_display(),
1046 _this->GetArenaForAllocation());
1047 }
1048 _impl_.amp_.InitDefault();
1049 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1050 _impl_.amp_.Set("", GetArenaForAllocation());
1051 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1052 if (from._internal_has_amp()) {
1053 _this->_impl_.amp_.Set(from._internal_amp(),
1054 _this->GetArenaForAllocation());
1055 }
1056 _impl_.board_name_.InitDefault();
1057 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1058 _impl_.board_name_.Set("", GetArenaForAllocation());
1059 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1060 if (from._internal_has_board_name()) {
1061 _this->_impl_.board_name_.Set(from._internal_board_name(),
1062 _this->GetArenaForAllocation());
1063 }
1064 // @@protoc_insertion_point(copy_constructor:metrics.CastLogsProto.CastDeviceInfo.HardwareInfo)
1065 }
1066
SharedCtor(::_pb::Arena * arena,bool is_message_owned)1067 inline void CastLogsProto_CastDeviceInfo_HardwareInfo::SharedCtor(
1068 ::_pb::Arena* arena, bool is_message_owned) {
1069 (void)arena;
1070 (void)is_message_owned;
1071 new (&_impl_) Impl_{
1072 decltype(_impl_._has_bits_){}
1073 , /*decltype(_impl_._cached_size_)*/{}
1074 , decltype(_impl_.color_){}
1075 , decltype(_impl_.mic_){}
1076 , decltype(_impl_.memory_){}
1077 , decltype(_impl_.nand_){}
1078 , decltype(_impl_.mfg_date_){}
1079 , decltype(_impl_.build_name_){}
1080 , decltype(_impl_.config_){}
1081 , decltype(_impl_.emmc_){}
1082 , decltype(_impl_.display_){}
1083 , decltype(_impl_.amp_){}
1084 , decltype(_impl_.board_name_){}
1085 };
1086 _impl_.color_.InitDefault();
1087 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1088 _impl_.color_.Set("", GetArenaForAllocation());
1089 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1090 _impl_.mic_.InitDefault();
1091 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1092 _impl_.mic_.Set("", GetArenaForAllocation());
1093 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1094 _impl_.memory_.InitDefault();
1095 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1096 _impl_.memory_.Set("", GetArenaForAllocation());
1097 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1098 _impl_.nand_.InitDefault();
1099 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1100 _impl_.nand_.Set("", GetArenaForAllocation());
1101 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1102 _impl_.mfg_date_.InitDefault();
1103 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1104 _impl_.mfg_date_.Set("", GetArenaForAllocation());
1105 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1106 _impl_.build_name_.InitDefault();
1107 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1108 _impl_.build_name_.Set("", GetArenaForAllocation());
1109 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1110 _impl_.config_.InitDefault();
1111 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1112 _impl_.config_.Set("", GetArenaForAllocation());
1113 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1114 _impl_.emmc_.InitDefault();
1115 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1116 _impl_.emmc_.Set("", GetArenaForAllocation());
1117 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1118 _impl_.display_.InitDefault();
1119 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1120 _impl_.display_.Set("", GetArenaForAllocation());
1121 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1122 _impl_.amp_.InitDefault();
1123 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1124 _impl_.amp_.Set("", GetArenaForAllocation());
1125 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1126 _impl_.board_name_.InitDefault();
1127 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1128 _impl_.board_name_.Set("", GetArenaForAllocation());
1129 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1130 }
1131
~CastLogsProto_CastDeviceInfo_HardwareInfo()1132 CastLogsProto_CastDeviceInfo_HardwareInfo::~CastLogsProto_CastDeviceInfo_HardwareInfo() {
1133 // @@protoc_insertion_point(destructor:metrics.CastLogsProto.CastDeviceInfo.HardwareInfo)
1134 if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
1135 (void)arena;
1136 return;
1137 }
1138 SharedDtor();
1139 }
1140
SharedDtor()1141 inline void CastLogsProto_CastDeviceInfo_HardwareInfo::SharedDtor() {
1142 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
1143 _impl_.color_.Destroy();
1144 _impl_.mic_.Destroy();
1145 _impl_.memory_.Destroy();
1146 _impl_.nand_.Destroy();
1147 _impl_.mfg_date_.Destroy();
1148 _impl_.build_name_.Destroy();
1149 _impl_.config_.Destroy();
1150 _impl_.emmc_.Destroy();
1151 _impl_.display_.Destroy();
1152 _impl_.amp_.Destroy();
1153 _impl_.board_name_.Destroy();
1154 }
1155
SetCachedSize(int size) const1156 void CastLogsProto_CastDeviceInfo_HardwareInfo::SetCachedSize(int size) const {
1157 _impl_._cached_size_.Set(size);
1158 }
1159
Clear()1160 void CastLogsProto_CastDeviceInfo_HardwareInfo::Clear() {
1161 // @@protoc_insertion_point(message_clear_start:metrics.CastLogsProto.CastDeviceInfo.HardwareInfo)
1162 uint32_t cached_has_bits = 0;
1163 // Prevent compiler warnings about cached_has_bits being unused
1164 (void) cached_has_bits;
1165
1166 cached_has_bits = _impl_._has_bits_[0];
1167 if (cached_has_bits & 0x000000ffu) {
1168 if (cached_has_bits & 0x00000001u) {
1169 _impl_.color_.ClearNonDefaultToEmpty();
1170 }
1171 if (cached_has_bits & 0x00000002u) {
1172 _impl_.mic_.ClearNonDefaultToEmpty();
1173 }
1174 if (cached_has_bits & 0x00000004u) {
1175 _impl_.memory_.ClearNonDefaultToEmpty();
1176 }
1177 if (cached_has_bits & 0x00000008u) {
1178 _impl_.nand_.ClearNonDefaultToEmpty();
1179 }
1180 if (cached_has_bits & 0x00000010u) {
1181 _impl_.mfg_date_.ClearNonDefaultToEmpty();
1182 }
1183 if (cached_has_bits & 0x00000020u) {
1184 _impl_.build_name_.ClearNonDefaultToEmpty();
1185 }
1186 if (cached_has_bits & 0x00000040u) {
1187 _impl_.config_.ClearNonDefaultToEmpty();
1188 }
1189 if (cached_has_bits & 0x00000080u) {
1190 _impl_.emmc_.ClearNonDefaultToEmpty();
1191 }
1192 }
1193 if (cached_has_bits & 0x00000700u) {
1194 if (cached_has_bits & 0x00000100u) {
1195 _impl_.display_.ClearNonDefaultToEmpty();
1196 }
1197 if (cached_has_bits & 0x00000200u) {
1198 _impl_.amp_.ClearNonDefaultToEmpty();
1199 }
1200 if (cached_has_bits & 0x00000400u) {
1201 _impl_.board_name_.ClearNonDefaultToEmpty();
1202 }
1203 }
1204 _impl_._has_bits_.Clear();
1205 _internal_metadata_.Clear<std::string>();
1206 }
1207
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)1208 const char* CastLogsProto_CastDeviceInfo_HardwareInfo::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
1209 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1210 _Internal::HasBits has_bits{};
1211 while (!ctx->Done(&ptr)) {
1212 uint32_t tag;
1213 ptr = ::_pbi::ReadTag(ptr, &tag);
1214 switch (tag >> 3) {
1215 // optional string color = 1;
1216 case 1:
1217 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
1218 auto str = _internal_mutable_color();
1219 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
1220 CHK_(ptr);
1221 } else
1222 goto handle_unusual;
1223 continue;
1224 // optional string mic = 2;
1225 case 2:
1226 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
1227 auto str = _internal_mutable_mic();
1228 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
1229 CHK_(ptr);
1230 } else
1231 goto handle_unusual;
1232 continue;
1233 // optional string memory = 3;
1234 case 3:
1235 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
1236 auto str = _internal_mutable_memory();
1237 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
1238 CHK_(ptr);
1239 } else
1240 goto handle_unusual;
1241 continue;
1242 // optional string nand = 4;
1243 case 4:
1244 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
1245 auto str = _internal_mutable_nand();
1246 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
1247 CHK_(ptr);
1248 } else
1249 goto handle_unusual;
1250 continue;
1251 // optional string mfg_date = 5;
1252 case 5:
1253 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) {
1254 auto str = _internal_mutable_mfg_date();
1255 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
1256 CHK_(ptr);
1257 } else
1258 goto handle_unusual;
1259 continue;
1260 // optional string build_name = 6;
1261 case 6:
1262 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) {
1263 auto str = _internal_mutable_build_name();
1264 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
1265 CHK_(ptr);
1266 } else
1267 goto handle_unusual;
1268 continue;
1269 // optional string config = 7;
1270 case 7:
1271 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 58)) {
1272 auto str = _internal_mutable_config();
1273 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
1274 CHK_(ptr);
1275 } else
1276 goto handle_unusual;
1277 continue;
1278 // optional string emmc = 8;
1279 case 8:
1280 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 66)) {
1281 auto str = _internal_mutable_emmc();
1282 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
1283 CHK_(ptr);
1284 } else
1285 goto handle_unusual;
1286 continue;
1287 // optional string display = 9;
1288 case 9:
1289 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 74)) {
1290 auto str = _internal_mutable_display();
1291 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
1292 CHK_(ptr);
1293 } else
1294 goto handle_unusual;
1295 continue;
1296 // optional string amp = 10;
1297 case 10:
1298 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 82)) {
1299 auto str = _internal_mutable_amp();
1300 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
1301 CHK_(ptr);
1302 } else
1303 goto handle_unusual;
1304 continue;
1305 // optional string board_name = 11;
1306 case 11:
1307 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 90)) {
1308 auto str = _internal_mutable_board_name();
1309 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
1310 CHK_(ptr);
1311 } else
1312 goto handle_unusual;
1313 continue;
1314 default:
1315 goto handle_unusual;
1316 } // switch
1317 handle_unusual:
1318 if ((tag == 0) || ((tag & 7) == 4)) {
1319 CHK_(ptr);
1320 ctx->SetLastTag(tag);
1321 goto message_done;
1322 }
1323 ptr = UnknownFieldParse(
1324 tag,
1325 _internal_metadata_.mutable_unknown_fields<std::string>(),
1326 ptr, ctx);
1327 CHK_(ptr != nullptr);
1328 } // while
1329 message_done:
1330 _impl_._has_bits_.Or(has_bits);
1331 return ptr;
1332 failure:
1333 ptr = nullptr;
1334 goto message_done;
1335 #undef CHK_
1336 }
1337
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const1338 uint8_t* CastLogsProto_CastDeviceInfo_HardwareInfo::_InternalSerialize(
1339 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
1340 // @@protoc_insertion_point(serialize_to_array_start:metrics.CastLogsProto.CastDeviceInfo.HardwareInfo)
1341 uint32_t cached_has_bits = 0;
1342 (void) cached_has_bits;
1343
1344 cached_has_bits = _impl_._has_bits_[0];
1345 // optional string color = 1;
1346 if (cached_has_bits & 0x00000001u) {
1347 target = stream->WriteStringMaybeAliased(
1348 1, this->_internal_color(), target);
1349 }
1350
1351 // optional string mic = 2;
1352 if (cached_has_bits & 0x00000002u) {
1353 target = stream->WriteStringMaybeAliased(
1354 2, this->_internal_mic(), target);
1355 }
1356
1357 // optional string memory = 3;
1358 if (cached_has_bits & 0x00000004u) {
1359 target = stream->WriteStringMaybeAliased(
1360 3, this->_internal_memory(), target);
1361 }
1362
1363 // optional string nand = 4;
1364 if (cached_has_bits & 0x00000008u) {
1365 target = stream->WriteStringMaybeAliased(
1366 4, this->_internal_nand(), target);
1367 }
1368
1369 // optional string mfg_date = 5;
1370 if (cached_has_bits & 0x00000010u) {
1371 target = stream->WriteStringMaybeAliased(
1372 5, this->_internal_mfg_date(), target);
1373 }
1374
1375 // optional string build_name = 6;
1376 if (cached_has_bits & 0x00000020u) {
1377 target = stream->WriteStringMaybeAliased(
1378 6, this->_internal_build_name(), target);
1379 }
1380
1381 // optional string config = 7;
1382 if (cached_has_bits & 0x00000040u) {
1383 target = stream->WriteStringMaybeAliased(
1384 7, this->_internal_config(), target);
1385 }
1386
1387 // optional string emmc = 8;
1388 if (cached_has_bits & 0x00000080u) {
1389 target = stream->WriteStringMaybeAliased(
1390 8, this->_internal_emmc(), target);
1391 }
1392
1393 // optional string display = 9;
1394 if (cached_has_bits & 0x00000100u) {
1395 target = stream->WriteStringMaybeAliased(
1396 9, this->_internal_display(), target);
1397 }
1398
1399 // optional string amp = 10;
1400 if (cached_has_bits & 0x00000200u) {
1401 target = stream->WriteStringMaybeAliased(
1402 10, this->_internal_amp(), target);
1403 }
1404
1405 // optional string board_name = 11;
1406 if (cached_has_bits & 0x00000400u) {
1407 target = stream->WriteStringMaybeAliased(
1408 11, this->_internal_board_name(), target);
1409 }
1410
1411 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1412 target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
1413 static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
1414 }
1415 // @@protoc_insertion_point(serialize_to_array_end:metrics.CastLogsProto.CastDeviceInfo.HardwareInfo)
1416 return target;
1417 }
1418
ByteSizeLong() const1419 size_t CastLogsProto_CastDeviceInfo_HardwareInfo::ByteSizeLong() const {
1420 // @@protoc_insertion_point(message_byte_size_start:metrics.CastLogsProto.CastDeviceInfo.HardwareInfo)
1421 size_t total_size = 0;
1422
1423 uint32_t cached_has_bits = 0;
1424 // Prevent compiler warnings about cached_has_bits being unused
1425 (void) cached_has_bits;
1426
1427 cached_has_bits = _impl_._has_bits_[0];
1428 if (cached_has_bits & 0x000000ffu) {
1429 // optional string color = 1;
1430 if (cached_has_bits & 0x00000001u) {
1431 total_size += 1 +
1432 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1433 this->_internal_color());
1434 }
1435
1436 // optional string mic = 2;
1437 if (cached_has_bits & 0x00000002u) {
1438 total_size += 1 +
1439 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1440 this->_internal_mic());
1441 }
1442
1443 // optional string memory = 3;
1444 if (cached_has_bits & 0x00000004u) {
1445 total_size += 1 +
1446 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1447 this->_internal_memory());
1448 }
1449
1450 // optional string nand = 4;
1451 if (cached_has_bits & 0x00000008u) {
1452 total_size += 1 +
1453 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1454 this->_internal_nand());
1455 }
1456
1457 // optional string mfg_date = 5;
1458 if (cached_has_bits & 0x00000010u) {
1459 total_size += 1 +
1460 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1461 this->_internal_mfg_date());
1462 }
1463
1464 // optional string build_name = 6;
1465 if (cached_has_bits & 0x00000020u) {
1466 total_size += 1 +
1467 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1468 this->_internal_build_name());
1469 }
1470
1471 // optional string config = 7;
1472 if (cached_has_bits & 0x00000040u) {
1473 total_size += 1 +
1474 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1475 this->_internal_config());
1476 }
1477
1478 // optional string emmc = 8;
1479 if (cached_has_bits & 0x00000080u) {
1480 total_size += 1 +
1481 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1482 this->_internal_emmc());
1483 }
1484
1485 }
1486 if (cached_has_bits & 0x00000700u) {
1487 // optional string display = 9;
1488 if (cached_has_bits & 0x00000100u) {
1489 total_size += 1 +
1490 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1491 this->_internal_display());
1492 }
1493
1494 // optional string amp = 10;
1495 if (cached_has_bits & 0x00000200u) {
1496 total_size += 1 +
1497 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1498 this->_internal_amp());
1499 }
1500
1501 // optional string board_name = 11;
1502 if (cached_has_bits & 0x00000400u) {
1503 total_size += 1 +
1504 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1505 this->_internal_board_name());
1506 }
1507
1508 }
1509 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1510 total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
1511 }
1512 int cached_size = ::_pbi::ToCachedSize(total_size);
1513 SetCachedSize(cached_size);
1514 return total_size;
1515 }
1516
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)1517 void CastLogsProto_CastDeviceInfo_HardwareInfo::CheckTypeAndMergeFrom(
1518 const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
1519 MergeFrom(*::_pbi::DownCast<const CastLogsProto_CastDeviceInfo_HardwareInfo*>(
1520 &from));
1521 }
1522
MergeFrom(const CastLogsProto_CastDeviceInfo_HardwareInfo & from)1523 void CastLogsProto_CastDeviceInfo_HardwareInfo::MergeFrom(const CastLogsProto_CastDeviceInfo_HardwareInfo& from) {
1524 CastLogsProto_CastDeviceInfo_HardwareInfo* const _this = this;
1525 // @@protoc_insertion_point(class_specific_merge_from_start:metrics.CastLogsProto.CastDeviceInfo.HardwareInfo)
1526 GOOGLE_DCHECK_NE(&from, _this);
1527 uint32_t cached_has_bits = 0;
1528 (void) cached_has_bits;
1529
1530 cached_has_bits = from._impl_._has_bits_[0];
1531 if (cached_has_bits & 0x000000ffu) {
1532 if (cached_has_bits & 0x00000001u) {
1533 _this->_internal_set_color(from._internal_color());
1534 }
1535 if (cached_has_bits & 0x00000002u) {
1536 _this->_internal_set_mic(from._internal_mic());
1537 }
1538 if (cached_has_bits & 0x00000004u) {
1539 _this->_internal_set_memory(from._internal_memory());
1540 }
1541 if (cached_has_bits & 0x00000008u) {
1542 _this->_internal_set_nand(from._internal_nand());
1543 }
1544 if (cached_has_bits & 0x00000010u) {
1545 _this->_internal_set_mfg_date(from._internal_mfg_date());
1546 }
1547 if (cached_has_bits & 0x00000020u) {
1548 _this->_internal_set_build_name(from._internal_build_name());
1549 }
1550 if (cached_has_bits & 0x00000040u) {
1551 _this->_internal_set_config(from._internal_config());
1552 }
1553 if (cached_has_bits & 0x00000080u) {
1554 _this->_internal_set_emmc(from._internal_emmc());
1555 }
1556 }
1557 if (cached_has_bits & 0x00000700u) {
1558 if (cached_has_bits & 0x00000100u) {
1559 _this->_internal_set_display(from._internal_display());
1560 }
1561 if (cached_has_bits & 0x00000200u) {
1562 _this->_internal_set_amp(from._internal_amp());
1563 }
1564 if (cached_has_bits & 0x00000400u) {
1565 _this->_internal_set_board_name(from._internal_board_name());
1566 }
1567 }
1568 _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
1569 }
1570
CopyFrom(const CastLogsProto_CastDeviceInfo_HardwareInfo & from)1571 void CastLogsProto_CastDeviceInfo_HardwareInfo::CopyFrom(const CastLogsProto_CastDeviceInfo_HardwareInfo& from) {
1572 // @@protoc_insertion_point(class_specific_copy_from_start:metrics.CastLogsProto.CastDeviceInfo.HardwareInfo)
1573 if (&from == this) return;
1574 Clear();
1575 MergeFrom(from);
1576 }
1577
IsInitialized() const1578 bool CastLogsProto_CastDeviceInfo_HardwareInfo::IsInitialized() const {
1579 return true;
1580 }
1581
InternalSwap(CastLogsProto_CastDeviceInfo_HardwareInfo * other)1582 void CastLogsProto_CastDeviceInfo_HardwareInfo::InternalSwap(CastLogsProto_CastDeviceInfo_HardwareInfo* other) {
1583 using std::swap;
1584 auto* lhs_arena = GetArenaForAllocation();
1585 auto* rhs_arena = other->GetArenaForAllocation();
1586 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1587 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1588 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
1589 &_impl_.color_, lhs_arena,
1590 &other->_impl_.color_, rhs_arena
1591 );
1592 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
1593 &_impl_.mic_, lhs_arena,
1594 &other->_impl_.mic_, rhs_arena
1595 );
1596 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
1597 &_impl_.memory_, lhs_arena,
1598 &other->_impl_.memory_, rhs_arena
1599 );
1600 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
1601 &_impl_.nand_, lhs_arena,
1602 &other->_impl_.nand_, rhs_arena
1603 );
1604 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
1605 &_impl_.mfg_date_, lhs_arena,
1606 &other->_impl_.mfg_date_, rhs_arena
1607 );
1608 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
1609 &_impl_.build_name_, lhs_arena,
1610 &other->_impl_.build_name_, rhs_arena
1611 );
1612 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
1613 &_impl_.config_, lhs_arena,
1614 &other->_impl_.config_, rhs_arena
1615 );
1616 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
1617 &_impl_.emmc_, lhs_arena,
1618 &other->_impl_.emmc_, rhs_arena
1619 );
1620 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
1621 &_impl_.display_, lhs_arena,
1622 &other->_impl_.display_, rhs_arena
1623 );
1624 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
1625 &_impl_.amp_, lhs_arena,
1626 &other->_impl_.amp_, rhs_arena
1627 );
1628 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
1629 &_impl_.board_name_, lhs_arena,
1630 &other->_impl_.board_name_, rhs_arena
1631 );
1632 }
1633
GetTypeName() const1634 std::string CastLogsProto_CastDeviceInfo_HardwareInfo::GetTypeName() const {
1635 return "metrics.CastLogsProto.CastDeviceInfo.HardwareInfo";
1636 }
1637
1638
1639 // ===================================================================
1640
1641 class CastLogsProto_CastDeviceInfo::_Internal {
1642 public:
1643 using HasBits = decltype(std::declval<CastLogsProto_CastDeviceInfo>()._impl_._has_bits_);
set_has_type(HasBits * has_bits)1644 static void set_has_type(HasBits* has_bits) {
1645 (*has_bits)[0] |= 32u;
1646 }
set_has_hardware_revision(HasBits * has_bits)1647 static void set_has_hardware_revision(HasBits* has_bits) {
1648 (*has_bits)[0] |= 1u;
1649 }
set_has_manufacturer(HasBits * has_bits)1650 static void set_has_manufacturer(HasBits* has_bits) {
1651 (*has_bits)[0] |= 2u;
1652 }
set_has_model(HasBits * has_bits)1653 static void set_has_model(HasBits* has_bits) {
1654 (*has_bits)[0] |= 4u;
1655 }
set_has_serial_number(HasBits * has_bits)1656 static void set_has_serial_number(HasBits* has_bits) {
1657 (*has_bits)[0] |= 8u;
1658 }
1659 static const ::metrics::CastLogsProto_CastDeviceInfo_HardwareInfo& hardware_info(const CastLogsProto_CastDeviceInfo* msg);
set_has_hardware_info(HasBits * has_bits)1660 static void set_has_hardware_info(HasBits* has_bits) {
1661 (*has_bits)[0] |= 16u;
1662 }
1663 };
1664
1665 const ::metrics::CastLogsProto_CastDeviceInfo_HardwareInfo&
hardware_info(const CastLogsProto_CastDeviceInfo * msg)1666 CastLogsProto_CastDeviceInfo::_Internal::hardware_info(const CastLogsProto_CastDeviceInfo* msg) {
1667 return *msg->_impl_.hardware_info_;
1668 }
CastLogsProto_CastDeviceInfo(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)1669 CastLogsProto_CastDeviceInfo::CastLogsProto_CastDeviceInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena,
1670 bool is_message_owned)
1671 : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
1672 SharedCtor(arena, is_message_owned);
1673 // @@protoc_insertion_point(arena_constructor:metrics.CastLogsProto.CastDeviceInfo)
1674 }
CastLogsProto_CastDeviceInfo(const CastLogsProto_CastDeviceInfo & from)1675 CastLogsProto_CastDeviceInfo::CastLogsProto_CastDeviceInfo(const CastLogsProto_CastDeviceInfo& from)
1676 : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
1677 CastLogsProto_CastDeviceInfo* const _this = this; (void)_this;
1678 new (&_impl_) Impl_{
1679 decltype(_impl_._has_bits_){from._impl_._has_bits_}
1680 , /*decltype(_impl_._cached_size_)*/{}
1681 , decltype(_impl_.hardware_revision_){}
1682 , decltype(_impl_.manufacturer_){}
1683 , decltype(_impl_.model_){}
1684 , decltype(_impl_.serial_number_){}
1685 , decltype(_impl_.hardware_info_){nullptr}
1686 , decltype(_impl_.type_){}};
1687
1688 _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
1689 _impl_.hardware_revision_.InitDefault();
1690 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1691 _impl_.hardware_revision_.Set("", GetArenaForAllocation());
1692 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1693 if (from._internal_has_hardware_revision()) {
1694 _this->_impl_.hardware_revision_.Set(from._internal_hardware_revision(),
1695 _this->GetArenaForAllocation());
1696 }
1697 _impl_.manufacturer_.InitDefault();
1698 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1699 _impl_.manufacturer_.Set("", GetArenaForAllocation());
1700 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1701 if (from._internal_has_manufacturer()) {
1702 _this->_impl_.manufacturer_.Set(from._internal_manufacturer(),
1703 _this->GetArenaForAllocation());
1704 }
1705 _impl_.model_.InitDefault();
1706 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1707 _impl_.model_.Set("", GetArenaForAllocation());
1708 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1709 if (from._internal_has_model()) {
1710 _this->_impl_.model_.Set(from._internal_model(),
1711 _this->GetArenaForAllocation());
1712 }
1713 _impl_.serial_number_.InitDefault();
1714 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1715 _impl_.serial_number_.Set("", GetArenaForAllocation());
1716 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1717 if (from._internal_has_serial_number()) {
1718 _this->_impl_.serial_number_.Set(from._internal_serial_number(),
1719 _this->GetArenaForAllocation());
1720 }
1721 if (from._internal_has_hardware_info()) {
1722 _this->_impl_.hardware_info_ = new ::metrics::CastLogsProto_CastDeviceInfo_HardwareInfo(*from._impl_.hardware_info_);
1723 }
1724 _this->_impl_.type_ = from._impl_.type_;
1725 // @@protoc_insertion_point(copy_constructor:metrics.CastLogsProto.CastDeviceInfo)
1726 }
1727
SharedCtor(::_pb::Arena * arena,bool is_message_owned)1728 inline void CastLogsProto_CastDeviceInfo::SharedCtor(
1729 ::_pb::Arena* arena, bool is_message_owned) {
1730 (void)arena;
1731 (void)is_message_owned;
1732 new (&_impl_) Impl_{
1733 decltype(_impl_._has_bits_){}
1734 , /*decltype(_impl_._cached_size_)*/{}
1735 , decltype(_impl_.hardware_revision_){}
1736 , decltype(_impl_.manufacturer_){}
1737 , decltype(_impl_.model_){}
1738 , decltype(_impl_.serial_number_){}
1739 , decltype(_impl_.hardware_info_){nullptr}
1740 , decltype(_impl_.type_){0}
1741 };
1742 _impl_.hardware_revision_.InitDefault();
1743 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1744 _impl_.hardware_revision_.Set("", GetArenaForAllocation());
1745 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1746 _impl_.manufacturer_.InitDefault();
1747 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1748 _impl_.manufacturer_.Set("", GetArenaForAllocation());
1749 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1750 _impl_.model_.InitDefault();
1751 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1752 _impl_.model_.Set("", GetArenaForAllocation());
1753 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1754 _impl_.serial_number_.InitDefault();
1755 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1756 _impl_.serial_number_.Set("", GetArenaForAllocation());
1757 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1758 }
1759
~CastLogsProto_CastDeviceInfo()1760 CastLogsProto_CastDeviceInfo::~CastLogsProto_CastDeviceInfo() {
1761 // @@protoc_insertion_point(destructor:metrics.CastLogsProto.CastDeviceInfo)
1762 if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
1763 (void)arena;
1764 return;
1765 }
1766 SharedDtor();
1767 }
1768
SharedDtor()1769 inline void CastLogsProto_CastDeviceInfo::SharedDtor() {
1770 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
1771 _impl_.hardware_revision_.Destroy();
1772 _impl_.manufacturer_.Destroy();
1773 _impl_.model_.Destroy();
1774 _impl_.serial_number_.Destroy();
1775 if (this != internal_default_instance()) delete _impl_.hardware_info_;
1776 }
1777
SetCachedSize(int size) const1778 void CastLogsProto_CastDeviceInfo::SetCachedSize(int size) const {
1779 _impl_._cached_size_.Set(size);
1780 }
1781
Clear()1782 void CastLogsProto_CastDeviceInfo::Clear() {
1783 // @@protoc_insertion_point(message_clear_start:metrics.CastLogsProto.CastDeviceInfo)
1784 uint32_t cached_has_bits = 0;
1785 // Prevent compiler warnings about cached_has_bits being unused
1786 (void) cached_has_bits;
1787
1788 cached_has_bits = _impl_._has_bits_[0];
1789 if (cached_has_bits & 0x0000001fu) {
1790 if (cached_has_bits & 0x00000001u) {
1791 _impl_.hardware_revision_.ClearNonDefaultToEmpty();
1792 }
1793 if (cached_has_bits & 0x00000002u) {
1794 _impl_.manufacturer_.ClearNonDefaultToEmpty();
1795 }
1796 if (cached_has_bits & 0x00000004u) {
1797 _impl_.model_.ClearNonDefaultToEmpty();
1798 }
1799 if (cached_has_bits & 0x00000008u) {
1800 _impl_.serial_number_.ClearNonDefaultToEmpty();
1801 }
1802 if (cached_has_bits & 0x00000010u) {
1803 GOOGLE_DCHECK(_impl_.hardware_info_ != nullptr);
1804 _impl_.hardware_info_->Clear();
1805 }
1806 }
1807 _impl_.type_ = 0;
1808 _impl_._has_bits_.Clear();
1809 _internal_metadata_.Clear<std::string>();
1810 }
1811
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)1812 const char* CastLogsProto_CastDeviceInfo::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
1813 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1814 _Internal::HasBits has_bits{};
1815 while (!ctx->Done(&ptr)) {
1816 uint32_t tag;
1817 ptr = ::_pbi::ReadTag(ptr, &tag);
1818 switch (tag >> 3) {
1819 // optional .metrics.CastLogsProto.CastDeviceInfo.CastProductType type = 1;
1820 case 1:
1821 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
1822 uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
1823 CHK_(ptr);
1824 if (PROTOBUF_PREDICT_TRUE(::metrics::CastLogsProto_CastDeviceInfo_CastProductType_IsValid(val))) {
1825 _internal_set_type(static_cast<::metrics::CastLogsProto_CastDeviceInfo_CastProductType>(val));
1826 } else {
1827 ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields());
1828 }
1829 } else
1830 goto handle_unusual;
1831 continue;
1832 // optional string hardware_revision = 2;
1833 case 2:
1834 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
1835 auto str = _internal_mutable_hardware_revision();
1836 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
1837 CHK_(ptr);
1838 } else
1839 goto handle_unusual;
1840 continue;
1841 // optional string manufacturer = 3;
1842 case 3:
1843 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
1844 auto str = _internal_mutable_manufacturer();
1845 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
1846 CHK_(ptr);
1847 } else
1848 goto handle_unusual;
1849 continue;
1850 // optional string model = 4;
1851 case 4:
1852 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
1853 auto str = _internal_mutable_model();
1854 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
1855 CHK_(ptr);
1856 } else
1857 goto handle_unusual;
1858 continue;
1859 // optional string serial_number = 5;
1860 case 5:
1861 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) {
1862 auto str = _internal_mutable_serial_number();
1863 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
1864 CHK_(ptr);
1865 } else
1866 goto handle_unusual;
1867 continue;
1868 // optional .metrics.CastLogsProto.CastDeviceInfo.HardwareInfo hardware_info = 6;
1869 case 6:
1870 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) {
1871 ptr = ctx->ParseMessage(_internal_mutable_hardware_info(), ptr);
1872 CHK_(ptr);
1873 } else
1874 goto handle_unusual;
1875 continue;
1876 default:
1877 goto handle_unusual;
1878 } // switch
1879 handle_unusual:
1880 if ((tag == 0) || ((tag & 7) == 4)) {
1881 CHK_(ptr);
1882 ctx->SetLastTag(tag);
1883 goto message_done;
1884 }
1885 ptr = UnknownFieldParse(
1886 tag,
1887 _internal_metadata_.mutable_unknown_fields<std::string>(),
1888 ptr, ctx);
1889 CHK_(ptr != nullptr);
1890 } // while
1891 message_done:
1892 _impl_._has_bits_.Or(has_bits);
1893 return ptr;
1894 failure:
1895 ptr = nullptr;
1896 goto message_done;
1897 #undef CHK_
1898 }
1899
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const1900 uint8_t* CastLogsProto_CastDeviceInfo::_InternalSerialize(
1901 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
1902 // @@protoc_insertion_point(serialize_to_array_start:metrics.CastLogsProto.CastDeviceInfo)
1903 uint32_t cached_has_bits = 0;
1904 (void) cached_has_bits;
1905
1906 cached_has_bits = _impl_._has_bits_[0];
1907 // optional .metrics.CastLogsProto.CastDeviceInfo.CastProductType type = 1;
1908 if (cached_has_bits & 0x00000020u) {
1909 target = stream->EnsureSpace(target);
1910 target = ::_pbi::WireFormatLite::WriteEnumToArray(
1911 1, this->_internal_type(), target);
1912 }
1913
1914 // optional string hardware_revision = 2;
1915 if (cached_has_bits & 0x00000001u) {
1916 target = stream->WriteStringMaybeAliased(
1917 2, this->_internal_hardware_revision(), target);
1918 }
1919
1920 // optional string manufacturer = 3;
1921 if (cached_has_bits & 0x00000002u) {
1922 target = stream->WriteStringMaybeAliased(
1923 3, this->_internal_manufacturer(), target);
1924 }
1925
1926 // optional string model = 4;
1927 if (cached_has_bits & 0x00000004u) {
1928 target = stream->WriteStringMaybeAliased(
1929 4, this->_internal_model(), target);
1930 }
1931
1932 // optional string serial_number = 5;
1933 if (cached_has_bits & 0x00000008u) {
1934 target = stream->WriteStringMaybeAliased(
1935 5, this->_internal_serial_number(), target);
1936 }
1937
1938 // optional .metrics.CastLogsProto.CastDeviceInfo.HardwareInfo hardware_info = 6;
1939 if (cached_has_bits & 0x00000010u) {
1940 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1941 InternalWriteMessage(6, _Internal::hardware_info(this),
1942 _Internal::hardware_info(this).GetCachedSize(), target, stream);
1943 }
1944
1945 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1946 target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
1947 static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
1948 }
1949 // @@protoc_insertion_point(serialize_to_array_end:metrics.CastLogsProto.CastDeviceInfo)
1950 return target;
1951 }
1952
ByteSizeLong() const1953 size_t CastLogsProto_CastDeviceInfo::ByteSizeLong() const {
1954 // @@protoc_insertion_point(message_byte_size_start:metrics.CastLogsProto.CastDeviceInfo)
1955 size_t total_size = 0;
1956
1957 uint32_t cached_has_bits = 0;
1958 // Prevent compiler warnings about cached_has_bits being unused
1959 (void) cached_has_bits;
1960
1961 cached_has_bits = _impl_._has_bits_[0];
1962 if (cached_has_bits & 0x0000003fu) {
1963 // optional string hardware_revision = 2;
1964 if (cached_has_bits & 0x00000001u) {
1965 total_size += 1 +
1966 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1967 this->_internal_hardware_revision());
1968 }
1969
1970 // optional string manufacturer = 3;
1971 if (cached_has_bits & 0x00000002u) {
1972 total_size += 1 +
1973 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1974 this->_internal_manufacturer());
1975 }
1976
1977 // optional string model = 4;
1978 if (cached_has_bits & 0x00000004u) {
1979 total_size += 1 +
1980 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1981 this->_internal_model());
1982 }
1983
1984 // optional string serial_number = 5;
1985 if (cached_has_bits & 0x00000008u) {
1986 total_size += 1 +
1987 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1988 this->_internal_serial_number());
1989 }
1990
1991 // optional .metrics.CastLogsProto.CastDeviceInfo.HardwareInfo hardware_info = 6;
1992 if (cached_has_bits & 0x00000010u) {
1993 total_size += 1 +
1994 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
1995 *_impl_.hardware_info_);
1996 }
1997
1998 // optional .metrics.CastLogsProto.CastDeviceInfo.CastProductType type = 1;
1999 if (cached_has_bits & 0x00000020u) {
2000 total_size += 1 +
2001 ::_pbi::WireFormatLite::EnumSize(this->_internal_type());
2002 }
2003
2004 }
2005 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2006 total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
2007 }
2008 int cached_size = ::_pbi::ToCachedSize(total_size);
2009 SetCachedSize(cached_size);
2010 return total_size;
2011 }
2012
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)2013 void CastLogsProto_CastDeviceInfo::CheckTypeAndMergeFrom(
2014 const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
2015 MergeFrom(*::_pbi::DownCast<const CastLogsProto_CastDeviceInfo*>(
2016 &from));
2017 }
2018
MergeFrom(const CastLogsProto_CastDeviceInfo & from)2019 void CastLogsProto_CastDeviceInfo::MergeFrom(const CastLogsProto_CastDeviceInfo& from) {
2020 CastLogsProto_CastDeviceInfo* const _this = this;
2021 // @@protoc_insertion_point(class_specific_merge_from_start:metrics.CastLogsProto.CastDeviceInfo)
2022 GOOGLE_DCHECK_NE(&from, _this);
2023 uint32_t cached_has_bits = 0;
2024 (void) cached_has_bits;
2025
2026 cached_has_bits = from._impl_._has_bits_[0];
2027 if (cached_has_bits & 0x0000003fu) {
2028 if (cached_has_bits & 0x00000001u) {
2029 _this->_internal_set_hardware_revision(from._internal_hardware_revision());
2030 }
2031 if (cached_has_bits & 0x00000002u) {
2032 _this->_internal_set_manufacturer(from._internal_manufacturer());
2033 }
2034 if (cached_has_bits & 0x00000004u) {
2035 _this->_internal_set_model(from._internal_model());
2036 }
2037 if (cached_has_bits & 0x00000008u) {
2038 _this->_internal_set_serial_number(from._internal_serial_number());
2039 }
2040 if (cached_has_bits & 0x00000010u) {
2041 _this->_internal_mutable_hardware_info()->::metrics::CastLogsProto_CastDeviceInfo_HardwareInfo::MergeFrom(
2042 from._internal_hardware_info());
2043 }
2044 if (cached_has_bits & 0x00000020u) {
2045 _this->_impl_.type_ = from._impl_.type_;
2046 }
2047 _this->_impl_._has_bits_[0] |= cached_has_bits;
2048 }
2049 _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
2050 }
2051
CopyFrom(const CastLogsProto_CastDeviceInfo & from)2052 void CastLogsProto_CastDeviceInfo::CopyFrom(const CastLogsProto_CastDeviceInfo& from) {
2053 // @@protoc_insertion_point(class_specific_copy_from_start:metrics.CastLogsProto.CastDeviceInfo)
2054 if (&from == this) return;
2055 Clear();
2056 MergeFrom(from);
2057 }
2058
IsInitialized() const2059 bool CastLogsProto_CastDeviceInfo::IsInitialized() const {
2060 return true;
2061 }
2062
InternalSwap(CastLogsProto_CastDeviceInfo * other)2063 void CastLogsProto_CastDeviceInfo::InternalSwap(CastLogsProto_CastDeviceInfo* other) {
2064 using std::swap;
2065 auto* lhs_arena = GetArenaForAllocation();
2066 auto* rhs_arena = other->GetArenaForAllocation();
2067 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2068 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
2069 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
2070 &_impl_.hardware_revision_, lhs_arena,
2071 &other->_impl_.hardware_revision_, rhs_arena
2072 );
2073 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
2074 &_impl_.manufacturer_, lhs_arena,
2075 &other->_impl_.manufacturer_, rhs_arena
2076 );
2077 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
2078 &_impl_.model_, lhs_arena,
2079 &other->_impl_.model_, rhs_arena
2080 );
2081 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
2082 &_impl_.serial_number_, lhs_arena,
2083 &other->_impl_.serial_number_, rhs_arena
2084 );
2085 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
2086 PROTOBUF_FIELD_OFFSET(CastLogsProto_CastDeviceInfo, _impl_.type_)
2087 + sizeof(CastLogsProto_CastDeviceInfo::_impl_.type_)
2088 - PROTOBUF_FIELD_OFFSET(CastLogsProto_CastDeviceInfo, _impl_.hardware_info_)>(
2089 reinterpret_cast<char*>(&_impl_.hardware_info_),
2090 reinterpret_cast<char*>(&other->_impl_.hardware_info_));
2091 }
2092
GetTypeName() const2093 std::string CastLogsProto_CastDeviceInfo::GetTypeName() const {
2094 return "metrics.CastLogsProto.CastDeviceInfo";
2095 }
2096
2097
2098 // ===================================================================
2099
2100 class CastLogsProto_CastConnectionInfo_SenderInfo::_Internal {
2101 public:
2102 using HasBits = decltype(std::declval<CastLogsProto_CastConnectionInfo_SenderInfo>()._impl_._has_bits_);
set_has_sender_device_id(HasBits * has_bits)2103 static void set_has_sender_device_id(HasBits* has_bits) {
2104 (*has_bits)[0] |= 16u;
2105 }
set_has_sdk_type(HasBits * has_bits)2106 static void set_has_sdk_type(HasBits* has_bits) {
2107 (*has_bits)[0] |= 32u;
2108 }
set_has_version(HasBits * has_bits)2109 static void set_has_version(HasBits* has_bits) {
2110 (*has_bits)[0] |= 1u;
2111 }
set_has_chrome_browser_version(HasBits * has_bits)2112 static void set_has_chrome_browser_version(HasBits* has_bits) {
2113 (*has_bits)[0] |= 2u;
2114 }
set_has_platform(HasBits * has_bits)2115 static void set_has_platform(HasBits* has_bits) {
2116 (*has_bits)[0] |= 64u;
2117 }
set_has_system_version(HasBits * has_bits)2118 static void set_has_system_version(HasBits* has_bits) {
2119 (*has_bits)[0] |= 4u;
2120 }
set_has_transport_connection_type(HasBits * has_bits)2121 static void set_has_transport_connection_type(HasBits* has_bits) {
2122 (*has_bits)[0] |= 128u;
2123 }
set_has_model(HasBits * has_bits)2124 static void set_has_model(HasBits* has_bits) {
2125 (*has_bits)[0] |= 8u;
2126 }
set_has_sender_local_ip_fragment(HasBits * has_bits)2127 static void set_has_sender_local_ip_fragment(HasBits* has_bits) {
2128 (*has_bits)[0] |= 256u;
2129 }
2130 };
2131
CastLogsProto_CastConnectionInfo_SenderInfo(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)2132 CastLogsProto_CastConnectionInfo_SenderInfo::CastLogsProto_CastConnectionInfo_SenderInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena,
2133 bool is_message_owned)
2134 : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
2135 SharedCtor(arena, is_message_owned);
2136 // @@protoc_insertion_point(arena_constructor:metrics.CastLogsProto.CastConnectionInfo.SenderInfo)
2137 }
CastLogsProto_CastConnectionInfo_SenderInfo(const CastLogsProto_CastConnectionInfo_SenderInfo & from)2138 CastLogsProto_CastConnectionInfo_SenderInfo::CastLogsProto_CastConnectionInfo_SenderInfo(const CastLogsProto_CastConnectionInfo_SenderInfo& from)
2139 : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
2140 CastLogsProto_CastConnectionInfo_SenderInfo* const _this = this; (void)_this;
2141 new (&_impl_) Impl_{
2142 decltype(_impl_._has_bits_){from._impl_._has_bits_}
2143 , /*decltype(_impl_._cached_size_)*/{}
2144 , decltype(_impl_.version_){}
2145 , decltype(_impl_.chrome_browser_version_){}
2146 , decltype(_impl_.system_version_){}
2147 , decltype(_impl_.model_){}
2148 , decltype(_impl_.sender_device_id_){}
2149 , decltype(_impl_.sdk_type_){}
2150 , decltype(_impl_.platform_){}
2151 , decltype(_impl_.transport_connection_type_){}
2152 , decltype(_impl_.sender_local_ip_fragment_){}};
2153
2154 _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
2155 _impl_.version_.InitDefault();
2156 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
2157 _impl_.version_.Set("", GetArenaForAllocation());
2158 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
2159 if (from._internal_has_version()) {
2160 _this->_impl_.version_.Set(from._internal_version(),
2161 _this->GetArenaForAllocation());
2162 }
2163 _impl_.chrome_browser_version_.InitDefault();
2164 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
2165 _impl_.chrome_browser_version_.Set("", GetArenaForAllocation());
2166 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
2167 if (from._internal_has_chrome_browser_version()) {
2168 _this->_impl_.chrome_browser_version_.Set(from._internal_chrome_browser_version(),
2169 _this->GetArenaForAllocation());
2170 }
2171 _impl_.system_version_.InitDefault();
2172 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
2173 _impl_.system_version_.Set("", GetArenaForAllocation());
2174 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
2175 if (from._internal_has_system_version()) {
2176 _this->_impl_.system_version_.Set(from._internal_system_version(),
2177 _this->GetArenaForAllocation());
2178 }
2179 _impl_.model_.InitDefault();
2180 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
2181 _impl_.model_.Set("", GetArenaForAllocation());
2182 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
2183 if (from._internal_has_model()) {
2184 _this->_impl_.model_.Set(from._internal_model(),
2185 _this->GetArenaForAllocation());
2186 }
2187 ::memcpy(&_impl_.sender_device_id_, &from._impl_.sender_device_id_,
2188 static_cast<size_t>(reinterpret_cast<char*>(&_impl_.sender_local_ip_fragment_) -
2189 reinterpret_cast<char*>(&_impl_.sender_device_id_)) + sizeof(_impl_.sender_local_ip_fragment_));
2190 // @@protoc_insertion_point(copy_constructor:metrics.CastLogsProto.CastConnectionInfo.SenderInfo)
2191 }
2192
SharedCtor(::_pb::Arena * arena,bool is_message_owned)2193 inline void CastLogsProto_CastConnectionInfo_SenderInfo::SharedCtor(
2194 ::_pb::Arena* arena, bool is_message_owned) {
2195 (void)arena;
2196 (void)is_message_owned;
2197 new (&_impl_) Impl_{
2198 decltype(_impl_._has_bits_){}
2199 , /*decltype(_impl_._cached_size_)*/{}
2200 , decltype(_impl_.version_){}
2201 , decltype(_impl_.chrome_browser_version_){}
2202 , decltype(_impl_.system_version_){}
2203 , decltype(_impl_.model_){}
2204 , decltype(_impl_.sender_device_id_){uint64_t{0u}}
2205 , decltype(_impl_.sdk_type_){0}
2206 , decltype(_impl_.platform_){0}
2207 , decltype(_impl_.transport_connection_type_){0}
2208 , decltype(_impl_.sender_local_ip_fragment_){0}
2209 };
2210 _impl_.version_.InitDefault();
2211 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
2212 _impl_.version_.Set("", GetArenaForAllocation());
2213 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
2214 _impl_.chrome_browser_version_.InitDefault();
2215 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
2216 _impl_.chrome_browser_version_.Set("", GetArenaForAllocation());
2217 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
2218 _impl_.system_version_.InitDefault();
2219 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
2220 _impl_.system_version_.Set("", GetArenaForAllocation());
2221 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
2222 _impl_.model_.InitDefault();
2223 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
2224 _impl_.model_.Set("", GetArenaForAllocation());
2225 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
2226 }
2227
~CastLogsProto_CastConnectionInfo_SenderInfo()2228 CastLogsProto_CastConnectionInfo_SenderInfo::~CastLogsProto_CastConnectionInfo_SenderInfo() {
2229 // @@protoc_insertion_point(destructor:metrics.CastLogsProto.CastConnectionInfo.SenderInfo)
2230 if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
2231 (void)arena;
2232 return;
2233 }
2234 SharedDtor();
2235 }
2236
SharedDtor()2237 inline void CastLogsProto_CastConnectionInfo_SenderInfo::SharedDtor() {
2238 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
2239 _impl_.version_.Destroy();
2240 _impl_.chrome_browser_version_.Destroy();
2241 _impl_.system_version_.Destroy();
2242 _impl_.model_.Destroy();
2243 }
2244
SetCachedSize(int size) const2245 void CastLogsProto_CastConnectionInfo_SenderInfo::SetCachedSize(int size) const {
2246 _impl_._cached_size_.Set(size);
2247 }
2248
Clear()2249 void CastLogsProto_CastConnectionInfo_SenderInfo::Clear() {
2250 // @@protoc_insertion_point(message_clear_start:metrics.CastLogsProto.CastConnectionInfo.SenderInfo)
2251 uint32_t cached_has_bits = 0;
2252 // Prevent compiler warnings about cached_has_bits being unused
2253 (void) cached_has_bits;
2254
2255 cached_has_bits = _impl_._has_bits_[0];
2256 if (cached_has_bits & 0x0000000fu) {
2257 if (cached_has_bits & 0x00000001u) {
2258 _impl_.version_.ClearNonDefaultToEmpty();
2259 }
2260 if (cached_has_bits & 0x00000002u) {
2261 _impl_.chrome_browser_version_.ClearNonDefaultToEmpty();
2262 }
2263 if (cached_has_bits & 0x00000004u) {
2264 _impl_.system_version_.ClearNonDefaultToEmpty();
2265 }
2266 if (cached_has_bits & 0x00000008u) {
2267 _impl_.model_.ClearNonDefaultToEmpty();
2268 }
2269 }
2270 if (cached_has_bits & 0x000000f0u) {
2271 ::memset(&_impl_.sender_device_id_, 0, static_cast<size_t>(
2272 reinterpret_cast<char*>(&_impl_.transport_connection_type_) -
2273 reinterpret_cast<char*>(&_impl_.sender_device_id_)) + sizeof(_impl_.transport_connection_type_));
2274 }
2275 _impl_.sender_local_ip_fragment_ = 0;
2276 _impl_._has_bits_.Clear();
2277 _internal_metadata_.Clear<std::string>();
2278 }
2279
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)2280 const char* CastLogsProto_CastConnectionInfo_SenderInfo::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
2281 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
2282 _Internal::HasBits has_bits{};
2283 while (!ctx->Done(&ptr)) {
2284 uint32_t tag;
2285 ptr = ::_pbi::ReadTag(ptr, &tag);
2286 switch (tag >> 3) {
2287 // optional fixed64 sender_device_id = 1;
2288 case 1:
2289 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 9)) {
2290 _Internal::set_has_sender_device_id(&has_bits);
2291 _impl_.sender_device_id_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<uint64_t>(ptr);
2292 ptr += sizeof(uint64_t);
2293 } else
2294 goto handle_unusual;
2295 continue;
2296 // optional .metrics.CastLogsProto.CastConnectionInfo.SenderInfo.SDKType sdk_type = 2;
2297 case 2:
2298 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
2299 uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
2300 CHK_(ptr);
2301 if (PROTOBUF_PREDICT_TRUE(::metrics::CastLogsProto_CastConnectionInfo_SenderInfo_SDKType_IsValid(val))) {
2302 _internal_set_sdk_type(static_cast<::metrics::CastLogsProto_CastConnectionInfo_SenderInfo_SDKType>(val));
2303 } else {
2304 ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields());
2305 }
2306 } else
2307 goto handle_unusual;
2308 continue;
2309 // optional string version = 3;
2310 case 3:
2311 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
2312 auto str = _internal_mutable_version();
2313 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
2314 CHK_(ptr);
2315 } else
2316 goto handle_unusual;
2317 continue;
2318 // optional string chrome_browser_version = 4;
2319 case 4:
2320 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
2321 auto str = _internal_mutable_chrome_browser_version();
2322 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
2323 CHK_(ptr);
2324 } else
2325 goto handle_unusual;
2326 continue;
2327 // optional .metrics.CastLogsProto.CastConnectionInfo.SenderInfo.Platform platform = 5;
2328 case 5:
2329 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
2330 uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
2331 CHK_(ptr);
2332 if (PROTOBUF_PREDICT_TRUE(::metrics::CastLogsProto_CastConnectionInfo_SenderInfo_Platform_IsValid(val))) {
2333 _internal_set_platform(static_cast<::metrics::CastLogsProto_CastConnectionInfo_SenderInfo_Platform>(val));
2334 } else {
2335 ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(5, val, mutable_unknown_fields());
2336 }
2337 } else
2338 goto handle_unusual;
2339 continue;
2340 // optional string system_version = 6;
2341 case 6:
2342 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) {
2343 auto str = _internal_mutable_system_version();
2344 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
2345 CHK_(ptr);
2346 } else
2347 goto handle_unusual;
2348 continue;
2349 // optional .metrics.CastLogsProto.CastConnectionInfo.SenderInfo.ConnectionType transport_connection_type = 7;
2350 case 7:
2351 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) {
2352 uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
2353 CHK_(ptr);
2354 if (PROTOBUF_PREDICT_TRUE(::metrics::CastLogsProto_CastConnectionInfo_SenderInfo_ConnectionType_IsValid(val))) {
2355 _internal_set_transport_connection_type(static_cast<::metrics::CastLogsProto_CastConnectionInfo_SenderInfo_ConnectionType>(val));
2356 } else {
2357 ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(7, val, mutable_unknown_fields());
2358 }
2359 } else
2360 goto handle_unusual;
2361 continue;
2362 // optional string model = 8;
2363 case 8:
2364 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 66)) {
2365 auto str = _internal_mutable_model();
2366 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
2367 CHK_(ptr);
2368 } else
2369 goto handle_unusual;
2370 continue;
2371 // optional int32 sender_local_ip_fragment = 9;
2372 case 9:
2373 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 72)) {
2374 _Internal::set_has_sender_local_ip_fragment(&has_bits);
2375 _impl_.sender_local_ip_fragment_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
2376 CHK_(ptr);
2377 } else
2378 goto handle_unusual;
2379 continue;
2380 default:
2381 goto handle_unusual;
2382 } // switch
2383 handle_unusual:
2384 if ((tag == 0) || ((tag & 7) == 4)) {
2385 CHK_(ptr);
2386 ctx->SetLastTag(tag);
2387 goto message_done;
2388 }
2389 ptr = UnknownFieldParse(
2390 tag,
2391 _internal_metadata_.mutable_unknown_fields<std::string>(),
2392 ptr, ctx);
2393 CHK_(ptr != nullptr);
2394 } // while
2395 message_done:
2396 _impl_._has_bits_.Or(has_bits);
2397 return ptr;
2398 failure:
2399 ptr = nullptr;
2400 goto message_done;
2401 #undef CHK_
2402 }
2403
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const2404 uint8_t* CastLogsProto_CastConnectionInfo_SenderInfo::_InternalSerialize(
2405 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
2406 // @@protoc_insertion_point(serialize_to_array_start:metrics.CastLogsProto.CastConnectionInfo.SenderInfo)
2407 uint32_t cached_has_bits = 0;
2408 (void) cached_has_bits;
2409
2410 cached_has_bits = _impl_._has_bits_[0];
2411 // optional fixed64 sender_device_id = 1;
2412 if (cached_has_bits & 0x00000010u) {
2413 target = stream->EnsureSpace(target);
2414 target = ::_pbi::WireFormatLite::WriteFixed64ToArray(1, this->_internal_sender_device_id(), target);
2415 }
2416
2417 // optional .metrics.CastLogsProto.CastConnectionInfo.SenderInfo.SDKType sdk_type = 2;
2418 if (cached_has_bits & 0x00000020u) {
2419 target = stream->EnsureSpace(target);
2420 target = ::_pbi::WireFormatLite::WriteEnumToArray(
2421 2, this->_internal_sdk_type(), target);
2422 }
2423
2424 // optional string version = 3;
2425 if (cached_has_bits & 0x00000001u) {
2426 target = stream->WriteStringMaybeAliased(
2427 3, this->_internal_version(), target);
2428 }
2429
2430 // optional string chrome_browser_version = 4;
2431 if (cached_has_bits & 0x00000002u) {
2432 target = stream->WriteStringMaybeAliased(
2433 4, this->_internal_chrome_browser_version(), target);
2434 }
2435
2436 // optional .metrics.CastLogsProto.CastConnectionInfo.SenderInfo.Platform platform = 5;
2437 if (cached_has_bits & 0x00000040u) {
2438 target = stream->EnsureSpace(target);
2439 target = ::_pbi::WireFormatLite::WriteEnumToArray(
2440 5, this->_internal_platform(), target);
2441 }
2442
2443 // optional string system_version = 6;
2444 if (cached_has_bits & 0x00000004u) {
2445 target = stream->WriteStringMaybeAliased(
2446 6, this->_internal_system_version(), target);
2447 }
2448
2449 // optional .metrics.CastLogsProto.CastConnectionInfo.SenderInfo.ConnectionType transport_connection_type = 7;
2450 if (cached_has_bits & 0x00000080u) {
2451 target = stream->EnsureSpace(target);
2452 target = ::_pbi::WireFormatLite::WriteEnumToArray(
2453 7, this->_internal_transport_connection_type(), target);
2454 }
2455
2456 // optional string model = 8;
2457 if (cached_has_bits & 0x00000008u) {
2458 target = stream->WriteStringMaybeAliased(
2459 8, this->_internal_model(), target);
2460 }
2461
2462 // optional int32 sender_local_ip_fragment = 9;
2463 if (cached_has_bits & 0x00000100u) {
2464 target = stream->EnsureSpace(target);
2465 target = ::_pbi::WireFormatLite::WriteInt32ToArray(9, this->_internal_sender_local_ip_fragment(), target);
2466 }
2467
2468 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2469 target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
2470 static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
2471 }
2472 // @@protoc_insertion_point(serialize_to_array_end:metrics.CastLogsProto.CastConnectionInfo.SenderInfo)
2473 return target;
2474 }
2475
ByteSizeLong() const2476 size_t CastLogsProto_CastConnectionInfo_SenderInfo::ByteSizeLong() const {
2477 // @@protoc_insertion_point(message_byte_size_start:metrics.CastLogsProto.CastConnectionInfo.SenderInfo)
2478 size_t total_size = 0;
2479
2480 uint32_t cached_has_bits = 0;
2481 // Prevent compiler warnings about cached_has_bits being unused
2482 (void) cached_has_bits;
2483
2484 cached_has_bits = _impl_._has_bits_[0];
2485 if (cached_has_bits & 0x000000ffu) {
2486 // optional string version = 3;
2487 if (cached_has_bits & 0x00000001u) {
2488 total_size += 1 +
2489 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
2490 this->_internal_version());
2491 }
2492
2493 // optional string chrome_browser_version = 4;
2494 if (cached_has_bits & 0x00000002u) {
2495 total_size += 1 +
2496 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
2497 this->_internal_chrome_browser_version());
2498 }
2499
2500 // optional string system_version = 6;
2501 if (cached_has_bits & 0x00000004u) {
2502 total_size += 1 +
2503 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
2504 this->_internal_system_version());
2505 }
2506
2507 // optional string model = 8;
2508 if (cached_has_bits & 0x00000008u) {
2509 total_size += 1 +
2510 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
2511 this->_internal_model());
2512 }
2513
2514 // optional fixed64 sender_device_id = 1;
2515 if (cached_has_bits & 0x00000010u) {
2516 total_size += 1 + 8;
2517 }
2518
2519 // optional .metrics.CastLogsProto.CastConnectionInfo.SenderInfo.SDKType sdk_type = 2;
2520 if (cached_has_bits & 0x00000020u) {
2521 total_size += 1 +
2522 ::_pbi::WireFormatLite::EnumSize(this->_internal_sdk_type());
2523 }
2524
2525 // optional .metrics.CastLogsProto.CastConnectionInfo.SenderInfo.Platform platform = 5;
2526 if (cached_has_bits & 0x00000040u) {
2527 total_size += 1 +
2528 ::_pbi::WireFormatLite::EnumSize(this->_internal_platform());
2529 }
2530
2531 // optional .metrics.CastLogsProto.CastConnectionInfo.SenderInfo.ConnectionType transport_connection_type = 7;
2532 if (cached_has_bits & 0x00000080u) {
2533 total_size += 1 +
2534 ::_pbi::WireFormatLite::EnumSize(this->_internal_transport_connection_type());
2535 }
2536
2537 }
2538 // optional int32 sender_local_ip_fragment = 9;
2539 if (cached_has_bits & 0x00000100u) {
2540 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_sender_local_ip_fragment());
2541 }
2542
2543 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2544 total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
2545 }
2546 int cached_size = ::_pbi::ToCachedSize(total_size);
2547 SetCachedSize(cached_size);
2548 return total_size;
2549 }
2550
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)2551 void CastLogsProto_CastConnectionInfo_SenderInfo::CheckTypeAndMergeFrom(
2552 const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
2553 MergeFrom(*::_pbi::DownCast<const CastLogsProto_CastConnectionInfo_SenderInfo*>(
2554 &from));
2555 }
2556
MergeFrom(const CastLogsProto_CastConnectionInfo_SenderInfo & from)2557 void CastLogsProto_CastConnectionInfo_SenderInfo::MergeFrom(const CastLogsProto_CastConnectionInfo_SenderInfo& from) {
2558 CastLogsProto_CastConnectionInfo_SenderInfo* const _this = this;
2559 // @@protoc_insertion_point(class_specific_merge_from_start:metrics.CastLogsProto.CastConnectionInfo.SenderInfo)
2560 GOOGLE_DCHECK_NE(&from, _this);
2561 uint32_t cached_has_bits = 0;
2562 (void) cached_has_bits;
2563
2564 cached_has_bits = from._impl_._has_bits_[0];
2565 if (cached_has_bits & 0x000000ffu) {
2566 if (cached_has_bits & 0x00000001u) {
2567 _this->_internal_set_version(from._internal_version());
2568 }
2569 if (cached_has_bits & 0x00000002u) {
2570 _this->_internal_set_chrome_browser_version(from._internal_chrome_browser_version());
2571 }
2572 if (cached_has_bits & 0x00000004u) {
2573 _this->_internal_set_system_version(from._internal_system_version());
2574 }
2575 if (cached_has_bits & 0x00000008u) {
2576 _this->_internal_set_model(from._internal_model());
2577 }
2578 if (cached_has_bits & 0x00000010u) {
2579 _this->_impl_.sender_device_id_ = from._impl_.sender_device_id_;
2580 }
2581 if (cached_has_bits & 0x00000020u) {
2582 _this->_impl_.sdk_type_ = from._impl_.sdk_type_;
2583 }
2584 if (cached_has_bits & 0x00000040u) {
2585 _this->_impl_.platform_ = from._impl_.platform_;
2586 }
2587 if (cached_has_bits & 0x00000080u) {
2588 _this->_impl_.transport_connection_type_ = from._impl_.transport_connection_type_;
2589 }
2590 _this->_impl_._has_bits_[0] |= cached_has_bits;
2591 }
2592 if (cached_has_bits & 0x00000100u) {
2593 _this->_internal_set_sender_local_ip_fragment(from._internal_sender_local_ip_fragment());
2594 }
2595 _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
2596 }
2597
CopyFrom(const CastLogsProto_CastConnectionInfo_SenderInfo & from)2598 void CastLogsProto_CastConnectionInfo_SenderInfo::CopyFrom(const CastLogsProto_CastConnectionInfo_SenderInfo& from) {
2599 // @@protoc_insertion_point(class_specific_copy_from_start:metrics.CastLogsProto.CastConnectionInfo.SenderInfo)
2600 if (&from == this) return;
2601 Clear();
2602 MergeFrom(from);
2603 }
2604
IsInitialized() const2605 bool CastLogsProto_CastConnectionInfo_SenderInfo::IsInitialized() const {
2606 return true;
2607 }
2608
InternalSwap(CastLogsProto_CastConnectionInfo_SenderInfo * other)2609 void CastLogsProto_CastConnectionInfo_SenderInfo::InternalSwap(CastLogsProto_CastConnectionInfo_SenderInfo* other) {
2610 using std::swap;
2611 auto* lhs_arena = GetArenaForAllocation();
2612 auto* rhs_arena = other->GetArenaForAllocation();
2613 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2614 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
2615 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
2616 &_impl_.version_, lhs_arena,
2617 &other->_impl_.version_, rhs_arena
2618 );
2619 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
2620 &_impl_.chrome_browser_version_, lhs_arena,
2621 &other->_impl_.chrome_browser_version_, rhs_arena
2622 );
2623 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
2624 &_impl_.system_version_, lhs_arena,
2625 &other->_impl_.system_version_, rhs_arena
2626 );
2627 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
2628 &_impl_.model_, lhs_arena,
2629 &other->_impl_.model_, rhs_arena
2630 );
2631 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
2632 PROTOBUF_FIELD_OFFSET(CastLogsProto_CastConnectionInfo_SenderInfo, _impl_.sender_local_ip_fragment_)
2633 + sizeof(CastLogsProto_CastConnectionInfo_SenderInfo::_impl_.sender_local_ip_fragment_)
2634 - PROTOBUF_FIELD_OFFSET(CastLogsProto_CastConnectionInfo_SenderInfo, _impl_.sender_device_id_)>(
2635 reinterpret_cast<char*>(&_impl_.sender_device_id_),
2636 reinterpret_cast<char*>(&other->_impl_.sender_device_id_));
2637 }
2638
GetTypeName() const2639 std::string CastLogsProto_CastConnectionInfo_SenderInfo::GetTypeName() const {
2640 return "metrics.CastLogsProto.CastConnectionInfo.SenderInfo";
2641 }
2642
2643
2644 // ===================================================================
2645
2646 class CastLogsProto_CastConnectionInfo::_Internal {
2647 public:
2648 using HasBits = decltype(std::declval<CastLogsProto_CastConnectionInfo>()._impl_._has_bits_);
set_has_transport_connection_id(HasBits * has_bits)2649 static void set_has_transport_connection_id(HasBits* has_bits) {
2650 (*has_bits)[0] |= 2u;
2651 }
set_has_virtual_connection_id(HasBits * has_bits)2652 static void set_has_virtual_connection_id(HasBits* has_bits) {
2653 (*has_bits)[0] |= 4u;
2654 }
2655 static const ::metrics::CastLogsProto_CastConnectionInfo_SenderInfo& sender_info(const CastLogsProto_CastConnectionInfo* msg);
set_has_sender_info(HasBits * has_bits)2656 static void set_has_sender_info(HasBits* has_bits) {
2657 (*has_bits)[0] |= 1u;
2658 }
2659 };
2660
2661 const ::metrics::CastLogsProto_CastConnectionInfo_SenderInfo&
sender_info(const CastLogsProto_CastConnectionInfo * msg)2662 CastLogsProto_CastConnectionInfo::_Internal::sender_info(const CastLogsProto_CastConnectionInfo* msg) {
2663 return *msg->_impl_.sender_info_;
2664 }
CastLogsProto_CastConnectionInfo(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)2665 CastLogsProto_CastConnectionInfo::CastLogsProto_CastConnectionInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena,
2666 bool is_message_owned)
2667 : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
2668 SharedCtor(arena, is_message_owned);
2669 // @@protoc_insertion_point(arena_constructor:metrics.CastLogsProto.CastConnectionInfo)
2670 }
CastLogsProto_CastConnectionInfo(const CastLogsProto_CastConnectionInfo & from)2671 CastLogsProto_CastConnectionInfo::CastLogsProto_CastConnectionInfo(const CastLogsProto_CastConnectionInfo& from)
2672 : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
2673 CastLogsProto_CastConnectionInfo* const _this = this; (void)_this;
2674 new (&_impl_) Impl_{
2675 decltype(_impl_._has_bits_){from._impl_._has_bits_}
2676 , /*decltype(_impl_._cached_size_)*/{}
2677 , decltype(_impl_.sender_info_){nullptr}
2678 , decltype(_impl_.transport_connection_id_){}
2679 , decltype(_impl_.virtual_connection_id_){}};
2680
2681 _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
2682 if (from._internal_has_sender_info()) {
2683 _this->_impl_.sender_info_ = new ::metrics::CastLogsProto_CastConnectionInfo_SenderInfo(*from._impl_.sender_info_);
2684 }
2685 ::memcpy(&_impl_.transport_connection_id_, &from._impl_.transport_connection_id_,
2686 static_cast<size_t>(reinterpret_cast<char*>(&_impl_.virtual_connection_id_) -
2687 reinterpret_cast<char*>(&_impl_.transport_connection_id_)) + sizeof(_impl_.virtual_connection_id_));
2688 // @@protoc_insertion_point(copy_constructor:metrics.CastLogsProto.CastConnectionInfo)
2689 }
2690
SharedCtor(::_pb::Arena * arena,bool is_message_owned)2691 inline void CastLogsProto_CastConnectionInfo::SharedCtor(
2692 ::_pb::Arena* arena, bool is_message_owned) {
2693 (void)arena;
2694 (void)is_message_owned;
2695 new (&_impl_) Impl_{
2696 decltype(_impl_._has_bits_){}
2697 , /*decltype(_impl_._cached_size_)*/{}
2698 , decltype(_impl_.sender_info_){nullptr}
2699 , decltype(_impl_.transport_connection_id_){0u}
2700 , decltype(_impl_.virtual_connection_id_){0u}
2701 };
2702 }
2703
~CastLogsProto_CastConnectionInfo()2704 CastLogsProto_CastConnectionInfo::~CastLogsProto_CastConnectionInfo() {
2705 // @@protoc_insertion_point(destructor:metrics.CastLogsProto.CastConnectionInfo)
2706 if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
2707 (void)arena;
2708 return;
2709 }
2710 SharedDtor();
2711 }
2712
SharedDtor()2713 inline void CastLogsProto_CastConnectionInfo::SharedDtor() {
2714 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
2715 if (this != internal_default_instance()) delete _impl_.sender_info_;
2716 }
2717
SetCachedSize(int size) const2718 void CastLogsProto_CastConnectionInfo::SetCachedSize(int size) const {
2719 _impl_._cached_size_.Set(size);
2720 }
2721
Clear()2722 void CastLogsProto_CastConnectionInfo::Clear() {
2723 // @@protoc_insertion_point(message_clear_start:metrics.CastLogsProto.CastConnectionInfo)
2724 uint32_t cached_has_bits = 0;
2725 // Prevent compiler warnings about cached_has_bits being unused
2726 (void) cached_has_bits;
2727
2728 cached_has_bits = _impl_._has_bits_[0];
2729 if (cached_has_bits & 0x00000001u) {
2730 GOOGLE_DCHECK(_impl_.sender_info_ != nullptr);
2731 _impl_.sender_info_->Clear();
2732 }
2733 if (cached_has_bits & 0x00000006u) {
2734 ::memset(&_impl_.transport_connection_id_, 0, static_cast<size_t>(
2735 reinterpret_cast<char*>(&_impl_.virtual_connection_id_) -
2736 reinterpret_cast<char*>(&_impl_.transport_connection_id_)) + sizeof(_impl_.virtual_connection_id_));
2737 }
2738 _impl_._has_bits_.Clear();
2739 _internal_metadata_.Clear<std::string>();
2740 }
2741
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)2742 const char* CastLogsProto_CastConnectionInfo::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
2743 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
2744 _Internal::HasBits has_bits{};
2745 while (!ctx->Done(&ptr)) {
2746 uint32_t tag;
2747 ptr = ::_pbi::ReadTag(ptr, &tag);
2748 switch (tag >> 3) {
2749 // optional fixed32 transport_connection_id = 1;
2750 case 1:
2751 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 13)) {
2752 _Internal::set_has_transport_connection_id(&has_bits);
2753 _impl_.transport_connection_id_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<uint32_t>(ptr);
2754 ptr += sizeof(uint32_t);
2755 } else
2756 goto handle_unusual;
2757 continue;
2758 // optional fixed32 virtual_connection_id = 2;
2759 case 2:
2760 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 21)) {
2761 _Internal::set_has_virtual_connection_id(&has_bits);
2762 _impl_.virtual_connection_id_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<uint32_t>(ptr);
2763 ptr += sizeof(uint32_t);
2764 } else
2765 goto handle_unusual;
2766 continue;
2767 // optional .metrics.CastLogsProto.CastConnectionInfo.SenderInfo sender_info = 3;
2768 case 3:
2769 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
2770 ptr = ctx->ParseMessage(_internal_mutable_sender_info(), ptr);
2771 CHK_(ptr);
2772 } else
2773 goto handle_unusual;
2774 continue;
2775 default:
2776 goto handle_unusual;
2777 } // switch
2778 handle_unusual:
2779 if ((tag == 0) || ((tag & 7) == 4)) {
2780 CHK_(ptr);
2781 ctx->SetLastTag(tag);
2782 goto message_done;
2783 }
2784 ptr = UnknownFieldParse(
2785 tag,
2786 _internal_metadata_.mutable_unknown_fields<std::string>(),
2787 ptr, ctx);
2788 CHK_(ptr != nullptr);
2789 } // while
2790 message_done:
2791 _impl_._has_bits_.Or(has_bits);
2792 return ptr;
2793 failure:
2794 ptr = nullptr;
2795 goto message_done;
2796 #undef CHK_
2797 }
2798
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const2799 uint8_t* CastLogsProto_CastConnectionInfo::_InternalSerialize(
2800 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
2801 // @@protoc_insertion_point(serialize_to_array_start:metrics.CastLogsProto.CastConnectionInfo)
2802 uint32_t cached_has_bits = 0;
2803 (void) cached_has_bits;
2804
2805 cached_has_bits = _impl_._has_bits_[0];
2806 // optional fixed32 transport_connection_id = 1;
2807 if (cached_has_bits & 0x00000002u) {
2808 target = stream->EnsureSpace(target);
2809 target = ::_pbi::WireFormatLite::WriteFixed32ToArray(1, this->_internal_transport_connection_id(), target);
2810 }
2811
2812 // optional fixed32 virtual_connection_id = 2;
2813 if (cached_has_bits & 0x00000004u) {
2814 target = stream->EnsureSpace(target);
2815 target = ::_pbi::WireFormatLite::WriteFixed32ToArray(2, this->_internal_virtual_connection_id(), target);
2816 }
2817
2818 // optional .metrics.CastLogsProto.CastConnectionInfo.SenderInfo sender_info = 3;
2819 if (cached_has_bits & 0x00000001u) {
2820 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2821 InternalWriteMessage(3, _Internal::sender_info(this),
2822 _Internal::sender_info(this).GetCachedSize(), target, stream);
2823 }
2824
2825 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2826 target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
2827 static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
2828 }
2829 // @@protoc_insertion_point(serialize_to_array_end:metrics.CastLogsProto.CastConnectionInfo)
2830 return target;
2831 }
2832
ByteSizeLong() const2833 size_t CastLogsProto_CastConnectionInfo::ByteSizeLong() const {
2834 // @@protoc_insertion_point(message_byte_size_start:metrics.CastLogsProto.CastConnectionInfo)
2835 size_t total_size = 0;
2836
2837 uint32_t cached_has_bits = 0;
2838 // Prevent compiler warnings about cached_has_bits being unused
2839 (void) cached_has_bits;
2840
2841 cached_has_bits = _impl_._has_bits_[0];
2842 if (cached_has_bits & 0x00000007u) {
2843 // optional .metrics.CastLogsProto.CastConnectionInfo.SenderInfo sender_info = 3;
2844 if (cached_has_bits & 0x00000001u) {
2845 total_size += 1 +
2846 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
2847 *_impl_.sender_info_);
2848 }
2849
2850 // optional fixed32 transport_connection_id = 1;
2851 if (cached_has_bits & 0x00000002u) {
2852 total_size += 1 + 4;
2853 }
2854
2855 // optional fixed32 virtual_connection_id = 2;
2856 if (cached_has_bits & 0x00000004u) {
2857 total_size += 1 + 4;
2858 }
2859
2860 }
2861 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2862 total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
2863 }
2864 int cached_size = ::_pbi::ToCachedSize(total_size);
2865 SetCachedSize(cached_size);
2866 return total_size;
2867 }
2868
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)2869 void CastLogsProto_CastConnectionInfo::CheckTypeAndMergeFrom(
2870 const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
2871 MergeFrom(*::_pbi::DownCast<const CastLogsProto_CastConnectionInfo*>(
2872 &from));
2873 }
2874
MergeFrom(const CastLogsProto_CastConnectionInfo & from)2875 void CastLogsProto_CastConnectionInfo::MergeFrom(const CastLogsProto_CastConnectionInfo& from) {
2876 CastLogsProto_CastConnectionInfo* const _this = this;
2877 // @@protoc_insertion_point(class_specific_merge_from_start:metrics.CastLogsProto.CastConnectionInfo)
2878 GOOGLE_DCHECK_NE(&from, _this);
2879 uint32_t cached_has_bits = 0;
2880 (void) cached_has_bits;
2881
2882 cached_has_bits = from._impl_._has_bits_[0];
2883 if (cached_has_bits & 0x00000007u) {
2884 if (cached_has_bits & 0x00000001u) {
2885 _this->_internal_mutable_sender_info()->::metrics::CastLogsProto_CastConnectionInfo_SenderInfo::MergeFrom(
2886 from._internal_sender_info());
2887 }
2888 if (cached_has_bits & 0x00000002u) {
2889 _this->_impl_.transport_connection_id_ = from._impl_.transport_connection_id_;
2890 }
2891 if (cached_has_bits & 0x00000004u) {
2892 _this->_impl_.virtual_connection_id_ = from._impl_.virtual_connection_id_;
2893 }
2894 _this->_impl_._has_bits_[0] |= cached_has_bits;
2895 }
2896 _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
2897 }
2898
CopyFrom(const CastLogsProto_CastConnectionInfo & from)2899 void CastLogsProto_CastConnectionInfo::CopyFrom(const CastLogsProto_CastConnectionInfo& from) {
2900 // @@protoc_insertion_point(class_specific_copy_from_start:metrics.CastLogsProto.CastConnectionInfo)
2901 if (&from == this) return;
2902 Clear();
2903 MergeFrom(from);
2904 }
2905
IsInitialized() const2906 bool CastLogsProto_CastConnectionInfo::IsInitialized() const {
2907 return true;
2908 }
2909
InternalSwap(CastLogsProto_CastConnectionInfo * other)2910 void CastLogsProto_CastConnectionInfo::InternalSwap(CastLogsProto_CastConnectionInfo* other) {
2911 using std::swap;
2912 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2913 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
2914 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
2915 PROTOBUF_FIELD_OFFSET(CastLogsProto_CastConnectionInfo, _impl_.virtual_connection_id_)
2916 + sizeof(CastLogsProto_CastConnectionInfo::_impl_.virtual_connection_id_)
2917 - PROTOBUF_FIELD_OFFSET(CastLogsProto_CastConnectionInfo, _impl_.sender_info_)>(
2918 reinterpret_cast<char*>(&_impl_.sender_info_),
2919 reinterpret_cast<char*>(&other->_impl_.sender_info_));
2920 }
2921
GetTypeName() const2922 std::string CastLogsProto_CastConnectionInfo::GetTypeName() const {
2923 return "metrics.CastLogsProto.CastConnectionInfo";
2924 }
2925
2926
2927 // ===================================================================
2928
2929 class CastLogsProto_CastEventProto_Metadata::_Internal {
2930 public:
2931 using HasBits = decltype(std::declval<CastLogsProto_CastEventProto_Metadata>()._impl_._has_bits_);
set_has_name_hash(HasBits * has_bits)2932 static void set_has_name_hash(HasBits* has_bits) {
2933 (*has_bits)[0] |= 1u;
2934 }
set_has_value(HasBits * has_bits)2935 static void set_has_value(HasBits* has_bits) {
2936 (*has_bits)[0] |= 2u;
2937 }
2938 };
2939
CastLogsProto_CastEventProto_Metadata(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)2940 CastLogsProto_CastEventProto_Metadata::CastLogsProto_CastEventProto_Metadata(::PROTOBUF_NAMESPACE_ID::Arena* arena,
2941 bool is_message_owned)
2942 : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
2943 SharedCtor(arena, is_message_owned);
2944 // @@protoc_insertion_point(arena_constructor:metrics.CastLogsProto.CastEventProto.Metadata)
2945 }
CastLogsProto_CastEventProto_Metadata(const CastLogsProto_CastEventProto_Metadata & from)2946 CastLogsProto_CastEventProto_Metadata::CastLogsProto_CastEventProto_Metadata(const CastLogsProto_CastEventProto_Metadata& from)
2947 : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
2948 CastLogsProto_CastEventProto_Metadata* const _this = this; (void)_this;
2949 new (&_impl_) Impl_{
2950 decltype(_impl_._has_bits_){from._impl_._has_bits_}
2951 , /*decltype(_impl_._cached_size_)*/{}
2952 , decltype(_impl_.name_hash_){}
2953 , decltype(_impl_.value_){}};
2954
2955 _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
2956 ::memcpy(&_impl_.name_hash_, &from._impl_.name_hash_,
2957 static_cast<size_t>(reinterpret_cast<char*>(&_impl_.value_) -
2958 reinterpret_cast<char*>(&_impl_.name_hash_)) + sizeof(_impl_.value_));
2959 // @@protoc_insertion_point(copy_constructor:metrics.CastLogsProto.CastEventProto.Metadata)
2960 }
2961
SharedCtor(::_pb::Arena * arena,bool is_message_owned)2962 inline void CastLogsProto_CastEventProto_Metadata::SharedCtor(
2963 ::_pb::Arena* arena, bool is_message_owned) {
2964 (void)arena;
2965 (void)is_message_owned;
2966 new (&_impl_) Impl_{
2967 decltype(_impl_._has_bits_){}
2968 , /*decltype(_impl_._cached_size_)*/{}
2969 , decltype(_impl_.name_hash_){uint64_t{0u}}
2970 , decltype(_impl_.value_){int64_t{0}}
2971 };
2972 }
2973
~CastLogsProto_CastEventProto_Metadata()2974 CastLogsProto_CastEventProto_Metadata::~CastLogsProto_CastEventProto_Metadata() {
2975 // @@protoc_insertion_point(destructor:metrics.CastLogsProto.CastEventProto.Metadata)
2976 if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
2977 (void)arena;
2978 return;
2979 }
2980 SharedDtor();
2981 }
2982
SharedDtor()2983 inline void CastLogsProto_CastEventProto_Metadata::SharedDtor() {
2984 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
2985 }
2986
SetCachedSize(int size) const2987 void CastLogsProto_CastEventProto_Metadata::SetCachedSize(int size) const {
2988 _impl_._cached_size_.Set(size);
2989 }
2990
Clear()2991 void CastLogsProto_CastEventProto_Metadata::Clear() {
2992 // @@protoc_insertion_point(message_clear_start:metrics.CastLogsProto.CastEventProto.Metadata)
2993 uint32_t cached_has_bits = 0;
2994 // Prevent compiler warnings about cached_has_bits being unused
2995 (void) cached_has_bits;
2996
2997 cached_has_bits = _impl_._has_bits_[0];
2998 if (cached_has_bits & 0x00000003u) {
2999 ::memset(&_impl_.name_hash_, 0, static_cast<size_t>(
3000 reinterpret_cast<char*>(&_impl_.value_) -
3001 reinterpret_cast<char*>(&_impl_.name_hash_)) + sizeof(_impl_.value_));
3002 }
3003 _impl_._has_bits_.Clear();
3004 _internal_metadata_.Clear<std::string>();
3005 }
3006
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)3007 const char* CastLogsProto_CastEventProto_Metadata::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
3008 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
3009 _Internal::HasBits has_bits{};
3010 while (!ctx->Done(&ptr)) {
3011 uint32_t tag;
3012 ptr = ::_pbi::ReadTag(ptr, &tag);
3013 switch (tag >> 3) {
3014 // optional fixed64 name_hash = 1;
3015 case 1:
3016 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 9)) {
3017 _Internal::set_has_name_hash(&has_bits);
3018 _impl_.name_hash_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<uint64_t>(ptr);
3019 ptr += sizeof(uint64_t);
3020 } else
3021 goto handle_unusual;
3022 continue;
3023 // optional int64 value = 2;
3024 case 2:
3025 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
3026 _Internal::set_has_value(&has_bits);
3027 _impl_.value_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
3028 CHK_(ptr);
3029 } else
3030 goto handle_unusual;
3031 continue;
3032 default:
3033 goto handle_unusual;
3034 } // switch
3035 handle_unusual:
3036 if ((tag == 0) || ((tag & 7) == 4)) {
3037 CHK_(ptr);
3038 ctx->SetLastTag(tag);
3039 goto message_done;
3040 }
3041 ptr = UnknownFieldParse(
3042 tag,
3043 _internal_metadata_.mutable_unknown_fields<std::string>(),
3044 ptr, ctx);
3045 CHK_(ptr != nullptr);
3046 } // while
3047 message_done:
3048 _impl_._has_bits_.Or(has_bits);
3049 return ptr;
3050 failure:
3051 ptr = nullptr;
3052 goto message_done;
3053 #undef CHK_
3054 }
3055
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const3056 uint8_t* CastLogsProto_CastEventProto_Metadata::_InternalSerialize(
3057 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
3058 // @@protoc_insertion_point(serialize_to_array_start:metrics.CastLogsProto.CastEventProto.Metadata)
3059 uint32_t cached_has_bits = 0;
3060 (void) cached_has_bits;
3061
3062 cached_has_bits = _impl_._has_bits_[0];
3063 // optional fixed64 name_hash = 1;
3064 if (cached_has_bits & 0x00000001u) {
3065 target = stream->EnsureSpace(target);
3066 target = ::_pbi::WireFormatLite::WriteFixed64ToArray(1, this->_internal_name_hash(), target);
3067 }
3068
3069 // optional int64 value = 2;
3070 if (cached_has_bits & 0x00000002u) {
3071 target = stream->EnsureSpace(target);
3072 target = ::_pbi::WireFormatLite::WriteInt64ToArray(2, this->_internal_value(), target);
3073 }
3074
3075 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
3076 target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
3077 static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
3078 }
3079 // @@protoc_insertion_point(serialize_to_array_end:metrics.CastLogsProto.CastEventProto.Metadata)
3080 return target;
3081 }
3082
ByteSizeLong() const3083 size_t CastLogsProto_CastEventProto_Metadata::ByteSizeLong() const {
3084 // @@protoc_insertion_point(message_byte_size_start:metrics.CastLogsProto.CastEventProto.Metadata)
3085 size_t total_size = 0;
3086
3087 uint32_t cached_has_bits = 0;
3088 // Prevent compiler warnings about cached_has_bits being unused
3089 (void) cached_has_bits;
3090
3091 cached_has_bits = _impl_._has_bits_[0];
3092 if (cached_has_bits & 0x00000003u) {
3093 // optional fixed64 name_hash = 1;
3094 if (cached_has_bits & 0x00000001u) {
3095 total_size += 1 + 8;
3096 }
3097
3098 // optional int64 value = 2;
3099 if (cached_has_bits & 0x00000002u) {
3100 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_value());
3101 }
3102
3103 }
3104 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
3105 total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
3106 }
3107 int cached_size = ::_pbi::ToCachedSize(total_size);
3108 SetCachedSize(cached_size);
3109 return total_size;
3110 }
3111
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)3112 void CastLogsProto_CastEventProto_Metadata::CheckTypeAndMergeFrom(
3113 const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
3114 MergeFrom(*::_pbi::DownCast<const CastLogsProto_CastEventProto_Metadata*>(
3115 &from));
3116 }
3117
MergeFrom(const CastLogsProto_CastEventProto_Metadata & from)3118 void CastLogsProto_CastEventProto_Metadata::MergeFrom(const CastLogsProto_CastEventProto_Metadata& from) {
3119 CastLogsProto_CastEventProto_Metadata* const _this = this;
3120 // @@protoc_insertion_point(class_specific_merge_from_start:metrics.CastLogsProto.CastEventProto.Metadata)
3121 GOOGLE_DCHECK_NE(&from, _this);
3122 uint32_t cached_has_bits = 0;
3123 (void) cached_has_bits;
3124
3125 cached_has_bits = from._impl_._has_bits_[0];
3126 if (cached_has_bits & 0x00000003u) {
3127 if (cached_has_bits & 0x00000001u) {
3128 _this->_impl_.name_hash_ = from._impl_.name_hash_;
3129 }
3130 if (cached_has_bits & 0x00000002u) {
3131 _this->_impl_.value_ = from._impl_.value_;
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 CastLogsProto_CastEventProto_Metadata & from)3138 void CastLogsProto_CastEventProto_Metadata::CopyFrom(const CastLogsProto_CastEventProto_Metadata& from) {
3139 // @@protoc_insertion_point(class_specific_copy_from_start:metrics.CastLogsProto.CastEventProto.Metadata)
3140 if (&from == this) return;
3141 Clear();
3142 MergeFrom(from);
3143 }
3144
IsInitialized() const3145 bool CastLogsProto_CastEventProto_Metadata::IsInitialized() const {
3146 return true;
3147 }
3148
InternalSwap(CastLogsProto_CastEventProto_Metadata * other)3149 void CastLogsProto_CastEventProto_Metadata::InternalSwap(CastLogsProto_CastEventProto_Metadata* 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(CastLogsProto_CastEventProto_Metadata, _impl_.value_)
3155 + sizeof(CastLogsProto_CastEventProto_Metadata::_impl_.value_)
3156 - PROTOBUF_FIELD_OFFSET(CastLogsProto_CastEventProto_Metadata, _impl_.name_hash_)>(
3157 reinterpret_cast<char*>(&_impl_.name_hash_),
3158 reinterpret_cast<char*>(&other->_impl_.name_hash_));
3159 }
3160
GetTypeName() const3161 std::string CastLogsProto_CastEventProto_Metadata::GetTypeName() const {
3162 return "metrics.CastLogsProto.CastEventProto.Metadata";
3163 }
3164
3165
3166 // ===================================================================
3167
3168 class CastLogsProto_CastEventProto::_Internal {
3169 public:
3170 using HasBits = decltype(std::declval<CastLogsProto_CastEventProto>()._impl_._has_bits_);
set_has_name_hash(HasBits * has_bits)3171 static void set_has_name_hash(HasBits* has_bits) {
3172 (*has_bits)[0] |= 512u;
3173 }
set_has_time_msec(HasBits * has_bits)3174 static void set_has_time_msec(HasBits* has_bits) {
3175 (*has_bits)[0] |= 1024u;
3176 }
set_has_app_id(HasBits * has_bits)3177 static void set_has_app_id(HasBits* has_bits) {
3178 (*has_bits)[0] |= 4096u;
3179 }
set_has_remote_app_id(HasBits * has_bits)3180 static void set_has_remote_app_id(HasBits* has_bits) {
3181 (*has_bits)[0] |= 2097152u;
3182 }
set_has_application_session_id(HasBits * has_bits)3183 static void set_has_application_session_id(HasBits* has_bits) {
3184 (*has_bits)[0] |= 2048u;
3185 }
set_has_cast_receiver_version(HasBits * has_bits)3186 static void set_has_cast_receiver_version(HasBits* has_bits) {
3187 (*has_bits)[0] |= 16384u;
3188 }
set_has_cast_mpl_version(HasBits * has_bits)3189 static void set_has_cast_mpl_version(HasBits* has_bits) {
3190 (*has_bits)[0] |= 65536u;
3191 }
set_has_transport_connection_id(HasBits * has_bits)3192 static void set_has_transport_connection_id(HasBits* has_bits) {
3193 (*has_bits)[0] |= 8192u;
3194 }
set_has_virtual_connection_id(HasBits * has_bits)3195 static void set_has_virtual_connection_id(HasBits* has_bits) {
3196 (*has_bits)[0] |= 131072u;
3197 }
set_has_value(HasBits * has_bits)3198 static void set_has_value(HasBits* has_bits) {
3199 (*has_bits)[0] |= 32768u;
3200 }
set_has_group_uuid(HasBits * has_bits)3201 static void set_has_group_uuid(HasBits* has_bits) {
3202 (*has_bits)[0] |= 524288u;
3203 }
set_has_conversation_key(HasBits * has_bits)3204 static void set_has_conversation_key(HasBits* has_bits) {
3205 (*has_bits)[0] |= 1u;
3206 }
set_has_request_id(HasBits * has_bits)3207 static void set_has_request_id(HasBits* has_bits) {
3208 (*has_bits)[0] |= 262144u;
3209 }
set_has_event_id(HasBits * has_bits)3210 static void set_has_event_id(HasBits* has_bits) {
3211 (*has_bits)[0] |= 2u;
3212 }
set_has_aogh_request_id(HasBits * has_bits)3213 static void set_has_aogh_request_id(HasBits* has_bits) {
3214 (*has_bits)[0] |= 4u;
3215 }
set_has_aogh_local_device_id(HasBits * has_bits)3216 static void set_has_aogh_local_device_id(HasBits* has_bits) {
3217 (*has_bits)[0] |= 1048576u;
3218 }
set_has_aogh_agent_id(HasBits * has_bits)3219 static void set_has_aogh_agent_id(HasBits* has_bits) {
3220 (*has_bits)[0] |= 32u;
3221 }
set_has_aogh_standard_agent_id(HasBits * has_bits)3222 static void set_has_aogh_standard_agent_id(HasBits* has_bits) {
3223 (*has_bits)[0] |= 256u;
3224 }
set_has_timezone_id(HasBits * has_bits)3225 static void set_has_timezone_id(HasBits* has_bits) {
3226 (*has_bits)[0] |= 8u;
3227 }
set_has_ui_version(HasBits * has_bits)3228 static void set_has_ui_version(HasBits* has_bits) {
3229 (*has_bits)[0] |= 16u;
3230 }
set_has_selinux_audit_detail(HasBits * has_bits)3231 static void set_has_selinux_audit_detail(HasBits* has_bits) {
3232 (*has_bits)[0] |= 64u;
3233 }
set_has_duo_core_version(HasBits * has_bits)3234 static void set_has_duo_core_version(HasBits* has_bits) {
3235 (*has_bits)[0] |= 8388608u;
3236 }
set_has_hotword_model_id(HasBits * has_bits)3237 static void set_has_hotword_model_id(HasBits* has_bits) {
3238 (*has_bits)[0] |= 128u;
3239 }
set_has_launch_from(HasBits * has_bits)3240 static void set_has_launch_from(HasBits* has_bits) {
3241 (*has_bits)[0] |= 4194304u;
3242 }
set_has_runtime_type(HasBits * has_bits)3243 static void set_has_runtime_type(HasBits* has_bits) {
3244 (*has_bits)[0] |= 16777216u;
3245 }
3246 };
3247
CastLogsProto_CastEventProto(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)3248 CastLogsProto_CastEventProto::CastLogsProto_CastEventProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
3249 bool is_message_owned)
3250 : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
3251 SharedCtor(arena, is_message_owned);
3252 // @@protoc_insertion_point(arena_constructor:metrics.CastLogsProto.CastEventProto)
3253 }
CastLogsProto_CastEventProto(const CastLogsProto_CastEventProto & from)3254 CastLogsProto_CastEventProto::CastLogsProto_CastEventProto(const CastLogsProto_CastEventProto& from)
3255 : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
3256 CastLogsProto_CastEventProto* const _this = this; (void)_this;
3257 new (&_impl_) Impl_{
3258 decltype(_impl_._has_bits_){from._impl_._has_bits_}
3259 , /*decltype(_impl_._cached_size_)*/{}
3260 , decltype(_impl_.metadata_){from._impl_.metadata_}
3261 , decltype(_impl_.feature_vector_){from._impl_.feature_vector_}
3262 , decltype(_impl_.event_id_list_){from._impl_.event_id_list_}
3263 , decltype(_impl_.conversation_key_){}
3264 , decltype(_impl_.event_id_){}
3265 , decltype(_impl_.aogh_request_id_){}
3266 , decltype(_impl_.timezone_id_){}
3267 , decltype(_impl_.ui_version_){}
3268 , decltype(_impl_.aogh_agent_id_){}
3269 , decltype(_impl_.selinux_audit_detail_){}
3270 , decltype(_impl_.hotword_model_id_){}
3271 , decltype(_impl_.aogh_standard_agent_id_){}
3272 , decltype(_impl_.name_hash_){}
3273 , decltype(_impl_.time_msec_){}
3274 , decltype(_impl_.application_session_id_){}
3275 , decltype(_impl_.app_id_){}
3276 , decltype(_impl_.transport_connection_id_){}
3277 , decltype(_impl_.cast_receiver_version_){}
3278 , decltype(_impl_.value_){}
3279 , decltype(_impl_.cast_mpl_version_){}
3280 , decltype(_impl_.virtual_connection_id_){}
3281 , decltype(_impl_.request_id_){}
3282 , decltype(_impl_.group_uuid_){}
3283 , decltype(_impl_.aogh_local_device_id_){}
3284 , decltype(_impl_.remote_app_id_){}
3285 , decltype(_impl_.launch_from_){}
3286 , decltype(_impl_.duo_core_version_){}
3287 , decltype(_impl_.runtime_type_){}};
3288
3289 _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
3290 _impl_.conversation_key_.InitDefault();
3291 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
3292 _impl_.conversation_key_.Set("", GetArenaForAllocation());
3293 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
3294 if (from._internal_has_conversation_key()) {
3295 _this->_impl_.conversation_key_.Set(from._internal_conversation_key(),
3296 _this->GetArenaForAllocation());
3297 }
3298 _impl_.event_id_.InitDefault();
3299 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
3300 _impl_.event_id_.Set("", GetArenaForAllocation());
3301 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
3302 if (from._internal_has_event_id()) {
3303 _this->_impl_.event_id_.Set(from._internal_event_id(),
3304 _this->GetArenaForAllocation());
3305 }
3306 _impl_.aogh_request_id_.InitDefault();
3307 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
3308 _impl_.aogh_request_id_.Set("", GetArenaForAllocation());
3309 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
3310 if (from._internal_has_aogh_request_id()) {
3311 _this->_impl_.aogh_request_id_.Set(from._internal_aogh_request_id(),
3312 _this->GetArenaForAllocation());
3313 }
3314 _impl_.timezone_id_.InitDefault();
3315 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
3316 _impl_.timezone_id_.Set("", GetArenaForAllocation());
3317 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
3318 if (from._internal_has_timezone_id()) {
3319 _this->_impl_.timezone_id_.Set(from._internal_timezone_id(),
3320 _this->GetArenaForAllocation());
3321 }
3322 _impl_.ui_version_.InitDefault();
3323 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
3324 _impl_.ui_version_.Set("", GetArenaForAllocation());
3325 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
3326 if (from._internal_has_ui_version()) {
3327 _this->_impl_.ui_version_.Set(from._internal_ui_version(),
3328 _this->GetArenaForAllocation());
3329 }
3330 _impl_.aogh_agent_id_.InitDefault();
3331 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
3332 _impl_.aogh_agent_id_.Set("", GetArenaForAllocation());
3333 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
3334 if (from._internal_has_aogh_agent_id()) {
3335 _this->_impl_.aogh_agent_id_.Set(from._internal_aogh_agent_id(),
3336 _this->GetArenaForAllocation());
3337 }
3338 _impl_.selinux_audit_detail_.InitDefault();
3339 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
3340 _impl_.selinux_audit_detail_.Set("", GetArenaForAllocation());
3341 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
3342 if (from._internal_has_selinux_audit_detail()) {
3343 _this->_impl_.selinux_audit_detail_.Set(from._internal_selinux_audit_detail(),
3344 _this->GetArenaForAllocation());
3345 }
3346 _impl_.hotword_model_id_.InitDefault();
3347 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
3348 _impl_.hotword_model_id_.Set("", GetArenaForAllocation());
3349 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
3350 if (from._internal_has_hotword_model_id()) {
3351 _this->_impl_.hotword_model_id_.Set(from._internal_hotword_model_id(),
3352 _this->GetArenaForAllocation());
3353 }
3354 _impl_.aogh_standard_agent_id_.InitDefault();
3355 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
3356 _impl_.aogh_standard_agent_id_.Set("", GetArenaForAllocation());
3357 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
3358 if (from._internal_has_aogh_standard_agent_id()) {
3359 _this->_impl_.aogh_standard_agent_id_.Set(from._internal_aogh_standard_agent_id(),
3360 _this->GetArenaForAllocation());
3361 }
3362 ::memcpy(&_impl_.name_hash_, &from._impl_.name_hash_,
3363 static_cast<size_t>(reinterpret_cast<char*>(&_impl_.runtime_type_) -
3364 reinterpret_cast<char*>(&_impl_.name_hash_)) + sizeof(_impl_.runtime_type_));
3365 // @@protoc_insertion_point(copy_constructor:metrics.CastLogsProto.CastEventProto)
3366 }
3367
SharedCtor(::_pb::Arena * arena,bool is_message_owned)3368 inline void CastLogsProto_CastEventProto::SharedCtor(
3369 ::_pb::Arena* arena, bool is_message_owned) {
3370 (void)arena;
3371 (void)is_message_owned;
3372 new (&_impl_) Impl_{
3373 decltype(_impl_._has_bits_){}
3374 , /*decltype(_impl_._cached_size_)*/{}
3375 , decltype(_impl_.metadata_){arena}
3376 , decltype(_impl_.feature_vector_){arena}
3377 , decltype(_impl_.event_id_list_){arena}
3378 , decltype(_impl_.conversation_key_){}
3379 , decltype(_impl_.event_id_){}
3380 , decltype(_impl_.aogh_request_id_){}
3381 , decltype(_impl_.timezone_id_){}
3382 , decltype(_impl_.ui_version_){}
3383 , decltype(_impl_.aogh_agent_id_){}
3384 , decltype(_impl_.selinux_audit_detail_){}
3385 , decltype(_impl_.hotword_model_id_){}
3386 , decltype(_impl_.aogh_standard_agent_id_){}
3387 , decltype(_impl_.name_hash_){uint64_t{0u}}
3388 , decltype(_impl_.time_msec_){int64_t{0}}
3389 , decltype(_impl_.application_session_id_){uint64_t{0u}}
3390 , decltype(_impl_.app_id_){0u}
3391 , decltype(_impl_.transport_connection_id_){0u}
3392 , decltype(_impl_.cast_receiver_version_){uint64_t{0u}}
3393 , decltype(_impl_.value_){int64_t{0}}
3394 , decltype(_impl_.cast_mpl_version_){uint64_t{0u}}
3395 , decltype(_impl_.virtual_connection_id_){0u}
3396 , decltype(_impl_.request_id_){0u}
3397 , decltype(_impl_.group_uuid_){uint64_t{0u}}
3398 , decltype(_impl_.aogh_local_device_id_){int64_t{0}}
3399 , decltype(_impl_.remote_app_id_){0u}
3400 , decltype(_impl_.launch_from_){0}
3401 , decltype(_impl_.duo_core_version_){uint64_t{0u}}
3402 , decltype(_impl_.runtime_type_){0}
3403 };
3404 _impl_.conversation_key_.InitDefault();
3405 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
3406 _impl_.conversation_key_.Set("", GetArenaForAllocation());
3407 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
3408 _impl_.event_id_.InitDefault();
3409 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
3410 _impl_.event_id_.Set("", GetArenaForAllocation());
3411 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
3412 _impl_.aogh_request_id_.InitDefault();
3413 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
3414 _impl_.aogh_request_id_.Set("", GetArenaForAllocation());
3415 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
3416 _impl_.timezone_id_.InitDefault();
3417 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
3418 _impl_.timezone_id_.Set("", GetArenaForAllocation());
3419 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
3420 _impl_.ui_version_.InitDefault();
3421 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
3422 _impl_.ui_version_.Set("", GetArenaForAllocation());
3423 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
3424 _impl_.aogh_agent_id_.InitDefault();
3425 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
3426 _impl_.aogh_agent_id_.Set("", GetArenaForAllocation());
3427 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
3428 _impl_.selinux_audit_detail_.InitDefault();
3429 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
3430 _impl_.selinux_audit_detail_.Set("", GetArenaForAllocation());
3431 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
3432 _impl_.hotword_model_id_.InitDefault();
3433 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
3434 _impl_.hotword_model_id_.Set("", GetArenaForAllocation());
3435 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
3436 _impl_.aogh_standard_agent_id_.InitDefault();
3437 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
3438 _impl_.aogh_standard_agent_id_.Set("", GetArenaForAllocation());
3439 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
3440 }
3441
~CastLogsProto_CastEventProto()3442 CastLogsProto_CastEventProto::~CastLogsProto_CastEventProto() {
3443 // @@protoc_insertion_point(destructor:metrics.CastLogsProto.CastEventProto)
3444 if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
3445 (void)arena;
3446 return;
3447 }
3448 SharedDtor();
3449 }
3450
SharedDtor()3451 inline void CastLogsProto_CastEventProto::SharedDtor() {
3452 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
3453 _impl_.metadata_.~RepeatedPtrField();
3454 _impl_.feature_vector_.~RepeatedField();
3455 _impl_.event_id_list_.~RepeatedPtrField();
3456 _impl_.conversation_key_.Destroy();
3457 _impl_.event_id_.Destroy();
3458 _impl_.aogh_request_id_.Destroy();
3459 _impl_.timezone_id_.Destroy();
3460 _impl_.ui_version_.Destroy();
3461 _impl_.aogh_agent_id_.Destroy();
3462 _impl_.selinux_audit_detail_.Destroy();
3463 _impl_.hotword_model_id_.Destroy();
3464 _impl_.aogh_standard_agent_id_.Destroy();
3465 }
3466
SetCachedSize(int size) const3467 void CastLogsProto_CastEventProto::SetCachedSize(int size) const {
3468 _impl_._cached_size_.Set(size);
3469 }
3470
Clear()3471 void CastLogsProto_CastEventProto::Clear() {
3472 // @@protoc_insertion_point(message_clear_start:metrics.CastLogsProto.CastEventProto)
3473 uint32_t cached_has_bits = 0;
3474 // Prevent compiler warnings about cached_has_bits being unused
3475 (void) cached_has_bits;
3476
3477 _impl_.metadata_.Clear();
3478 _impl_.feature_vector_.Clear();
3479 _impl_.event_id_list_.Clear();
3480 cached_has_bits = _impl_._has_bits_[0];
3481 if (cached_has_bits & 0x000000ffu) {
3482 if (cached_has_bits & 0x00000001u) {
3483 _impl_.conversation_key_.ClearNonDefaultToEmpty();
3484 }
3485 if (cached_has_bits & 0x00000002u) {
3486 _impl_.event_id_.ClearNonDefaultToEmpty();
3487 }
3488 if (cached_has_bits & 0x00000004u) {
3489 _impl_.aogh_request_id_.ClearNonDefaultToEmpty();
3490 }
3491 if (cached_has_bits & 0x00000008u) {
3492 _impl_.timezone_id_.ClearNonDefaultToEmpty();
3493 }
3494 if (cached_has_bits & 0x00000010u) {
3495 _impl_.ui_version_.ClearNonDefaultToEmpty();
3496 }
3497 if (cached_has_bits & 0x00000020u) {
3498 _impl_.aogh_agent_id_.ClearNonDefaultToEmpty();
3499 }
3500 if (cached_has_bits & 0x00000040u) {
3501 _impl_.selinux_audit_detail_.ClearNonDefaultToEmpty();
3502 }
3503 if (cached_has_bits & 0x00000080u) {
3504 _impl_.hotword_model_id_.ClearNonDefaultToEmpty();
3505 }
3506 }
3507 if (cached_has_bits & 0x00000100u) {
3508 _impl_.aogh_standard_agent_id_.ClearNonDefaultToEmpty();
3509 }
3510 if (cached_has_bits & 0x0000fe00u) {
3511 ::memset(&_impl_.name_hash_, 0, static_cast<size_t>(
3512 reinterpret_cast<char*>(&_impl_.value_) -
3513 reinterpret_cast<char*>(&_impl_.name_hash_)) + sizeof(_impl_.value_));
3514 }
3515 if (cached_has_bits & 0x00ff0000u) {
3516 ::memset(&_impl_.cast_mpl_version_, 0, static_cast<size_t>(
3517 reinterpret_cast<char*>(&_impl_.duo_core_version_) -
3518 reinterpret_cast<char*>(&_impl_.cast_mpl_version_)) + sizeof(_impl_.duo_core_version_));
3519 }
3520 _impl_.runtime_type_ = 0;
3521 _impl_._has_bits_.Clear();
3522 _internal_metadata_.Clear<std::string>();
3523 }
3524
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)3525 const char* CastLogsProto_CastEventProto::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
3526 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
3527 _Internal::HasBits has_bits{};
3528 while (!ctx->Done(&ptr)) {
3529 uint32_t tag;
3530 ptr = ::_pbi::ReadTag(ptr, &tag);
3531 switch (tag >> 3) {
3532 // optional fixed64 name_hash = 1;
3533 case 1:
3534 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 9)) {
3535 _Internal::set_has_name_hash(&has_bits);
3536 _impl_.name_hash_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<uint64_t>(ptr);
3537 ptr += sizeof(uint64_t);
3538 } else
3539 goto handle_unusual;
3540 continue;
3541 // optional int64 time_msec = 2;
3542 case 2:
3543 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
3544 _Internal::set_has_time_msec(&has_bits);
3545 _impl_.time_msec_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
3546 CHK_(ptr);
3547 } else
3548 goto handle_unusual;
3549 continue;
3550 // optional fixed32 app_id = 3;
3551 case 3:
3552 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 29)) {
3553 _Internal::set_has_app_id(&has_bits);
3554 _impl_.app_id_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<uint32_t>(ptr);
3555 ptr += sizeof(uint32_t);
3556 } else
3557 goto handle_unusual;
3558 continue;
3559 // optional fixed64 application_session_id = 4;
3560 case 4:
3561 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 33)) {
3562 _Internal::set_has_application_session_id(&has_bits);
3563 _impl_.application_session_id_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<uint64_t>(ptr);
3564 ptr += sizeof(uint64_t);
3565 } else
3566 goto handle_unusual;
3567 continue;
3568 // optional fixed64 cast_receiver_version = 5;
3569 case 5:
3570 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 41)) {
3571 _Internal::set_has_cast_receiver_version(&has_bits);
3572 _impl_.cast_receiver_version_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<uint64_t>(ptr);
3573 ptr += sizeof(uint64_t);
3574 } else
3575 goto handle_unusual;
3576 continue;
3577 // optional fixed32 transport_connection_id = 6;
3578 case 6:
3579 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 53)) {
3580 _Internal::set_has_transport_connection_id(&has_bits);
3581 _impl_.transport_connection_id_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<uint32_t>(ptr);
3582 ptr += sizeof(uint32_t);
3583 } else
3584 goto handle_unusual;
3585 continue;
3586 // optional fixed32 virtual_connection_id = 7;
3587 case 7:
3588 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 61)) {
3589 _Internal::set_has_virtual_connection_id(&has_bits);
3590 _impl_.virtual_connection_id_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<uint32_t>(ptr);
3591 ptr += sizeof(uint32_t);
3592 } else
3593 goto handle_unusual;
3594 continue;
3595 // optional int64 value = 8;
3596 case 8:
3597 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 64)) {
3598 _Internal::set_has_value(&has_bits);
3599 _impl_.value_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
3600 CHK_(ptr);
3601 } else
3602 goto handle_unusual;
3603 continue;
3604 // optional fixed64 cast_mpl_version = 9;
3605 case 9:
3606 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 73)) {
3607 _Internal::set_has_cast_mpl_version(&has_bits);
3608 _impl_.cast_mpl_version_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<uint64_t>(ptr);
3609 ptr += sizeof(uint64_t);
3610 } else
3611 goto handle_unusual;
3612 continue;
3613 // optional fixed64 group_uuid = 10;
3614 case 10:
3615 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 81)) {
3616 _Internal::set_has_group_uuid(&has_bits);
3617 _impl_.group_uuid_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<uint64_t>(ptr);
3618 ptr += sizeof(uint64_t);
3619 } else
3620 goto handle_unusual;
3621 continue;
3622 // optional string conversation_key = 11;
3623 case 11:
3624 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 90)) {
3625 auto str = _internal_mutable_conversation_key();
3626 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
3627 CHK_(ptr);
3628 } else
3629 goto handle_unusual;
3630 continue;
3631 // optional fixed32 request_id = 12;
3632 case 12:
3633 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 101)) {
3634 _Internal::set_has_request_id(&has_bits);
3635 _impl_.request_id_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<uint32_t>(ptr);
3636 ptr += sizeof(uint32_t);
3637 } else
3638 goto handle_unusual;
3639 continue;
3640 // optional string event_id = 13;
3641 case 13:
3642 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 106)) {
3643 auto str = _internal_mutable_event_id();
3644 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
3645 CHK_(ptr);
3646 } else
3647 goto handle_unusual;
3648 continue;
3649 // repeated .metrics.CastLogsProto.CastEventProto.Metadata metadata = 14;
3650 case 14:
3651 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 114)) {
3652 ptr -= 1;
3653 do {
3654 ptr += 1;
3655 ptr = ctx->ParseMessage(_internal_add_metadata(), ptr);
3656 CHK_(ptr);
3657 if (!ctx->DataAvailable(ptr)) break;
3658 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<114>(ptr));
3659 } else
3660 goto handle_unusual;
3661 continue;
3662 // repeated float feature_vector = 15;
3663 case 15:
3664 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 125)) {
3665 ptr -= 1;
3666 do {
3667 ptr += 1;
3668 _internal_add_feature_vector(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr));
3669 ptr += sizeof(float);
3670 if (!ctx->DataAvailable(ptr)) break;
3671 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<125>(ptr));
3672 } else if (static_cast<uint8_t>(tag) == 122) {
3673 ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedFloatParser(_internal_mutable_feature_vector(), ptr, ctx);
3674 CHK_(ptr);
3675 } else
3676 goto handle_unusual;
3677 continue;
3678 // optional string aogh_request_id = 16;
3679 case 16:
3680 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 130)) {
3681 auto str = _internal_mutable_aogh_request_id();
3682 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
3683 CHK_(ptr);
3684 } else
3685 goto handle_unusual;
3686 continue;
3687 // optional string timezone_id = 17;
3688 case 17:
3689 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 138)) {
3690 auto str = _internal_mutable_timezone_id();
3691 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
3692 CHK_(ptr);
3693 } else
3694 goto handle_unusual;
3695 continue;
3696 // optional int64 aogh_local_device_id = 18;
3697 case 18:
3698 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 144)) {
3699 _Internal::set_has_aogh_local_device_id(&has_bits);
3700 _impl_.aogh_local_device_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
3701 CHK_(ptr);
3702 } else
3703 goto handle_unusual;
3704 continue;
3705 // optional fixed32 remote_app_id = 19;
3706 case 19:
3707 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 157)) {
3708 _Internal::set_has_remote_app_id(&has_bits);
3709 _impl_.remote_app_id_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<uint32_t>(ptr);
3710 ptr += sizeof(uint32_t);
3711 } else
3712 goto handle_unusual;
3713 continue;
3714 // optional string ui_version = 20;
3715 case 20:
3716 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 162)) {
3717 auto str = _internal_mutable_ui_version();
3718 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
3719 CHK_(ptr);
3720 } else
3721 goto handle_unusual;
3722 continue;
3723 // optional string aogh_agent_id = 21;
3724 case 21:
3725 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 170)) {
3726 auto str = _internal_mutable_aogh_agent_id();
3727 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
3728 CHK_(ptr);
3729 } else
3730 goto handle_unusual;
3731 continue;
3732 // optional string selinux_audit_detail = 22;
3733 case 22:
3734 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 178)) {
3735 auto str = _internal_mutable_selinux_audit_detail();
3736 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
3737 CHK_(ptr);
3738 } else
3739 goto handle_unusual;
3740 continue;
3741 // repeated string event_id_list = 23;
3742 case 23:
3743 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 186)) {
3744 ptr -= 2;
3745 do {
3746 ptr += 2;
3747 auto str = _internal_add_event_id_list();
3748 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
3749 CHK_(ptr);
3750 if (!ctx->DataAvailable(ptr)) break;
3751 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<186>(ptr));
3752 } else
3753 goto handle_unusual;
3754 continue;
3755 // optional fixed64 duo_core_version = 24;
3756 case 24:
3757 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 193)) {
3758 _Internal::set_has_duo_core_version(&has_bits);
3759 _impl_.duo_core_version_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<uint64_t>(ptr);
3760 ptr += sizeof(uint64_t);
3761 } else
3762 goto handle_unusual;
3763 continue;
3764 // optional string hotword_model_id = 25;
3765 case 25:
3766 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 202)) {
3767 auto str = _internal_mutable_hotword_model_id();
3768 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
3769 CHK_(ptr);
3770 } else
3771 goto handle_unusual;
3772 continue;
3773 // optional .metrics.CastLogsProto.CastEventProto.LaunchFrom launch_from = 26;
3774 case 26:
3775 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 208)) {
3776 uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
3777 CHK_(ptr);
3778 if (PROTOBUF_PREDICT_TRUE(::metrics::CastLogsProto_CastEventProto_LaunchFrom_IsValid(val))) {
3779 _internal_set_launch_from(static_cast<::metrics::CastLogsProto_CastEventProto_LaunchFrom>(val));
3780 } else {
3781 ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(26, val, mutable_unknown_fields());
3782 }
3783 } else
3784 goto handle_unusual;
3785 continue;
3786 // optional .metrics.CastLogsProto.CastEventProto.RuntimeType runtime_type = 27;
3787 case 27:
3788 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 216)) {
3789 uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
3790 CHK_(ptr);
3791 if (PROTOBUF_PREDICT_TRUE(::metrics::CastLogsProto_CastEventProto_RuntimeType_IsValid(val))) {
3792 _internal_set_runtime_type(static_cast<::metrics::CastLogsProto_CastEventProto_RuntimeType>(val));
3793 } else {
3794 ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(27, val, mutable_unknown_fields());
3795 }
3796 } else
3797 goto handle_unusual;
3798 continue;
3799 // optional string aogh_standard_agent_id = 28;
3800 case 28:
3801 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 226)) {
3802 auto str = _internal_mutable_aogh_standard_agent_id();
3803 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
3804 CHK_(ptr);
3805 } else
3806 goto handle_unusual;
3807 continue;
3808 default:
3809 goto handle_unusual;
3810 } // switch
3811 handle_unusual:
3812 if ((tag == 0) || ((tag & 7) == 4)) {
3813 CHK_(ptr);
3814 ctx->SetLastTag(tag);
3815 goto message_done;
3816 }
3817 ptr = UnknownFieldParse(
3818 tag,
3819 _internal_metadata_.mutable_unknown_fields<std::string>(),
3820 ptr, ctx);
3821 CHK_(ptr != nullptr);
3822 } // while
3823 message_done:
3824 _impl_._has_bits_.Or(has_bits);
3825 return ptr;
3826 failure:
3827 ptr = nullptr;
3828 goto message_done;
3829 #undef CHK_
3830 }
3831
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const3832 uint8_t* CastLogsProto_CastEventProto::_InternalSerialize(
3833 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
3834 // @@protoc_insertion_point(serialize_to_array_start:metrics.CastLogsProto.CastEventProto)
3835 uint32_t cached_has_bits = 0;
3836 (void) cached_has_bits;
3837
3838 cached_has_bits = _impl_._has_bits_[0];
3839 // optional fixed64 name_hash = 1;
3840 if (cached_has_bits & 0x00000200u) {
3841 target = stream->EnsureSpace(target);
3842 target = ::_pbi::WireFormatLite::WriteFixed64ToArray(1, this->_internal_name_hash(), target);
3843 }
3844
3845 // optional int64 time_msec = 2;
3846 if (cached_has_bits & 0x00000400u) {
3847 target = stream->EnsureSpace(target);
3848 target = ::_pbi::WireFormatLite::WriteInt64ToArray(2, this->_internal_time_msec(), target);
3849 }
3850
3851 // optional fixed32 app_id = 3;
3852 if (cached_has_bits & 0x00001000u) {
3853 target = stream->EnsureSpace(target);
3854 target = ::_pbi::WireFormatLite::WriteFixed32ToArray(3, this->_internal_app_id(), target);
3855 }
3856
3857 // optional fixed64 application_session_id = 4;
3858 if (cached_has_bits & 0x00000800u) {
3859 target = stream->EnsureSpace(target);
3860 target = ::_pbi::WireFormatLite::WriteFixed64ToArray(4, this->_internal_application_session_id(), target);
3861 }
3862
3863 // optional fixed64 cast_receiver_version = 5;
3864 if (cached_has_bits & 0x00004000u) {
3865 target = stream->EnsureSpace(target);
3866 target = ::_pbi::WireFormatLite::WriteFixed64ToArray(5, this->_internal_cast_receiver_version(), target);
3867 }
3868
3869 // optional fixed32 transport_connection_id = 6;
3870 if (cached_has_bits & 0x00002000u) {
3871 target = stream->EnsureSpace(target);
3872 target = ::_pbi::WireFormatLite::WriteFixed32ToArray(6, this->_internal_transport_connection_id(), target);
3873 }
3874
3875 // optional fixed32 virtual_connection_id = 7;
3876 if (cached_has_bits & 0x00020000u) {
3877 target = stream->EnsureSpace(target);
3878 target = ::_pbi::WireFormatLite::WriteFixed32ToArray(7, this->_internal_virtual_connection_id(), target);
3879 }
3880
3881 // optional int64 value = 8;
3882 if (cached_has_bits & 0x00008000u) {
3883 target = stream->EnsureSpace(target);
3884 target = ::_pbi::WireFormatLite::WriteInt64ToArray(8, this->_internal_value(), target);
3885 }
3886
3887 // optional fixed64 cast_mpl_version = 9;
3888 if (cached_has_bits & 0x00010000u) {
3889 target = stream->EnsureSpace(target);
3890 target = ::_pbi::WireFormatLite::WriteFixed64ToArray(9, this->_internal_cast_mpl_version(), target);
3891 }
3892
3893 // optional fixed64 group_uuid = 10;
3894 if (cached_has_bits & 0x00080000u) {
3895 target = stream->EnsureSpace(target);
3896 target = ::_pbi::WireFormatLite::WriteFixed64ToArray(10, this->_internal_group_uuid(), target);
3897 }
3898
3899 // optional string conversation_key = 11;
3900 if (cached_has_bits & 0x00000001u) {
3901 target = stream->WriteStringMaybeAliased(
3902 11, this->_internal_conversation_key(), target);
3903 }
3904
3905 // optional fixed32 request_id = 12;
3906 if (cached_has_bits & 0x00040000u) {
3907 target = stream->EnsureSpace(target);
3908 target = ::_pbi::WireFormatLite::WriteFixed32ToArray(12, this->_internal_request_id(), target);
3909 }
3910
3911 // optional string event_id = 13;
3912 if (cached_has_bits & 0x00000002u) {
3913 target = stream->WriteStringMaybeAliased(
3914 13, this->_internal_event_id(), target);
3915 }
3916
3917 // repeated .metrics.CastLogsProto.CastEventProto.Metadata metadata = 14;
3918 for (unsigned i = 0,
3919 n = static_cast<unsigned>(this->_internal_metadata_size()); i < n; i++) {
3920 const auto& repfield = this->_internal_metadata(i);
3921 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
3922 InternalWriteMessage(14, repfield, repfield.GetCachedSize(), target, stream);
3923 }
3924
3925 // repeated float feature_vector = 15;
3926 for (int i = 0, n = this->_internal_feature_vector_size(); i < n; i++) {
3927 target = stream->EnsureSpace(target);
3928 target = ::_pbi::WireFormatLite::WriteFloatToArray(15, this->_internal_feature_vector(i), target);
3929 }
3930
3931 // optional string aogh_request_id = 16;
3932 if (cached_has_bits & 0x00000004u) {
3933 target = stream->WriteStringMaybeAliased(
3934 16, this->_internal_aogh_request_id(), target);
3935 }
3936
3937 // optional string timezone_id = 17;
3938 if (cached_has_bits & 0x00000008u) {
3939 target = stream->WriteStringMaybeAliased(
3940 17, this->_internal_timezone_id(), target);
3941 }
3942
3943 // optional int64 aogh_local_device_id = 18;
3944 if (cached_has_bits & 0x00100000u) {
3945 target = stream->EnsureSpace(target);
3946 target = ::_pbi::WireFormatLite::WriteInt64ToArray(18, this->_internal_aogh_local_device_id(), target);
3947 }
3948
3949 // optional fixed32 remote_app_id = 19;
3950 if (cached_has_bits & 0x00200000u) {
3951 target = stream->EnsureSpace(target);
3952 target = ::_pbi::WireFormatLite::WriteFixed32ToArray(19, this->_internal_remote_app_id(), target);
3953 }
3954
3955 // optional string ui_version = 20;
3956 if (cached_has_bits & 0x00000010u) {
3957 target = stream->WriteStringMaybeAliased(
3958 20, this->_internal_ui_version(), target);
3959 }
3960
3961 // optional string aogh_agent_id = 21;
3962 if (cached_has_bits & 0x00000020u) {
3963 target = stream->WriteStringMaybeAliased(
3964 21, this->_internal_aogh_agent_id(), target);
3965 }
3966
3967 // optional string selinux_audit_detail = 22;
3968 if (cached_has_bits & 0x00000040u) {
3969 target = stream->WriteStringMaybeAliased(
3970 22, this->_internal_selinux_audit_detail(), target);
3971 }
3972
3973 // repeated string event_id_list = 23;
3974 for (int i = 0, n = this->_internal_event_id_list_size(); i < n; i++) {
3975 const auto& s = this->_internal_event_id_list(i);
3976 target = stream->WriteString(23, s, target);
3977 }
3978
3979 // optional fixed64 duo_core_version = 24;
3980 if (cached_has_bits & 0x00800000u) {
3981 target = stream->EnsureSpace(target);
3982 target = ::_pbi::WireFormatLite::WriteFixed64ToArray(24, this->_internal_duo_core_version(), target);
3983 }
3984
3985 // optional string hotword_model_id = 25;
3986 if (cached_has_bits & 0x00000080u) {
3987 target = stream->WriteStringMaybeAliased(
3988 25, this->_internal_hotword_model_id(), target);
3989 }
3990
3991 // optional .metrics.CastLogsProto.CastEventProto.LaunchFrom launch_from = 26;
3992 if (cached_has_bits & 0x00400000u) {
3993 target = stream->EnsureSpace(target);
3994 target = ::_pbi::WireFormatLite::WriteEnumToArray(
3995 26, this->_internal_launch_from(), target);
3996 }
3997
3998 // optional .metrics.CastLogsProto.CastEventProto.RuntimeType runtime_type = 27;
3999 if (cached_has_bits & 0x01000000u) {
4000 target = stream->EnsureSpace(target);
4001 target = ::_pbi::WireFormatLite::WriteEnumToArray(
4002 27, this->_internal_runtime_type(), target);
4003 }
4004
4005 // optional string aogh_standard_agent_id = 28;
4006 if (cached_has_bits & 0x00000100u) {
4007 target = stream->WriteStringMaybeAliased(
4008 28, this->_internal_aogh_standard_agent_id(), target);
4009 }
4010
4011 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
4012 target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
4013 static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
4014 }
4015 // @@protoc_insertion_point(serialize_to_array_end:metrics.CastLogsProto.CastEventProto)
4016 return target;
4017 }
4018
ByteSizeLong() const4019 size_t CastLogsProto_CastEventProto::ByteSizeLong() const {
4020 // @@protoc_insertion_point(message_byte_size_start:metrics.CastLogsProto.CastEventProto)
4021 size_t total_size = 0;
4022
4023 uint32_t cached_has_bits = 0;
4024 // Prevent compiler warnings about cached_has_bits being unused
4025 (void) cached_has_bits;
4026
4027 // repeated .metrics.CastLogsProto.CastEventProto.Metadata metadata = 14;
4028 total_size += 1UL * this->_internal_metadata_size();
4029 for (const auto& msg : this->_impl_.metadata_) {
4030 total_size +=
4031 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
4032 }
4033
4034 // repeated float feature_vector = 15;
4035 {
4036 unsigned int count = static_cast<unsigned int>(this->_internal_feature_vector_size());
4037 size_t data_size = 4UL * count;
4038 total_size += 1 *
4039 ::_pbi::FromIntSize(this->_internal_feature_vector_size());
4040 total_size += data_size;
4041 }
4042
4043 // repeated string event_id_list = 23;
4044 total_size += 2 *
4045 ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.event_id_list_.size());
4046 for (int i = 0, n = _impl_.event_id_list_.size(); i < n; i++) {
4047 total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
4048 _impl_.event_id_list_.Get(i));
4049 }
4050
4051 cached_has_bits = _impl_._has_bits_[0];
4052 if (cached_has_bits & 0x000000ffu) {
4053 // optional string conversation_key = 11;
4054 if (cached_has_bits & 0x00000001u) {
4055 total_size += 1 +
4056 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
4057 this->_internal_conversation_key());
4058 }
4059
4060 // optional string event_id = 13;
4061 if (cached_has_bits & 0x00000002u) {
4062 total_size += 1 +
4063 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
4064 this->_internal_event_id());
4065 }
4066
4067 // optional string aogh_request_id = 16;
4068 if (cached_has_bits & 0x00000004u) {
4069 total_size += 2 +
4070 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
4071 this->_internal_aogh_request_id());
4072 }
4073
4074 // optional string timezone_id = 17;
4075 if (cached_has_bits & 0x00000008u) {
4076 total_size += 2 +
4077 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
4078 this->_internal_timezone_id());
4079 }
4080
4081 // optional string ui_version = 20;
4082 if (cached_has_bits & 0x00000010u) {
4083 total_size += 2 +
4084 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
4085 this->_internal_ui_version());
4086 }
4087
4088 // optional string aogh_agent_id = 21;
4089 if (cached_has_bits & 0x00000020u) {
4090 total_size += 2 +
4091 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
4092 this->_internal_aogh_agent_id());
4093 }
4094
4095 // optional string selinux_audit_detail = 22;
4096 if (cached_has_bits & 0x00000040u) {
4097 total_size += 2 +
4098 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
4099 this->_internal_selinux_audit_detail());
4100 }
4101
4102 // optional string hotword_model_id = 25;
4103 if (cached_has_bits & 0x00000080u) {
4104 total_size += 2 +
4105 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
4106 this->_internal_hotword_model_id());
4107 }
4108
4109 }
4110 if (cached_has_bits & 0x0000ff00u) {
4111 // optional string aogh_standard_agent_id = 28;
4112 if (cached_has_bits & 0x00000100u) {
4113 total_size += 2 +
4114 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
4115 this->_internal_aogh_standard_agent_id());
4116 }
4117
4118 // optional fixed64 name_hash = 1;
4119 if (cached_has_bits & 0x00000200u) {
4120 total_size += 1 + 8;
4121 }
4122
4123 // optional int64 time_msec = 2;
4124 if (cached_has_bits & 0x00000400u) {
4125 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_time_msec());
4126 }
4127
4128 // optional fixed64 application_session_id = 4;
4129 if (cached_has_bits & 0x00000800u) {
4130 total_size += 1 + 8;
4131 }
4132
4133 // optional fixed32 app_id = 3;
4134 if (cached_has_bits & 0x00001000u) {
4135 total_size += 1 + 4;
4136 }
4137
4138 // optional fixed32 transport_connection_id = 6;
4139 if (cached_has_bits & 0x00002000u) {
4140 total_size += 1 + 4;
4141 }
4142
4143 // optional fixed64 cast_receiver_version = 5;
4144 if (cached_has_bits & 0x00004000u) {
4145 total_size += 1 + 8;
4146 }
4147
4148 // optional int64 value = 8;
4149 if (cached_has_bits & 0x00008000u) {
4150 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_value());
4151 }
4152
4153 }
4154 if (cached_has_bits & 0x00ff0000u) {
4155 // optional fixed64 cast_mpl_version = 9;
4156 if (cached_has_bits & 0x00010000u) {
4157 total_size += 1 + 8;
4158 }
4159
4160 // optional fixed32 virtual_connection_id = 7;
4161 if (cached_has_bits & 0x00020000u) {
4162 total_size += 1 + 4;
4163 }
4164
4165 // optional fixed32 request_id = 12;
4166 if (cached_has_bits & 0x00040000u) {
4167 total_size += 1 + 4;
4168 }
4169
4170 // optional fixed64 group_uuid = 10;
4171 if (cached_has_bits & 0x00080000u) {
4172 total_size += 1 + 8;
4173 }
4174
4175 // optional int64 aogh_local_device_id = 18;
4176 if (cached_has_bits & 0x00100000u) {
4177 total_size += 2 +
4178 ::_pbi::WireFormatLite::Int64Size(
4179 this->_internal_aogh_local_device_id());
4180 }
4181
4182 // optional fixed32 remote_app_id = 19;
4183 if (cached_has_bits & 0x00200000u) {
4184 total_size += 2 + 4;
4185 }
4186
4187 // optional .metrics.CastLogsProto.CastEventProto.LaunchFrom launch_from = 26;
4188 if (cached_has_bits & 0x00400000u) {
4189 total_size += 2 +
4190 ::_pbi::WireFormatLite::EnumSize(this->_internal_launch_from());
4191 }
4192
4193 // optional fixed64 duo_core_version = 24;
4194 if (cached_has_bits & 0x00800000u) {
4195 total_size += 2 + 8;
4196 }
4197
4198 }
4199 // optional .metrics.CastLogsProto.CastEventProto.RuntimeType runtime_type = 27;
4200 if (cached_has_bits & 0x01000000u) {
4201 total_size += 2 +
4202 ::_pbi::WireFormatLite::EnumSize(this->_internal_runtime_type());
4203 }
4204
4205 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
4206 total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
4207 }
4208 int cached_size = ::_pbi::ToCachedSize(total_size);
4209 SetCachedSize(cached_size);
4210 return total_size;
4211 }
4212
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)4213 void CastLogsProto_CastEventProto::CheckTypeAndMergeFrom(
4214 const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
4215 MergeFrom(*::_pbi::DownCast<const CastLogsProto_CastEventProto*>(
4216 &from));
4217 }
4218
MergeFrom(const CastLogsProto_CastEventProto & from)4219 void CastLogsProto_CastEventProto::MergeFrom(const CastLogsProto_CastEventProto& from) {
4220 CastLogsProto_CastEventProto* const _this = this;
4221 // @@protoc_insertion_point(class_specific_merge_from_start:metrics.CastLogsProto.CastEventProto)
4222 GOOGLE_DCHECK_NE(&from, _this);
4223 uint32_t cached_has_bits = 0;
4224 (void) cached_has_bits;
4225
4226 _this->_impl_.metadata_.MergeFrom(from._impl_.metadata_);
4227 _this->_impl_.feature_vector_.MergeFrom(from._impl_.feature_vector_);
4228 _this->_impl_.event_id_list_.MergeFrom(from._impl_.event_id_list_);
4229 cached_has_bits = from._impl_._has_bits_[0];
4230 if (cached_has_bits & 0x000000ffu) {
4231 if (cached_has_bits & 0x00000001u) {
4232 _this->_internal_set_conversation_key(from._internal_conversation_key());
4233 }
4234 if (cached_has_bits & 0x00000002u) {
4235 _this->_internal_set_event_id(from._internal_event_id());
4236 }
4237 if (cached_has_bits & 0x00000004u) {
4238 _this->_internal_set_aogh_request_id(from._internal_aogh_request_id());
4239 }
4240 if (cached_has_bits & 0x00000008u) {
4241 _this->_internal_set_timezone_id(from._internal_timezone_id());
4242 }
4243 if (cached_has_bits & 0x00000010u) {
4244 _this->_internal_set_ui_version(from._internal_ui_version());
4245 }
4246 if (cached_has_bits & 0x00000020u) {
4247 _this->_internal_set_aogh_agent_id(from._internal_aogh_agent_id());
4248 }
4249 if (cached_has_bits & 0x00000040u) {
4250 _this->_internal_set_selinux_audit_detail(from._internal_selinux_audit_detail());
4251 }
4252 if (cached_has_bits & 0x00000080u) {
4253 _this->_internal_set_hotword_model_id(from._internal_hotword_model_id());
4254 }
4255 }
4256 if (cached_has_bits & 0x0000ff00u) {
4257 if (cached_has_bits & 0x00000100u) {
4258 _this->_internal_set_aogh_standard_agent_id(from._internal_aogh_standard_agent_id());
4259 }
4260 if (cached_has_bits & 0x00000200u) {
4261 _this->_impl_.name_hash_ = from._impl_.name_hash_;
4262 }
4263 if (cached_has_bits & 0x00000400u) {
4264 _this->_impl_.time_msec_ = from._impl_.time_msec_;
4265 }
4266 if (cached_has_bits & 0x00000800u) {
4267 _this->_impl_.application_session_id_ = from._impl_.application_session_id_;
4268 }
4269 if (cached_has_bits & 0x00001000u) {
4270 _this->_impl_.app_id_ = from._impl_.app_id_;
4271 }
4272 if (cached_has_bits & 0x00002000u) {
4273 _this->_impl_.transport_connection_id_ = from._impl_.transport_connection_id_;
4274 }
4275 if (cached_has_bits & 0x00004000u) {
4276 _this->_impl_.cast_receiver_version_ = from._impl_.cast_receiver_version_;
4277 }
4278 if (cached_has_bits & 0x00008000u) {
4279 _this->_impl_.value_ = from._impl_.value_;
4280 }
4281 _this->_impl_._has_bits_[0] |= cached_has_bits;
4282 }
4283 if (cached_has_bits & 0x00ff0000u) {
4284 if (cached_has_bits & 0x00010000u) {
4285 _this->_impl_.cast_mpl_version_ = from._impl_.cast_mpl_version_;
4286 }
4287 if (cached_has_bits & 0x00020000u) {
4288 _this->_impl_.virtual_connection_id_ = from._impl_.virtual_connection_id_;
4289 }
4290 if (cached_has_bits & 0x00040000u) {
4291 _this->_impl_.request_id_ = from._impl_.request_id_;
4292 }
4293 if (cached_has_bits & 0x00080000u) {
4294 _this->_impl_.group_uuid_ = from._impl_.group_uuid_;
4295 }
4296 if (cached_has_bits & 0x00100000u) {
4297 _this->_impl_.aogh_local_device_id_ = from._impl_.aogh_local_device_id_;
4298 }
4299 if (cached_has_bits & 0x00200000u) {
4300 _this->_impl_.remote_app_id_ = from._impl_.remote_app_id_;
4301 }
4302 if (cached_has_bits & 0x00400000u) {
4303 _this->_impl_.launch_from_ = from._impl_.launch_from_;
4304 }
4305 if (cached_has_bits & 0x00800000u) {
4306 _this->_impl_.duo_core_version_ = from._impl_.duo_core_version_;
4307 }
4308 _this->_impl_._has_bits_[0] |= cached_has_bits;
4309 }
4310 if (cached_has_bits & 0x01000000u) {
4311 _this->_internal_set_runtime_type(from._internal_runtime_type());
4312 }
4313 _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
4314 }
4315
CopyFrom(const CastLogsProto_CastEventProto & from)4316 void CastLogsProto_CastEventProto::CopyFrom(const CastLogsProto_CastEventProto& from) {
4317 // @@protoc_insertion_point(class_specific_copy_from_start:metrics.CastLogsProto.CastEventProto)
4318 if (&from == this) return;
4319 Clear();
4320 MergeFrom(from);
4321 }
4322
IsInitialized() const4323 bool CastLogsProto_CastEventProto::IsInitialized() const {
4324 return true;
4325 }
4326
InternalSwap(CastLogsProto_CastEventProto * other)4327 void CastLogsProto_CastEventProto::InternalSwap(CastLogsProto_CastEventProto* other) {
4328 using std::swap;
4329 auto* lhs_arena = GetArenaForAllocation();
4330 auto* rhs_arena = other->GetArenaForAllocation();
4331 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
4332 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
4333 _impl_.metadata_.InternalSwap(&other->_impl_.metadata_);
4334 _impl_.feature_vector_.InternalSwap(&other->_impl_.feature_vector_);
4335 _impl_.event_id_list_.InternalSwap(&other->_impl_.event_id_list_);
4336 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
4337 &_impl_.conversation_key_, lhs_arena,
4338 &other->_impl_.conversation_key_, rhs_arena
4339 );
4340 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
4341 &_impl_.event_id_, lhs_arena,
4342 &other->_impl_.event_id_, rhs_arena
4343 );
4344 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
4345 &_impl_.aogh_request_id_, lhs_arena,
4346 &other->_impl_.aogh_request_id_, rhs_arena
4347 );
4348 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
4349 &_impl_.timezone_id_, lhs_arena,
4350 &other->_impl_.timezone_id_, rhs_arena
4351 );
4352 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
4353 &_impl_.ui_version_, lhs_arena,
4354 &other->_impl_.ui_version_, rhs_arena
4355 );
4356 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
4357 &_impl_.aogh_agent_id_, lhs_arena,
4358 &other->_impl_.aogh_agent_id_, rhs_arena
4359 );
4360 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
4361 &_impl_.selinux_audit_detail_, lhs_arena,
4362 &other->_impl_.selinux_audit_detail_, rhs_arena
4363 );
4364 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
4365 &_impl_.hotword_model_id_, lhs_arena,
4366 &other->_impl_.hotword_model_id_, rhs_arena
4367 );
4368 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
4369 &_impl_.aogh_standard_agent_id_, lhs_arena,
4370 &other->_impl_.aogh_standard_agent_id_, rhs_arena
4371 );
4372 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
4373 PROTOBUF_FIELD_OFFSET(CastLogsProto_CastEventProto, _impl_.runtime_type_)
4374 + sizeof(CastLogsProto_CastEventProto::_impl_.runtime_type_)
4375 - PROTOBUF_FIELD_OFFSET(CastLogsProto_CastEventProto, _impl_.name_hash_)>(
4376 reinterpret_cast<char*>(&_impl_.name_hash_),
4377 reinterpret_cast<char*>(&other->_impl_.name_hash_));
4378 }
4379
GetTypeName() const4380 std::string CastLogsProto_CastEventProto::GetTypeName() const {
4381 return "metrics.CastLogsProto.CastEventProto";
4382 }
4383
4384
4385 // ===================================================================
4386
4387 class CastLogsProto_CastDeviceMutableInfo::_Internal {
4388 public:
4389 using HasBits = decltype(std::declval<CastLogsProto_CastDeviceMutableInfo>()._impl_._has_bits_);
set_has_last_reboot_type(HasBits * has_bits)4390 static void set_has_last_reboot_type(HasBits* has_bits) {
4391 (*has_bits)[0] |= 128u;
4392 }
set_has_system_build_number(HasBits * has_bits)4393 static void set_has_system_build_number(HasBits* has_bits) {
4394 (*has_bits)[0] |= 64u;
4395 }
set_has_backdrop_app_device_id(HasBits * has_bits)4396 static void set_has_backdrop_app_device_id(HasBits* has_bits) {
4397 (*has_bits)[0] |= 1u;
4398 }
set_has_release_version(HasBits * has_bits)4399 static void set_has_release_version(HasBits* has_bits) {
4400 (*has_bits)[0] |= 256u;
4401 }
set_has_netif_ip_version(HasBits * has_bits)4402 static void set_has_netif_ip_version(HasBits* has_bits) {
4403 (*has_bits)[0] |= 512u;
4404 }
set_has_ip_dual_stack_supported(HasBits * has_bits)4405 static void set_has_ip_dual_stack_supported(HasBits* has_bits) {
4406 (*has_bits)[0] |= 1024u;
4407 }
set_has_timezone_id(HasBits * has_bits)4408 static void set_has_timezone_id(HasBits* has_bits) {
4409 (*has_bits)[0] |= 2u;
4410 }
set_has_latest_ui_version(HasBits * has_bits)4411 static void set_has_latest_ui_version(HasBits* has_bits) {
4412 (*has_bits)[0] |= 4u;
4413 }
set_has_google_wifi_station_shmac(HasBits * has_bits)4414 static void set_has_google_wifi_station_shmac(HasBits* has_bits) {
4415 (*has_bits)[0] |= 8u;
4416 }
set_has_installed_manifest_platform_version(HasBits * has_bits)4417 static void set_has_installed_manifest_platform_version(HasBits* has_bits) {
4418 (*has_bits)[0] |= 16u;
4419 }
set_has_installed_manifest_version(HasBits * has_bits)4420 static void set_has_installed_manifest_version(HasBits* has_bits) {
4421 (*has_bits)[0] |= 2048u;
4422 }
set_has_system_bundle_version(HasBits * has_bits)4423 static void set_has_system_bundle_version(HasBits* has_bits) {
4424 (*has_bits)[0] |= 32u;
4425 }
4426 };
4427
CastLogsProto_CastDeviceMutableInfo(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)4428 CastLogsProto_CastDeviceMutableInfo::CastLogsProto_CastDeviceMutableInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena,
4429 bool is_message_owned)
4430 : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
4431 SharedCtor(arena, is_message_owned);
4432 // @@protoc_insertion_point(arena_constructor:metrics.CastLogsProto.CastDeviceMutableInfo)
4433 }
CastLogsProto_CastDeviceMutableInfo(const CastLogsProto_CastDeviceMutableInfo & from)4434 CastLogsProto_CastDeviceMutableInfo::CastLogsProto_CastDeviceMutableInfo(const CastLogsProto_CastDeviceMutableInfo& from)
4435 : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
4436 CastLogsProto_CastDeviceMutableInfo* const _this = this; (void)_this;
4437 new (&_impl_) Impl_{
4438 decltype(_impl_._has_bits_){from._impl_._has_bits_}
4439 , /*decltype(_impl_._cached_size_)*/{}
4440 , decltype(_impl_.backdrop_app_device_id_){}
4441 , decltype(_impl_.timezone_id_){}
4442 , decltype(_impl_.latest_ui_version_){}
4443 , decltype(_impl_.google_wifi_station_shmac_){}
4444 , decltype(_impl_.installed_manifest_platform_version_){}
4445 , decltype(_impl_.system_bundle_version_){}
4446 , decltype(_impl_.system_build_number_){}
4447 , decltype(_impl_.last_reboot_type_){}
4448 , decltype(_impl_.release_version_){}
4449 , decltype(_impl_.netif_ip_version_){}
4450 , decltype(_impl_.ip_dual_stack_supported_){}
4451 , decltype(_impl_.installed_manifest_version_){}};
4452
4453 _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
4454 _impl_.backdrop_app_device_id_.InitDefault();
4455 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
4456 _impl_.backdrop_app_device_id_.Set("", GetArenaForAllocation());
4457 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
4458 if (from._internal_has_backdrop_app_device_id()) {
4459 _this->_impl_.backdrop_app_device_id_.Set(from._internal_backdrop_app_device_id(),
4460 _this->GetArenaForAllocation());
4461 }
4462 _impl_.timezone_id_.InitDefault();
4463 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
4464 _impl_.timezone_id_.Set("", GetArenaForAllocation());
4465 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
4466 if (from._internal_has_timezone_id()) {
4467 _this->_impl_.timezone_id_.Set(from._internal_timezone_id(),
4468 _this->GetArenaForAllocation());
4469 }
4470 _impl_.latest_ui_version_.InitDefault();
4471 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
4472 _impl_.latest_ui_version_.Set("", GetArenaForAllocation());
4473 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
4474 if (from._internal_has_latest_ui_version()) {
4475 _this->_impl_.latest_ui_version_.Set(from._internal_latest_ui_version(),
4476 _this->GetArenaForAllocation());
4477 }
4478 _impl_.google_wifi_station_shmac_.InitDefault();
4479 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
4480 _impl_.google_wifi_station_shmac_.Set("", GetArenaForAllocation());
4481 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
4482 if (from._internal_has_google_wifi_station_shmac()) {
4483 _this->_impl_.google_wifi_station_shmac_.Set(from._internal_google_wifi_station_shmac(),
4484 _this->GetArenaForAllocation());
4485 }
4486 _impl_.installed_manifest_platform_version_.InitDefault();
4487 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
4488 _impl_.installed_manifest_platform_version_.Set("", GetArenaForAllocation());
4489 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
4490 if (from._internal_has_installed_manifest_platform_version()) {
4491 _this->_impl_.installed_manifest_platform_version_.Set(from._internal_installed_manifest_platform_version(),
4492 _this->GetArenaForAllocation());
4493 }
4494 _impl_.system_bundle_version_.InitDefault();
4495 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
4496 _impl_.system_bundle_version_.Set("", GetArenaForAllocation());
4497 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
4498 if (from._internal_has_system_bundle_version()) {
4499 _this->_impl_.system_bundle_version_.Set(from._internal_system_bundle_version(),
4500 _this->GetArenaForAllocation());
4501 }
4502 ::memcpy(&_impl_.system_build_number_, &from._impl_.system_build_number_,
4503 static_cast<size_t>(reinterpret_cast<char*>(&_impl_.installed_manifest_version_) -
4504 reinterpret_cast<char*>(&_impl_.system_build_number_)) + sizeof(_impl_.installed_manifest_version_));
4505 // @@protoc_insertion_point(copy_constructor:metrics.CastLogsProto.CastDeviceMutableInfo)
4506 }
4507
SharedCtor(::_pb::Arena * arena,bool is_message_owned)4508 inline void CastLogsProto_CastDeviceMutableInfo::SharedCtor(
4509 ::_pb::Arena* arena, bool is_message_owned) {
4510 (void)arena;
4511 (void)is_message_owned;
4512 new (&_impl_) Impl_{
4513 decltype(_impl_._has_bits_){}
4514 , /*decltype(_impl_._cached_size_)*/{}
4515 , decltype(_impl_.backdrop_app_device_id_){}
4516 , decltype(_impl_.timezone_id_){}
4517 , decltype(_impl_.latest_ui_version_){}
4518 , decltype(_impl_.google_wifi_station_shmac_){}
4519 , decltype(_impl_.installed_manifest_platform_version_){}
4520 , decltype(_impl_.system_bundle_version_){}
4521 , decltype(_impl_.system_build_number_){uint64_t{0u}}
4522 , decltype(_impl_.last_reboot_type_){0}
4523 , decltype(_impl_.release_version_){0u}
4524 , decltype(_impl_.netif_ip_version_){0}
4525 , decltype(_impl_.ip_dual_stack_supported_){false}
4526 , decltype(_impl_.installed_manifest_version_){0u}
4527 };
4528 _impl_.backdrop_app_device_id_.InitDefault();
4529 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
4530 _impl_.backdrop_app_device_id_.Set("", GetArenaForAllocation());
4531 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
4532 _impl_.timezone_id_.InitDefault();
4533 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
4534 _impl_.timezone_id_.Set("", GetArenaForAllocation());
4535 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
4536 _impl_.latest_ui_version_.InitDefault();
4537 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
4538 _impl_.latest_ui_version_.Set("", GetArenaForAllocation());
4539 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
4540 _impl_.google_wifi_station_shmac_.InitDefault();
4541 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
4542 _impl_.google_wifi_station_shmac_.Set("", GetArenaForAllocation());
4543 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
4544 _impl_.installed_manifest_platform_version_.InitDefault();
4545 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
4546 _impl_.installed_manifest_platform_version_.Set("", GetArenaForAllocation());
4547 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
4548 _impl_.system_bundle_version_.InitDefault();
4549 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
4550 _impl_.system_bundle_version_.Set("", GetArenaForAllocation());
4551 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
4552 }
4553
~CastLogsProto_CastDeviceMutableInfo()4554 CastLogsProto_CastDeviceMutableInfo::~CastLogsProto_CastDeviceMutableInfo() {
4555 // @@protoc_insertion_point(destructor:metrics.CastLogsProto.CastDeviceMutableInfo)
4556 if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
4557 (void)arena;
4558 return;
4559 }
4560 SharedDtor();
4561 }
4562
SharedDtor()4563 inline void CastLogsProto_CastDeviceMutableInfo::SharedDtor() {
4564 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
4565 _impl_.backdrop_app_device_id_.Destroy();
4566 _impl_.timezone_id_.Destroy();
4567 _impl_.latest_ui_version_.Destroy();
4568 _impl_.google_wifi_station_shmac_.Destroy();
4569 _impl_.installed_manifest_platform_version_.Destroy();
4570 _impl_.system_bundle_version_.Destroy();
4571 }
4572
SetCachedSize(int size) const4573 void CastLogsProto_CastDeviceMutableInfo::SetCachedSize(int size) const {
4574 _impl_._cached_size_.Set(size);
4575 }
4576
Clear()4577 void CastLogsProto_CastDeviceMutableInfo::Clear() {
4578 // @@protoc_insertion_point(message_clear_start:metrics.CastLogsProto.CastDeviceMutableInfo)
4579 uint32_t cached_has_bits = 0;
4580 // Prevent compiler warnings about cached_has_bits being unused
4581 (void) cached_has_bits;
4582
4583 cached_has_bits = _impl_._has_bits_[0];
4584 if (cached_has_bits & 0x0000003fu) {
4585 if (cached_has_bits & 0x00000001u) {
4586 _impl_.backdrop_app_device_id_.ClearNonDefaultToEmpty();
4587 }
4588 if (cached_has_bits & 0x00000002u) {
4589 _impl_.timezone_id_.ClearNonDefaultToEmpty();
4590 }
4591 if (cached_has_bits & 0x00000004u) {
4592 _impl_.latest_ui_version_.ClearNonDefaultToEmpty();
4593 }
4594 if (cached_has_bits & 0x00000008u) {
4595 _impl_.google_wifi_station_shmac_.ClearNonDefaultToEmpty();
4596 }
4597 if (cached_has_bits & 0x00000010u) {
4598 _impl_.installed_manifest_platform_version_.ClearNonDefaultToEmpty();
4599 }
4600 if (cached_has_bits & 0x00000020u) {
4601 _impl_.system_bundle_version_.ClearNonDefaultToEmpty();
4602 }
4603 }
4604 if (cached_has_bits & 0x000000c0u) {
4605 ::memset(&_impl_.system_build_number_, 0, static_cast<size_t>(
4606 reinterpret_cast<char*>(&_impl_.last_reboot_type_) -
4607 reinterpret_cast<char*>(&_impl_.system_build_number_)) + sizeof(_impl_.last_reboot_type_));
4608 }
4609 if (cached_has_bits & 0x00000f00u) {
4610 ::memset(&_impl_.release_version_, 0, static_cast<size_t>(
4611 reinterpret_cast<char*>(&_impl_.installed_manifest_version_) -
4612 reinterpret_cast<char*>(&_impl_.release_version_)) + sizeof(_impl_.installed_manifest_version_));
4613 }
4614 _impl_._has_bits_.Clear();
4615 _internal_metadata_.Clear<std::string>();
4616 }
4617
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)4618 const char* CastLogsProto_CastDeviceMutableInfo::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
4619 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
4620 _Internal::HasBits has_bits{};
4621 while (!ctx->Done(&ptr)) {
4622 uint32_t tag;
4623 ptr = ::_pbi::ReadTag(ptr, &tag);
4624 switch (tag >> 3) {
4625 // optional .metrics.CastLogsProto.CastDeviceMutableInfo.RebootType last_reboot_type = 1;
4626 case 1:
4627 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
4628 uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
4629 CHK_(ptr);
4630 if (PROTOBUF_PREDICT_TRUE(::metrics::CastLogsProto_CastDeviceMutableInfo_RebootType_IsValid(val))) {
4631 _internal_set_last_reboot_type(static_cast<::metrics::CastLogsProto_CastDeviceMutableInfo_RebootType>(val));
4632 } else {
4633 ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields());
4634 }
4635 } else
4636 goto handle_unusual;
4637 continue;
4638 // optional fixed64 system_build_number = 2;
4639 case 2:
4640 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 17)) {
4641 _Internal::set_has_system_build_number(&has_bits);
4642 _impl_.system_build_number_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<uint64_t>(ptr);
4643 ptr += sizeof(uint64_t);
4644 } else
4645 goto handle_unusual;
4646 continue;
4647 // optional string backdrop_app_device_id = 3;
4648 case 3:
4649 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
4650 auto str = _internal_mutable_backdrop_app_device_id();
4651 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
4652 CHK_(ptr);
4653 } else
4654 goto handle_unusual;
4655 continue;
4656 // optional fixed32 release_version = 4;
4657 case 4:
4658 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 37)) {
4659 _Internal::set_has_release_version(&has_bits);
4660 _impl_.release_version_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<uint32_t>(ptr);
4661 ptr += sizeof(uint32_t);
4662 } else
4663 goto handle_unusual;
4664 continue;
4665 // optional .metrics.CastLogsProto.CastDeviceMutableInfo.NetifIPVersion netif_ip_version = 5;
4666 case 5:
4667 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
4668 uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
4669 CHK_(ptr);
4670 if (PROTOBUF_PREDICT_TRUE(::metrics::CastLogsProto_CastDeviceMutableInfo_NetifIPVersion_IsValid(val))) {
4671 _internal_set_netif_ip_version(static_cast<::metrics::CastLogsProto_CastDeviceMutableInfo_NetifIPVersion>(val));
4672 } else {
4673 ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(5, val, mutable_unknown_fields());
4674 }
4675 } else
4676 goto handle_unusual;
4677 continue;
4678 // optional bool ip_dual_stack_supported = 6;
4679 case 6:
4680 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48)) {
4681 _Internal::set_has_ip_dual_stack_supported(&has_bits);
4682 _impl_.ip_dual_stack_supported_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
4683 CHK_(ptr);
4684 } else
4685 goto handle_unusual;
4686 continue;
4687 // optional string timezone_id = 7;
4688 case 7:
4689 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 58)) {
4690 auto str = _internal_mutable_timezone_id();
4691 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
4692 CHK_(ptr);
4693 } else
4694 goto handle_unusual;
4695 continue;
4696 // optional string latest_ui_version = 8;
4697 case 8:
4698 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 66)) {
4699 auto str = _internal_mutable_latest_ui_version();
4700 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
4701 CHK_(ptr);
4702 } else
4703 goto handle_unusual;
4704 continue;
4705 // optional string google_wifi_station_shmac = 9;
4706 case 9:
4707 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 74)) {
4708 auto str = _internal_mutable_google_wifi_station_shmac();
4709 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
4710 CHK_(ptr);
4711 } else
4712 goto handle_unusual;
4713 continue;
4714 // optional string installed_manifest_platform_version = 10;
4715 case 10:
4716 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 82)) {
4717 auto str = _internal_mutable_installed_manifest_platform_version();
4718 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
4719 CHK_(ptr);
4720 } else
4721 goto handle_unusual;
4722 continue;
4723 // optional uint32 installed_manifest_version = 11;
4724 case 11:
4725 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 88)) {
4726 _Internal::set_has_installed_manifest_version(&has_bits);
4727 _impl_.installed_manifest_version_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
4728 CHK_(ptr);
4729 } else
4730 goto handle_unusual;
4731 continue;
4732 // optional string system_bundle_version = 12;
4733 case 12:
4734 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 98)) {
4735 auto str = _internal_mutable_system_bundle_version();
4736 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
4737 CHK_(ptr);
4738 } else
4739 goto handle_unusual;
4740 continue;
4741 default:
4742 goto handle_unusual;
4743 } // switch
4744 handle_unusual:
4745 if ((tag == 0) || ((tag & 7) == 4)) {
4746 CHK_(ptr);
4747 ctx->SetLastTag(tag);
4748 goto message_done;
4749 }
4750 ptr = UnknownFieldParse(
4751 tag,
4752 _internal_metadata_.mutable_unknown_fields<std::string>(),
4753 ptr, ctx);
4754 CHK_(ptr != nullptr);
4755 } // while
4756 message_done:
4757 _impl_._has_bits_.Or(has_bits);
4758 return ptr;
4759 failure:
4760 ptr = nullptr;
4761 goto message_done;
4762 #undef CHK_
4763 }
4764
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const4765 uint8_t* CastLogsProto_CastDeviceMutableInfo::_InternalSerialize(
4766 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
4767 // @@protoc_insertion_point(serialize_to_array_start:metrics.CastLogsProto.CastDeviceMutableInfo)
4768 uint32_t cached_has_bits = 0;
4769 (void) cached_has_bits;
4770
4771 cached_has_bits = _impl_._has_bits_[0];
4772 // optional .metrics.CastLogsProto.CastDeviceMutableInfo.RebootType last_reboot_type = 1;
4773 if (cached_has_bits & 0x00000080u) {
4774 target = stream->EnsureSpace(target);
4775 target = ::_pbi::WireFormatLite::WriteEnumToArray(
4776 1, this->_internal_last_reboot_type(), target);
4777 }
4778
4779 // optional fixed64 system_build_number = 2;
4780 if (cached_has_bits & 0x00000040u) {
4781 target = stream->EnsureSpace(target);
4782 target = ::_pbi::WireFormatLite::WriteFixed64ToArray(2, this->_internal_system_build_number(), target);
4783 }
4784
4785 // optional string backdrop_app_device_id = 3;
4786 if (cached_has_bits & 0x00000001u) {
4787 target = stream->WriteStringMaybeAliased(
4788 3, this->_internal_backdrop_app_device_id(), target);
4789 }
4790
4791 // optional fixed32 release_version = 4;
4792 if (cached_has_bits & 0x00000100u) {
4793 target = stream->EnsureSpace(target);
4794 target = ::_pbi::WireFormatLite::WriteFixed32ToArray(4, this->_internal_release_version(), target);
4795 }
4796
4797 // optional .metrics.CastLogsProto.CastDeviceMutableInfo.NetifIPVersion netif_ip_version = 5;
4798 if (cached_has_bits & 0x00000200u) {
4799 target = stream->EnsureSpace(target);
4800 target = ::_pbi::WireFormatLite::WriteEnumToArray(
4801 5, this->_internal_netif_ip_version(), target);
4802 }
4803
4804 // optional bool ip_dual_stack_supported = 6;
4805 if (cached_has_bits & 0x00000400u) {
4806 target = stream->EnsureSpace(target);
4807 target = ::_pbi::WireFormatLite::WriteBoolToArray(6, this->_internal_ip_dual_stack_supported(), target);
4808 }
4809
4810 // optional string timezone_id = 7;
4811 if (cached_has_bits & 0x00000002u) {
4812 target = stream->WriteStringMaybeAliased(
4813 7, this->_internal_timezone_id(), target);
4814 }
4815
4816 // optional string latest_ui_version = 8;
4817 if (cached_has_bits & 0x00000004u) {
4818 target = stream->WriteStringMaybeAliased(
4819 8, this->_internal_latest_ui_version(), target);
4820 }
4821
4822 // optional string google_wifi_station_shmac = 9;
4823 if (cached_has_bits & 0x00000008u) {
4824 target = stream->WriteStringMaybeAliased(
4825 9, this->_internal_google_wifi_station_shmac(), target);
4826 }
4827
4828 // optional string installed_manifest_platform_version = 10;
4829 if (cached_has_bits & 0x00000010u) {
4830 target = stream->WriteStringMaybeAliased(
4831 10, this->_internal_installed_manifest_platform_version(), target);
4832 }
4833
4834 // optional uint32 installed_manifest_version = 11;
4835 if (cached_has_bits & 0x00000800u) {
4836 target = stream->EnsureSpace(target);
4837 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(11, this->_internal_installed_manifest_version(), target);
4838 }
4839
4840 // optional string system_bundle_version = 12;
4841 if (cached_has_bits & 0x00000020u) {
4842 target = stream->WriteStringMaybeAliased(
4843 12, this->_internal_system_bundle_version(), target);
4844 }
4845
4846 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
4847 target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
4848 static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
4849 }
4850 // @@protoc_insertion_point(serialize_to_array_end:metrics.CastLogsProto.CastDeviceMutableInfo)
4851 return target;
4852 }
4853
ByteSizeLong() const4854 size_t CastLogsProto_CastDeviceMutableInfo::ByteSizeLong() const {
4855 // @@protoc_insertion_point(message_byte_size_start:metrics.CastLogsProto.CastDeviceMutableInfo)
4856 size_t total_size = 0;
4857
4858 uint32_t cached_has_bits = 0;
4859 // Prevent compiler warnings about cached_has_bits being unused
4860 (void) cached_has_bits;
4861
4862 cached_has_bits = _impl_._has_bits_[0];
4863 if (cached_has_bits & 0x000000ffu) {
4864 // optional string backdrop_app_device_id = 3;
4865 if (cached_has_bits & 0x00000001u) {
4866 total_size += 1 +
4867 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
4868 this->_internal_backdrop_app_device_id());
4869 }
4870
4871 // optional string timezone_id = 7;
4872 if (cached_has_bits & 0x00000002u) {
4873 total_size += 1 +
4874 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
4875 this->_internal_timezone_id());
4876 }
4877
4878 // optional string latest_ui_version = 8;
4879 if (cached_has_bits & 0x00000004u) {
4880 total_size += 1 +
4881 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
4882 this->_internal_latest_ui_version());
4883 }
4884
4885 // optional string google_wifi_station_shmac = 9;
4886 if (cached_has_bits & 0x00000008u) {
4887 total_size += 1 +
4888 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
4889 this->_internal_google_wifi_station_shmac());
4890 }
4891
4892 // optional string installed_manifest_platform_version = 10;
4893 if (cached_has_bits & 0x00000010u) {
4894 total_size += 1 +
4895 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
4896 this->_internal_installed_manifest_platform_version());
4897 }
4898
4899 // optional string system_bundle_version = 12;
4900 if (cached_has_bits & 0x00000020u) {
4901 total_size += 1 +
4902 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
4903 this->_internal_system_bundle_version());
4904 }
4905
4906 // optional fixed64 system_build_number = 2;
4907 if (cached_has_bits & 0x00000040u) {
4908 total_size += 1 + 8;
4909 }
4910
4911 // optional .metrics.CastLogsProto.CastDeviceMutableInfo.RebootType last_reboot_type = 1;
4912 if (cached_has_bits & 0x00000080u) {
4913 total_size += 1 +
4914 ::_pbi::WireFormatLite::EnumSize(this->_internal_last_reboot_type());
4915 }
4916
4917 }
4918 if (cached_has_bits & 0x00000f00u) {
4919 // optional fixed32 release_version = 4;
4920 if (cached_has_bits & 0x00000100u) {
4921 total_size += 1 + 4;
4922 }
4923
4924 // optional .metrics.CastLogsProto.CastDeviceMutableInfo.NetifIPVersion netif_ip_version = 5;
4925 if (cached_has_bits & 0x00000200u) {
4926 total_size += 1 +
4927 ::_pbi::WireFormatLite::EnumSize(this->_internal_netif_ip_version());
4928 }
4929
4930 // optional bool ip_dual_stack_supported = 6;
4931 if (cached_has_bits & 0x00000400u) {
4932 total_size += 1 + 1;
4933 }
4934
4935 // optional uint32 installed_manifest_version = 11;
4936 if (cached_has_bits & 0x00000800u) {
4937 total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_installed_manifest_version());
4938 }
4939
4940 }
4941 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
4942 total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
4943 }
4944 int cached_size = ::_pbi::ToCachedSize(total_size);
4945 SetCachedSize(cached_size);
4946 return total_size;
4947 }
4948
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)4949 void CastLogsProto_CastDeviceMutableInfo::CheckTypeAndMergeFrom(
4950 const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
4951 MergeFrom(*::_pbi::DownCast<const CastLogsProto_CastDeviceMutableInfo*>(
4952 &from));
4953 }
4954
MergeFrom(const CastLogsProto_CastDeviceMutableInfo & from)4955 void CastLogsProto_CastDeviceMutableInfo::MergeFrom(const CastLogsProto_CastDeviceMutableInfo& from) {
4956 CastLogsProto_CastDeviceMutableInfo* const _this = this;
4957 // @@protoc_insertion_point(class_specific_merge_from_start:metrics.CastLogsProto.CastDeviceMutableInfo)
4958 GOOGLE_DCHECK_NE(&from, _this);
4959 uint32_t cached_has_bits = 0;
4960 (void) cached_has_bits;
4961
4962 cached_has_bits = from._impl_._has_bits_[0];
4963 if (cached_has_bits & 0x000000ffu) {
4964 if (cached_has_bits & 0x00000001u) {
4965 _this->_internal_set_backdrop_app_device_id(from._internal_backdrop_app_device_id());
4966 }
4967 if (cached_has_bits & 0x00000002u) {
4968 _this->_internal_set_timezone_id(from._internal_timezone_id());
4969 }
4970 if (cached_has_bits & 0x00000004u) {
4971 _this->_internal_set_latest_ui_version(from._internal_latest_ui_version());
4972 }
4973 if (cached_has_bits & 0x00000008u) {
4974 _this->_internal_set_google_wifi_station_shmac(from._internal_google_wifi_station_shmac());
4975 }
4976 if (cached_has_bits & 0x00000010u) {
4977 _this->_internal_set_installed_manifest_platform_version(from._internal_installed_manifest_platform_version());
4978 }
4979 if (cached_has_bits & 0x00000020u) {
4980 _this->_internal_set_system_bundle_version(from._internal_system_bundle_version());
4981 }
4982 if (cached_has_bits & 0x00000040u) {
4983 _this->_impl_.system_build_number_ = from._impl_.system_build_number_;
4984 }
4985 if (cached_has_bits & 0x00000080u) {
4986 _this->_impl_.last_reboot_type_ = from._impl_.last_reboot_type_;
4987 }
4988 _this->_impl_._has_bits_[0] |= cached_has_bits;
4989 }
4990 if (cached_has_bits & 0x00000f00u) {
4991 if (cached_has_bits & 0x00000100u) {
4992 _this->_impl_.release_version_ = from._impl_.release_version_;
4993 }
4994 if (cached_has_bits & 0x00000200u) {
4995 _this->_impl_.netif_ip_version_ = from._impl_.netif_ip_version_;
4996 }
4997 if (cached_has_bits & 0x00000400u) {
4998 _this->_impl_.ip_dual_stack_supported_ = from._impl_.ip_dual_stack_supported_;
4999 }
5000 if (cached_has_bits & 0x00000800u) {
5001 _this->_impl_.installed_manifest_version_ = from._impl_.installed_manifest_version_;
5002 }
5003 _this->_impl_._has_bits_[0] |= cached_has_bits;
5004 }
5005 _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
5006 }
5007
CopyFrom(const CastLogsProto_CastDeviceMutableInfo & from)5008 void CastLogsProto_CastDeviceMutableInfo::CopyFrom(const CastLogsProto_CastDeviceMutableInfo& from) {
5009 // @@protoc_insertion_point(class_specific_copy_from_start:metrics.CastLogsProto.CastDeviceMutableInfo)
5010 if (&from == this) return;
5011 Clear();
5012 MergeFrom(from);
5013 }
5014
IsInitialized() const5015 bool CastLogsProto_CastDeviceMutableInfo::IsInitialized() const {
5016 return true;
5017 }
5018
InternalSwap(CastLogsProto_CastDeviceMutableInfo * other)5019 void CastLogsProto_CastDeviceMutableInfo::InternalSwap(CastLogsProto_CastDeviceMutableInfo* other) {
5020 using std::swap;
5021 auto* lhs_arena = GetArenaForAllocation();
5022 auto* rhs_arena = other->GetArenaForAllocation();
5023 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
5024 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
5025 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
5026 &_impl_.backdrop_app_device_id_, lhs_arena,
5027 &other->_impl_.backdrop_app_device_id_, rhs_arena
5028 );
5029 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
5030 &_impl_.timezone_id_, lhs_arena,
5031 &other->_impl_.timezone_id_, rhs_arena
5032 );
5033 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
5034 &_impl_.latest_ui_version_, lhs_arena,
5035 &other->_impl_.latest_ui_version_, rhs_arena
5036 );
5037 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
5038 &_impl_.google_wifi_station_shmac_, lhs_arena,
5039 &other->_impl_.google_wifi_station_shmac_, rhs_arena
5040 );
5041 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
5042 &_impl_.installed_manifest_platform_version_, lhs_arena,
5043 &other->_impl_.installed_manifest_platform_version_, rhs_arena
5044 );
5045 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
5046 &_impl_.system_bundle_version_, lhs_arena,
5047 &other->_impl_.system_bundle_version_, rhs_arena
5048 );
5049 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
5050 PROTOBUF_FIELD_OFFSET(CastLogsProto_CastDeviceMutableInfo, _impl_.installed_manifest_version_)
5051 + sizeof(CastLogsProto_CastDeviceMutableInfo::_impl_.installed_manifest_version_)
5052 - PROTOBUF_FIELD_OFFSET(CastLogsProto_CastDeviceMutableInfo, _impl_.system_build_number_)>(
5053 reinterpret_cast<char*>(&_impl_.system_build_number_),
5054 reinterpret_cast<char*>(&other->_impl_.system_build_number_));
5055 }
5056
GetTypeName() const5057 std::string CastLogsProto_CastDeviceMutableInfo::GetTypeName() const {
5058 return "metrics.CastLogsProto.CastDeviceMutableInfo";
5059 }
5060
5061
5062 // ===================================================================
5063
5064 class CastLogsProto::_Internal {
5065 public:
5066 using HasBits = decltype(std::declval<CastLogsProto>()._impl_._has_bits_);
5067 static const ::metrics::CastLogsProto_CastDeviceInfo& cast_device_info(const CastLogsProto* msg);
set_has_cast_device_info(HasBits * has_bits)5068 static void set_has_cast_device_info(HasBits* has_bits) {
5069 (*has_bits)[0] |= 1u;
5070 }
set_has_virtual_release_track(HasBits * has_bits)5071 static void set_has_virtual_release_track(HasBits* has_bits) {
5072 (*has_bits)[0] |= 8u;
5073 }
5074 static const ::metrics::CastLogsProto_CastDeviceMutableInfo& cast_device_mutable_info(const CastLogsProto* msg);
set_has_cast_device_mutable_info(HasBits * has_bits)5075 static void set_has_cast_device_mutable_info(HasBits* has_bits) {
5076 (*has_bits)[0] |= 2u;
5077 }
set_has_receiver_metrics_id(HasBits * has_bits)5078 static void set_has_receiver_metrics_id(HasBits* has_bits) {
5079 (*has_bits)[0] |= 4u;
5080 }
set_has_ephemeral_id(HasBits * has_bits)5081 static void set_has_ephemeral_id(HasBits* has_bits) {
5082 (*has_bits)[0] |= 32u;
5083 }
set_has_source_virtual_release_track(HasBits * has_bits)5084 static void set_has_source_virtual_release_track(HasBits* has_bits) {
5085 (*has_bits)[0] |= 16u;
5086 }
5087 };
5088
5089 const ::metrics::CastLogsProto_CastDeviceInfo&
cast_device_info(const CastLogsProto * msg)5090 CastLogsProto::_Internal::cast_device_info(const CastLogsProto* msg) {
5091 return *msg->_impl_.cast_device_info_;
5092 }
5093 const ::metrics::CastLogsProto_CastDeviceMutableInfo&
cast_device_mutable_info(const CastLogsProto * msg)5094 CastLogsProto::_Internal::cast_device_mutable_info(const CastLogsProto* msg) {
5095 return *msg->_impl_.cast_device_mutable_info_;
5096 }
CastLogsProto(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)5097 CastLogsProto::CastLogsProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
5098 bool is_message_owned)
5099 : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
5100 SharedCtor(arena, is_message_owned);
5101 // @@protoc_insertion_point(arena_constructor:metrics.CastLogsProto)
5102 }
CastLogsProto(const CastLogsProto & from)5103 CastLogsProto::CastLogsProto(const CastLogsProto& from)
5104 : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
5105 CastLogsProto* const _this = this; (void)_this;
5106 new (&_impl_) Impl_{
5107 decltype(_impl_._has_bits_){from._impl_._has_bits_}
5108 , /*decltype(_impl_._cached_size_)*/{}
5109 , decltype(_impl_.cast_connection_info_){from._impl_.cast_connection_info_}
5110 , decltype(_impl_.cast_event_){from._impl_.cast_event_}
5111 , decltype(_impl_.cast_device_info_){nullptr}
5112 , decltype(_impl_.cast_device_mutable_info_){nullptr}
5113 , decltype(_impl_.receiver_metrics_id_){}
5114 , decltype(_impl_.virtual_release_track_){}
5115 , decltype(_impl_.source_virtual_release_track_){}
5116 , decltype(_impl_.ephemeral_id_){}};
5117
5118 _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
5119 if (from._internal_has_cast_device_info()) {
5120 _this->_impl_.cast_device_info_ = new ::metrics::CastLogsProto_CastDeviceInfo(*from._impl_.cast_device_info_);
5121 }
5122 if (from._internal_has_cast_device_mutable_info()) {
5123 _this->_impl_.cast_device_mutable_info_ = new ::metrics::CastLogsProto_CastDeviceMutableInfo(*from._impl_.cast_device_mutable_info_);
5124 }
5125 ::memcpy(&_impl_.receiver_metrics_id_, &from._impl_.receiver_metrics_id_,
5126 static_cast<size_t>(reinterpret_cast<char*>(&_impl_.ephemeral_id_) -
5127 reinterpret_cast<char*>(&_impl_.receiver_metrics_id_)) + sizeof(_impl_.ephemeral_id_));
5128 // @@protoc_insertion_point(copy_constructor:metrics.CastLogsProto)
5129 }
5130
SharedCtor(::_pb::Arena * arena,bool is_message_owned)5131 inline void CastLogsProto::SharedCtor(
5132 ::_pb::Arena* arena, bool is_message_owned) {
5133 (void)arena;
5134 (void)is_message_owned;
5135 new (&_impl_) Impl_{
5136 decltype(_impl_._has_bits_){}
5137 , /*decltype(_impl_._cached_size_)*/{}
5138 , decltype(_impl_.cast_connection_info_){arena}
5139 , decltype(_impl_.cast_event_){arena}
5140 , decltype(_impl_.cast_device_info_){nullptr}
5141 , decltype(_impl_.cast_device_mutable_info_){nullptr}
5142 , decltype(_impl_.receiver_metrics_id_){uint64_t{0u}}
5143 , decltype(_impl_.virtual_release_track_){0u}
5144 , decltype(_impl_.source_virtual_release_track_){0u}
5145 , decltype(_impl_.ephemeral_id_){uint64_t{0u}}
5146 };
5147 }
5148
~CastLogsProto()5149 CastLogsProto::~CastLogsProto() {
5150 // @@protoc_insertion_point(destructor:metrics.CastLogsProto)
5151 if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
5152 (void)arena;
5153 return;
5154 }
5155 SharedDtor();
5156 }
5157
SharedDtor()5158 inline void CastLogsProto::SharedDtor() {
5159 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
5160 _impl_.cast_connection_info_.~RepeatedPtrField();
5161 _impl_.cast_event_.~RepeatedPtrField();
5162 if (this != internal_default_instance()) delete _impl_.cast_device_info_;
5163 if (this != internal_default_instance()) delete _impl_.cast_device_mutable_info_;
5164 }
5165
SetCachedSize(int size) const5166 void CastLogsProto::SetCachedSize(int size) const {
5167 _impl_._cached_size_.Set(size);
5168 }
5169
Clear()5170 void CastLogsProto::Clear() {
5171 // @@protoc_insertion_point(message_clear_start:metrics.CastLogsProto)
5172 uint32_t cached_has_bits = 0;
5173 // Prevent compiler warnings about cached_has_bits being unused
5174 (void) cached_has_bits;
5175
5176 _impl_.cast_connection_info_.Clear();
5177 _impl_.cast_event_.Clear();
5178 cached_has_bits = _impl_._has_bits_[0];
5179 if (cached_has_bits & 0x00000003u) {
5180 if (cached_has_bits & 0x00000001u) {
5181 GOOGLE_DCHECK(_impl_.cast_device_info_ != nullptr);
5182 _impl_.cast_device_info_->Clear();
5183 }
5184 if (cached_has_bits & 0x00000002u) {
5185 GOOGLE_DCHECK(_impl_.cast_device_mutable_info_ != nullptr);
5186 _impl_.cast_device_mutable_info_->Clear();
5187 }
5188 }
5189 if (cached_has_bits & 0x0000003cu) {
5190 ::memset(&_impl_.receiver_metrics_id_, 0, static_cast<size_t>(
5191 reinterpret_cast<char*>(&_impl_.ephemeral_id_) -
5192 reinterpret_cast<char*>(&_impl_.receiver_metrics_id_)) + sizeof(_impl_.ephemeral_id_));
5193 }
5194 _impl_._has_bits_.Clear();
5195 _internal_metadata_.Clear<std::string>();
5196 }
5197
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)5198 const char* CastLogsProto::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
5199 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
5200 _Internal::HasBits has_bits{};
5201 while (!ctx->Done(&ptr)) {
5202 uint32_t tag;
5203 ptr = ::_pbi::ReadTag(ptr, &tag);
5204 switch (tag >> 3) {
5205 // optional .metrics.CastLogsProto.CastDeviceInfo cast_device_info = 1;
5206 case 1:
5207 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
5208 ptr = ctx->ParseMessage(_internal_mutable_cast_device_info(), ptr);
5209 CHK_(ptr);
5210 } else
5211 goto handle_unusual;
5212 continue;
5213 // repeated .metrics.CastLogsProto.CastConnectionInfo cast_connection_info = 2;
5214 case 2:
5215 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
5216 ptr -= 1;
5217 do {
5218 ptr += 1;
5219 ptr = ctx->ParseMessage(_internal_add_cast_connection_info(), ptr);
5220 CHK_(ptr);
5221 if (!ctx->DataAvailable(ptr)) break;
5222 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr));
5223 } else
5224 goto handle_unusual;
5225 continue;
5226 // repeated .metrics.CastLogsProto.CastEventProto cast_event = 3;
5227 case 3:
5228 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
5229 ptr -= 1;
5230 do {
5231 ptr += 1;
5232 ptr = ctx->ParseMessage(_internal_add_cast_event(), ptr);
5233 CHK_(ptr);
5234 if (!ctx->DataAvailable(ptr)) break;
5235 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr));
5236 } else
5237 goto handle_unusual;
5238 continue;
5239 // optional fixed32 virtual_release_track = 4;
5240 case 4:
5241 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 37)) {
5242 _Internal::set_has_virtual_release_track(&has_bits);
5243 _impl_.virtual_release_track_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<uint32_t>(ptr);
5244 ptr += sizeof(uint32_t);
5245 } else
5246 goto handle_unusual;
5247 continue;
5248 // optional .metrics.CastLogsProto.CastDeviceMutableInfo cast_device_mutable_info = 5;
5249 case 5:
5250 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) {
5251 ptr = ctx->ParseMessage(_internal_mutable_cast_device_mutable_info(), ptr);
5252 CHK_(ptr);
5253 } else
5254 goto handle_unusual;
5255 continue;
5256 // optional fixed64 receiver_metrics_id = 6;
5257 case 6:
5258 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 49)) {
5259 _Internal::set_has_receiver_metrics_id(&has_bits);
5260 _impl_.receiver_metrics_id_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<uint64_t>(ptr);
5261 ptr += sizeof(uint64_t);
5262 } else
5263 goto handle_unusual;
5264 continue;
5265 // optional uint64 ephemeral_id = 7;
5266 case 7:
5267 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) {
5268 _Internal::set_has_ephemeral_id(&has_bits);
5269 _impl_.ephemeral_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
5270 CHK_(ptr);
5271 } else
5272 goto handle_unusual;
5273 continue;
5274 // optional fixed32 source_virtual_release_track = 8;
5275 case 8:
5276 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 69)) {
5277 _Internal::set_has_source_virtual_release_track(&has_bits);
5278 _impl_.source_virtual_release_track_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<uint32_t>(ptr);
5279 ptr += sizeof(uint32_t);
5280 } else
5281 goto handle_unusual;
5282 continue;
5283 default:
5284 goto handle_unusual;
5285 } // switch
5286 handle_unusual:
5287 if ((tag == 0) || ((tag & 7) == 4)) {
5288 CHK_(ptr);
5289 ctx->SetLastTag(tag);
5290 goto message_done;
5291 }
5292 ptr = UnknownFieldParse(
5293 tag,
5294 _internal_metadata_.mutable_unknown_fields<std::string>(),
5295 ptr, ctx);
5296 CHK_(ptr != nullptr);
5297 } // while
5298 message_done:
5299 _impl_._has_bits_.Or(has_bits);
5300 return ptr;
5301 failure:
5302 ptr = nullptr;
5303 goto message_done;
5304 #undef CHK_
5305 }
5306
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const5307 uint8_t* CastLogsProto::_InternalSerialize(
5308 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
5309 // @@protoc_insertion_point(serialize_to_array_start:metrics.CastLogsProto)
5310 uint32_t cached_has_bits = 0;
5311 (void) cached_has_bits;
5312
5313 cached_has_bits = _impl_._has_bits_[0];
5314 // optional .metrics.CastLogsProto.CastDeviceInfo cast_device_info = 1;
5315 if (cached_has_bits & 0x00000001u) {
5316 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
5317 InternalWriteMessage(1, _Internal::cast_device_info(this),
5318 _Internal::cast_device_info(this).GetCachedSize(), target, stream);
5319 }
5320
5321 // repeated .metrics.CastLogsProto.CastConnectionInfo cast_connection_info = 2;
5322 for (unsigned i = 0,
5323 n = static_cast<unsigned>(this->_internal_cast_connection_info_size()); i < n; i++) {
5324 const auto& repfield = this->_internal_cast_connection_info(i);
5325 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
5326 InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream);
5327 }
5328
5329 // repeated .metrics.CastLogsProto.CastEventProto cast_event = 3;
5330 for (unsigned i = 0,
5331 n = static_cast<unsigned>(this->_internal_cast_event_size()); i < n; i++) {
5332 const auto& repfield = this->_internal_cast_event(i);
5333 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
5334 InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream);
5335 }
5336
5337 // optional fixed32 virtual_release_track = 4;
5338 if (cached_has_bits & 0x00000008u) {
5339 target = stream->EnsureSpace(target);
5340 target = ::_pbi::WireFormatLite::WriteFixed32ToArray(4, this->_internal_virtual_release_track(), target);
5341 }
5342
5343 // optional .metrics.CastLogsProto.CastDeviceMutableInfo cast_device_mutable_info = 5;
5344 if (cached_has_bits & 0x00000002u) {
5345 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
5346 InternalWriteMessage(5, _Internal::cast_device_mutable_info(this),
5347 _Internal::cast_device_mutable_info(this).GetCachedSize(), target, stream);
5348 }
5349
5350 // optional fixed64 receiver_metrics_id = 6;
5351 if (cached_has_bits & 0x00000004u) {
5352 target = stream->EnsureSpace(target);
5353 target = ::_pbi::WireFormatLite::WriteFixed64ToArray(6, this->_internal_receiver_metrics_id(), target);
5354 }
5355
5356 // optional uint64 ephemeral_id = 7;
5357 if (cached_has_bits & 0x00000020u) {
5358 target = stream->EnsureSpace(target);
5359 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(7, this->_internal_ephemeral_id(), target);
5360 }
5361
5362 // optional fixed32 source_virtual_release_track = 8;
5363 if (cached_has_bits & 0x00000010u) {
5364 target = stream->EnsureSpace(target);
5365 target = ::_pbi::WireFormatLite::WriteFixed32ToArray(8, this->_internal_source_virtual_release_track(), target);
5366 }
5367
5368 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
5369 target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
5370 static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
5371 }
5372 // @@protoc_insertion_point(serialize_to_array_end:metrics.CastLogsProto)
5373 return target;
5374 }
5375
ByteSizeLong() const5376 size_t CastLogsProto::ByteSizeLong() const {
5377 // @@protoc_insertion_point(message_byte_size_start:metrics.CastLogsProto)
5378 size_t total_size = 0;
5379
5380 uint32_t cached_has_bits = 0;
5381 // Prevent compiler warnings about cached_has_bits being unused
5382 (void) cached_has_bits;
5383
5384 // repeated .metrics.CastLogsProto.CastConnectionInfo cast_connection_info = 2;
5385 total_size += 1UL * this->_internal_cast_connection_info_size();
5386 for (const auto& msg : this->_impl_.cast_connection_info_) {
5387 total_size +=
5388 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
5389 }
5390
5391 // repeated .metrics.CastLogsProto.CastEventProto cast_event = 3;
5392 total_size += 1UL * this->_internal_cast_event_size();
5393 for (const auto& msg : this->_impl_.cast_event_) {
5394 total_size +=
5395 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
5396 }
5397
5398 cached_has_bits = _impl_._has_bits_[0];
5399 if (cached_has_bits & 0x0000003fu) {
5400 // optional .metrics.CastLogsProto.CastDeviceInfo cast_device_info = 1;
5401 if (cached_has_bits & 0x00000001u) {
5402 total_size += 1 +
5403 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
5404 *_impl_.cast_device_info_);
5405 }
5406
5407 // optional .metrics.CastLogsProto.CastDeviceMutableInfo cast_device_mutable_info = 5;
5408 if (cached_has_bits & 0x00000002u) {
5409 total_size += 1 +
5410 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
5411 *_impl_.cast_device_mutable_info_);
5412 }
5413
5414 // optional fixed64 receiver_metrics_id = 6;
5415 if (cached_has_bits & 0x00000004u) {
5416 total_size += 1 + 8;
5417 }
5418
5419 // optional fixed32 virtual_release_track = 4;
5420 if (cached_has_bits & 0x00000008u) {
5421 total_size += 1 + 4;
5422 }
5423
5424 // optional fixed32 source_virtual_release_track = 8;
5425 if (cached_has_bits & 0x00000010u) {
5426 total_size += 1 + 4;
5427 }
5428
5429 // optional uint64 ephemeral_id = 7;
5430 if (cached_has_bits & 0x00000020u) {
5431 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_ephemeral_id());
5432 }
5433
5434 }
5435 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
5436 total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
5437 }
5438 int cached_size = ::_pbi::ToCachedSize(total_size);
5439 SetCachedSize(cached_size);
5440 return total_size;
5441 }
5442
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)5443 void CastLogsProto::CheckTypeAndMergeFrom(
5444 const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
5445 MergeFrom(*::_pbi::DownCast<const CastLogsProto*>(
5446 &from));
5447 }
5448
MergeFrom(const CastLogsProto & from)5449 void CastLogsProto::MergeFrom(const CastLogsProto& from) {
5450 CastLogsProto* const _this = this;
5451 // @@protoc_insertion_point(class_specific_merge_from_start:metrics.CastLogsProto)
5452 GOOGLE_DCHECK_NE(&from, _this);
5453 uint32_t cached_has_bits = 0;
5454 (void) cached_has_bits;
5455
5456 _this->_impl_.cast_connection_info_.MergeFrom(from._impl_.cast_connection_info_);
5457 _this->_impl_.cast_event_.MergeFrom(from._impl_.cast_event_);
5458 cached_has_bits = from._impl_._has_bits_[0];
5459 if (cached_has_bits & 0x0000003fu) {
5460 if (cached_has_bits & 0x00000001u) {
5461 _this->_internal_mutable_cast_device_info()->::metrics::CastLogsProto_CastDeviceInfo::MergeFrom(
5462 from._internal_cast_device_info());
5463 }
5464 if (cached_has_bits & 0x00000002u) {
5465 _this->_internal_mutable_cast_device_mutable_info()->::metrics::CastLogsProto_CastDeviceMutableInfo::MergeFrom(
5466 from._internal_cast_device_mutable_info());
5467 }
5468 if (cached_has_bits & 0x00000004u) {
5469 _this->_impl_.receiver_metrics_id_ = from._impl_.receiver_metrics_id_;
5470 }
5471 if (cached_has_bits & 0x00000008u) {
5472 _this->_impl_.virtual_release_track_ = from._impl_.virtual_release_track_;
5473 }
5474 if (cached_has_bits & 0x00000010u) {
5475 _this->_impl_.source_virtual_release_track_ = from._impl_.source_virtual_release_track_;
5476 }
5477 if (cached_has_bits & 0x00000020u) {
5478 _this->_impl_.ephemeral_id_ = from._impl_.ephemeral_id_;
5479 }
5480 _this->_impl_._has_bits_[0] |= cached_has_bits;
5481 }
5482 _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
5483 }
5484
CopyFrom(const CastLogsProto & from)5485 void CastLogsProto::CopyFrom(const CastLogsProto& from) {
5486 // @@protoc_insertion_point(class_specific_copy_from_start:metrics.CastLogsProto)
5487 if (&from == this) return;
5488 Clear();
5489 MergeFrom(from);
5490 }
5491
IsInitialized() const5492 bool CastLogsProto::IsInitialized() const {
5493 return true;
5494 }
5495
InternalSwap(CastLogsProto * other)5496 void CastLogsProto::InternalSwap(CastLogsProto* other) {
5497 using std::swap;
5498 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
5499 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
5500 _impl_.cast_connection_info_.InternalSwap(&other->_impl_.cast_connection_info_);
5501 _impl_.cast_event_.InternalSwap(&other->_impl_.cast_event_);
5502 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
5503 PROTOBUF_FIELD_OFFSET(CastLogsProto, _impl_.ephemeral_id_)
5504 + sizeof(CastLogsProto::_impl_.ephemeral_id_)
5505 - PROTOBUF_FIELD_OFFSET(CastLogsProto, _impl_.cast_device_info_)>(
5506 reinterpret_cast<char*>(&_impl_.cast_device_info_),
5507 reinterpret_cast<char*>(&other->_impl_.cast_device_info_));
5508 }
5509
GetTypeName() const5510 std::string CastLogsProto::GetTypeName() const {
5511 return "metrics.CastLogsProto";
5512 }
5513
5514
5515 // @@protoc_insertion_point(namespace_scope)
5516 } // namespace metrics
5517 PROTOBUF_NAMESPACE_OPEN
5518 template<> PROTOBUF_NOINLINE ::metrics::CastLogsProto_CastDeviceInfo_HardwareInfo*
CreateMaybeMessage(Arena * arena)5519 Arena::CreateMaybeMessage< ::metrics::CastLogsProto_CastDeviceInfo_HardwareInfo >(Arena* arena) {
5520 return Arena::CreateMessageInternal< ::metrics::CastLogsProto_CastDeviceInfo_HardwareInfo >(arena);
5521 }
5522 template<> PROTOBUF_NOINLINE ::metrics::CastLogsProto_CastDeviceInfo*
CreateMaybeMessage(Arena * arena)5523 Arena::CreateMaybeMessage< ::metrics::CastLogsProto_CastDeviceInfo >(Arena* arena) {
5524 return Arena::CreateMessageInternal< ::metrics::CastLogsProto_CastDeviceInfo >(arena);
5525 }
5526 template<> PROTOBUF_NOINLINE ::metrics::CastLogsProto_CastConnectionInfo_SenderInfo*
CreateMaybeMessage(Arena * arena)5527 Arena::CreateMaybeMessage< ::metrics::CastLogsProto_CastConnectionInfo_SenderInfo >(Arena* arena) {
5528 return Arena::CreateMessageInternal< ::metrics::CastLogsProto_CastConnectionInfo_SenderInfo >(arena);
5529 }
5530 template<> PROTOBUF_NOINLINE ::metrics::CastLogsProto_CastConnectionInfo*
CreateMaybeMessage(Arena * arena)5531 Arena::CreateMaybeMessage< ::metrics::CastLogsProto_CastConnectionInfo >(Arena* arena) {
5532 return Arena::CreateMessageInternal< ::metrics::CastLogsProto_CastConnectionInfo >(arena);
5533 }
5534 template<> PROTOBUF_NOINLINE ::metrics::CastLogsProto_CastEventProto_Metadata*
CreateMaybeMessage(Arena * arena)5535 Arena::CreateMaybeMessage< ::metrics::CastLogsProto_CastEventProto_Metadata >(Arena* arena) {
5536 return Arena::CreateMessageInternal< ::metrics::CastLogsProto_CastEventProto_Metadata >(arena);
5537 }
5538 template<> PROTOBUF_NOINLINE ::metrics::CastLogsProto_CastEventProto*
CreateMaybeMessage(Arena * arena)5539 Arena::CreateMaybeMessage< ::metrics::CastLogsProto_CastEventProto >(Arena* arena) {
5540 return Arena::CreateMessageInternal< ::metrics::CastLogsProto_CastEventProto >(arena);
5541 }
5542 template<> PROTOBUF_NOINLINE ::metrics::CastLogsProto_CastDeviceMutableInfo*
CreateMaybeMessage(Arena * arena)5543 Arena::CreateMaybeMessage< ::metrics::CastLogsProto_CastDeviceMutableInfo >(Arena* arena) {
5544 return Arena::CreateMessageInternal< ::metrics::CastLogsProto_CastDeviceMutableInfo >(arena);
5545 }
5546 template<> PROTOBUF_NOINLINE ::metrics::CastLogsProto*
CreateMaybeMessage(Arena * arena)5547 Arena::CreateMaybeMessage< ::metrics::CastLogsProto >(Arena* arena) {
5548 return Arena::CreateMessageInternal< ::metrics::CastLogsProto >(arena);
5549 }
5550 PROTOBUF_NAMESPACE_CLOSE
5551
5552 // @@protoc_insertion_point(global_scope)
5553 #include <google/protobuf/port_undef.inc>
5554