Line data Source code
1 : // Generated by the protocol buffer compiler. DO NOT EDIT!
2 : // source: chromium/chrome/common/safe_browsing/csd.proto
3 :
4 : #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
5 : #include "chromium/chrome/common/safe_browsing/csd.pb.h"
6 :
7 : #include <algorithm>
8 :
9 : #include <google/protobuf/stubs/common.h>
10 : #include <google/protobuf/stubs/once.h>
11 : #include <google/protobuf/io/coded_stream.h>
12 : #include <google/protobuf/wire_format_lite_inl.h>
13 : #include <google/protobuf/io/zero_copy_stream_impl_lite.h>
14 : // @@protoc_insertion_point(includes)
15 :
16 : namespace safe_browsing {
17 :
18 0 : void protobuf_ShutdownFile_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto() {
19 0 : delete ChromeUserPopulation::default_instance_;
20 0 : delete ClientPhishingRequest::default_instance_;
21 0 : delete ClientPhishingRequest_Feature::default_instance_;
22 0 : delete ClientPhishingResponse::default_instance_;
23 0 : delete ClientMalwareRequest::default_instance_;
24 0 : delete ClientMalwareRequest_UrlInfo::default_instance_;
25 0 : delete ClientMalwareResponse::default_instance_;
26 0 : delete ClientDownloadRequest::default_instance_;
27 0 : delete ClientDownloadRequest_Digests::default_instance_;
28 0 : delete ClientDownloadRequest_Resource::default_instance_;
29 0 : delete ClientDownloadRequest_CertificateChain::default_instance_;
30 0 : delete ClientDownloadRequest_CertificateChain_Element::default_instance_;
31 0 : delete ClientDownloadRequest_ExtendedAttr::default_instance_;
32 0 : delete ClientDownloadRequest_SignatureInfo::default_instance_;
33 0 : delete ClientDownloadRequest_PEImageHeaders::default_instance_;
34 0 : delete ClientDownloadRequest_PEImageHeaders_DebugData::default_instance_;
35 0 : delete ClientDownloadRequest_MachOHeaders::default_instance_;
36 0 : delete ClientDownloadRequest_MachOHeaders_LoadCommand::default_instance_;
37 0 : delete ClientDownloadRequest_ImageHeaders::default_instance_;
38 0 : delete ClientDownloadRequest_ArchivedBinary::default_instance_;
39 0 : delete ClientDownloadRequest_URLChainEntry::default_instance_;
40 0 : delete ClientDownloadResponse::default_instance_;
41 0 : delete ClientDownloadResponse_MoreInfo::default_instance_;
42 0 : delete ClientDownloadReport::default_instance_;
43 0 : delete ClientDownloadReport_UserInformation::default_instance_;
44 0 : delete ClientUploadResponse::default_instance_;
45 0 : delete ClientIncidentReport::default_instance_;
46 0 : delete ClientIncidentReport_IncidentData::default_instance_;
47 0 : delete ClientIncidentReport_IncidentData_TrackedPreferenceIncident::default_instance_;
48 0 : delete ClientIncidentReport_IncidentData_BinaryIntegrityIncident::default_instance_;
49 0 : delete ClientIncidentReport_IncidentData_BinaryIntegrityIncident_ContainedFile::default_instance_;
50 0 : delete ClientIncidentReport_IncidentData_BlacklistLoadIncident::default_instance_;
51 0 : delete ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident::default_instance_;
52 0 : delete ClientIncidentReport_IncidentData_ResourceRequestIncident::default_instance_;
53 0 : delete ClientIncidentReport_IncidentData_SuspiciousModuleIncident::default_instance_;
54 0 : delete ClientIncidentReport_DownloadDetails::default_instance_;
55 0 : delete ClientIncidentReport_EnvironmentData::default_instance_;
56 0 : delete ClientIncidentReport_EnvironmentData_OS::default_instance_;
57 0 : delete ClientIncidentReport_EnvironmentData_OS_RegistryValue::default_instance_;
58 0 : delete ClientIncidentReport_EnvironmentData_OS_RegistryKey::default_instance_;
59 0 : delete ClientIncidentReport_EnvironmentData_Machine::default_instance_;
60 0 : delete ClientIncidentReport_EnvironmentData_Process::default_instance_;
61 0 : delete ClientIncidentReport_EnvironmentData_Process_Patch::default_instance_;
62 0 : delete ClientIncidentReport_EnvironmentData_Process_NetworkProvider::default_instance_;
63 0 : delete ClientIncidentReport_EnvironmentData_Process_Dll::default_instance_;
64 0 : delete ClientIncidentReport_EnvironmentData_Process_ModuleState::default_instance_;
65 0 : delete ClientIncidentReport_EnvironmentData_Process_ModuleState_Modification::default_instance_;
66 0 : delete ClientIncidentReport_ExtensionData::default_instance_;
67 0 : delete ClientIncidentReport_ExtensionData_ExtensionInfo::default_instance_;
68 0 : delete ClientIncidentReport_NonBinaryDownloadDetails::default_instance_;
69 0 : delete ClientIncidentResponse::default_instance_;
70 0 : delete ClientIncidentResponse_EnvironmentRequest::default_instance_;
71 0 : delete DownloadMetadata::default_instance_;
72 0 : delete ClientSafeBrowsingReportRequest::default_instance_;
73 0 : delete ClientSafeBrowsingReportRequest_HTTPHeader::default_instance_;
74 0 : delete ClientSafeBrowsingReportRequest_HTTPRequest::default_instance_;
75 0 : delete ClientSafeBrowsingReportRequest_HTTPRequest_FirstLine::default_instance_;
76 0 : delete ClientSafeBrowsingReportRequest_HTTPResponse::default_instance_;
77 0 : delete ClientSafeBrowsingReportRequest_HTTPResponse_FirstLine::default_instance_;
78 0 : delete ClientSafeBrowsingReportRequest_Resource::default_instance_;
79 0 : }
80 :
81 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
82 0 : void protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto_impl() {
83 0 : GOOGLE_PROTOBUF_VERIFY_VERSION;
84 :
85 : #else
86 : void protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto() {
87 : static bool already_here = false;
88 : if (already_here) return;
89 : already_here = true;
90 : GOOGLE_PROTOBUF_VERIFY_VERSION;
91 :
92 : #endif
93 0 : ChromeUserPopulation::default_instance_ = new ChromeUserPopulation();
94 0 : ClientPhishingRequest::default_instance_ = new ClientPhishingRequest();
95 0 : ClientPhishingRequest_Feature::default_instance_ = new ClientPhishingRequest_Feature();
96 0 : ClientPhishingResponse::default_instance_ = new ClientPhishingResponse();
97 0 : ClientMalwareRequest::default_instance_ = new ClientMalwareRequest();
98 0 : ClientMalwareRequest_UrlInfo::default_instance_ = new ClientMalwareRequest_UrlInfo();
99 0 : ClientMalwareResponse::default_instance_ = new ClientMalwareResponse();
100 0 : ClientDownloadRequest::default_instance_ = new ClientDownloadRequest();
101 0 : ClientDownloadRequest_Digests::default_instance_ = new ClientDownloadRequest_Digests();
102 0 : ClientDownloadRequest_Resource::default_instance_ = new ClientDownloadRequest_Resource();
103 0 : ClientDownloadRequest_CertificateChain::default_instance_ = new ClientDownloadRequest_CertificateChain();
104 0 : ClientDownloadRequest_CertificateChain_Element::default_instance_ = new ClientDownloadRequest_CertificateChain_Element();
105 0 : ClientDownloadRequest_ExtendedAttr::default_instance_ = new ClientDownloadRequest_ExtendedAttr();
106 0 : ClientDownloadRequest_SignatureInfo::default_instance_ = new ClientDownloadRequest_SignatureInfo();
107 0 : ClientDownloadRequest_PEImageHeaders::default_instance_ = new ClientDownloadRequest_PEImageHeaders();
108 0 : ClientDownloadRequest_PEImageHeaders_DebugData::default_instance_ = new ClientDownloadRequest_PEImageHeaders_DebugData();
109 0 : ClientDownloadRequest_MachOHeaders::default_instance_ = new ClientDownloadRequest_MachOHeaders();
110 0 : ClientDownloadRequest_MachOHeaders_LoadCommand::default_instance_ = new ClientDownloadRequest_MachOHeaders_LoadCommand();
111 0 : ClientDownloadRequest_ImageHeaders::default_instance_ = new ClientDownloadRequest_ImageHeaders();
112 0 : ClientDownloadRequest_ArchivedBinary::default_instance_ = new ClientDownloadRequest_ArchivedBinary();
113 0 : ClientDownloadRequest_URLChainEntry::default_instance_ = new ClientDownloadRequest_URLChainEntry();
114 0 : ClientDownloadResponse::default_instance_ = new ClientDownloadResponse();
115 0 : ClientDownloadResponse_MoreInfo::default_instance_ = new ClientDownloadResponse_MoreInfo();
116 0 : ClientDownloadReport::default_instance_ = new ClientDownloadReport();
117 0 : ClientDownloadReport_UserInformation::default_instance_ = new ClientDownloadReport_UserInformation();
118 0 : ClientUploadResponse::default_instance_ = new ClientUploadResponse();
119 0 : ClientIncidentReport::default_instance_ = new ClientIncidentReport();
120 0 : ClientIncidentReport_IncidentData::default_instance_ = new ClientIncidentReport_IncidentData();
121 0 : ClientIncidentReport_IncidentData_TrackedPreferenceIncident::default_instance_ = new ClientIncidentReport_IncidentData_TrackedPreferenceIncident();
122 0 : ClientIncidentReport_IncidentData_BinaryIntegrityIncident::default_instance_ = new ClientIncidentReport_IncidentData_BinaryIntegrityIncident();
123 0 : ClientIncidentReport_IncidentData_BinaryIntegrityIncident_ContainedFile::default_instance_ = new ClientIncidentReport_IncidentData_BinaryIntegrityIncident_ContainedFile();
124 0 : ClientIncidentReport_IncidentData_BlacklistLoadIncident::default_instance_ = new ClientIncidentReport_IncidentData_BlacklistLoadIncident();
125 0 : ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident::default_instance_ = new ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident();
126 0 : ClientIncidentReport_IncidentData_ResourceRequestIncident::default_instance_ = new ClientIncidentReport_IncidentData_ResourceRequestIncident();
127 0 : ClientIncidentReport_IncidentData_SuspiciousModuleIncident::default_instance_ = new ClientIncidentReport_IncidentData_SuspiciousModuleIncident();
128 0 : ClientIncidentReport_DownloadDetails::default_instance_ = new ClientIncidentReport_DownloadDetails();
129 0 : ClientIncidentReport_EnvironmentData::default_instance_ = new ClientIncidentReport_EnvironmentData();
130 0 : ClientIncidentReport_EnvironmentData_OS::default_instance_ = new ClientIncidentReport_EnvironmentData_OS();
131 0 : ClientIncidentReport_EnvironmentData_OS_RegistryValue::default_instance_ = new ClientIncidentReport_EnvironmentData_OS_RegistryValue();
132 0 : ClientIncidentReport_EnvironmentData_OS_RegistryKey::default_instance_ = new ClientIncidentReport_EnvironmentData_OS_RegistryKey();
133 0 : ClientIncidentReport_EnvironmentData_Machine::default_instance_ = new ClientIncidentReport_EnvironmentData_Machine();
134 0 : ClientIncidentReport_EnvironmentData_Process::default_instance_ = new ClientIncidentReport_EnvironmentData_Process();
135 0 : ClientIncidentReport_EnvironmentData_Process_Patch::default_instance_ = new ClientIncidentReport_EnvironmentData_Process_Patch();
136 0 : ClientIncidentReport_EnvironmentData_Process_NetworkProvider::default_instance_ = new ClientIncidentReport_EnvironmentData_Process_NetworkProvider();
137 0 : ClientIncidentReport_EnvironmentData_Process_Dll::default_instance_ = new ClientIncidentReport_EnvironmentData_Process_Dll();
138 0 : ClientIncidentReport_EnvironmentData_Process_ModuleState::default_instance_ = new ClientIncidentReport_EnvironmentData_Process_ModuleState();
139 0 : ClientIncidentReport_EnvironmentData_Process_ModuleState_Modification::default_instance_ = new ClientIncidentReport_EnvironmentData_Process_ModuleState_Modification();
140 0 : ClientIncidentReport_ExtensionData::default_instance_ = new ClientIncidentReport_ExtensionData();
141 0 : ClientIncidentReport_ExtensionData_ExtensionInfo::default_instance_ = new ClientIncidentReport_ExtensionData_ExtensionInfo();
142 0 : ClientIncidentReport_NonBinaryDownloadDetails::default_instance_ = new ClientIncidentReport_NonBinaryDownloadDetails();
143 0 : ClientIncidentResponse::default_instance_ = new ClientIncidentResponse();
144 0 : ClientIncidentResponse_EnvironmentRequest::default_instance_ = new ClientIncidentResponse_EnvironmentRequest();
145 0 : DownloadMetadata::default_instance_ = new DownloadMetadata();
146 0 : ClientSafeBrowsingReportRequest::default_instance_ = new ClientSafeBrowsingReportRequest();
147 0 : ClientSafeBrowsingReportRequest_HTTPHeader::default_instance_ = new ClientSafeBrowsingReportRequest_HTTPHeader();
148 0 : ClientSafeBrowsingReportRequest_HTTPRequest::default_instance_ = new ClientSafeBrowsingReportRequest_HTTPRequest();
149 0 : ClientSafeBrowsingReportRequest_HTTPRequest_FirstLine::default_instance_ = new ClientSafeBrowsingReportRequest_HTTPRequest_FirstLine();
150 0 : ClientSafeBrowsingReportRequest_HTTPResponse::default_instance_ = new ClientSafeBrowsingReportRequest_HTTPResponse();
151 0 : ClientSafeBrowsingReportRequest_HTTPResponse_FirstLine::default_instance_ = new ClientSafeBrowsingReportRequest_HTTPResponse_FirstLine();
152 0 : ClientSafeBrowsingReportRequest_Resource::default_instance_ = new ClientSafeBrowsingReportRequest_Resource();
153 0 : ChromeUserPopulation::default_instance_->InitAsDefaultInstance();
154 0 : ClientPhishingRequest::default_instance_->InitAsDefaultInstance();
155 0 : ClientPhishingRequest_Feature::default_instance_->InitAsDefaultInstance();
156 0 : ClientPhishingResponse::default_instance_->InitAsDefaultInstance();
157 0 : ClientMalwareRequest::default_instance_->InitAsDefaultInstance();
158 0 : ClientMalwareRequest_UrlInfo::default_instance_->InitAsDefaultInstance();
159 0 : ClientMalwareResponse::default_instance_->InitAsDefaultInstance();
160 0 : ClientDownloadRequest::default_instance_->InitAsDefaultInstance();
161 0 : ClientDownloadRequest_Digests::default_instance_->InitAsDefaultInstance();
162 0 : ClientDownloadRequest_Resource::default_instance_->InitAsDefaultInstance();
163 0 : ClientDownloadRequest_CertificateChain::default_instance_->InitAsDefaultInstance();
164 0 : ClientDownloadRequest_CertificateChain_Element::default_instance_->InitAsDefaultInstance();
165 0 : ClientDownloadRequest_ExtendedAttr::default_instance_->InitAsDefaultInstance();
166 0 : ClientDownloadRequest_SignatureInfo::default_instance_->InitAsDefaultInstance();
167 0 : ClientDownloadRequest_PEImageHeaders::default_instance_->InitAsDefaultInstance();
168 0 : ClientDownloadRequest_PEImageHeaders_DebugData::default_instance_->InitAsDefaultInstance();
169 0 : ClientDownloadRequest_MachOHeaders::default_instance_->InitAsDefaultInstance();
170 0 : ClientDownloadRequest_MachOHeaders_LoadCommand::default_instance_->InitAsDefaultInstance();
171 0 : ClientDownloadRequest_ImageHeaders::default_instance_->InitAsDefaultInstance();
172 0 : ClientDownloadRequest_ArchivedBinary::default_instance_->InitAsDefaultInstance();
173 0 : ClientDownloadRequest_URLChainEntry::default_instance_->InitAsDefaultInstance();
174 0 : ClientDownloadResponse::default_instance_->InitAsDefaultInstance();
175 0 : ClientDownloadResponse_MoreInfo::default_instance_->InitAsDefaultInstance();
176 0 : ClientDownloadReport::default_instance_->InitAsDefaultInstance();
177 0 : ClientDownloadReport_UserInformation::default_instance_->InitAsDefaultInstance();
178 0 : ClientUploadResponse::default_instance_->InitAsDefaultInstance();
179 0 : ClientIncidentReport::default_instance_->InitAsDefaultInstance();
180 0 : ClientIncidentReport_IncidentData::default_instance_->InitAsDefaultInstance();
181 0 : ClientIncidentReport_IncidentData_TrackedPreferenceIncident::default_instance_->InitAsDefaultInstance();
182 0 : ClientIncidentReport_IncidentData_BinaryIntegrityIncident::default_instance_->InitAsDefaultInstance();
183 0 : ClientIncidentReport_IncidentData_BinaryIntegrityIncident_ContainedFile::default_instance_->InitAsDefaultInstance();
184 0 : ClientIncidentReport_IncidentData_BlacklistLoadIncident::default_instance_->InitAsDefaultInstance();
185 0 : ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident::default_instance_->InitAsDefaultInstance();
186 0 : ClientIncidentReport_IncidentData_ResourceRequestIncident::default_instance_->InitAsDefaultInstance();
187 0 : ClientIncidentReport_IncidentData_SuspiciousModuleIncident::default_instance_->InitAsDefaultInstance();
188 0 : ClientIncidentReport_DownloadDetails::default_instance_->InitAsDefaultInstance();
189 0 : ClientIncidentReport_EnvironmentData::default_instance_->InitAsDefaultInstance();
190 0 : ClientIncidentReport_EnvironmentData_OS::default_instance_->InitAsDefaultInstance();
191 0 : ClientIncidentReport_EnvironmentData_OS_RegistryValue::default_instance_->InitAsDefaultInstance();
192 0 : ClientIncidentReport_EnvironmentData_OS_RegistryKey::default_instance_->InitAsDefaultInstance();
193 0 : ClientIncidentReport_EnvironmentData_Machine::default_instance_->InitAsDefaultInstance();
194 0 : ClientIncidentReport_EnvironmentData_Process::default_instance_->InitAsDefaultInstance();
195 0 : ClientIncidentReport_EnvironmentData_Process_Patch::default_instance_->InitAsDefaultInstance();
196 0 : ClientIncidentReport_EnvironmentData_Process_NetworkProvider::default_instance_->InitAsDefaultInstance();
197 0 : ClientIncidentReport_EnvironmentData_Process_Dll::default_instance_->InitAsDefaultInstance();
198 0 : ClientIncidentReport_EnvironmentData_Process_ModuleState::default_instance_->InitAsDefaultInstance();
199 0 : ClientIncidentReport_EnvironmentData_Process_ModuleState_Modification::default_instance_->InitAsDefaultInstance();
200 0 : ClientIncidentReport_ExtensionData::default_instance_->InitAsDefaultInstance();
201 0 : ClientIncidentReport_ExtensionData_ExtensionInfo::default_instance_->InitAsDefaultInstance();
202 0 : ClientIncidentReport_NonBinaryDownloadDetails::default_instance_->InitAsDefaultInstance();
203 0 : ClientIncidentResponse::default_instance_->InitAsDefaultInstance();
204 0 : ClientIncidentResponse_EnvironmentRequest::default_instance_->InitAsDefaultInstance();
205 0 : DownloadMetadata::default_instance_->InitAsDefaultInstance();
206 0 : ClientSafeBrowsingReportRequest::default_instance_->InitAsDefaultInstance();
207 0 : ClientSafeBrowsingReportRequest_HTTPHeader::default_instance_->InitAsDefaultInstance();
208 0 : ClientSafeBrowsingReportRequest_HTTPRequest::default_instance_->InitAsDefaultInstance();
209 0 : ClientSafeBrowsingReportRequest_HTTPRequest_FirstLine::default_instance_->InitAsDefaultInstance();
210 0 : ClientSafeBrowsingReportRequest_HTTPResponse::default_instance_->InitAsDefaultInstance();
211 0 : ClientSafeBrowsingReportRequest_HTTPResponse_FirstLine::default_instance_->InitAsDefaultInstance();
212 0 : ClientSafeBrowsingReportRequest_Resource::default_instance_->InitAsDefaultInstance();
213 0 : ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto);
214 0 : }
215 :
216 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
217 : GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto_once_);
218 0 : void protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto() {
219 : ::google::protobuf::GoogleOnceInit(&protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto_once_,
220 0 : &protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto_impl);
221 0 : }
222 : #else
223 : // Force AddDescriptors() to be called at static initialization time.
224 : struct StaticDescriptorInitializer_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto {
225 : StaticDescriptorInitializer_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto() {
226 : protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
227 : }
228 : } static_descriptor_initializer_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto_;
229 : #endif
230 :
231 : // ===================================================================
232 :
233 0 : bool ChromeUserPopulation_UserPopulation_IsValid(int value) {
234 0 : switch(value) {
235 : case 0:
236 : case 1:
237 : case 2:
238 0 : return true;
239 : default:
240 0 : return false;
241 : }
242 : }
243 :
244 : #ifndef _MSC_VER
245 : const ChromeUserPopulation_UserPopulation ChromeUserPopulation::UNKNOWN_USER_POPULATION;
246 : const ChromeUserPopulation_UserPopulation ChromeUserPopulation::SAFE_BROWSING;
247 : const ChromeUserPopulation_UserPopulation ChromeUserPopulation::EXTENDED_REPORTING;
248 : const ChromeUserPopulation_UserPopulation ChromeUserPopulation::UserPopulation_MIN;
249 : const ChromeUserPopulation_UserPopulation ChromeUserPopulation::UserPopulation_MAX;
250 : const int ChromeUserPopulation::UserPopulation_ARRAYSIZE;
251 : #endif // _MSC_VER
252 : #ifndef _MSC_VER
253 : const int ChromeUserPopulation::kUserPopulationFieldNumber;
254 : #endif // !_MSC_VER
255 :
256 0 : ChromeUserPopulation::ChromeUserPopulation()
257 0 : : ::google::protobuf::MessageLite() {
258 0 : SharedCtor();
259 : // @@protoc_insertion_point(constructor:safe_browsing.ChromeUserPopulation)
260 0 : }
261 :
262 0 : void ChromeUserPopulation::InitAsDefaultInstance() {
263 0 : }
264 :
265 0 : ChromeUserPopulation::ChromeUserPopulation(const ChromeUserPopulation& from)
266 0 : : ::google::protobuf::MessageLite() {
267 0 : SharedCtor();
268 0 : MergeFrom(from);
269 : // @@protoc_insertion_point(copy_constructor:safe_browsing.ChromeUserPopulation)
270 0 : }
271 :
272 0 : void ChromeUserPopulation::SharedCtor() {
273 0 : _cached_size_ = 0;
274 0 : user_population_ = 0;
275 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
276 0 : }
277 :
278 0 : ChromeUserPopulation::~ChromeUserPopulation() {
279 : // @@protoc_insertion_point(destructor:safe_browsing.ChromeUserPopulation)
280 0 : SharedDtor();
281 0 : }
282 :
283 0 : void ChromeUserPopulation::SharedDtor() {
284 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
285 0 : if (this != &default_instance()) {
286 : #else
287 : if (this != default_instance_) {
288 : #endif
289 : }
290 0 : }
291 :
292 0 : void ChromeUserPopulation::SetCachedSize(int size) const {
293 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
294 0 : _cached_size_ = size;
295 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
296 0 : }
297 0 : const ChromeUserPopulation& ChromeUserPopulation::default_instance() {
298 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
299 0 : protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
300 : #else
301 : if (default_instance_ == NULL) protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
302 : #endif
303 0 : return *default_instance_;
304 : }
305 :
306 : ChromeUserPopulation* ChromeUserPopulation::default_instance_ = NULL;
307 :
308 0 : ChromeUserPopulation* ChromeUserPopulation::New() const {
309 0 : return new ChromeUserPopulation;
310 : }
311 :
312 0 : void ChromeUserPopulation::Clear() {
313 0 : user_population_ = 0;
314 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
315 0 : mutable_unknown_fields()->clear();
316 0 : }
317 :
318 0 : bool ChromeUserPopulation::MergePartialFromCodedStream(
319 : ::google::protobuf::io::CodedInputStream* input) {
320 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
321 : ::google::protobuf::uint32 tag;
322 : ::google::protobuf::io::StringOutputStream unknown_fields_string(
323 0 : mutable_unknown_fields());
324 : ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
325 0 : &unknown_fields_string);
326 : // @@protoc_insertion_point(parse_start:safe_browsing.ChromeUserPopulation)
327 : for (;;) {
328 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
329 0 : tag = p.first;
330 0 : if (!p.second) goto handle_unusual;
331 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
332 : // optional .safe_browsing.ChromeUserPopulation.UserPopulation user_population = 1;
333 : case 1: {
334 0 : if (tag == 8) {
335 : int value;
336 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
337 : int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
338 : input, &value)));
339 0 : if (::safe_browsing::ChromeUserPopulation_UserPopulation_IsValid(value)) {
340 0 : set_user_population(static_cast< ::safe_browsing::ChromeUserPopulation_UserPopulation >(value));
341 : } else {
342 0 : unknown_fields_stream.WriteVarint32(tag);
343 0 : unknown_fields_stream.WriteVarint32(value);
344 : }
345 : } else {
346 0 : goto handle_unusual;
347 : }
348 0 : if (input->ExpectAtEnd()) goto success;
349 0 : break;
350 : }
351 :
352 : default: {
353 : handle_unusual:
354 0 : if (tag == 0 ||
355 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
356 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
357 0 : goto success;
358 : }
359 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(
360 : input, tag, &unknown_fields_stream));
361 0 : break;
362 : }
363 : }
364 0 : }
365 : success:
366 : // @@protoc_insertion_point(parse_success:safe_browsing.ChromeUserPopulation)
367 0 : return true;
368 : failure:
369 : // @@protoc_insertion_point(parse_failure:safe_browsing.ChromeUserPopulation)
370 0 : return false;
371 : #undef DO_
372 : }
373 :
374 0 : void ChromeUserPopulation::SerializeWithCachedSizes(
375 : ::google::protobuf::io::CodedOutputStream* output) const {
376 : // @@protoc_insertion_point(serialize_start:safe_browsing.ChromeUserPopulation)
377 : // optional .safe_browsing.ChromeUserPopulation.UserPopulation user_population = 1;
378 0 : if (has_user_population()) {
379 0 : ::google::protobuf::internal::WireFormatLite::WriteEnum(
380 0 : 1, this->user_population(), output);
381 : }
382 :
383 0 : output->WriteRaw(unknown_fields().data(),
384 0 : unknown_fields().size());
385 : // @@protoc_insertion_point(serialize_end:safe_browsing.ChromeUserPopulation)
386 0 : }
387 :
388 0 : int ChromeUserPopulation::ByteSize() const {
389 0 : int total_size = 0;
390 :
391 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
392 : // optional .safe_browsing.ChromeUserPopulation.UserPopulation user_population = 1;
393 0 : if (has_user_population()) {
394 0 : total_size += 1 +
395 0 : ::google::protobuf::internal::WireFormatLite::EnumSize(this->user_population());
396 : }
397 :
398 : }
399 0 : total_size += unknown_fields().size();
400 :
401 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
402 0 : _cached_size_ = total_size;
403 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
404 0 : return total_size;
405 : }
406 :
407 0 : void ChromeUserPopulation::CheckTypeAndMergeFrom(
408 : const ::google::protobuf::MessageLite& from) {
409 0 : MergeFrom(*::google::protobuf::down_cast<const ChromeUserPopulation*>(&from));
410 0 : }
411 :
412 0 : void ChromeUserPopulation::MergeFrom(const ChromeUserPopulation& from) {
413 0 : GOOGLE_CHECK_NE(&from, this);
414 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
415 0 : if (from.has_user_population()) {
416 0 : set_user_population(from.user_population());
417 : }
418 : }
419 0 : mutable_unknown_fields()->append(from.unknown_fields());
420 0 : }
421 :
422 0 : void ChromeUserPopulation::CopyFrom(const ChromeUserPopulation& from) {
423 0 : if (&from == this) return;
424 0 : Clear();
425 0 : MergeFrom(from);
426 : }
427 :
428 0 : bool ChromeUserPopulation::IsInitialized() const {
429 :
430 0 : return true;
431 : }
432 :
433 0 : void ChromeUserPopulation::Swap(ChromeUserPopulation* other) {
434 0 : if (other != this) {
435 0 : std::swap(user_population_, other->user_population_);
436 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
437 0 : _unknown_fields_.swap(other->_unknown_fields_);
438 0 : std::swap(_cached_size_, other->_cached_size_);
439 : }
440 0 : }
441 :
442 0 : ::std::string ChromeUserPopulation::GetTypeName() const {
443 0 : return "safe_browsing.ChromeUserPopulation";
444 : }
445 :
446 :
447 : // ===================================================================
448 :
449 : #ifndef _MSC_VER
450 : const int ClientPhishingRequest_Feature::kNameFieldNumber;
451 : const int ClientPhishingRequest_Feature::kValueFieldNumber;
452 : #endif // !_MSC_VER
453 :
454 0 : ClientPhishingRequest_Feature::ClientPhishingRequest_Feature()
455 0 : : ::google::protobuf::MessageLite() {
456 0 : SharedCtor();
457 : // @@protoc_insertion_point(constructor:safe_browsing.ClientPhishingRequest.Feature)
458 0 : }
459 :
460 0 : void ClientPhishingRequest_Feature::InitAsDefaultInstance() {
461 0 : }
462 :
463 0 : ClientPhishingRequest_Feature::ClientPhishingRequest_Feature(const ClientPhishingRequest_Feature& from)
464 0 : : ::google::protobuf::MessageLite() {
465 0 : SharedCtor();
466 0 : MergeFrom(from);
467 : // @@protoc_insertion_point(copy_constructor:safe_browsing.ClientPhishingRequest.Feature)
468 0 : }
469 :
470 0 : void ClientPhishingRequest_Feature::SharedCtor() {
471 0 : ::google::protobuf::internal::GetEmptyString();
472 0 : _cached_size_ = 0;
473 0 : name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
474 0 : value_ = 0;
475 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
476 0 : }
477 :
478 0 : ClientPhishingRequest_Feature::~ClientPhishingRequest_Feature() {
479 : // @@protoc_insertion_point(destructor:safe_browsing.ClientPhishingRequest.Feature)
480 0 : SharedDtor();
481 0 : }
482 :
483 0 : void ClientPhishingRequest_Feature::SharedDtor() {
484 0 : if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
485 0 : delete name_;
486 : }
487 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
488 0 : if (this != &default_instance()) {
489 : #else
490 : if (this != default_instance_) {
491 : #endif
492 : }
493 0 : }
494 :
495 0 : void ClientPhishingRequest_Feature::SetCachedSize(int size) const {
496 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
497 0 : _cached_size_ = size;
498 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
499 0 : }
500 0 : const ClientPhishingRequest_Feature& ClientPhishingRequest_Feature::default_instance() {
501 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
502 0 : protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
503 : #else
504 : if (default_instance_ == NULL) protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
505 : #endif
506 0 : return *default_instance_;
507 : }
508 :
509 : ClientPhishingRequest_Feature* ClientPhishingRequest_Feature::default_instance_ = NULL;
510 :
511 0 : ClientPhishingRequest_Feature* ClientPhishingRequest_Feature::New() const {
512 0 : return new ClientPhishingRequest_Feature;
513 : }
514 :
515 0 : void ClientPhishingRequest_Feature::Clear() {
516 0 : if (_has_bits_[0 / 32] & 3) {
517 0 : if (has_name()) {
518 0 : if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
519 0 : name_->clear();
520 : }
521 : }
522 0 : value_ = 0;
523 : }
524 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
525 0 : mutable_unknown_fields()->clear();
526 0 : }
527 :
528 0 : bool ClientPhishingRequest_Feature::MergePartialFromCodedStream(
529 : ::google::protobuf::io::CodedInputStream* input) {
530 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
531 : ::google::protobuf::uint32 tag;
532 : ::google::protobuf::io::StringOutputStream unknown_fields_string(
533 0 : mutable_unknown_fields());
534 : ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
535 0 : &unknown_fields_string);
536 : // @@protoc_insertion_point(parse_start:safe_browsing.ClientPhishingRequest.Feature)
537 : for (;;) {
538 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
539 0 : tag = p.first;
540 0 : if (!p.second) goto handle_unusual;
541 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
542 : // required string name = 1;
543 : case 1: {
544 0 : if (tag == 10) {
545 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
546 : input, this->mutable_name()));
547 : } else {
548 0 : goto handle_unusual;
549 : }
550 0 : if (input->ExpectTag(17)) goto parse_value;
551 0 : break;
552 : }
553 :
554 : // required double value = 2;
555 : case 2: {
556 0 : if (tag == 17) {
557 : parse_value:
558 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
559 : double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
560 : input, &value_)));
561 0 : set_has_value();
562 : } else {
563 0 : goto handle_unusual;
564 : }
565 0 : if (input->ExpectAtEnd()) goto success;
566 0 : break;
567 : }
568 :
569 : default: {
570 : handle_unusual:
571 0 : if (tag == 0 ||
572 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
573 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
574 0 : goto success;
575 : }
576 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(
577 : input, tag, &unknown_fields_stream));
578 0 : break;
579 : }
580 : }
581 0 : }
582 : success:
583 : // @@protoc_insertion_point(parse_success:safe_browsing.ClientPhishingRequest.Feature)
584 0 : return true;
585 : failure:
586 : // @@protoc_insertion_point(parse_failure:safe_browsing.ClientPhishingRequest.Feature)
587 0 : return false;
588 : #undef DO_
589 : }
590 :
591 0 : void ClientPhishingRequest_Feature::SerializeWithCachedSizes(
592 : ::google::protobuf::io::CodedOutputStream* output) const {
593 : // @@protoc_insertion_point(serialize_start:safe_browsing.ClientPhishingRequest.Feature)
594 : // required string name = 1;
595 0 : if (has_name()) {
596 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
597 0 : 1, this->name(), output);
598 : }
599 :
600 : // required double value = 2;
601 0 : if (has_value()) {
602 0 : ::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->value(), output);
603 : }
604 :
605 0 : output->WriteRaw(unknown_fields().data(),
606 0 : unknown_fields().size());
607 : // @@protoc_insertion_point(serialize_end:safe_browsing.ClientPhishingRequest.Feature)
608 0 : }
609 :
610 0 : int ClientPhishingRequest_Feature::ByteSize() const {
611 0 : int total_size = 0;
612 :
613 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
614 : // required string name = 1;
615 0 : if (has_name()) {
616 0 : total_size += 1 +
617 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
618 : this->name());
619 : }
620 :
621 : // required double value = 2;
622 0 : if (has_value()) {
623 0 : total_size += 1 + 8;
624 : }
625 :
626 : }
627 0 : total_size += unknown_fields().size();
628 :
629 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
630 0 : _cached_size_ = total_size;
631 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
632 0 : return total_size;
633 : }
634 :
635 0 : void ClientPhishingRequest_Feature::CheckTypeAndMergeFrom(
636 : const ::google::protobuf::MessageLite& from) {
637 0 : MergeFrom(*::google::protobuf::down_cast<const ClientPhishingRequest_Feature*>(&from));
638 0 : }
639 :
640 0 : void ClientPhishingRequest_Feature::MergeFrom(const ClientPhishingRequest_Feature& from) {
641 0 : GOOGLE_CHECK_NE(&from, this);
642 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
643 0 : if (from.has_name()) {
644 0 : set_name(from.name());
645 : }
646 0 : if (from.has_value()) {
647 0 : set_value(from.value());
648 : }
649 : }
650 0 : mutable_unknown_fields()->append(from.unknown_fields());
651 0 : }
652 :
653 0 : void ClientPhishingRequest_Feature::CopyFrom(const ClientPhishingRequest_Feature& from) {
654 0 : if (&from == this) return;
655 0 : Clear();
656 0 : MergeFrom(from);
657 : }
658 :
659 0 : bool ClientPhishingRequest_Feature::IsInitialized() const {
660 0 : if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
661 :
662 0 : return true;
663 : }
664 :
665 0 : void ClientPhishingRequest_Feature::Swap(ClientPhishingRequest_Feature* other) {
666 0 : if (other != this) {
667 0 : std::swap(name_, other->name_);
668 0 : std::swap(value_, other->value_);
669 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
670 0 : _unknown_fields_.swap(other->_unknown_fields_);
671 0 : std::swap(_cached_size_, other->_cached_size_);
672 : }
673 0 : }
674 :
675 0 : ::std::string ClientPhishingRequest_Feature::GetTypeName() const {
676 0 : return "safe_browsing.ClientPhishingRequest.Feature";
677 : }
678 :
679 :
680 : // -------------------------------------------------------------------
681 :
682 : #ifndef _MSC_VER
683 : const int ClientPhishingRequest::kUrlFieldNumber;
684 : const int ClientPhishingRequest::kOBSOLETEHashPrefixFieldNumber;
685 : const int ClientPhishingRequest::kClientScoreFieldNumber;
686 : const int ClientPhishingRequest::kIsPhishingFieldNumber;
687 : const int ClientPhishingRequest::kFeatureMapFieldNumber;
688 : const int ClientPhishingRequest::kModelVersionFieldNumber;
689 : const int ClientPhishingRequest::kNonModelFeatureMapFieldNumber;
690 : const int ClientPhishingRequest::kOBSOLETEReferrerUrlFieldNumber;
691 : const int ClientPhishingRequest::kShingleHashesFieldNumber;
692 : const int ClientPhishingRequest::kModelFilenameFieldNumber;
693 : const int ClientPhishingRequest::kPopulationFieldNumber;
694 : #endif // !_MSC_VER
695 :
696 0 : ClientPhishingRequest::ClientPhishingRequest()
697 0 : : ::google::protobuf::MessageLite() {
698 0 : SharedCtor();
699 : // @@protoc_insertion_point(constructor:safe_browsing.ClientPhishingRequest)
700 0 : }
701 :
702 0 : void ClientPhishingRequest::InitAsDefaultInstance() {
703 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
704 0 : population_ = const_cast< ::safe_browsing::ChromeUserPopulation*>(
705 0 : ::safe_browsing::ChromeUserPopulation::internal_default_instance());
706 : #else
707 : population_ = const_cast< ::safe_browsing::ChromeUserPopulation*>(&::safe_browsing::ChromeUserPopulation::default_instance());
708 : #endif
709 0 : }
710 :
711 0 : ClientPhishingRequest::ClientPhishingRequest(const ClientPhishingRequest& from)
712 0 : : ::google::protobuf::MessageLite() {
713 0 : SharedCtor();
714 0 : MergeFrom(from);
715 : // @@protoc_insertion_point(copy_constructor:safe_browsing.ClientPhishingRequest)
716 0 : }
717 :
718 0 : void ClientPhishingRequest::SharedCtor() {
719 0 : ::google::protobuf::internal::GetEmptyString();
720 0 : _cached_size_ = 0;
721 0 : url_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
722 0 : obsolete_hash_prefix_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
723 0 : client_score_ = 0;
724 0 : is_phishing_ = false;
725 0 : model_version_ = 0;
726 0 : obsolete_referrer_url_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
727 0 : model_filename_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
728 0 : population_ = NULL;
729 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
730 0 : }
731 :
732 0 : ClientPhishingRequest::~ClientPhishingRequest() {
733 : // @@protoc_insertion_point(destructor:safe_browsing.ClientPhishingRequest)
734 0 : SharedDtor();
735 0 : }
736 :
737 0 : void ClientPhishingRequest::SharedDtor() {
738 0 : if (url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
739 0 : delete url_;
740 : }
741 0 : if (obsolete_hash_prefix_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
742 0 : delete obsolete_hash_prefix_;
743 : }
744 0 : if (obsolete_referrer_url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
745 0 : delete obsolete_referrer_url_;
746 : }
747 0 : if (model_filename_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
748 0 : delete model_filename_;
749 : }
750 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
751 0 : if (this != &default_instance()) {
752 : #else
753 : if (this != default_instance_) {
754 : #endif
755 0 : delete population_;
756 : }
757 0 : }
758 :
759 0 : void ClientPhishingRequest::SetCachedSize(int size) const {
760 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
761 0 : _cached_size_ = size;
762 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
763 0 : }
764 0 : const ClientPhishingRequest& ClientPhishingRequest::default_instance() {
765 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
766 0 : protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
767 : #else
768 : if (default_instance_ == NULL) protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
769 : #endif
770 0 : return *default_instance_;
771 : }
772 :
773 : ClientPhishingRequest* ClientPhishingRequest::default_instance_ = NULL;
774 :
775 0 : ClientPhishingRequest* ClientPhishingRequest::New() const {
776 0 : return new ClientPhishingRequest;
777 : }
778 :
779 0 : void ClientPhishingRequest::Clear() {
780 : #define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \
781 : &reinterpret_cast<ClientPhishingRequest*>(16)->f) - \
782 : reinterpret_cast<char*>(16))
783 :
784 : #define ZR_(first, last) do { \
785 : size_t f = OFFSET_OF_FIELD_(first); \
786 : size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \
787 : ::memset(&first, 0, n); \
788 : } while (0)
789 :
790 0 : if (_has_bits_[0 / 32] & 175) {
791 0 : ZR_(client_score_, is_phishing_);
792 0 : if (has_url()) {
793 0 : if (url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
794 0 : url_->clear();
795 : }
796 : }
797 0 : if (has_obsolete_hash_prefix()) {
798 0 : if (obsolete_hash_prefix_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
799 0 : obsolete_hash_prefix_->clear();
800 : }
801 : }
802 0 : model_version_ = 0;
803 0 : if (has_obsolete_referrer_url()) {
804 0 : if (obsolete_referrer_url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
805 0 : obsolete_referrer_url_->clear();
806 : }
807 : }
808 : }
809 0 : if (_has_bits_[8 / 32] & 1536) {
810 0 : if (has_model_filename()) {
811 0 : if (model_filename_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
812 0 : model_filename_->clear();
813 : }
814 : }
815 0 : if (has_population()) {
816 0 : if (population_ != NULL) population_->::safe_browsing::ChromeUserPopulation::Clear();
817 : }
818 : }
819 :
820 : #undef OFFSET_OF_FIELD_
821 : #undef ZR_
822 :
823 0 : feature_map_.Clear();
824 0 : non_model_feature_map_.Clear();
825 0 : shingle_hashes_.Clear();
826 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
827 0 : mutable_unknown_fields()->clear();
828 0 : }
829 :
830 0 : bool ClientPhishingRequest::MergePartialFromCodedStream(
831 : ::google::protobuf::io::CodedInputStream* input) {
832 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
833 : ::google::protobuf::uint32 tag;
834 : ::google::protobuf::io::StringOutputStream unknown_fields_string(
835 0 : mutable_unknown_fields());
836 : ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
837 0 : &unknown_fields_string);
838 : // @@protoc_insertion_point(parse_start:safe_browsing.ClientPhishingRequest)
839 : for (;;) {
840 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
841 0 : tag = p.first;
842 0 : if (!p.second) goto handle_unusual;
843 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
844 : // optional string url = 1;
845 : case 1: {
846 0 : if (tag == 10) {
847 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
848 : input, this->mutable_url()));
849 : } else {
850 0 : goto handle_unusual;
851 : }
852 0 : if (input->ExpectTag(21)) goto parse_client_score;
853 0 : break;
854 : }
855 :
856 : // required float client_score = 2;
857 : case 2: {
858 0 : if (tag == 21) {
859 : parse_client_score:
860 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
861 : float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
862 : input, &client_score_)));
863 0 : set_has_client_score();
864 : } else {
865 0 : goto handle_unusual;
866 : }
867 0 : if (input->ExpectTag(32)) goto parse_is_phishing;
868 0 : break;
869 : }
870 :
871 : // optional bool is_phishing = 4;
872 : case 4: {
873 0 : if (tag == 32) {
874 : parse_is_phishing:
875 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
876 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
877 : input, &is_phishing_)));
878 0 : set_has_is_phishing();
879 : } else {
880 0 : goto handle_unusual;
881 : }
882 0 : if (input->ExpectTag(42)) goto parse_feature_map;
883 0 : break;
884 : }
885 :
886 : // repeated .safe_browsing.ClientPhishingRequest.Feature feature_map = 5;
887 : case 5: {
888 0 : if (tag == 42) {
889 : parse_feature_map:
890 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
891 : input, add_feature_map()));
892 : } else {
893 0 : goto handle_unusual;
894 : }
895 0 : if (input->ExpectTag(42)) goto parse_feature_map;
896 0 : if (input->ExpectTag(48)) goto parse_model_version;
897 0 : break;
898 : }
899 :
900 : // optional int32 model_version = 6;
901 : case 6: {
902 0 : if (tag == 48) {
903 : parse_model_version:
904 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
905 : ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
906 : input, &model_version_)));
907 0 : set_has_model_version();
908 : } else {
909 0 : goto handle_unusual;
910 : }
911 0 : if (input->ExpectTag(66)) goto parse_non_model_feature_map;
912 0 : break;
913 : }
914 :
915 : // repeated .safe_browsing.ClientPhishingRequest.Feature non_model_feature_map = 8;
916 : case 8: {
917 0 : if (tag == 66) {
918 : parse_non_model_feature_map:
919 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
920 : input, add_non_model_feature_map()));
921 : } else {
922 0 : goto handle_unusual;
923 : }
924 0 : if (input->ExpectTag(66)) goto parse_non_model_feature_map;
925 0 : if (input->ExpectTag(74)) goto parse_OBSOLETE_referrer_url;
926 0 : break;
927 : }
928 :
929 : // optional string OBSOLETE_referrer_url = 9;
930 : case 9: {
931 0 : if (tag == 74) {
932 : parse_OBSOLETE_referrer_url:
933 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
934 : input, this->mutable_obsolete_referrer_url()));
935 : } else {
936 0 : goto handle_unusual;
937 : }
938 0 : if (input->ExpectTag(82)) goto parse_OBSOLETE_hash_prefix;
939 0 : break;
940 : }
941 :
942 : // optional bytes OBSOLETE_hash_prefix = 10;
943 : case 10: {
944 0 : if (tag == 82) {
945 : parse_OBSOLETE_hash_prefix:
946 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
947 : input, this->mutable_obsolete_hash_prefix()));
948 : } else {
949 0 : goto handle_unusual;
950 : }
951 0 : if (input->ExpectTag(98)) goto parse_shingle_hashes;
952 0 : break;
953 : }
954 :
955 : // repeated uint32 shingle_hashes = 12 [packed = true];
956 : case 12: {
957 0 : if (tag == 98) {
958 : parse_shingle_hashes:
959 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
960 : ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
961 : input, this->mutable_shingle_hashes())));
962 0 : } else if (tag == 96) {
963 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
964 : ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
965 : 1, 98, input, this->mutable_shingle_hashes())));
966 : } else {
967 0 : goto handle_unusual;
968 : }
969 0 : if (input->ExpectTag(106)) goto parse_model_filename;
970 0 : break;
971 : }
972 :
973 : // optional string model_filename = 13;
974 : case 13: {
975 0 : if (tag == 106) {
976 : parse_model_filename:
977 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
978 : input, this->mutable_model_filename()));
979 : } else {
980 0 : goto handle_unusual;
981 : }
982 0 : if (input->ExpectTag(114)) goto parse_population;
983 0 : break;
984 : }
985 :
986 : // optional .safe_browsing.ChromeUserPopulation population = 14;
987 : case 14: {
988 0 : if (tag == 114) {
989 : parse_population:
990 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
991 : input, mutable_population()));
992 : } else {
993 0 : goto handle_unusual;
994 : }
995 0 : if (input->ExpectAtEnd()) goto success;
996 0 : break;
997 : }
998 :
999 : default: {
1000 : handle_unusual:
1001 0 : if (tag == 0 ||
1002 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1003 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1004 0 : goto success;
1005 : }
1006 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(
1007 : input, tag, &unknown_fields_stream));
1008 0 : break;
1009 : }
1010 : }
1011 0 : }
1012 : success:
1013 : // @@protoc_insertion_point(parse_success:safe_browsing.ClientPhishingRequest)
1014 0 : return true;
1015 : failure:
1016 : // @@protoc_insertion_point(parse_failure:safe_browsing.ClientPhishingRequest)
1017 0 : return false;
1018 : #undef DO_
1019 : }
1020 :
1021 0 : void ClientPhishingRequest::SerializeWithCachedSizes(
1022 : ::google::protobuf::io::CodedOutputStream* output) const {
1023 : // @@protoc_insertion_point(serialize_start:safe_browsing.ClientPhishingRequest)
1024 : // optional string url = 1;
1025 0 : if (has_url()) {
1026 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1027 0 : 1, this->url(), output);
1028 : }
1029 :
1030 : // required float client_score = 2;
1031 0 : if (has_client_score()) {
1032 0 : ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->client_score(), output);
1033 : }
1034 :
1035 : // optional bool is_phishing = 4;
1036 0 : if (has_is_phishing()) {
1037 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->is_phishing(), output);
1038 : }
1039 :
1040 : // repeated .safe_browsing.ClientPhishingRequest.Feature feature_map = 5;
1041 0 : for (int i = 0; i < this->feature_map_size(); i++) {
1042 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
1043 0 : 5, this->feature_map(i), output);
1044 : }
1045 :
1046 : // optional int32 model_version = 6;
1047 0 : if (has_model_version()) {
1048 0 : ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->model_version(), output);
1049 : }
1050 :
1051 : // repeated .safe_browsing.ClientPhishingRequest.Feature non_model_feature_map = 8;
1052 0 : for (int i = 0; i < this->non_model_feature_map_size(); i++) {
1053 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
1054 0 : 8, this->non_model_feature_map(i), output);
1055 : }
1056 :
1057 : // optional string OBSOLETE_referrer_url = 9;
1058 0 : if (has_obsolete_referrer_url()) {
1059 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1060 0 : 9, this->obsolete_referrer_url(), output);
1061 : }
1062 :
1063 : // optional bytes OBSOLETE_hash_prefix = 10;
1064 0 : if (has_obsolete_hash_prefix()) {
1065 0 : ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
1066 0 : 10, this->obsolete_hash_prefix(), output);
1067 : }
1068 :
1069 : // repeated uint32 shingle_hashes = 12 [packed = true];
1070 0 : if (this->shingle_hashes_size() > 0) {
1071 : ::google::protobuf::internal::WireFormatLite::WriteTag(12, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
1072 0 : output->WriteVarint32(_shingle_hashes_cached_byte_size_);
1073 : }
1074 0 : for (int i = 0; i < this->shingle_hashes_size(); i++) {
1075 0 : ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag(
1076 : this->shingle_hashes(i), output);
1077 : }
1078 :
1079 : // optional string model_filename = 13;
1080 0 : if (has_model_filename()) {
1081 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1082 0 : 13, this->model_filename(), output);
1083 : }
1084 :
1085 : // optional .safe_browsing.ChromeUserPopulation population = 14;
1086 0 : if (has_population()) {
1087 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
1088 0 : 14, this->population(), output);
1089 : }
1090 :
1091 0 : output->WriteRaw(unknown_fields().data(),
1092 0 : unknown_fields().size());
1093 : // @@protoc_insertion_point(serialize_end:safe_browsing.ClientPhishingRequest)
1094 0 : }
1095 :
1096 0 : int ClientPhishingRequest::ByteSize() const {
1097 0 : int total_size = 0;
1098 :
1099 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1100 : // optional string url = 1;
1101 0 : if (has_url()) {
1102 0 : total_size += 1 +
1103 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
1104 : this->url());
1105 : }
1106 :
1107 : // optional bytes OBSOLETE_hash_prefix = 10;
1108 0 : if (has_obsolete_hash_prefix()) {
1109 0 : total_size += 1 +
1110 0 : ::google::protobuf::internal::WireFormatLite::BytesSize(
1111 : this->obsolete_hash_prefix());
1112 : }
1113 :
1114 : // required float client_score = 2;
1115 0 : if (has_client_score()) {
1116 0 : total_size += 1 + 4;
1117 : }
1118 :
1119 : // optional bool is_phishing = 4;
1120 0 : if (has_is_phishing()) {
1121 0 : total_size += 1 + 1;
1122 : }
1123 :
1124 : // optional int32 model_version = 6;
1125 0 : if (has_model_version()) {
1126 0 : total_size += 1 +
1127 0 : ::google::protobuf::internal::WireFormatLite::Int32Size(
1128 : this->model_version());
1129 : }
1130 :
1131 : // optional string OBSOLETE_referrer_url = 9;
1132 0 : if (has_obsolete_referrer_url()) {
1133 0 : total_size += 1 +
1134 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
1135 : this->obsolete_referrer_url());
1136 : }
1137 :
1138 : }
1139 0 : if (_has_bits_[9 / 32] & (0xffu << (9 % 32))) {
1140 : // optional string model_filename = 13;
1141 0 : if (has_model_filename()) {
1142 0 : total_size += 1 +
1143 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
1144 : this->model_filename());
1145 : }
1146 :
1147 : // optional .safe_browsing.ChromeUserPopulation population = 14;
1148 0 : if (has_population()) {
1149 0 : total_size += 1 +
1150 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1151 : this->population());
1152 : }
1153 :
1154 : }
1155 : // repeated .safe_browsing.ClientPhishingRequest.Feature feature_map = 5;
1156 0 : total_size += 1 * this->feature_map_size();
1157 0 : for (int i = 0; i < this->feature_map_size(); i++) {
1158 0 : total_size +=
1159 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1160 : this->feature_map(i));
1161 : }
1162 :
1163 : // repeated .safe_browsing.ClientPhishingRequest.Feature non_model_feature_map = 8;
1164 0 : total_size += 1 * this->non_model_feature_map_size();
1165 0 : for (int i = 0; i < this->non_model_feature_map_size(); i++) {
1166 0 : total_size +=
1167 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1168 : this->non_model_feature_map(i));
1169 : }
1170 :
1171 : // repeated uint32 shingle_hashes = 12 [packed = true];
1172 : {
1173 0 : int data_size = 0;
1174 0 : for (int i = 0; i < this->shingle_hashes_size(); i++) {
1175 0 : data_size += ::google::protobuf::internal::WireFormatLite::
1176 0 : UInt32Size(this->shingle_hashes(i));
1177 : }
1178 0 : if (data_size > 0) {
1179 0 : total_size += 1 +
1180 0 : ::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
1181 : }
1182 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1183 0 : _shingle_hashes_cached_byte_size_ = data_size;
1184 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
1185 0 : total_size += data_size;
1186 : }
1187 :
1188 0 : total_size += unknown_fields().size();
1189 :
1190 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1191 0 : _cached_size_ = total_size;
1192 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
1193 0 : return total_size;
1194 : }
1195 :
1196 0 : void ClientPhishingRequest::CheckTypeAndMergeFrom(
1197 : const ::google::protobuf::MessageLite& from) {
1198 0 : MergeFrom(*::google::protobuf::down_cast<const ClientPhishingRequest*>(&from));
1199 0 : }
1200 :
1201 0 : void ClientPhishingRequest::MergeFrom(const ClientPhishingRequest& from) {
1202 0 : GOOGLE_CHECK_NE(&from, this);
1203 0 : feature_map_.MergeFrom(from.feature_map_);
1204 0 : non_model_feature_map_.MergeFrom(from.non_model_feature_map_);
1205 0 : shingle_hashes_.MergeFrom(from.shingle_hashes_);
1206 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1207 0 : if (from.has_url()) {
1208 0 : set_url(from.url());
1209 : }
1210 0 : if (from.has_obsolete_hash_prefix()) {
1211 0 : set_obsolete_hash_prefix(from.obsolete_hash_prefix());
1212 : }
1213 0 : if (from.has_client_score()) {
1214 0 : set_client_score(from.client_score());
1215 : }
1216 0 : if (from.has_is_phishing()) {
1217 0 : set_is_phishing(from.is_phishing());
1218 : }
1219 0 : if (from.has_model_version()) {
1220 0 : set_model_version(from.model_version());
1221 : }
1222 0 : if (from.has_obsolete_referrer_url()) {
1223 0 : set_obsolete_referrer_url(from.obsolete_referrer_url());
1224 : }
1225 : }
1226 0 : if (from._has_bits_[9 / 32] & (0xffu << (9 % 32))) {
1227 0 : if (from.has_model_filename()) {
1228 0 : set_model_filename(from.model_filename());
1229 : }
1230 0 : if (from.has_population()) {
1231 0 : mutable_population()->::safe_browsing::ChromeUserPopulation::MergeFrom(from.population());
1232 : }
1233 : }
1234 0 : mutable_unknown_fields()->append(from.unknown_fields());
1235 0 : }
1236 :
1237 0 : void ClientPhishingRequest::CopyFrom(const ClientPhishingRequest& from) {
1238 0 : if (&from == this) return;
1239 0 : Clear();
1240 0 : MergeFrom(from);
1241 : }
1242 :
1243 0 : bool ClientPhishingRequest::IsInitialized() const {
1244 0 : if ((_has_bits_[0] & 0x00000004) != 0x00000004) return false;
1245 :
1246 0 : if (!::google::protobuf::internal::AllAreInitialized(this->feature_map())) return false;
1247 0 : if (!::google::protobuf::internal::AllAreInitialized(this->non_model_feature_map())) return false;
1248 0 : return true;
1249 : }
1250 :
1251 0 : void ClientPhishingRequest::Swap(ClientPhishingRequest* other) {
1252 0 : if (other != this) {
1253 0 : std::swap(url_, other->url_);
1254 0 : std::swap(obsolete_hash_prefix_, other->obsolete_hash_prefix_);
1255 0 : std::swap(client_score_, other->client_score_);
1256 0 : std::swap(is_phishing_, other->is_phishing_);
1257 0 : feature_map_.Swap(&other->feature_map_);
1258 0 : std::swap(model_version_, other->model_version_);
1259 0 : non_model_feature_map_.Swap(&other->non_model_feature_map_);
1260 0 : std::swap(obsolete_referrer_url_, other->obsolete_referrer_url_);
1261 0 : shingle_hashes_.Swap(&other->shingle_hashes_);
1262 0 : std::swap(model_filename_, other->model_filename_);
1263 0 : std::swap(population_, other->population_);
1264 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
1265 0 : _unknown_fields_.swap(other->_unknown_fields_);
1266 0 : std::swap(_cached_size_, other->_cached_size_);
1267 : }
1268 0 : }
1269 :
1270 0 : ::std::string ClientPhishingRequest::GetTypeName() const {
1271 0 : return "safe_browsing.ClientPhishingRequest";
1272 : }
1273 :
1274 :
1275 : // ===================================================================
1276 :
1277 : #ifndef _MSC_VER
1278 : const int ClientPhishingResponse::kPhishyFieldNumber;
1279 : const int ClientPhishingResponse::kOBSOLETEWhitelistExpressionFieldNumber;
1280 : #endif // !_MSC_VER
1281 :
1282 0 : ClientPhishingResponse::ClientPhishingResponse()
1283 0 : : ::google::protobuf::MessageLite() {
1284 0 : SharedCtor();
1285 : // @@protoc_insertion_point(constructor:safe_browsing.ClientPhishingResponse)
1286 0 : }
1287 :
1288 0 : void ClientPhishingResponse::InitAsDefaultInstance() {
1289 0 : }
1290 :
1291 0 : ClientPhishingResponse::ClientPhishingResponse(const ClientPhishingResponse& from)
1292 0 : : ::google::protobuf::MessageLite() {
1293 0 : SharedCtor();
1294 0 : MergeFrom(from);
1295 : // @@protoc_insertion_point(copy_constructor:safe_browsing.ClientPhishingResponse)
1296 0 : }
1297 :
1298 0 : void ClientPhishingResponse::SharedCtor() {
1299 0 : ::google::protobuf::internal::GetEmptyString();
1300 0 : _cached_size_ = 0;
1301 0 : phishy_ = false;
1302 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
1303 0 : }
1304 :
1305 0 : ClientPhishingResponse::~ClientPhishingResponse() {
1306 : // @@protoc_insertion_point(destructor:safe_browsing.ClientPhishingResponse)
1307 0 : SharedDtor();
1308 0 : }
1309 :
1310 0 : void ClientPhishingResponse::SharedDtor() {
1311 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
1312 0 : if (this != &default_instance()) {
1313 : #else
1314 : if (this != default_instance_) {
1315 : #endif
1316 : }
1317 0 : }
1318 :
1319 0 : void ClientPhishingResponse::SetCachedSize(int size) const {
1320 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1321 0 : _cached_size_ = size;
1322 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
1323 0 : }
1324 0 : const ClientPhishingResponse& ClientPhishingResponse::default_instance() {
1325 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
1326 0 : protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
1327 : #else
1328 : if (default_instance_ == NULL) protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
1329 : #endif
1330 0 : return *default_instance_;
1331 : }
1332 :
1333 : ClientPhishingResponse* ClientPhishingResponse::default_instance_ = NULL;
1334 :
1335 0 : ClientPhishingResponse* ClientPhishingResponse::New() const {
1336 0 : return new ClientPhishingResponse;
1337 : }
1338 :
1339 0 : void ClientPhishingResponse::Clear() {
1340 0 : phishy_ = false;
1341 0 : obsolete_whitelist_expression_.Clear();
1342 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
1343 0 : mutable_unknown_fields()->clear();
1344 0 : }
1345 :
1346 0 : bool ClientPhishingResponse::MergePartialFromCodedStream(
1347 : ::google::protobuf::io::CodedInputStream* input) {
1348 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
1349 : ::google::protobuf::uint32 tag;
1350 : ::google::protobuf::io::StringOutputStream unknown_fields_string(
1351 0 : mutable_unknown_fields());
1352 : ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
1353 0 : &unknown_fields_string);
1354 : // @@protoc_insertion_point(parse_start:safe_browsing.ClientPhishingResponse)
1355 : for (;;) {
1356 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
1357 0 : tag = p.first;
1358 0 : if (!p.second) goto handle_unusual;
1359 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1360 : // required bool phishy = 1;
1361 : case 1: {
1362 0 : if (tag == 8) {
1363 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1364 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
1365 : input, &phishy_)));
1366 0 : set_has_phishy();
1367 : } else {
1368 0 : goto handle_unusual;
1369 : }
1370 0 : if (input->ExpectTag(18)) goto parse_OBSOLETE_whitelist_expression;
1371 0 : break;
1372 : }
1373 :
1374 : // repeated string OBSOLETE_whitelist_expression = 2;
1375 : case 2: {
1376 0 : if (tag == 18) {
1377 : parse_OBSOLETE_whitelist_expression:
1378 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1379 : input, this->add_obsolete_whitelist_expression()));
1380 : } else {
1381 0 : goto handle_unusual;
1382 : }
1383 0 : if (input->ExpectTag(18)) goto parse_OBSOLETE_whitelist_expression;
1384 0 : if (input->ExpectAtEnd()) goto success;
1385 0 : break;
1386 : }
1387 :
1388 : default: {
1389 : handle_unusual:
1390 0 : if (tag == 0 ||
1391 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1392 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1393 0 : goto success;
1394 : }
1395 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(
1396 : input, tag, &unknown_fields_stream));
1397 0 : break;
1398 : }
1399 : }
1400 0 : }
1401 : success:
1402 : // @@protoc_insertion_point(parse_success:safe_browsing.ClientPhishingResponse)
1403 0 : return true;
1404 : failure:
1405 : // @@protoc_insertion_point(parse_failure:safe_browsing.ClientPhishingResponse)
1406 0 : return false;
1407 : #undef DO_
1408 : }
1409 :
1410 0 : void ClientPhishingResponse::SerializeWithCachedSizes(
1411 : ::google::protobuf::io::CodedOutputStream* output) const {
1412 : // @@protoc_insertion_point(serialize_start:safe_browsing.ClientPhishingResponse)
1413 : // required bool phishy = 1;
1414 0 : if (has_phishy()) {
1415 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->phishy(), output);
1416 : }
1417 :
1418 : // repeated string OBSOLETE_whitelist_expression = 2;
1419 0 : for (int i = 0; i < this->obsolete_whitelist_expression_size(); i++) {
1420 0 : ::google::protobuf::internal::WireFormatLite::WriteString(
1421 0 : 2, this->obsolete_whitelist_expression(i), output);
1422 : }
1423 :
1424 0 : output->WriteRaw(unknown_fields().data(),
1425 0 : unknown_fields().size());
1426 : // @@protoc_insertion_point(serialize_end:safe_browsing.ClientPhishingResponse)
1427 0 : }
1428 :
1429 0 : int ClientPhishingResponse::ByteSize() const {
1430 0 : int total_size = 0;
1431 :
1432 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1433 : // required bool phishy = 1;
1434 0 : if (has_phishy()) {
1435 0 : total_size += 1 + 1;
1436 : }
1437 :
1438 : }
1439 : // repeated string OBSOLETE_whitelist_expression = 2;
1440 0 : total_size += 1 * this->obsolete_whitelist_expression_size();
1441 0 : for (int i = 0; i < this->obsolete_whitelist_expression_size(); i++) {
1442 0 : total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
1443 : this->obsolete_whitelist_expression(i));
1444 : }
1445 :
1446 0 : total_size += unknown_fields().size();
1447 :
1448 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1449 0 : _cached_size_ = total_size;
1450 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
1451 0 : return total_size;
1452 : }
1453 :
1454 0 : void ClientPhishingResponse::CheckTypeAndMergeFrom(
1455 : const ::google::protobuf::MessageLite& from) {
1456 0 : MergeFrom(*::google::protobuf::down_cast<const ClientPhishingResponse*>(&from));
1457 0 : }
1458 :
1459 0 : void ClientPhishingResponse::MergeFrom(const ClientPhishingResponse& from) {
1460 0 : GOOGLE_CHECK_NE(&from, this);
1461 0 : obsolete_whitelist_expression_.MergeFrom(from.obsolete_whitelist_expression_);
1462 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1463 0 : if (from.has_phishy()) {
1464 0 : set_phishy(from.phishy());
1465 : }
1466 : }
1467 0 : mutable_unknown_fields()->append(from.unknown_fields());
1468 0 : }
1469 :
1470 0 : void ClientPhishingResponse::CopyFrom(const ClientPhishingResponse& from) {
1471 0 : if (&from == this) return;
1472 0 : Clear();
1473 0 : MergeFrom(from);
1474 : }
1475 :
1476 0 : bool ClientPhishingResponse::IsInitialized() const {
1477 0 : if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
1478 :
1479 0 : return true;
1480 : }
1481 :
1482 0 : void ClientPhishingResponse::Swap(ClientPhishingResponse* other) {
1483 0 : if (other != this) {
1484 0 : std::swap(phishy_, other->phishy_);
1485 0 : obsolete_whitelist_expression_.Swap(&other->obsolete_whitelist_expression_);
1486 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
1487 0 : _unknown_fields_.swap(other->_unknown_fields_);
1488 0 : std::swap(_cached_size_, other->_cached_size_);
1489 : }
1490 0 : }
1491 :
1492 0 : ::std::string ClientPhishingResponse::GetTypeName() const {
1493 0 : return "safe_browsing.ClientPhishingResponse";
1494 : }
1495 :
1496 :
1497 : // ===================================================================
1498 :
1499 : #ifndef _MSC_VER
1500 : const int ClientMalwareRequest_UrlInfo::kIpFieldNumber;
1501 : const int ClientMalwareRequest_UrlInfo::kUrlFieldNumber;
1502 : const int ClientMalwareRequest_UrlInfo::kMethodFieldNumber;
1503 : const int ClientMalwareRequest_UrlInfo::kReferrerFieldNumber;
1504 : const int ClientMalwareRequest_UrlInfo::kResourceTypeFieldNumber;
1505 : #endif // !_MSC_VER
1506 :
1507 0 : ClientMalwareRequest_UrlInfo::ClientMalwareRequest_UrlInfo()
1508 0 : : ::google::protobuf::MessageLite() {
1509 0 : SharedCtor();
1510 : // @@protoc_insertion_point(constructor:safe_browsing.ClientMalwareRequest.UrlInfo)
1511 0 : }
1512 :
1513 0 : void ClientMalwareRequest_UrlInfo::InitAsDefaultInstance() {
1514 0 : }
1515 :
1516 0 : ClientMalwareRequest_UrlInfo::ClientMalwareRequest_UrlInfo(const ClientMalwareRequest_UrlInfo& from)
1517 0 : : ::google::protobuf::MessageLite() {
1518 0 : SharedCtor();
1519 0 : MergeFrom(from);
1520 : // @@protoc_insertion_point(copy_constructor:safe_browsing.ClientMalwareRequest.UrlInfo)
1521 0 : }
1522 :
1523 0 : void ClientMalwareRequest_UrlInfo::SharedCtor() {
1524 0 : ::google::protobuf::internal::GetEmptyString();
1525 0 : _cached_size_ = 0;
1526 0 : ip_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1527 0 : url_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1528 0 : method_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1529 0 : referrer_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1530 0 : resource_type_ = 0;
1531 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
1532 0 : }
1533 :
1534 0 : ClientMalwareRequest_UrlInfo::~ClientMalwareRequest_UrlInfo() {
1535 : // @@protoc_insertion_point(destructor:safe_browsing.ClientMalwareRequest.UrlInfo)
1536 0 : SharedDtor();
1537 0 : }
1538 :
1539 0 : void ClientMalwareRequest_UrlInfo::SharedDtor() {
1540 0 : if (ip_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1541 0 : delete ip_;
1542 : }
1543 0 : if (url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1544 0 : delete url_;
1545 : }
1546 0 : if (method_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1547 0 : delete method_;
1548 : }
1549 0 : if (referrer_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1550 0 : delete referrer_;
1551 : }
1552 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
1553 0 : if (this != &default_instance()) {
1554 : #else
1555 : if (this != default_instance_) {
1556 : #endif
1557 : }
1558 0 : }
1559 :
1560 0 : void ClientMalwareRequest_UrlInfo::SetCachedSize(int size) const {
1561 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1562 0 : _cached_size_ = size;
1563 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
1564 0 : }
1565 0 : const ClientMalwareRequest_UrlInfo& ClientMalwareRequest_UrlInfo::default_instance() {
1566 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
1567 0 : protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
1568 : #else
1569 : if (default_instance_ == NULL) protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
1570 : #endif
1571 0 : return *default_instance_;
1572 : }
1573 :
1574 : ClientMalwareRequest_UrlInfo* ClientMalwareRequest_UrlInfo::default_instance_ = NULL;
1575 :
1576 0 : ClientMalwareRequest_UrlInfo* ClientMalwareRequest_UrlInfo::New() const {
1577 0 : return new ClientMalwareRequest_UrlInfo;
1578 : }
1579 :
1580 0 : void ClientMalwareRequest_UrlInfo::Clear() {
1581 0 : if (_has_bits_[0 / 32] & 31) {
1582 0 : if (has_ip()) {
1583 0 : if (ip_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1584 0 : ip_->clear();
1585 : }
1586 : }
1587 0 : if (has_url()) {
1588 0 : if (url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1589 0 : url_->clear();
1590 : }
1591 : }
1592 0 : if (has_method()) {
1593 0 : if (method_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1594 0 : method_->clear();
1595 : }
1596 : }
1597 0 : if (has_referrer()) {
1598 0 : if (referrer_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1599 0 : referrer_->clear();
1600 : }
1601 : }
1602 0 : resource_type_ = 0;
1603 : }
1604 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
1605 0 : mutable_unknown_fields()->clear();
1606 0 : }
1607 :
1608 0 : bool ClientMalwareRequest_UrlInfo::MergePartialFromCodedStream(
1609 : ::google::protobuf::io::CodedInputStream* input) {
1610 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
1611 : ::google::protobuf::uint32 tag;
1612 : ::google::protobuf::io::StringOutputStream unknown_fields_string(
1613 0 : mutable_unknown_fields());
1614 : ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
1615 0 : &unknown_fields_string);
1616 : // @@protoc_insertion_point(parse_start:safe_browsing.ClientMalwareRequest.UrlInfo)
1617 : for (;;) {
1618 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
1619 0 : tag = p.first;
1620 0 : if (!p.second) goto handle_unusual;
1621 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1622 : // required string ip = 1;
1623 : case 1: {
1624 0 : if (tag == 10) {
1625 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1626 : input, this->mutable_ip()));
1627 : } else {
1628 0 : goto handle_unusual;
1629 : }
1630 0 : if (input->ExpectTag(18)) goto parse_url;
1631 0 : break;
1632 : }
1633 :
1634 : // required string url = 2;
1635 : case 2: {
1636 0 : if (tag == 18) {
1637 : parse_url:
1638 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1639 : input, this->mutable_url()));
1640 : } else {
1641 0 : goto handle_unusual;
1642 : }
1643 0 : if (input->ExpectTag(26)) goto parse_method;
1644 0 : break;
1645 : }
1646 :
1647 : // optional string method = 3;
1648 : case 3: {
1649 0 : if (tag == 26) {
1650 : parse_method:
1651 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1652 : input, this->mutable_method()));
1653 : } else {
1654 0 : goto handle_unusual;
1655 : }
1656 0 : if (input->ExpectTag(34)) goto parse_referrer;
1657 0 : break;
1658 : }
1659 :
1660 : // optional string referrer = 4;
1661 : case 4: {
1662 0 : if (tag == 34) {
1663 : parse_referrer:
1664 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1665 : input, this->mutable_referrer()));
1666 : } else {
1667 0 : goto handle_unusual;
1668 : }
1669 0 : if (input->ExpectTag(40)) goto parse_resource_type;
1670 0 : break;
1671 : }
1672 :
1673 : // optional int32 resource_type = 5;
1674 : case 5: {
1675 0 : if (tag == 40) {
1676 : parse_resource_type:
1677 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1678 : ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
1679 : input, &resource_type_)));
1680 0 : set_has_resource_type();
1681 : } else {
1682 0 : goto handle_unusual;
1683 : }
1684 0 : if (input->ExpectAtEnd()) goto success;
1685 0 : break;
1686 : }
1687 :
1688 : default: {
1689 : handle_unusual:
1690 0 : if (tag == 0 ||
1691 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1692 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1693 0 : goto success;
1694 : }
1695 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(
1696 : input, tag, &unknown_fields_stream));
1697 0 : break;
1698 : }
1699 : }
1700 0 : }
1701 : success:
1702 : // @@protoc_insertion_point(parse_success:safe_browsing.ClientMalwareRequest.UrlInfo)
1703 0 : return true;
1704 : failure:
1705 : // @@protoc_insertion_point(parse_failure:safe_browsing.ClientMalwareRequest.UrlInfo)
1706 0 : return false;
1707 : #undef DO_
1708 : }
1709 :
1710 0 : void ClientMalwareRequest_UrlInfo::SerializeWithCachedSizes(
1711 : ::google::protobuf::io::CodedOutputStream* output) const {
1712 : // @@protoc_insertion_point(serialize_start:safe_browsing.ClientMalwareRequest.UrlInfo)
1713 : // required string ip = 1;
1714 0 : if (has_ip()) {
1715 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1716 0 : 1, this->ip(), output);
1717 : }
1718 :
1719 : // required string url = 2;
1720 0 : if (has_url()) {
1721 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1722 0 : 2, this->url(), output);
1723 : }
1724 :
1725 : // optional string method = 3;
1726 0 : if (has_method()) {
1727 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1728 0 : 3, this->method(), output);
1729 : }
1730 :
1731 : // optional string referrer = 4;
1732 0 : if (has_referrer()) {
1733 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1734 0 : 4, this->referrer(), output);
1735 : }
1736 :
1737 : // optional int32 resource_type = 5;
1738 0 : if (has_resource_type()) {
1739 0 : ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->resource_type(), output);
1740 : }
1741 :
1742 0 : output->WriteRaw(unknown_fields().data(),
1743 0 : unknown_fields().size());
1744 : // @@protoc_insertion_point(serialize_end:safe_browsing.ClientMalwareRequest.UrlInfo)
1745 0 : }
1746 :
1747 0 : int ClientMalwareRequest_UrlInfo::ByteSize() const {
1748 0 : int total_size = 0;
1749 :
1750 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1751 : // required string ip = 1;
1752 0 : if (has_ip()) {
1753 0 : total_size += 1 +
1754 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
1755 : this->ip());
1756 : }
1757 :
1758 : // required string url = 2;
1759 0 : if (has_url()) {
1760 0 : total_size += 1 +
1761 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
1762 : this->url());
1763 : }
1764 :
1765 : // optional string method = 3;
1766 0 : if (has_method()) {
1767 0 : total_size += 1 +
1768 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
1769 : this->method());
1770 : }
1771 :
1772 : // optional string referrer = 4;
1773 0 : if (has_referrer()) {
1774 0 : total_size += 1 +
1775 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
1776 : this->referrer());
1777 : }
1778 :
1779 : // optional int32 resource_type = 5;
1780 0 : if (has_resource_type()) {
1781 0 : total_size += 1 +
1782 0 : ::google::protobuf::internal::WireFormatLite::Int32Size(
1783 : this->resource_type());
1784 : }
1785 :
1786 : }
1787 0 : total_size += unknown_fields().size();
1788 :
1789 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1790 0 : _cached_size_ = total_size;
1791 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
1792 0 : return total_size;
1793 : }
1794 :
1795 0 : void ClientMalwareRequest_UrlInfo::CheckTypeAndMergeFrom(
1796 : const ::google::protobuf::MessageLite& from) {
1797 0 : MergeFrom(*::google::protobuf::down_cast<const ClientMalwareRequest_UrlInfo*>(&from));
1798 0 : }
1799 :
1800 0 : void ClientMalwareRequest_UrlInfo::MergeFrom(const ClientMalwareRequest_UrlInfo& from) {
1801 0 : GOOGLE_CHECK_NE(&from, this);
1802 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1803 0 : if (from.has_ip()) {
1804 0 : set_ip(from.ip());
1805 : }
1806 0 : if (from.has_url()) {
1807 0 : set_url(from.url());
1808 : }
1809 0 : if (from.has_method()) {
1810 0 : set_method(from.method());
1811 : }
1812 0 : if (from.has_referrer()) {
1813 0 : set_referrer(from.referrer());
1814 : }
1815 0 : if (from.has_resource_type()) {
1816 0 : set_resource_type(from.resource_type());
1817 : }
1818 : }
1819 0 : mutable_unknown_fields()->append(from.unknown_fields());
1820 0 : }
1821 :
1822 0 : void ClientMalwareRequest_UrlInfo::CopyFrom(const ClientMalwareRequest_UrlInfo& from) {
1823 0 : if (&from == this) return;
1824 0 : Clear();
1825 0 : MergeFrom(from);
1826 : }
1827 :
1828 0 : bool ClientMalwareRequest_UrlInfo::IsInitialized() const {
1829 0 : if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
1830 :
1831 0 : return true;
1832 : }
1833 :
1834 0 : void ClientMalwareRequest_UrlInfo::Swap(ClientMalwareRequest_UrlInfo* other) {
1835 0 : if (other != this) {
1836 0 : std::swap(ip_, other->ip_);
1837 0 : std::swap(url_, other->url_);
1838 0 : std::swap(method_, other->method_);
1839 0 : std::swap(referrer_, other->referrer_);
1840 0 : std::swap(resource_type_, other->resource_type_);
1841 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
1842 0 : _unknown_fields_.swap(other->_unknown_fields_);
1843 0 : std::swap(_cached_size_, other->_cached_size_);
1844 : }
1845 0 : }
1846 :
1847 0 : ::std::string ClientMalwareRequest_UrlInfo::GetTypeName() const {
1848 0 : return "safe_browsing.ClientMalwareRequest.UrlInfo";
1849 : }
1850 :
1851 :
1852 : // -------------------------------------------------------------------
1853 :
1854 : #ifndef _MSC_VER
1855 : const int ClientMalwareRequest::kUrlFieldNumber;
1856 : const int ClientMalwareRequest::kReferrerUrlFieldNumber;
1857 : const int ClientMalwareRequest::kBadIpUrlInfoFieldNumber;
1858 : const int ClientMalwareRequest::kPopulationFieldNumber;
1859 : #endif // !_MSC_VER
1860 :
1861 0 : ClientMalwareRequest::ClientMalwareRequest()
1862 0 : : ::google::protobuf::MessageLite() {
1863 0 : SharedCtor();
1864 : // @@protoc_insertion_point(constructor:safe_browsing.ClientMalwareRequest)
1865 0 : }
1866 :
1867 0 : void ClientMalwareRequest::InitAsDefaultInstance() {
1868 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
1869 0 : population_ = const_cast< ::safe_browsing::ChromeUserPopulation*>(
1870 0 : ::safe_browsing::ChromeUserPopulation::internal_default_instance());
1871 : #else
1872 : population_ = const_cast< ::safe_browsing::ChromeUserPopulation*>(&::safe_browsing::ChromeUserPopulation::default_instance());
1873 : #endif
1874 0 : }
1875 :
1876 0 : ClientMalwareRequest::ClientMalwareRequest(const ClientMalwareRequest& from)
1877 0 : : ::google::protobuf::MessageLite() {
1878 0 : SharedCtor();
1879 0 : MergeFrom(from);
1880 : // @@protoc_insertion_point(copy_constructor:safe_browsing.ClientMalwareRequest)
1881 0 : }
1882 :
1883 0 : void ClientMalwareRequest::SharedCtor() {
1884 0 : ::google::protobuf::internal::GetEmptyString();
1885 0 : _cached_size_ = 0;
1886 0 : url_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1887 0 : referrer_url_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1888 0 : population_ = NULL;
1889 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
1890 0 : }
1891 :
1892 0 : ClientMalwareRequest::~ClientMalwareRequest() {
1893 : // @@protoc_insertion_point(destructor:safe_browsing.ClientMalwareRequest)
1894 0 : SharedDtor();
1895 0 : }
1896 :
1897 0 : void ClientMalwareRequest::SharedDtor() {
1898 0 : if (url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1899 0 : delete url_;
1900 : }
1901 0 : if (referrer_url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1902 0 : delete referrer_url_;
1903 : }
1904 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
1905 0 : if (this != &default_instance()) {
1906 : #else
1907 : if (this != default_instance_) {
1908 : #endif
1909 0 : delete population_;
1910 : }
1911 0 : }
1912 :
1913 0 : void ClientMalwareRequest::SetCachedSize(int size) const {
1914 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1915 0 : _cached_size_ = size;
1916 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
1917 0 : }
1918 0 : const ClientMalwareRequest& ClientMalwareRequest::default_instance() {
1919 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
1920 0 : protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
1921 : #else
1922 : if (default_instance_ == NULL) protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
1923 : #endif
1924 0 : return *default_instance_;
1925 : }
1926 :
1927 : ClientMalwareRequest* ClientMalwareRequest::default_instance_ = NULL;
1928 :
1929 0 : ClientMalwareRequest* ClientMalwareRequest::New() const {
1930 0 : return new ClientMalwareRequest;
1931 : }
1932 :
1933 0 : void ClientMalwareRequest::Clear() {
1934 0 : if (_has_bits_[0 / 32] & 11) {
1935 0 : if (has_url()) {
1936 0 : if (url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1937 0 : url_->clear();
1938 : }
1939 : }
1940 0 : if (has_referrer_url()) {
1941 0 : if (referrer_url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1942 0 : referrer_url_->clear();
1943 : }
1944 : }
1945 0 : if (has_population()) {
1946 0 : if (population_ != NULL) population_->::safe_browsing::ChromeUserPopulation::Clear();
1947 : }
1948 : }
1949 0 : bad_ip_url_info_.Clear();
1950 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
1951 0 : mutable_unknown_fields()->clear();
1952 0 : }
1953 :
1954 0 : bool ClientMalwareRequest::MergePartialFromCodedStream(
1955 : ::google::protobuf::io::CodedInputStream* input) {
1956 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
1957 : ::google::protobuf::uint32 tag;
1958 : ::google::protobuf::io::StringOutputStream unknown_fields_string(
1959 0 : mutable_unknown_fields());
1960 : ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
1961 0 : &unknown_fields_string);
1962 : // @@protoc_insertion_point(parse_start:safe_browsing.ClientMalwareRequest)
1963 : for (;;) {
1964 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
1965 0 : tag = p.first;
1966 0 : if (!p.second) goto handle_unusual;
1967 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1968 : // required string url = 1;
1969 : case 1: {
1970 0 : if (tag == 10) {
1971 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1972 : input, this->mutable_url()));
1973 : } else {
1974 0 : goto handle_unusual;
1975 : }
1976 0 : if (input->ExpectTag(34)) goto parse_referrer_url;
1977 0 : break;
1978 : }
1979 :
1980 : // optional string referrer_url = 4;
1981 : case 4: {
1982 0 : if (tag == 34) {
1983 : parse_referrer_url:
1984 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1985 : input, this->mutable_referrer_url()));
1986 : } else {
1987 0 : goto handle_unusual;
1988 : }
1989 0 : if (input->ExpectTag(58)) goto parse_bad_ip_url_info;
1990 0 : break;
1991 : }
1992 :
1993 : // repeated .safe_browsing.ClientMalwareRequest.UrlInfo bad_ip_url_info = 7;
1994 : case 7: {
1995 0 : if (tag == 58) {
1996 : parse_bad_ip_url_info:
1997 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1998 : input, add_bad_ip_url_info()));
1999 : } else {
2000 0 : goto handle_unusual;
2001 : }
2002 0 : if (input->ExpectTag(58)) goto parse_bad_ip_url_info;
2003 0 : if (input->ExpectTag(74)) goto parse_population;
2004 0 : break;
2005 : }
2006 :
2007 : // optional .safe_browsing.ChromeUserPopulation population = 9;
2008 : case 9: {
2009 0 : if (tag == 74) {
2010 : parse_population:
2011 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
2012 : input, mutable_population()));
2013 : } else {
2014 0 : goto handle_unusual;
2015 : }
2016 0 : if (input->ExpectAtEnd()) goto success;
2017 0 : break;
2018 : }
2019 :
2020 : default: {
2021 : handle_unusual:
2022 0 : if (tag == 0 ||
2023 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2024 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
2025 0 : goto success;
2026 : }
2027 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(
2028 : input, tag, &unknown_fields_stream));
2029 0 : break;
2030 : }
2031 : }
2032 0 : }
2033 : success:
2034 : // @@protoc_insertion_point(parse_success:safe_browsing.ClientMalwareRequest)
2035 0 : return true;
2036 : failure:
2037 : // @@protoc_insertion_point(parse_failure:safe_browsing.ClientMalwareRequest)
2038 0 : return false;
2039 : #undef DO_
2040 : }
2041 :
2042 0 : void ClientMalwareRequest::SerializeWithCachedSizes(
2043 : ::google::protobuf::io::CodedOutputStream* output) const {
2044 : // @@protoc_insertion_point(serialize_start:safe_browsing.ClientMalwareRequest)
2045 : // required string url = 1;
2046 0 : if (has_url()) {
2047 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2048 0 : 1, this->url(), output);
2049 : }
2050 :
2051 : // optional string referrer_url = 4;
2052 0 : if (has_referrer_url()) {
2053 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2054 0 : 4, this->referrer_url(), output);
2055 : }
2056 :
2057 : // repeated .safe_browsing.ClientMalwareRequest.UrlInfo bad_ip_url_info = 7;
2058 0 : for (int i = 0; i < this->bad_ip_url_info_size(); i++) {
2059 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
2060 0 : 7, this->bad_ip_url_info(i), output);
2061 : }
2062 :
2063 : // optional .safe_browsing.ChromeUserPopulation population = 9;
2064 0 : if (has_population()) {
2065 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
2066 0 : 9, this->population(), output);
2067 : }
2068 :
2069 0 : output->WriteRaw(unknown_fields().data(),
2070 0 : unknown_fields().size());
2071 : // @@protoc_insertion_point(serialize_end:safe_browsing.ClientMalwareRequest)
2072 0 : }
2073 :
2074 0 : int ClientMalwareRequest::ByteSize() const {
2075 0 : int total_size = 0;
2076 :
2077 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2078 : // required string url = 1;
2079 0 : if (has_url()) {
2080 0 : total_size += 1 +
2081 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
2082 : this->url());
2083 : }
2084 :
2085 : // optional string referrer_url = 4;
2086 0 : if (has_referrer_url()) {
2087 0 : total_size += 1 +
2088 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
2089 : this->referrer_url());
2090 : }
2091 :
2092 : // optional .safe_browsing.ChromeUserPopulation population = 9;
2093 0 : if (has_population()) {
2094 0 : total_size += 1 +
2095 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2096 : this->population());
2097 : }
2098 :
2099 : }
2100 : // repeated .safe_browsing.ClientMalwareRequest.UrlInfo bad_ip_url_info = 7;
2101 0 : total_size += 1 * this->bad_ip_url_info_size();
2102 0 : for (int i = 0; i < this->bad_ip_url_info_size(); i++) {
2103 0 : total_size +=
2104 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2105 : this->bad_ip_url_info(i));
2106 : }
2107 :
2108 0 : total_size += unknown_fields().size();
2109 :
2110 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2111 0 : _cached_size_ = total_size;
2112 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
2113 0 : return total_size;
2114 : }
2115 :
2116 0 : void ClientMalwareRequest::CheckTypeAndMergeFrom(
2117 : const ::google::protobuf::MessageLite& from) {
2118 0 : MergeFrom(*::google::protobuf::down_cast<const ClientMalwareRequest*>(&from));
2119 0 : }
2120 :
2121 0 : void ClientMalwareRequest::MergeFrom(const ClientMalwareRequest& from) {
2122 0 : GOOGLE_CHECK_NE(&from, this);
2123 0 : bad_ip_url_info_.MergeFrom(from.bad_ip_url_info_);
2124 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2125 0 : if (from.has_url()) {
2126 0 : set_url(from.url());
2127 : }
2128 0 : if (from.has_referrer_url()) {
2129 0 : set_referrer_url(from.referrer_url());
2130 : }
2131 0 : if (from.has_population()) {
2132 0 : mutable_population()->::safe_browsing::ChromeUserPopulation::MergeFrom(from.population());
2133 : }
2134 : }
2135 0 : mutable_unknown_fields()->append(from.unknown_fields());
2136 0 : }
2137 :
2138 0 : void ClientMalwareRequest::CopyFrom(const ClientMalwareRequest& from) {
2139 0 : if (&from == this) return;
2140 0 : Clear();
2141 0 : MergeFrom(from);
2142 : }
2143 :
2144 0 : bool ClientMalwareRequest::IsInitialized() const {
2145 0 : if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
2146 :
2147 0 : if (!::google::protobuf::internal::AllAreInitialized(this->bad_ip_url_info())) return false;
2148 0 : return true;
2149 : }
2150 :
2151 0 : void ClientMalwareRequest::Swap(ClientMalwareRequest* other) {
2152 0 : if (other != this) {
2153 0 : std::swap(url_, other->url_);
2154 0 : std::swap(referrer_url_, other->referrer_url_);
2155 0 : bad_ip_url_info_.Swap(&other->bad_ip_url_info_);
2156 0 : std::swap(population_, other->population_);
2157 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
2158 0 : _unknown_fields_.swap(other->_unknown_fields_);
2159 0 : std::swap(_cached_size_, other->_cached_size_);
2160 : }
2161 0 : }
2162 :
2163 0 : ::std::string ClientMalwareRequest::GetTypeName() const {
2164 0 : return "safe_browsing.ClientMalwareRequest";
2165 : }
2166 :
2167 :
2168 : // ===================================================================
2169 :
2170 : #ifndef _MSC_VER
2171 : const int ClientMalwareResponse::kBlacklistFieldNumber;
2172 : const int ClientMalwareResponse::kBadIpFieldNumber;
2173 : const int ClientMalwareResponse::kBadUrlFieldNumber;
2174 : #endif // !_MSC_VER
2175 :
2176 0 : ClientMalwareResponse::ClientMalwareResponse()
2177 0 : : ::google::protobuf::MessageLite() {
2178 0 : SharedCtor();
2179 : // @@protoc_insertion_point(constructor:safe_browsing.ClientMalwareResponse)
2180 0 : }
2181 :
2182 0 : void ClientMalwareResponse::InitAsDefaultInstance() {
2183 0 : }
2184 :
2185 0 : ClientMalwareResponse::ClientMalwareResponse(const ClientMalwareResponse& from)
2186 0 : : ::google::protobuf::MessageLite() {
2187 0 : SharedCtor();
2188 0 : MergeFrom(from);
2189 : // @@protoc_insertion_point(copy_constructor:safe_browsing.ClientMalwareResponse)
2190 0 : }
2191 :
2192 0 : void ClientMalwareResponse::SharedCtor() {
2193 0 : ::google::protobuf::internal::GetEmptyString();
2194 0 : _cached_size_ = 0;
2195 0 : blacklist_ = false;
2196 0 : bad_ip_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2197 0 : bad_url_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2198 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
2199 0 : }
2200 :
2201 0 : ClientMalwareResponse::~ClientMalwareResponse() {
2202 : // @@protoc_insertion_point(destructor:safe_browsing.ClientMalwareResponse)
2203 0 : SharedDtor();
2204 0 : }
2205 :
2206 0 : void ClientMalwareResponse::SharedDtor() {
2207 0 : if (bad_ip_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2208 0 : delete bad_ip_;
2209 : }
2210 0 : if (bad_url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2211 0 : delete bad_url_;
2212 : }
2213 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
2214 0 : if (this != &default_instance()) {
2215 : #else
2216 : if (this != default_instance_) {
2217 : #endif
2218 : }
2219 0 : }
2220 :
2221 0 : void ClientMalwareResponse::SetCachedSize(int size) const {
2222 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2223 0 : _cached_size_ = size;
2224 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
2225 0 : }
2226 0 : const ClientMalwareResponse& ClientMalwareResponse::default_instance() {
2227 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
2228 0 : protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
2229 : #else
2230 : if (default_instance_ == NULL) protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
2231 : #endif
2232 0 : return *default_instance_;
2233 : }
2234 :
2235 : ClientMalwareResponse* ClientMalwareResponse::default_instance_ = NULL;
2236 :
2237 0 : ClientMalwareResponse* ClientMalwareResponse::New() const {
2238 0 : return new ClientMalwareResponse;
2239 : }
2240 :
2241 0 : void ClientMalwareResponse::Clear() {
2242 0 : if (_has_bits_[0 / 32] & 7) {
2243 0 : blacklist_ = false;
2244 0 : if (has_bad_ip()) {
2245 0 : if (bad_ip_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2246 0 : bad_ip_->clear();
2247 : }
2248 : }
2249 0 : if (has_bad_url()) {
2250 0 : if (bad_url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2251 0 : bad_url_->clear();
2252 : }
2253 : }
2254 : }
2255 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
2256 0 : mutable_unknown_fields()->clear();
2257 0 : }
2258 :
2259 0 : bool ClientMalwareResponse::MergePartialFromCodedStream(
2260 : ::google::protobuf::io::CodedInputStream* input) {
2261 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
2262 : ::google::protobuf::uint32 tag;
2263 : ::google::protobuf::io::StringOutputStream unknown_fields_string(
2264 0 : mutable_unknown_fields());
2265 : ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
2266 0 : &unknown_fields_string);
2267 : // @@protoc_insertion_point(parse_start:safe_browsing.ClientMalwareResponse)
2268 : for (;;) {
2269 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
2270 0 : tag = p.first;
2271 0 : if (!p.second) goto handle_unusual;
2272 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2273 : // required bool blacklist = 1;
2274 : case 1: {
2275 0 : if (tag == 8) {
2276 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2277 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
2278 : input, &blacklist_)));
2279 0 : set_has_blacklist();
2280 : } else {
2281 0 : goto handle_unusual;
2282 : }
2283 0 : if (input->ExpectTag(18)) goto parse_bad_ip;
2284 0 : break;
2285 : }
2286 :
2287 : // optional string bad_ip = 2;
2288 : case 2: {
2289 0 : if (tag == 18) {
2290 : parse_bad_ip:
2291 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2292 : input, this->mutable_bad_ip()));
2293 : } else {
2294 0 : goto handle_unusual;
2295 : }
2296 0 : if (input->ExpectTag(26)) goto parse_bad_url;
2297 0 : break;
2298 : }
2299 :
2300 : // optional string bad_url = 3;
2301 : case 3: {
2302 0 : if (tag == 26) {
2303 : parse_bad_url:
2304 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2305 : input, this->mutable_bad_url()));
2306 : } else {
2307 0 : goto handle_unusual;
2308 : }
2309 0 : if (input->ExpectAtEnd()) goto success;
2310 0 : break;
2311 : }
2312 :
2313 : default: {
2314 : handle_unusual:
2315 0 : if (tag == 0 ||
2316 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2317 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
2318 0 : goto success;
2319 : }
2320 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(
2321 : input, tag, &unknown_fields_stream));
2322 0 : break;
2323 : }
2324 : }
2325 0 : }
2326 : success:
2327 : // @@protoc_insertion_point(parse_success:safe_browsing.ClientMalwareResponse)
2328 0 : return true;
2329 : failure:
2330 : // @@protoc_insertion_point(parse_failure:safe_browsing.ClientMalwareResponse)
2331 0 : return false;
2332 : #undef DO_
2333 : }
2334 :
2335 0 : void ClientMalwareResponse::SerializeWithCachedSizes(
2336 : ::google::protobuf::io::CodedOutputStream* output) const {
2337 : // @@protoc_insertion_point(serialize_start:safe_browsing.ClientMalwareResponse)
2338 : // required bool blacklist = 1;
2339 0 : if (has_blacklist()) {
2340 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->blacklist(), output);
2341 : }
2342 :
2343 : // optional string bad_ip = 2;
2344 0 : if (has_bad_ip()) {
2345 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2346 0 : 2, this->bad_ip(), output);
2347 : }
2348 :
2349 : // optional string bad_url = 3;
2350 0 : if (has_bad_url()) {
2351 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2352 0 : 3, this->bad_url(), output);
2353 : }
2354 :
2355 0 : output->WriteRaw(unknown_fields().data(),
2356 0 : unknown_fields().size());
2357 : // @@protoc_insertion_point(serialize_end:safe_browsing.ClientMalwareResponse)
2358 0 : }
2359 :
2360 0 : int ClientMalwareResponse::ByteSize() const {
2361 0 : int total_size = 0;
2362 :
2363 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2364 : // required bool blacklist = 1;
2365 0 : if (has_blacklist()) {
2366 0 : total_size += 1 + 1;
2367 : }
2368 :
2369 : // optional string bad_ip = 2;
2370 0 : if (has_bad_ip()) {
2371 0 : total_size += 1 +
2372 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
2373 : this->bad_ip());
2374 : }
2375 :
2376 : // optional string bad_url = 3;
2377 0 : if (has_bad_url()) {
2378 0 : total_size += 1 +
2379 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
2380 : this->bad_url());
2381 : }
2382 :
2383 : }
2384 0 : total_size += unknown_fields().size();
2385 :
2386 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2387 0 : _cached_size_ = total_size;
2388 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
2389 0 : return total_size;
2390 : }
2391 :
2392 0 : void ClientMalwareResponse::CheckTypeAndMergeFrom(
2393 : const ::google::protobuf::MessageLite& from) {
2394 0 : MergeFrom(*::google::protobuf::down_cast<const ClientMalwareResponse*>(&from));
2395 0 : }
2396 :
2397 0 : void ClientMalwareResponse::MergeFrom(const ClientMalwareResponse& from) {
2398 0 : GOOGLE_CHECK_NE(&from, this);
2399 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2400 0 : if (from.has_blacklist()) {
2401 0 : set_blacklist(from.blacklist());
2402 : }
2403 0 : if (from.has_bad_ip()) {
2404 0 : set_bad_ip(from.bad_ip());
2405 : }
2406 0 : if (from.has_bad_url()) {
2407 0 : set_bad_url(from.bad_url());
2408 : }
2409 : }
2410 0 : mutable_unknown_fields()->append(from.unknown_fields());
2411 0 : }
2412 :
2413 0 : void ClientMalwareResponse::CopyFrom(const ClientMalwareResponse& from) {
2414 0 : if (&from == this) return;
2415 0 : Clear();
2416 0 : MergeFrom(from);
2417 : }
2418 :
2419 0 : bool ClientMalwareResponse::IsInitialized() const {
2420 0 : if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
2421 :
2422 0 : return true;
2423 : }
2424 :
2425 0 : void ClientMalwareResponse::Swap(ClientMalwareResponse* other) {
2426 0 : if (other != this) {
2427 0 : std::swap(blacklist_, other->blacklist_);
2428 0 : std::swap(bad_ip_, other->bad_ip_);
2429 0 : std::swap(bad_url_, other->bad_url_);
2430 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
2431 0 : _unknown_fields_.swap(other->_unknown_fields_);
2432 0 : std::swap(_cached_size_, other->_cached_size_);
2433 : }
2434 0 : }
2435 :
2436 0 : ::std::string ClientMalwareResponse::GetTypeName() const {
2437 0 : return "safe_browsing.ClientMalwareResponse";
2438 : }
2439 :
2440 :
2441 : // ===================================================================
2442 :
2443 0 : bool ClientDownloadRequest_ResourceType_IsValid(int value) {
2444 0 : switch(value) {
2445 : case 0:
2446 : case 1:
2447 : case 2:
2448 : case 3:
2449 : case 4:
2450 : case 5:
2451 0 : return true;
2452 : default:
2453 0 : return false;
2454 : }
2455 : }
2456 :
2457 : #ifndef _MSC_VER
2458 : const ClientDownloadRequest_ResourceType ClientDownloadRequest::DOWNLOAD_URL;
2459 : const ClientDownloadRequest_ResourceType ClientDownloadRequest::DOWNLOAD_REDIRECT;
2460 : const ClientDownloadRequest_ResourceType ClientDownloadRequest::TAB_URL;
2461 : const ClientDownloadRequest_ResourceType ClientDownloadRequest::TAB_REDIRECT;
2462 : const ClientDownloadRequest_ResourceType ClientDownloadRequest::PPAPI_DOCUMENT;
2463 : const ClientDownloadRequest_ResourceType ClientDownloadRequest::PPAPI_PLUGIN;
2464 : const ClientDownloadRequest_ResourceType ClientDownloadRequest::ResourceType_MIN;
2465 : const ClientDownloadRequest_ResourceType ClientDownloadRequest::ResourceType_MAX;
2466 : const int ClientDownloadRequest::ResourceType_ARRAYSIZE;
2467 : #endif // _MSC_VER
2468 0 : bool ClientDownloadRequest_DownloadType_IsValid(int value) {
2469 0 : switch(value) {
2470 : case 0:
2471 : case 1:
2472 : case 2:
2473 : case 3:
2474 : case 4:
2475 : case 5:
2476 : case 6:
2477 : case 7:
2478 : case 8:
2479 : case 9:
2480 : case 10:
2481 0 : return true;
2482 : default:
2483 0 : return false;
2484 : }
2485 : }
2486 :
2487 : #ifndef _MSC_VER
2488 : const ClientDownloadRequest_DownloadType ClientDownloadRequest::WIN_EXECUTABLE;
2489 : const ClientDownloadRequest_DownloadType ClientDownloadRequest::CHROME_EXTENSION;
2490 : const ClientDownloadRequest_DownloadType ClientDownloadRequest::ANDROID_APK;
2491 : const ClientDownloadRequest_DownloadType ClientDownloadRequest::ZIPPED_EXECUTABLE;
2492 : const ClientDownloadRequest_DownloadType ClientDownloadRequest::MAC_EXECUTABLE;
2493 : const ClientDownloadRequest_DownloadType ClientDownloadRequest::ZIPPED_ARCHIVE;
2494 : const ClientDownloadRequest_DownloadType ClientDownloadRequest::ARCHIVE;
2495 : const ClientDownloadRequest_DownloadType ClientDownloadRequest::INVALID_ZIP;
2496 : const ClientDownloadRequest_DownloadType ClientDownloadRequest::INVALID_MAC_ARCHIVE;
2497 : const ClientDownloadRequest_DownloadType ClientDownloadRequest::PPAPI_SAVE_REQUEST;
2498 : const ClientDownloadRequest_DownloadType ClientDownloadRequest::SAMPLED_UNSUPPORTED_FILE;
2499 : const ClientDownloadRequest_DownloadType ClientDownloadRequest::DownloadType_MIN;
2500 : const ClientDownloadRequest_DownloadType ClientDownloadRequest::DownloadType_MAX;
2501 : const int ClientDownloadRequest::DownloadType_ARRAYSIZE;
2502 : #endif // _MSC_VER
2503 : #ifndef _MSC_VER
2504 : const int ClientDownloadRequest_Digests::kSha256FieldNumber;
2505 : const int ClientDownloadRequest_Digests::kSha1FieldNumber;
2506 : const int ClientDownloadRequest_Digests::kMd5FieldNumber;
2507 : #endif // !_MSC_VER
2508 :
2509 0 : ClientDownloadRequest_Digests::ClientDownloadRequest_Digests()
2510 0 : : ::google::protobuf::MessageLite() {
2511 0 : SharedCtor();
2512 : // @@protoc_insertion_point(constructor:safe_browsing.ClientDownloadRequest.Digests)
2513 0 : }
2514 :
2515 0 : void ClientDownloadRequest_Digests::InitAsDefaultInstance() {
2516 0 : }
2517 :
2518 0 : ClientDownloadRequest_Digests::ClientDownloadRequest_Digests(const ClientDownloadRequest_Digests& from)
2519 0 : : ::google::protobuf::MessageLite() {
2520 0 : SharedCtor();
2521 0 : MergeFrom(from);
2522 : // @@protoc_insertion_point(copy_constructor:safe_browsing.ClientDownloadRequest.Digests)
2523 0 : }
2524 :
2525 0 : void ClientDownloadRequest_Digests::SharedCtor() {
2526 0 : ::google::protobuf::internal::GetEmptyString();
2527 0 : _cached_size_ = 0;
2528 0 : sha256_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2529 0 : sha1_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2530 0 : md5_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2531 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
2532 0 : }
2533 :
2534 0 : ClientDownloadRequest_Digests::~ClientDownloadRequest_Digests() {
2535 : // @@protoc_insertion_point(destructor:safe_browsing.ClientDownloadRequest.Digests)
2536 0 : SharedDtor();
2537 0 : }
2538 :
2539 0 : void ClientDownloadRequest_Digests::SharedDtor() {
2540 0 : if (sha256_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2541 0 : delete sha256_;
2542 : }
2543 0 : if (sha1_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2544 0 : delete sha1_;
2545 : }
2546 0 : if (md5_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2547 0 : delete md5_;
2548 : }
2549 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
2550 0 : if (this != &default_instance()) {
2551 : #else
2552 : if (this != default_instance_) {
2553 : #endif
2554 : }
2555 0 : }
2556 :
2557 0 : void ClientDownloadRequest_Digests::SetCachedSize(int size) const {
2558 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2559 0 : _cached_size_ = size;
2560 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
2561 0 : }
2562 0 : const ClientDownloadRequest_Digests& ClientDownloadRequest_Digests::default_instance() {
2563 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
2564 0 : protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
2565 : #else
2566 : if (default_instance_ == NULL) protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
2567 : #endif
2568 0 : return *default_instance_;
2569 : }
2570 :
2571 : ClientDownloadRequest_Digests* ClientDownloadRequest_Digests::default_instance_ = NULL;
2572 :
2573 0 : ClientDownloadRequest_Digests* ClientDownloadRequest_Digests::New() const {
2574 0 : return new ClientDownloadRequest_Digests;
2575 : }
2576 :
2577 0 : void ClientDownloadRequest_Digests::Clear() {
2578 0 : if (_has_bits_[0 / 32] & 7) {
2579 0 : if (has_sha256()) {
2580 0 : if (sha256_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2581 0 : sha256_->clear();
2582 : }
2583 : }
2584 0 : if (has_sha1()) {
2585 0 : if (sha1_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2586 0 : sha1_->clear();
2587 : }
2588 : }
2589 0 : if (has_md5()) {
2590 0 : if (md5_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2591 0 : md5_->clear();
2592 : }
2593 : }
2594 : }
2595 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
2596 0 : mutable_unknown_fields()->clear();
2597 0 : }
2598 :
2599 0 : bool ClientDownloadRequest_Digests::MergePartialFromCodedStream(
2600 : ::google::protobuf::io::CodedInputStream* input) {
2601 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
2602 : ::google::protobuf::uint32 tag;
2603 : ::google::protobuf::io::StringOutputStream unknown_fields_string(
2604 0 : mutable_unknown_fields());
2605 : ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
2606 0 : &unknown_fields_string);
2607 : // @@protoc_insertion_point(parse_start:safe_browsing.ClientDownloadRequest.Digests)
2608 : for (;;) {
2609 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
2610 0 : tag = p.first;
2611 0 : if (!p.second) goto handle_unusual;
2612 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2613 : // optional bytes sha256 = 1;
2614 : case 1: {
2615 0 : if (tag == 10) {
2616 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
2617 : input, this->mutable_sha256()));
2618 : } else {
2619 0 : goto handle_unusual;
2620 : }
2621 0 : if (input->ExpectTag(18)) goto parse_sha1;
2622 0 : break;
2623 : }
2624 :
2625 : // optional bytes sha1 = 2;
2626 : case 2: {
2627 0 : if (tag == 18) {
2628 : parse_sha1:
2629 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
2630 : input, this->mutable_sha1()));
2631 : } else {
2632 0 : goto handle_unusual;
2633 : }
2634 0 : if (input->ExpectTag(26)) goto parse_md5;
2635 0 : break;
2636 : }
2637 :
2638 : // optional bytes md5 = 3;
2639 : case 3: {
2640 0 : if (tag == 26) {
2641 : parse_md5:
2642 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
2643 : input, this->mutable_md5()));
2644 : } else {
2645 0 : goto handle_unusual;
2646 : }
2647 0 : if (input->ExpectAtEnd()) goto success;
2648 0 : break;
2649 : }
2650 :
2651 : default: {
2652 : handle_unusual:
2653 0 : if (tag == 0 ||
2654 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2655 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
2656 0 : goto success;
2657 : }
2658 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(
2659 : input, tag, &unknown_fields_stream));
2660 0 : break;
2661 : }
2662 : }
2663 0 : }
2664 : success:
2665 : // @@protoc_insertion_point(parse_success:safe_browsing.ClientDownloadRequest.Digests)
2666 0 : return true;
2667 : failure:
2668 : // @@protoc_insertion_point(parse_failure:safe_browsing.ClientDownloadRequest.Digests)
2669 0 : return false;
2670 : #undef DO_
2671 : }
2672 :
2673 0 : void ClientDownloadRequest_Digests::SerializeWithCachedSizes(
2674 : ::google::protobuf::io::CodedOutputStream* output) const {
2675 : // @@protoc_insertion_point(serialize_start:safe_browsing.ClientDownloadRequest.Digests)
2676 : // optional bytes sha256 = 1;
2677 0 : if (has_sha256()) {
2678 0 : ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
2679 0 : 1, this->sha256(), output);
2680 : }
2681 :
2682 : // optional bytes sha1 = 2;
2683 0 : if (has_sha1()) {
2684 0 : ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
2685 0 : 2, this->sha1(), output);
2686 : }
2687 :
2688 : // optional bytes md5 = 3;
2689 0 : if (has_md5()) {
2690 0 : ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
2691 0 : 3, this->md5(), output);
2692 : }
2693 :
2694 0 : output->WriteRaw(unknown_fields().data(),
2695 0 : unknown_fields().size());
2696 : // @@protoc_insertion_point(serialize_end:safe_browsing.ClientDownloadRequest.Digests)
2697 0 : }
2698 :
2699 0 : int ClientDownloadRequest_Digests::ByteSize() const {
2700 0 : int total_size = 0;
2701 :
2702 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2703 : // optional bytes sha256 = 1;
2704 0 : if (has_sha256()) {
2705 0 : total_size += 1 +
2706 0 : ::google::protobuf::internal::WireFormatLite::BytesSize(
2707 : this->sha256());
2708 : }
2709 :
2710 : // optional bytes sha1 = 2;
2711 0 : if (has_sha1()) {
2712 0 : total_size += 1 +
2713 0 : ::google::protobuf::internal::WireFormatLite::BytesSize(
2714 : this->sha1());
2715 : }
2716 :
2717 : // optional bytes md5 = 3;
2718 0 : if (has_md5()) {
2719 0 : total_size += 1 +
2720 0 : ::google::protobuf::internal::WireFormatLite::BytesSize(
2721 : this->md5());
2722 : }
2723 :
2724 : }
2725 0 : total_size += unknown_fields().size();
2726 :
2727 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2728 0 : _cached_size_ = total_size;
2729 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
2730 0 : return total_size;
2731 : }
2732 :
2733 0 : void ClientDownloadRequest_Digests::CheckTypeAndMergeFrom(
2734 : const ::google::protobuf::MessageLite& from) {
2735 0 : MergeFrom(*::google::protobuf::down_cast<const ClientDownloadRequest_Digests*>(&from));
2736 0 : }
2737 :
2738 0 : void ClientDownloadRequest_Digests::MergeFrom(const ClientDownloadRequest_Digests& from) {
2739 0 : GOOGLE_CHECK_NE(&from, this);
2740 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2741 0 : if (from.has_sha256()) {
2742 0 : set_sha256(from.sha256());
2743 : }
2744 0 : if (from.has_sha1()) {
2745 0 : set_sha1(from.sha1());
2746 : }
2747 0 : if (from.has_md5()) {
2748 0 : set_md5(from.md5());
2749 : }
2750 : }
2751 0 : mutable_unknown_fields()->append(from.unknown_fields());
2752 0 : }
2753 :
2754 0 : void ClientDownloadRequest_Digests::CopyFrom(const ClientDownloadRequest_Digests& from) {
2755 0 : if (&from == this) return;
2756 0 : Clear();
2757 0 : MergeFrom(from);
2758 : }
2759 :
2760 0 : bool ClientDownloadRequest_Digests::IsInitialized() const {
2761 :
2762 0 : return true;
2763 : }
2764 :
2765 0 : void ClientDownloadRequest_Digests::Swap(ClientDownloadRequest_Digests* other) {
2766 0 : if (other != this) {
2767 0 : std::swap(sha256_, other->sha256_);
2768 0 : std::swap(sha1_, other->sha1_);
2769 0 : std::swap(md5_, other->md5_);
2770 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
2771 0 : _unknown_fields_.swap(other->_unknown_fields_);
2772 0 : std::swap(_cached_size_, other->_cached_size_);
2773 : }
2774 0 : }
2775 :
2776 0 : ::std::string ClientDownloadRequest_Digests::GetTypeName() const {
2777 0 : return "safe_browsing.ClientDownloadRequest.Digests";
2778 : }
2779 :
2780 :
2781 : // -------------------------------------------------------------------
2782 :
2783 : #ifndef _MSC_VER
2784 : const int ClientDownloadRequest_Resource::kUrlFieldNumber;
2785 : const int ClientDownloadRequest_Resource::kTypeFieldNumber;
2786 : const int ClientDownloadRequest_Resource::kRemoteIpFieldNumber;
2787 : const int ClientDownloadRequest_Resource::kReferrerFieldNumber;
2788 : #endif // !_MSC_VER
2789 :
2790 0 : ClientDownloadRequest_Resource::ClientDownloadRequest_Resource()
2791 0 : : ::google::protobuf::MessageLite() {
2792 0 : SharedCtor();
2793 : // @@protoc_insertion_point(constructor:safe_browsing.ClientDownloadRequest.Resource)
2794 0 : }
2795 :
2796 0 : void ClientDownloadRequest_Resource::InitAsDefaultInstance() {
2797 0 : }
2798 :
2799 0 : ClientDownloadRequest_Resource::ClientDownloadRequest_Resource(const ClientDownloadRequest_Resource& from)
2800 0 : : ::google::protobuf::MessageLite() {
2801 0 : SharedCtor();
2802 0 : MergeFrom(from);
2803 : // @@protoc_insertion_point(copy_constructor:safe_browsing.ClientDownloadRequest.Resource)
2804 0 : }
2805 :
2806 0 : void ClientDownloadRequest_Resource::SharedCtor() {
2807 0 : ::google::protobuf::internal::GetEmptyString();
2808 0 : _cached_size_ = 0;
2809 0 : url_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2810 0 : type_ = 0;
2811 0 : remote_ip_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2812 0 : referrer_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2813 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
2814 0 : }
2815 :
2816 0 : ClientDownloadRequest_Resource::~ClientDownloadRequest_Resource() {
2817 : // @@protoc_insertion_point(destructor:safe_browsing.ClientDownloadRequest.Resource)
2818 0 : SharedDtor();
2819 0 : }
2820 :
2821 0 : void ClientDownloadRequest_Resource::SharedDtor() {
2822 0 : if (url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2823 0 : delete url_;
2824 : }
2825 0 : if (remote_ip_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2826 0 : delete remote_ip_;
2827 : }
2828 0 : if (referrer_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2829 0 : delete referrer_;
2830 : }
2831 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
2832 0 : if (this != &default_instance()) {
2833 : #else
2834 : if (this != default_instance_) {
2835 : #endif
2836 : }
2837 0 : }
2838 :
2839 0 : void ClientDownloadRequest_Resource::SetCachedSize(int size) const {
2840 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2841 0 : _cached_size_ = size;
2842 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
2843 0 : }
2844 0 : const ClientDownloadRequest_Resource& ClientDownloadRequest_Resource::default_instance() {
2845 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
2846 0 : protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
2847 : #else
2848 : if (default_instance_ == NULL) protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
2849 : #endif
2850 0 : return *default_instance_;
2851 : }
2852 :
2853 : ClientDownloadRequest_Resource* ClientDownloadRequest_Resource::default_instance_ = NULL;
2854 :
2855 0 : ClientDownloadRequest_Resource* ClientDownloadRequest_Resource::New() const {
2856 0 : return new ClientDownloadRequest_Resource;
2857 : }
2858 :
2859 0 : void ClientDownloadRequest_Resource::Clear() {
2860 0 : if (_has_bits_[0 / 32] & 15) {
2861 0 : if (has_url()) {
2862 0 : if (url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2863 0 : url_->clear();
2864 : }
2865 : }
2866 0 : type_ = 0;
2867 0 : if (has_remote_ip()) {
2868 0 : if (remote_ip_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2869 0 : remote_ip_->clear();
2870 : }
2871 : }
2872 0 : if (has_referrer()) {
2873 0 : if (referrer_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2874 0 : referrer_->clear();
2875 : }
2876 : }
2877 : }
2878 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
2879 0 : mutable_unknown_fields()->clear();
2880 0 : }
2881 :
2882 0 : bool ClientDownloadRequest_Resource::MergePartialFromCodedStream(
2883 : ::google::protobuf::io::CodedInputStream* input) {
2884 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
2885 : ::google::protobuf::uint32 tag;
2886 : ::google::protobuf::io::StringOutputStream unknown_fields_string(
2887 0 : mutable_unknown_fields());
2888 : ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
2889 0 : &unknown_fields_string);
2890 : // @@protoc_insertion_point(parse_start:safe_browsing.ClientDownloadRequest.Resource)
2891 : for (;;) {
2892 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
2893 0 : tag = p.first;
2894 0 : if (!p.second) goto handle_unusual;
2895 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2896 : // required string url = 1;
2897 : case 1: {
2898 0 : if (tag == 10) {
2899 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2900 : input, this->mutable_url()));
2901 : } else {
2902 0 : goto handle_unusual;
2903 : }
2904 0 : if (input->ExpectTag(16)) goto parse_type;
2905 0 : break;
2906 : }
2907 :
2908 : // required .safe_browsing.ClientDownloadRequest.ResourceType type = 2;
2909 : case 2: {
2910 0 : if (tag == 16) {
2911 : parse_type:
2912 : int value;
2913 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2914 : int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
2915 : input, &value)));
2916 0 : if (::safe_browsing::ClientDownloadRequest_ResourceType_IsValid(value)) {
2917 0 : set_type(static_cast< ::safe_browsing::ClientDownloadRequest_ResourceType >(value));
2918 : } else {
2919 0 : unknown_fields_stream.WriteVarint32(tag);
2920 0 : unknown_fields_stream.WriteVarint32(value);
2921 : }
2922 : } else {
2923 0 : goto handle_unusual;
2924 : }
2925 0 : if (input->ExpectTag(26)) goto parse_remote_ip;
2926 0 : break;
2927 : }
2928 :
2929 : // optional bytes remote_ip = 3;
2930 : case 3: {
2931 0 : if (tag == 26) {
2932 : parse_remote_ip:
2933 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
2934 : input, this->mutable_remote_ip()));
2935 : } else {
2936 0 : goto handle_unusual;
2937 : }
2938 0 : if (input->ExpectTag(34)) goto parse_referrer;
2939 0 : break;
2940 : }
2941 :
2942 : // optional string referrer = 4;
2943 : case 4: {
2944 0 : if (tag == 34) {
2945 : parse_referrer:
2946 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2947 : input, this->mutable_referrer()));
2948 : } else {
2949 0 : goto handle_unusual;
2950 : }
2951 0 : if (input->ExpectAtEnd()) goto success;
2952 0 : break;
2953 : }
2954 :
2955 : default: {
2956 : handle_unusual:
2957 0 : if (tag == 0 ||
2958 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2959 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
2960 0 : goto success;
2961 : }
2962 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(
2963 : input, tag, &unknown_fields_stream));
2964 0 : break;
2965 : }
2966 : }
2967 0 : }
2968 : success:
2969 : // @@protoc_insertion_point(parse_success:safe_browsing.ClientDownloadRequest.Resource)
2970 0 : return true;
2971 : failure:
2972 : // @@protoc_insertion_point(parse_failure:safe_browsing.ClientDownloadRequest.Resource)
2973 0 : return false;
2974 : #undef DO_
2975 : }
2976 :
2977 0 : void ClientDownloadRequest_Resource::SerializeWithCachedSizes(
2978 : ::google::protobuf::io::CodedOutputStream* output) const {
2979 : // @@protoc_insertion_point(serialize_start:safe_browsing.ClientDownloadRequest.Resource)
2980 : // required string url = 1;
2981 0 : if (has_url()) {
2982 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2983 0 : 1, this->url(), output);
2984 : }
2985 :
2986 : // required .safe_browsing.ClientDownloadRequest.ResourceType type = 2;
2987 0 : if (has_type()) {
2988 0 : ::google::protobuf::internal::WireFormatLite::WriteEnum(
2989 0 : 2, this->type(), output);
2990 : }
2991 :
2992 : // optional bytes remote_ip = 3;
2993 0 : if (has_remote_ip()) {
2994 0 : ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
2995 0 : 3, this->remote_ip(), output);
2996 : }
2997 :
2998 : // optional string referrer = 4;
2999 0 : if (has_referrer()) {
3000 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
3001 0 : 4, this->referrer(), output);
3002 : }
3003 :
3004 0 : output->WriteRaw(unknown_fields().data(),
3005 0 : unknown_fields().size());
3006 : // @@protoc_insertion_point(serialize_end:safe_browsing.ClientDownloadRequest.Resource)
3007 0 : }
3008 :
3009 0 : int ClientDownloadRequest_Resource::ByteSize() const {
3010 0 : int total_size = 0;
3011 :
3012 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3013 : // required string url = 1;
3014 0 : if (has_url()) {
3015 0 : total_size += 1 +
3016 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
3017 : this->url());
3018 : }
3019 :
3020 : // required .safe_browsing.ClientDownloadRequest.ResourceType type = 2;
3021 0 : if (has_type()) {
3022 0 : total_size += 1 +
3023 0 : ::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
3024 : }
3025 :
3026 : // optional bytes remote_ip = 3;
3027 0 : if (has_remote_ip()) {
3028 0 : total_size += 1 +
3029 0 : ::google::protobuf::internal::WireFormatLite::BytesSize(
3030 : this->remote_ip());
3031 : }
3032 :
3033 : // optional string referrer = 4;
3034 0 : if (has_referrer()) {
3035 0 : total_size += 1 +
3036 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
3037 : this->referrer());
3038 : }
3039 :
3040 : }
3041 0 : total_size += unknown_fields().size();
3042 :
3043 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3044 0 : _cached_size_ = total_size;
3045 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
3046 0 : return total_size;
3047 : }
3048 :
3049 0 : void ClientDownloadRequest_Resource::CheckTypeAndMergeFrom(
3050 : const ::google::protobuf::MessageLite& from) {
3051 0 : MergeFrom(*::google::protobuf::down_cast<const ClientDownloadRequest_Resource*>(&from));
3052 0 : }
3053 :
3054 0 : void ClientDownloadRequest_Resource::MergeFrom(const ClientDownloadRequest_Resource& from) {
3055 0 : GOOGLE_CHECK_NE(&from, this);
3056 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3057 0 : if (from.has_url()) {
3058 0 : set_url(from.url());
3059 : }
3060 0 : if (from.has_type()) {
3061 0 : set_type(from.type());
3062 : }
3063 0 : if (from.has_remote_ip()) {
3064 0 : set_remote_ip(from.remote_ip());
3065 : }
3066 0 : if (from.has_referrer()) {
3067 0 : set_referrer(from.referrer());
3068 : }
3069 : }
3070 0 : mutable_unknown_fields()->append(from.unknown_fields());
3071 0 : }
3072 :
3073 0 : void ClientDownloadRequest_Resource::CopyFrom(const ClientDownloadRequest_Resource& from) {
3074 0 : if (&from == this) return;
3075 0 : Clear();
3076 0 : MergeFrom(from);
3077 : }
3078 :
3079 0 : bool ClientDownloadRequest_Resource::IsInitialized() const {
3080 0 : if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
3081 :
3082 0 : return true;
3083 : }
3084 :
3085 0 : void ClientDownloadRequest_Resource::Swap(ClientDownloadRequest_Resource* other) {
3086 0 : if (other != this) {
3087 0 : std::swap(url_, other->url_);
3088 0 : std::swap(type_, other->type_);
3089 0 : std::swap(remote_ip_, other->remote_ip_);
3090 0 : std::swap(referrer_, other->referrer_);
3091 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
3092 0 : _unknown_fields_.swap(other->_unknown_fields_);
3093 0 : std::swap(_cached_size_, other->_cached_size_);
3094 : }
3095 0 : }
3096 :
3097 0 : ::std::string ClientDownloadRequest_Resource::GetTypeName() const {
3098 0 : return "safe_browsing.ClientDownloadRequest.Resource";
3099 : }
3100 :
3101 :
3102 : // -------------------------------------------------------------------
3103 :
3104 : #ifndef _MSC_VER
3105 : const int ClientDownloadRequest_CertificateChain_Element::kCertificateFieldNumber;
3106 : #endif // !_MSC_VER
3107 :
3108 0 : ClientDownloadRequest_CertificateChain_Element::ClientDownloadRequest_CertificateChain_Element()
3109 0 : : ::google::protobuf::MessageLite() {
3110 0 : SharedCtor();
3111 : // @@protoc_insertion_point(constructor:safe_browsing.ClientDownloadRequest.CertificateChain.Element)
3112 0 : }
3113 :
3114 0 : void ClientDownloadRequest_CertificateChain_Element::InitAsDefaultInstance() {
3115 0 : }
3116 :
3117 0 : ClientDownloadRequest_CertificateChain_Element::ClientDownloadRequest_CertificateChain_Element(const ClientDownloadRequest_CertificateChain_Element& from)
3118 0 : : ::google::protobuf::MessageLite() {
3119 0 : SharedCtor();
3120 0 : MergeFrom(from);
3121 : // @@protoc_insertion_point(copy_constructor:safe_browsing.ClientDownloadRequest.CertificateChain.Element)
3122 0 : }
3123 :
3124 0 : void ClientDownloadRequest_CertificateChain_Element::SharedCtor() {
3125 0 : ::google::protobuf::internal::GetEmptyString();
3126 0 : _cached_size_ = 0;
3127 0 : certificate_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3128 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
3129 0 : }
3130 :
3131 0 : ClientDownloadRequest_CertificateChain_Element::~ClientDownloadRequest_CertificateChain_Element() {
3132 : // @@protoc_insertion_point(destructor:safe_browsing.ClientDownloadRequest.CertificateChain.Element)
3133 0 : SharedDtor();
3134 0 : }
3135 :
3136 0 : void ClientDownloadRequest_CertificateChain_Element::SharedDtor() {
3137 0 : if (certificate_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
3138 0 : delete certificate_;
3139 : }
3140 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
3141 0 : if (this != &default_instance()) {
3142 : #else
3143 : if (this != default_instance_) {
3144 : #endif
3145 : }
3146 0 : }
3147 :
3148 0 : void ClientDownloadRequest_CertificateChain_Element::SetCachedSize(int size) const {
3149 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3150 0 : _cached_size_ = size;
3151 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
3152 0 : }
3153 0 : const ClientDownloadRequest_CertificateChain_Element& ClientDownloadRequest_CertificateChain_Element::default_instance() {
3154 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
3155 0 : protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
3156 : #else
3157 : if (default_instance_ == NULL) protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
3158 : #endif
3159 0 : return *default_instance_;
3160 : }
3161 :
3162 : ClientDownloadRequest_CertificateChain_Element* ClientDownloadRequest_CertificateChain_Element::default_instance_ = NULL;
3163 :
3164 0 : ClientDownloadRequest_CertificateChain_Element* ClientDownloadRequest_CertificateChain_Element::New() const {
3165 0 : return new ClientDownloadRequest_CertificateChain_Element;
3166 : }
3167 :
3168 0 : void ClientDownloadRequest_CertificateChain_Element::Clear() {
3169 0 : if (has_certificate()) {
3170 0 : if (certificate_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
3171 0 : certificate_->clear();
3172 : }
3173 : }
3174 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
3175 0 : mutable_unknown_fields()->clear();
3176 0 : }
3177 :
3178 0 : bool ClientDownloadRequest_CertificateChain_Element::MergePartialFromCodedStream(
3179 : ::google::protobuf::io::CodedInputStream* input) {
3180 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
3181 : ::google::protobuf::uint32 tag;
3182 : ::google::protobuf::io::StringOutputStream unknown_fields_string(
3183 0 : mutable_unknown_fields());
3184 : ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
3185 0 : &unknown_fields_string);
3186 : // @@protoc_insertion_point(parse_start:safe_browsing.ClientDownloadRequest.CertificateChain.Element)
3187 : for (;;) {
3188 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
3189 0 : tag = p.first;
3190 0 : if (!p.second) goto handle_unusual;
3191 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3192 : // optional bytes certificate = 1;
3193 : case 1: {
3194 0 : if (tag == 10) {
3195 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
3196 : input, this->mutable_certificate()));
3197 : } else {
3198 0 : goto handle_unusual;
3199 : }
3200 0 : if (input->ExpectAtEnd()) goto success;
3201 0 : break;
3202 : }
3203 :
3204 : default: {
3205 : handle_unusual:
3206 0 : if (tag == 0 ||
3207 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3208 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
3209 0 : goto success;
3210 : }
3211 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(
3212 : input, tag, &unknown_fields_stream));
3213 0 : break;
3214 : }
3215 : }
3216 0 : }
3217 : success:
3218 : // @@protoc_insertion_point(parse_success:safe_browsing.ClientDownloadRequest.CertificateChain.Element)
3219 0 : return true;
3220 : failure:
3221 : // @@protoc_insertion_point(parse_failure:safe_browsing.ClientDownloadRequest.CertificateChain.Element)
3222 0 : return false;
3223 : #undef DO_
3224 : }
3225 :
3226 0 : void ClientDownloadRequest_CertificateChain_Element::SerializeWithCachedSizes(
3227 : ::google::protobuf::io::CodedOutputStream* output) const {
3228 : // @@protoc_insertion_point(serialize_start:safe_browsing.ClientDownloadRequest.CertificateChain.Element)
3229 : // optional bytes certificate = 1;
3230 0 : if (has_certificate()) {
3231 0 : ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
3232 0 : 1, this->certificate(), output);
3233 : }
3234 :
3235 0 : output->WriteRaw(unknown_fields().data(),
3236 0 : unknown_fields().size());
3237 : // @@protoc_insertion_point(serialize_end:safe_browsing.ClientDownloadRequest.CertificateChain.Element)
3238 0 : }
3239 :
3240 0 : int ClientDownloadRequest_CertificateChain_Element::ByteSize() const {
3241 0 : int total_size = 0;
3242 :
3243 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3244 : // optional bytes certificate = 1;
3245 0 : if (has_certificate()) {
3246 0 : total_size += 1 +
3247 0 : ::google::protobuf::internal::WireFormatLite::BytesSize(
3248 : this->certificate());
3249 : }
3250 :
3251 : }
3252 0 : total_size += unknown_fields().size();
3253 :
3254 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3255 0 : _cached_size_ = total_size;
3256 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
3257 0 : return total_size;
3258 : }
3259 :
3260 0 : void ClientDownloadRequest_CertificateChain_Element::CheckTypeAndMergeFrom(
3261 : const ::google::protobuf::MessageLite& from) {
3262 0 : MergeFrom(*::google::protobuf::down_cast<const ClientDownloadRequest_CertificateChain_Element*>(&from));
3263 0 : }
3264 :
3265 0 : void ClientDownloadRequest_CertificateChain_Element::MergeFrom(const ClientDownloadRequest_CertificateChain_Element& from) {
3266 0 : GOOGLE_CHECK_NE(&from, this);
3267 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3268 0 : if (from.has_certificate()) {
3269 0 : set_certificate(from.certificate());
3270 : }
3271 : }
3272 0 : mutable_unknown_fields()->append(from.unknown_fields());
3273 0 : }
3274 :
3275 0 : void ClientDownloadRequest_CertificateChain_Element::CopyFrom(const ClientDownloadRequest_CertificateChain_Element& from) {
3276 0 : if (&from == this) return;
3277 0 : Clear();
3278 0 : MergeFrom(from);
3279 : }
3280 :
3281 0 : bool ClientDownloadRequest_CertificateChain_Element::IsInitialized() const {
3282 :
3283 0 : return true;
3284 : }
3285 :
3286 0 : void ClientDownloadRequest_CertificateChain_Element::Swap(ClientDownloadRequest_CertificateChain_Element* other) {
3287 0 : if (other != this) {
3288 0 : std::swap(certificate_, other->certificate_);
3289 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
3290 0 : _unknown_fields_.swap(other->_unknown_fields_);
3291 0 : std::swap(_cached_size_, other->_cached_size_);
3292 : }
3293 0 : }
3294 :
3295 0 : ::std::string ClientDownloadRequest_CertificateChain_Element::GetTypeName() const {
3296 0 : return "safe_browsing.ClientDownloadRequest.CertificateChain.Element";
3297 : }
3298 :
3299 :
3300 : // -------------------------------------------------------------------
3301 :
3302 : #ifndef _MSC_VER
3303 : const int ClientDownloadRequest_CertificateChain::kElementFieldNumber;
3304 : #endif // !_MSC_VER
3305 :
3306 0 : ClientDownloadRequest_CertificateChain::ClientDownloadRequest_CertificateChain()
3307 0 : : ::google::protobuf::MessageLite() {
3308 0 : SharedCtor();
3309 : // @@protoc_insertion_point(constructor:safe_browsing.ClientDownloadRequest.CertificateChain)
3310 0 : }
3311 :
3312 0 : void ClientDownloadRequest_CertificateChain::InitAsDefaultInstance() {
3313 0 : }
3314 :
3315 0 : ClientDownloadRequest_CertificateChain::ClientDownloadRequest_CertificateChain(const ClientDownloadRequest_CertificateChain& from)
3316 0 : : ::google::protobuf::MessageLite() {
3317 0 : SharedCtor();
3318 0 : MergeFrom(from);
3319 : // @@protoc_insertion_point(copy_constructor:safe_browsing.ClientDownloadRequest.CertificateChain)
3320 0 : }
3321 :
3322 0 : void ClientDownloadRequest_CertificateChain::SharedCtor() {
3323 0 : _cached_size_ = 0;
3324 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
3325 0 : }
3326 :
3327 0 : ClientDownloadRequest_CertificateChain::~ClientDownloadRequest_CertificateChain() {
3328 : // @@protoc_insertion_point(destructor:safe_browsing.ClientDownloadRequest.CertificateChain)
3329 0 : SharedDtor();
3330 0 : }
3331 :
3332 0 : void ClientDownloadRequest_CertificateChain::SharedDtor() {
3333 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
3334 0 : if (this != &default_instance()) {
3335 : #else
3336 : if (this != default_instance_) {
3337 : #endif
3338 : }
3339 0 : }
3340 :
3341 0 : void ClientDownloadRequest_CertificateChain::SetCachedSize(int size) const {
3342 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3343 0 : _cached_size_ = size;
3344 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
3345 0 : }
3346 0 : const ClientDownloadRequest_CertificateChain& ClientDownloadRequest_CertificateChain::default_instance() {
3347 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
3348 0 : protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
3349 : #else
3350 : if (default_instance_ == NULL) protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
3351 : #endif
3352 0 : return *default_instance_;
3353 : }
3354 :
3355 : ClientDownloadRequest_CertificateChain* ClientDownloadRequest_CertificateChain::default_instance_ = NULL;
3356 :
3357 0 : ClientDownloadRequest_CertificateChain* ClientDownloadRequest_CertificateChain::New() const {
3358 0 : return new ClientDownloadRequest_CertificateChain;
3359 : }
3360 :
3361 0 : void ClientDownloadRequest_CertificateChain::Clear() {
3362 0 : element_.Clear();
3363 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
3364 0 : mutable_unknown_fields()->clear();
3365 0 : }
3366 :
3367 0 : bool ClientDownloadRequest_CertificateChain::MergePartialFromCodedStream(
3368 : ::google::protobuf::io::CodedInputStream* input) {
3369 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
3370 : ::google::protobuf::uint32 tag;
3371 : ::google::protobuf::io::StringOutputStream unknown_fields_string(
3372 0 : mutable_unknown_fields());
3373 : ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
3374 0 : &unknown_fields_string);
3375 : // @@protoc_insertion_point(parse_start:safe_browsing.ClientDownloadRequest.CertificateChain)
3376 : for (;;) {
3377 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
3378 0 : tag = p.first;
3379 0 : if (!p.second) goto handle_unusual;
3380 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3381 : // repeated .safe_browsing.ClientDownloadRequest.CertificateChain.Element element = 1;
3382 : case 1: {
3383 0 : if (tag == 10) {
3384 : parse_element:
3385 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
3386 : input, add_element()));
3387 : } else {
3388 0 : goto handle_unusual;
3389 : }
3390 0 : if (input->ExpectTag(10)) goto parse_element;
3391 0 : if (input->ExpectAtEnd()) goto success;
3392 0 : break;
3393 : }
3394 :
3395 : default: {
3396 : handle_unusual:
3397 0 : if (tag == 0 ||
3398 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3399 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
3400 0 : goto success;
3401 : }
3402 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(
3403 : input, tag, &unknown_fields_stream));
3404 0 : break;
3405 : }
3406 : }
3407 0 : }
3408 : success:
3409 : // @@protoc_insertion_point(parse_success:safe_browsing.ClientDownloadRequest.CertificateChain)
3410 0 : return true;
3411 : failure:
3412 : // @@protoc_insertion_point(parse_failure:safe_browsing.ClientDownloadRequest.CertificateChain)
3413 0 : return false;
3414 : #undef DO_
3415 : }
3416 :
3417 0 : void ClientDownloadRequest_CertificateChain::SerializeWithCachedSizes(
3418 : ::google::protobuf::io::CodedOutputStream* output) const {
3419 : // @@protoc_insertion_point(serialize_start:safe_browsing.ClientDownloadRequest.CertificateChain)
3420 : // repeated .safe_browsing.ClientDownloadRequest.CertificateChain.Element element = 1;
3421 0 : for (int i = 0; i < this->element_size(); i++) {
3422 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
3423 0 : 1, this->element(i), output);
3424 : }
3425 :
3426 0 : output->WriteRaw(unknown_fields().data(),
3427 0 : unknown_fields().size());
3428 : // @@protoc_insertion_point(serialize_end:safe_browsing.ClientDownloadRequest.CertificateChain)
3429 0 : }
3430 :
3431 0 : int ClientDownloadRequest_CertificateChain::ByteSize() const {
3432 0 : int total_size = 0;
3433 :
3434 : // repeated .safe_browsing.ClientDownloadRequest.CertificateChain.Element element = 1;
3435 0 : total_size += 1 * this->element_size();
3436 0 : for (int i = 0; i < this->element_size(); i++) {
3437 0 : total_size +=
3438 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3439 : this->element(i));
3440 : }
3441 :
3442 0 : total_size += unknown_fields().size();
3443 :
3444 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3445 0 : _cached_size_ = total_size;
3446 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
3447 0 : return total_size;
3448 : }
3449 :
3450 0 : void ClientDownloadRequest_CertificateChain::CheckTypeAndMergeFrom(
3451 : const ::google::protobuf::MessageLite& from) {
3452 0 : MergeFrom(*::google::protobuf::down_cast<const ClientDownloadRequest_CertificateChain*>(&from));
3453 0 : }
3454 :
3455 0 : void ClientDownloadRequest_CertificateChain::MergeFrom(const ClientDownloadRequest_CertificateChain& from) {
3456 0 : GOOGLE_CHECK_NE(&from, this);
3457 0 : element_.MergeFrom(from.element_);
3458 0 : mutable_unknown_fields()->append(from.unknown_fields());
3459 0 : }
3460 :
3461 0 : void ClientDownloadRequest_CertificateChain::CopyFrom(const ClientDownloadRequest_CertificateChain& from) {
3462 0 : if (&from == this) return;
3463 0 : Clear();
3464 0 : MergeFrom(from);
3465 : }
3466 :
3467 0 : bool ClientDownloadRequest_CertificateChain::IsInitialized() const {
3468 :
3469 0 : return true;
3470 : }
3471 :
3472 0 : void ClientDownloadRequest_CertificateChain::Swap(ClientDownloadRequest_CertificateChain* other) {
3473 0 : if (other != this) {
3474 0 : element_.Swap(&other->element_);
3475 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
3476 0 : _unknown_fields_.swap(other->_unknown_fields_);
3477 0 : std::swap(_cached_size_, other->_cached_size_);
3478 : }
3479 0 : }
3480 :
3481 0 : ::std::string ClientDownloadRequest_CertificateChain::GetTypeName() const {
3482 0 : return "safe_browsing.ClientDownloadRequest.CertificateChain";
3483 : }
3484 :
3485 :
3486 : // -------------------------------------------------------------------
3487 :
3488 : #ifndef _MSC_VER
3489 : const int ClientDownloadRequest_ExtendedAttr::kKeyFieldNumber;
3490 : const int ClientDownloadRequest_ExtendedAttr::kValueFieldNumber;
3491 : #endif // !_MSC_VER
3492 :
3493 0 : ClientDownloadRequest_ExtendedAttr::ClientDownloadRequest_ExtendedAttr()
3494 0 : : ::google::protobuf::MessageLite() {
3495 0 : SharedCtor();
3496 : // @@protoc_insertion_point(constructor:safe_browsing.ClientDownloadRequest.ExtendedAttr)
3497 0 : }
3498 :
3499 0 : void ClientDownloadRequest_ExtendedAttr::InitAsDefaultInstance() {
3500 0 : }
3501 :
3502 0 : ClientDownloadRequest_ExtendedAttr::ClientDownloadRequest_ExtendedAttr(const ClientDownloadRequest_ExtendedAttr& from)
3503 0 : : ::google::protobuf::MessageLite() {
3504 0 : SharedCtor();
3505 0 : MergeFrom(from);
3506 : // @@protoc_insertion_point(copy_constructor:safe_browsing.ClientDownloadRequest.ExtendedAttr)
3507 0 : }
3508 :
3509 0 : void ClientDownloadRequest_ExtendedAttr::SharedCtor() {
3510 0 : ::google::protobuf::internal::GetEmptyString();
3511 0 : _cached_size_ = 0;
3512 0 : key_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3513 0 : value_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3514 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
3515 0 : }
3516 :
3517 0 : ClientDownloadRequest_ExtendedAttr::~ClientDownloadRequest_ExtendedAttr() {
3518 : // @@protoc_insertion_point(destructor:safe_browsing.ClientDownloadRequest.ExtendedAttr)
3519 0 : SharedDtor();
3520 0 : }
3521 :
3522 0 : void ClientDownloadRequest_ExtendedAttr::SharedDtor() {
3523 0 : if (key_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
3524 0 : delete key_;
3525 : }
3526 0 : if (value_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
3527 0 : delete value_;
3528 : }
3529 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
3530 0 : if (this != &default_instance()) {
3531 : #else
3532 : if (this != default_instance_) {
3533 : #endif
3534 : }
3535 0 : }
3536 :
3537 0 : void ClientDownloadRequest_ExtendedAttr::SetCachedSize(int size) const {
3538 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3539 0 : _cached_size_ = size;
3540 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
3541 0 : }
3542 0 : const ClientDownloadRequest_ExtendedAttr& ClientDownloadRequest_ExtendedAttr::default_instance() {
3543 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
3544 0 : protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
3545 : #else
3546 : if (default_instance_ == NULL) protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
3547 : #endif
3548 0 : return *default_instance_;
3549 : }
3550 :
3551 : ClientDownloadRequest_ExtendedAttr* ClientDownloadRequest_ExtendedAttr::default_instance_ = NULL;
3552 :
3553 0 : ClientDownloadRequest_ExtendedAttr* ClientDownloadRequest_ExtendedAttr::New() const {
3554 0 : return new ClientDownloadRequest_ExtendedAttr;
3555 : }
3556 :
3557 0 : void ClientDownloadRequest_ExtendedAttr::Clear() {
3558 0 : if (_has_bits_[0 / 32] & 3) {
3559 0 : if (has_key()) {
3560 0 : if (key_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
3561 0 : key_->clear();
3562 : }
3563 : }
3564 0 : if (has_value()) {
3565 0 : if (value_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
3566 0 : value_->clear();
3567 : }
3568 : }
3569 : }
3570 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
3571 0 : mutable_unknown_fields()->clear();
3572 0 : }
3573 :
3574 0 : bool ClientDownloadRequest_ExtendedAttr::MergePartialFromCodedStream(
3575 : ::google::protobuf::io::CodedInputStream* input) {
3576 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
3577 : ::google::protobuf::uint32 tag;
3578 : ::google::protobuf::io::StringOutputStream unknown_fields_string(
3579 0 : mutable_unknown_fields());
3580 : ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
3581 0 : &unknown_fields_string);
3582 : // @@protoc_insertion_point(parse_start:safe_browsing.ClientDownloadRequest.ExtendedAttr)
3583 : for (;;) {
3584 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
3585 0 : tag = p.first;
3586 0 : if (!p.second) goto handle_unusual;
3587 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3588 : // required string key = 1;
3589 : case 1: {
3590 0 : if (tag == 10) {
3591 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
3592 : input, this->mutable_key()));
3593 : } else {
3594 0 : goto handle_unusual;
3595 : }
3596 0 : if (input->ExpectTag(18)) goto parse_value;
3597 0 : break;
3598 : }
3599 :
3600 : // optional bytes value = 2;
3601 : case 2: {
3602 0 : if (tag == 18) {
3603 : parse_value:
3604 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
3605 : input, this->mutable_value()));
3606 : } else {
3607 0 : goto handle_unusual;
3608 : }
3609 0 : if (input->ExpectAtEnd()) goto success;
3610 0 : break;
3611 : }
3612 :
3613 : default: {
3614 : handle_unusual:
3615 0 : if (tag == 0 ||
3616 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3617 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
3618 0 : goto success;
3619 : }
3620 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(
3621 : input, tag, &unknown_fields_stream));
3622 0 : break;
3623 : }
3624 : }
3625 0 : }
3626 : success:
3627 : // @@protoc_insertion_point(parse_success:safe_browsing.ClientDownloadRequest.ExtendedAttr)
3628 0 : return true;
3629 : failure:
3630 : // @@protoc_insertion_point(parse_failure:safe_browsing.ClientDownloadRequest.ExtendedAttr)
3631 0 : return false;
3632 : #undef DO_
3633 : }
3634 :
3635 0 : void ClientDownloadRequest_ExtendedAttr::SerializeWithCachedSizes(
3636 : ::google::protobuf::io::CodedOutputStream* output) const {
3637 : // @@protoc_insertion_point(serialize_start:safe_browsing.ClientDownloadRequest.ExtendedAttr)
3638 : // required string key = 1;
3639 0 : if (has_key()) {
3640 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
3641 0 : 1, this->key(), output);
3642 : }
3643 :
3644 : // optional bytes value = 2;
3645 0 : if (has_value()) {
3646 0 : ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
3647 0 : 2, this->value(), output);
3648 : }
3649 :
3650 0 : output->WriteRaw(unknown_fields().data(),
3651 0 : unknown_fields().size());
3652 : // @@protoc_insertion_point(serialize_end:safe_browsing.ClientDownloadRequest.ExtendedAttr)
3653 0 : }
3654 :
3655 0 : int ClientDownloadRequest_ExtendedAttr::ByteSize() const {
3656 0 : int total_size = 0;
3657 :
3658 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3659 : // required string key = 1;
3660 0 : if (has_key()) {
3661 0 : total_size += 1 +
3662 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
3663 : this->key());
3664 : }
3665 :
3666 : // optional bytes value = 2;
3667 0 : if (has_value()) {
3668 0 : total_size += 1 +
3669 0 : ::google::protobuf::internal::WireFormatLite::BytesSize(
3670 : this->value());
3671 : }
3672 :
3673 : }
3674 0 : total_size += unknown_fields().size();
3675 :
3676 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3677 0 : _cached_size_ = total_size;
3678 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
3679 0 : return total_size;
3680 : }
3681 :
3682 0 : void ClientDownloadRequest_ExtendedAttr::CheckTypeAndMergeFrom(
3683 : const ::google::protobuf::MessageLite& from) {
3684 0 : MergeFrom(*::google::protobuf::down_cast<const ClientDownloadRequest_ExtendedAttr*>(&from));
3685 0 : }
3686 :
3687 0 : void ClientDownloadRequest_ExtendedAttr::MergeFrom(const ClientDownloadRequest_ExtendedAttr& from) {
3688 0 : GOOGLE_CHECK_NE(&from, this);
3689 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3690 0 : if (from.has_key()) {
3691 0 : set_key(from.key());
3692 : }
3693 0 : if (from.has_value()) {
3694 0 : set_value(from.value());
3695 : }
3696 : }
3697 0 : mutable_unknown_fields()->append(from.unknown_fields());
3698 0 : }
3699 :
3700 0 : void ClientDownloadRequest_ExtendedAttr::CopyFrom(const ClientDownloadRequest_ExtendedAttr& from) {
3701 0 : if (&from == this) return;
3702 0 : Clear();
3703 0 : MergeFrom(from);
3704 : }
3705 :
3706 0 : bool ClientDownloadRequest_ExtendedAttr::IsInitialized() const {
3707 0 : if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
3708 :
3709 0 : return true;
3710 : }
3711 :
3712 0 : void ClientDownloadRequest_ExtendedAttr::Swap(ClientDownloadRequest_ExtendedAttr* other) {
3713 0 : if (other != this) {
3714 0 : std::swap(key_, other->key_);
3715 0 : std::swap(value_, other->value_);
3716 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
3717 0 : _unknown_fields_.swap(other->_unknown_fields_);
3718 0 : std::swap(_cached_size_, other->_cached_size_);
3719 : }
3720 0 : }
3721 :
3722 0 : ::std::string ClientDownloadRequest_ExtendedAttr::GetTypeName() const {
3723 0 : return "safe_browsing.ClientDownloadRequest.ExtendedAttr";
3724 : }
3725 :
3726 :
3727 : // -------------------------------------------------------------------
3728 :
3729 : #ifndef _MSC_VER
3730 : const int ClientDownloadRequest_SignatureInfo::kCertificateChainFieldNumber;
3731 : const int ClientDownloadRequest_SignatureInfo::kTrustedFieldNumber;
3732 : const int ClientDownloadRequest_SignatureInfo::kSignedDataFieldNumber;
3733 : const int ClientDownloadRequest_SignatureInfo::kXattrFieldNumber;
3734 : #endif // !_MSC_VER
3735 :
3736 0 : ClientDownloadRequest_SignatureInfo::ClientDownloadRequest_SignatureInfo()
3737 0 : : ::google::protobuf::MessageLite() {
3738 0 : SharedCtor();
3739 : // @@protoc_insertion_point(constructor:safe_browsing.ClientDownloadRequest.SignatureInfo)
3740 0 : }
3741 :
3742 0 : void ClientDownloadRequest_SignatureInfo::InitAsDefaultInstance() {
3743 0 : }
3744 :
3745 0 : ClientDownloadRequest_SignatureInfo::ClientDownloadRequest_SignatureInfo(const ClientDownloadRequest_SignatureInfo& from)
3746 0 : : ::google::protobuf::MessageLite() {
3747 0 : SharedCtor();
3748 0 : MergeFrom(from);
3749 : // @@protoc_insertion_point(copy_constructor:safe_browsing.ClientDownloadRequest.SignatureInfo)
3750 0 : }
3751 :
3752 0 : void ClientDownloadRequest_SignatureInfo::SharedCtor() {
3753 0 : ::google::protobuf::internal::GetEmptyString();
3754 0 : _cached_size_ = 0;
3755 0 : trusted_ = false;
3756 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
3757 0 : }
3758 :
3759 0 : ClientDownloadRequest_SignatureInfo::~ClientDownloadRequest_SignatureInfo() {
3760 : // @@protoc_insertion_point(destructor:safe_browsing.ClientDownloadRequest.SignatureInfo)
3761 0 : SharedDtor();
3762 0 : }
3763 :
3764 0 : void ClientDownloadRequest_SignatureInfo::SharedDtor() {
3765 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
3766 0 : if (this != &default_instance()) {
3767 : #else
3768 : if (this != default_instance_) {
3769 : #endif
3770 : }
3771 0 : }
3772 :
3773 0 : void ClientDownloadRequest_SignatureInfo::SetCachedSize(int size) const {
3774 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3775 0 : _cached_size_ = size;
3776 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
3777 0 : }
3778 0 : const ClientDownloadRequest_SignatureInfo& ClientDownloadRequest_SignatureInfo::default_instance() {
3779 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
3780 0 : protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
3781 : #else
3782 : if (default_instance_ == NULL) protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
3783 : #endif
3784 0 : return *default_instance_;
3785 : }
3786 :
3787 : ClientDownloadRequest_SignatureInfo* ClientDownloadRequest_SignatureInfo::default_instance_ = NULL;
3788 :
3789 0 : ClientDownloadRequest_SignatureInfo* ClientDownloadRequest_SignatureInfo::New() const {
3790 0 : return new ClientDownloadRequest_SignatureInfo;
3791 : }
3792 :
3793 0 : void ClientDownloadRequest_SignatureInfo::Clear() {
3794 0 : trusted_ = false;
3795 0 : certificate_chain_.Clear();
3796 0 : signed_data_.Clear();
3797 0 : xattr_.Clear();
3798 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
3799 0 : mutable_unknown_fields()->clear();
3800 0 : }
3801 :
3802 0 : bool ClientDownloadRequest_SignatureInfo::MergePartialFromCodedStream(
3803 : ::google::protobuf::io::CodedInputStream* input) {
3804 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
3805 : ::google::protobuf::uint32 tag;
3806 : ::google::protobuf::io::StringOutputStream unknown_fields_string(
3807 0 : mutable_unknown_fields());
3808 : ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
3809 0 : &unknown_fields_string);
3810 : // @@protoc_insertion_point(parse_start:safe_browsing.ClientDownloadRequest.SignatureInfo)
3811 : for (;;) {
3812 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
3813 0 : tag = p.first;
3814 0 : if (!p.second) goto handle_unusual;
3815 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3816 : // repeated .safe_browsing.ClientDownloadRequest.CertificateChain certificate_chain = 1;
3817 : case 1: {
3818 0 : if (tag == 10) {
3819 : parse_certificate_chain:
3820 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
3821 : input, add_certificate_chain()));
3822 : } else {
3823 0 : goto handle_unusual;
3824 : }
3825 0 : if (input->ExpectTag(10)) goto parse_certificate_chain;
3826 0 : if (input->ExpectTag(16)) goto parse_trusted;
3827 0 : break;
3828 : }
3829 :
3830 : // optional bool trusted = 2;
3831 : case 2: {
3832 0 : if (tag == 16) {
3833 : parse_trusted:
3834 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3835 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
3836 : input, &trusted_)));
3837 0 : set_has_trusted();
3838 : } else {
3839 0 : goto handle_unusual;
3840 : }
3841 0 : if (input->ExpectTag(26)) goto parse_signed_data;
3842 0 : break;
3843 : }
3844 :
3845 : // repeated bytes signed_data = 3;
3846 : case 3: {
3847 0 : if (tag == 26) {
3848 : parse_signed_data:
3849 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
3850 : input, this->add_signed_data()));
3851 : } else {
3852 0 : goto handle_unusual;
3853 : }
3854 0 : if (input->ExpectTag(26)) goto parse_signed_data;
3855 0 : if (input->ExpectTag(34)) goto parse_xattr;
3856 0 : break;
3857 : }
3858 :
3859 : // repeated .safe_browsing.ClientDownloadRequest.ExtendedAttr xattr = 4;
3860 : case 4: {
3861 0 : if (tag == 34) {
3862 : parse_xattr:
3863 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
3864 : input, add_xattr()));
3865 : } else {
3866 0 : goto handle_unusual;
3867 : }
3868 0 : if (input->ExpectTag(34)) goto parse_xattr;
3869 0 : if (input->ExpectAtEnd()) goto success;
3870 0 : break;
3871 : }
3872 :
3873 : default: {
3874 : handle_unusual:
3875 0 : if (tag == 0 ||
3876 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3877 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
3878 0 : goto success;
3879 : }
3880 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(
3881 : input, tag, &unknown_fields_stream));
3882 0 : break;
3883 : }
3884 : }
3885 0 : }
3886 : success:
3887 : // @@protoc_insertion_point(parse_success:safe_browsing.ClientDownloadRequest.SignatureInfo)
3888 0 : return true;
3889 : failure:
3890 : // @@protoc_insertion_point(parse_failure:safe_browsing.ClientDownloadRequest.SignatureInfo)
3891 0 : return false;
3892 : #undef DO_
3893 : }
3894 :
3895 0 : void ClientDownloadRequest_SignatureInfo::SerializeWithCachedSizes(
3896 : ::google::protobuf::io::CodedOutputStream* output) const {
3897 : // @@protoc_insertion_point(serialize_start:safe_browsing.ClientDownloadRequest.SignatureInfo)
3898 : // repeated .safe_browsing.ClientDownloadRequest.CertificateChain certificate_chain = 1;
3899 0 : for (int i = 0; i < this->certificate_chain_size(); i++) {
3900 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
3901 0 : 1, this->certificate_chain(i), output);
3902 : }
3903 :
3904 : // optional bool trusted = 2;
3905 0 : if (has_trusted()) {
3906 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->trusted(), output);
3907 : }
3908 :
3909 : // repeated bytes signed_data = 3;
3910 0 : for (int i = 0; i < this->signed_data_size(); i++) {
3911 0 : ::google::protobuf::internal::WireFormatLite::WriteBytes(
3912 0 : 3, this->signed_data(i), output);
3913 : }
3914 :
3915 : // repeated .safe_browsing.ClientDownloadRequest.ExtendedAttr xattr = 4;
3916 0 : for (int i = 0; i < this->xattr_size(); i++) {
3917 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
3918 0 : 4, this->xattr(i), output);
3919 : }
3920 :
3921 0 : output->WriteRaw(unknown_fields().data(),
3922 0 : unknown_fields().size());
3923 : // @@protoc_insertion_point(serialize_end:safe_browsing.ClientDownloadRequest.SignatureInfo)
3924 0 : }
3925 :
3926 0 : int ClientDownloadRequest_SignatureInfo::ByteSize() const {
3927 0 : int total_size = 0;
3928 :
3929 0 : if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) {
3930 : // optional bool trusted = 2;
3931 0 : if (has_trusted()) {
3932 0 : total_size += 1 + 1;
3933 : }
3934 :
3935 : }
3936 : // repeated .safe_browsing.ClientDownloadRequest.CertificateChain certificate_chain = 1;
3937 0 : total_size += 1 * this->certificate_chain_size();
3938 0 : for (int i = 0; i < this->certificate_chain_size(); i++) {
3939 0 : total_size +=
3940 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3941 : this->certificate_chain(i));
3942 : }
3943 :
3944 : // repeated bytes signed_data = 3;
3945 0 : total_size += 1 * this->signed_data_size();
3946 0 : for (int i = 0; i < this->signed_data_size(); i++) {
3947 0 : total_size += ::google::protobuf::internal::WireFormatLite::BytesSize(
3948 : this->signed_data(i));
3949 : }
3950 :
3951 : // repeated .safe_browsing.ClientDownloadRequest.ExtendedAttr xattr = 4;
3952 0 : total_size += 1 * this->xattr_size();
3953 0 : for (int i = 0; i < this->xattr_size(); i++) {
3954 0 : total_size +=
3955 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3956 : this->xattr(i));
3957 : }
3958 :
3959 0 : total_size += unknown_fields().size();
3960 :
3961 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3962 0 : _cached_size_ = total_size;
3963 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
3964 0 : return total_size;
3965 : }
3966 :
3967 0 : void ClientDownloadRequest_SignatureInfo::CheckTypeAndMergeFrom(
3968 : const ::google::protobuf::MessageLite& from) {
3969 0 : MergeFrom(*::google::protobuf::down_cast<const ClientDownloadRequest_SignatureInfo*>(&from));
3970 0 : }
3971 :
3972 0 : void ClientDownloadRequest_SignatureInfo::MergeFrom(const ClientDownloadRequest_SignatureInfo& from) {
3973 0 : GOOGLE_CHECK_NE(&from, this);
3974 0 : certificate_chain_.MergeFrom(from.certificate_chain_);
3975 0 : signed_data_.MergeFrom(from.signed_data_);
3976 0 : xattr_.MergeFrom(from.xattr_);
3977 0 : if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) {
3978 0 : if (from.has_trusted()) {
3979 0 : set_trusted(from.trusted());
3980 : }
3981 : }
3982 0 : mutable_unknown_fields()->append(from.unknown_fields());
3983 0 : }
3984 :
3985 0 : void ClientDownloadRequest_SignatureInfo::CopyFrom(const ClientDownloadRequest_SignatureInfo& from) {
3986 0 : if (&from == this) return;
3987 0 : Clear();
3988 0 : MergeFrom(from);
3989 : }
3990 :
3991 0 : bool ClientDownloadRequest_SignatureInfo::IsInitialized() const {
3992 :
3993 0 : if (!::google::protobuf::internal::AllAreInitialized(this->xattr())) return false;
3994 0 : return true;
3995 : }
3996 :
3997 0 : void ClientDownloadRequest_SignatureInfo::Swap(ClientDownloadRequest_SignatureInfo* other) {
3998 0 : if (other != this) {
3999 0 : certificate_chain_.Swap(&other->certificate_chain_);
4000 0 : std::swap(trusted_, other->trusted_);
4001 0 : signed_data_.Swap(&other->signed_data_);
4002 0 : xattr_.Swap(&other->xattr_);
4003 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
4004 0 : _unknown_fields_.swap(other->_unknown_fields_);
4005 0 : std::swap(_cached_size_, other->_cached_size_);
4006 : }
4007 0 : }
4008 :
4009 0 : ::std::string ClientDownloadRequest_SignatureInfo::GetTypeName() const {
4010 0 : return "safe_browsing.ClientDownloadRequest.SignatureInfo";
4011 : }
4012 :
4013 :
4014 : // -------------------------------------------------------------------
4015 :
4016 : #ifndef _MSC_VER
4017 : const int ClientDownloadRequest_PEImageHeaders_DebugData::kDirectoryEntryFieldNumber;
4018 : const int ClientDownloadRequest_PEImageHeaders_DebugData::kRawDataFieldNumber;
4019 : #endif // !_MSC_VER
4020 :
4021 0 : ClientDownloadRequest_PEImageHeaders_DebugData::ClientDownloadRequest_PEImageHeaders_DebugData()
4022 0 : : ::google::protobuf::MessageLite() {
4023 0 : SharedCtor();
4024 : // @@protoc_insertion_point(constructor:safe_browsing.ClientDownloadRequest.PEImageHeaders.DebugData)
4025 0 : }
4026 :
4027 0 : void ClientDownloadRequest_PEImageHeaders_DebugData::InitAsDefaultInstance() {
4028 0 : }
4029 :
4030 0 : ClientDownloadRequest_PEImageHeaders_DebugData::ClientDownloadRequest_PEImageHeaders_DebugData(const ClientDownloadRequest_PEImageHeaders_DebugData& from)
4031 0 : : ::google::protobuf::MessageLite() {
4032 0 : SharedCtor();
4033 0 : MergeFrom(from);
4034 : // @@protoc_insertion_point(copy_constructor:safe_browsing.ClientDownloadRequest.PEImageHeaders.DebugData)
4035 0 : }
4036 :
4037 0 : void ClientDownloadRequest_PEImageHeaders_DebugData::SharedCtor() {
4038 0 : ::google::protobuf::internal::GetEmptyString();
4039 0 : _cached_size_ = 0;
4040 0 : directory_entry_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4041 0 : raw_data_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4042 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
4043 0 : }
4044 :
4045 0 : ClientDownloadRequest_PEImageHeaders_DebugData::~ClientDownloadRequest_PEImageHeaders_DebugData() {
4046 : // @@protoc_insertion_point(destructor:safe_browsing.ClientDownloadRequest.PEImageHeaders.DebugData)
4047 0 : SharedDtor();
4048 0 : }
4049 :
4050 0 : void ClientDownloadRequest_PEImageHeaders_DebugData::SharedDtor() {
4051 0 : if (directory_entry_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4052 0 : delete directory_entry_;
4053 : }
4054 0 : if (raw_data_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4055 0 : delete raw_data_;
4056 : }
4057 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
4058 0 : if (this != &default_instance()) {
4059 : #else
4060 : if (this != default_instance_) {
4061 : #endif
4062 : }
4063 0 : }
4064 :
4065 0 : void ClientDownloadRequest_PEImageHeaders_DebugData::SetCachedSize(int size) const {
4066 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4067 0 : _cached_size_ = size;
4068 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
4069 0 : }
4070 0 : const ClientDownloadRequest_PEImageHeaders_DebugData& ClientDownloadRequest_PEImageHeaders_DebugData::default_instance() {
4071 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
4072 0 : protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
4073 : #else
4074 : if (default_instance_ == NULL) protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
4075 : #endif
4076 0 : return *default_instance_;
4077 : }
4078 :
4079 : ClientDownloadRequest_PEImageHeaders_DebugData* ClientDownloadRequest_PEImageHeaders_DebugData::default_instance_ = NULL;
4080 :
4081 0 : ClientDownloadRequest_PEImageHeaders_DebugData* ClientDownloadRequest_PEImageHeaders_DebugData::New() const {
4082 0 : return new ClientDownloadRequest_PEImageHeaders_DebugData;
4083 : }
4084 :
4085 0 : void ClientDownloadRequest_PEImageHeaders_DebugData::Clear() {
4086 0 : if (_has_bits_[0 / 32] & 3) {
4087 0 : if (has_directory_entry()) {
4088 0 : if (directory_entry_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4089 0 : directory_entry_->clear();
4090 : }
4091 : }
4092 0 : if (has_raw_data()) {
4093 0 : if (raw_data_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4094 0 : raw_data_->clear();
4095 : }
4096 : }
4097 : }
4098 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
4099 0 : mutable_unknown_fields()->clear();
4100 0 : }
4101 :
4102 0 : bool ClientDownloadRequest_PEImageHeaders_DebugData::MergePartialFromCodedStream(
4103 : ::google::protobuf::io::CodedInputStream* input) {
4104 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
4105 : ::google::protobuf::uint32 tag;
4106 : ::google::protobuf::io::StringOutputStream unknown_fields_string(
4107 0 : mutable_unknown_fields());
4108 : ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
4109 0 : &unknown_fields_string);
4110 : // @@protoc_insertion_point(parse_start:safe_browsing.ClientDownloadRequest.PEImageHeaders.DebugData)
4111 : for (;;) {
4112 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
4113 0 : tag = p.first;
4114 0 : if (!p.second) goto handle_unusual;
4115 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4116 : // optional bytes directory_entry = 1;
4117 : case 1: {
4118 0 : if (tag == 10) {
4119 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
4120 : input, this->mutable_directory_entry()));
4121 : } else {
4122 0 : goto handle_unusual;
4123 : }
4124 0 : if (input->ExpectTag(18)) goto parse_raw_data;
4125 0 : break;
4126 : }
4127 :
4128 : // optional bytes raw_data = 2;
4129 : case 2: {
4130 0 : if (tag == 18) {
4131 : parse_raw_data:
4132 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
4133 : input, this->mutable_raw_data()));
4134 : } else {
4135 0 : goto handle_unusual;
4136 : }
4137 0 : if (input->ExpectAtEnd()) goto success;
4138 0 : break;
4139 : }
4140 :
4141 : default: {
4142 : handle_unusual:
4143 0 : if (tag == 0 ||
4144 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4145 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
4146 0 : goto success;
4147 : }
4148 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(
4149 : input, tag, &unknown_fields_stream));
4150 0 : break;
4151 : }
4152 : }
4153 0 : }
4154 : success:
4155 : // @@protoc_insertion_point(parse_success:safe_browsing.ClientDownloadRequest.PEImageHeaders.DebugData)
4156 0 : return true;
4157 : failure:
4158 : // @@protoc_insertion_point(parse_failure:safe_browsing.ClientDownloadRequest.PEImageHeaders.DebugData)
4159 0 : return false;
4160 : #undef DO_
4161 : }
4162 :
4163 0 : void ClientDownloadRequest_PEImageHeaders_DebugData::SerializeWithCachedSizes(
4164 : ::google::protobuf::io::CodedOutputStream* output) const {
4165 : // @@protoc_insertion_point(serialize_start:safe_browsing.ClientDownloadRequest.PEImageHeaders.DebugData)
4166 : // optional bytes directory_entry = 1;
4167 0 : if (has_directory_entry()) {
4168 0 : ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
4169 0 : 1, this->directory_entry(), output);
4170 : }
4171 :
4172 : // optional bytes raw_data = 2;
4173 0 : if (has_raw_data()) {
4174 0 : ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
4175 0 : 2, this->raw_data(), output);
4176 : }
4177 :
4178 0 : output->WriteRaw(unknown_fields().data(),
4179 0 : unknown_fields().size());
4180 : // @@protoc_insertion_point(serialize_end:safe_browsing.ClientDownloadRequest.PEImageHeaders.DebugData)
4181 0 : }
4182 :
4183 0 : int ClientDownloadRequest_PEImageHeaders_DebugData::ByteSize() const {
4184 0 : int total_size = 0;
4185 :
4186 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
4187 : // optional bytes directory_entry = 1;
4188 0 : if (has_directory_entry()) {
4189 0 : total_size += 1 +
4190 0 : ::google::protobuf::internal::WireFormatLite::BytesSize(
4191 : this->directory_entry());
4192 : }
4193 :
4194 : // optional bytes raw_data = 2;
4195 0 : if (has_raw_data()) {
4196 0 : total_size += 1 +
4197 0 : ::google::protobuf::internal::WireFormatLite::BytesSize(
4198 : this->raw_data());
4199 : }
4200 :
4201 : }
4202 0 : total_size += unknown_fields().size();
4203 :
4204 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4205 0 : _cached_size_ = total_size;
4206 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
4207 0 : return total_size;
4208 : }
4209 :
4210 0 : void ClientDownloadRequest_PEImageHeaders_DebugData::CheckTypeAndMergeFrom(
4211 : const ::google::protobuf::MessageLite& from) {
4212 0 : MergeFrom(*::google::protobuf::down_cast<const ClientDownloadRequest_PEImageHeaders_DebugData*>(&from));
4213 0 : }
4214 :
4215 0 : void ClientDownloadRequest_PEImageHeaders_DebugData::MergeFrom(const ClientDownloadRequest_PEImageHeaders_DebugData& from) {
4216 0 : GOOGLE_CHECK_NE(&from, this);
4217 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
4218 0 : if (from.has_directory_entry()) {
4219 0 : set_directory_entry(from.directory_entry());
4220 : }
4221 0 : if (from.has_raw_data()) {
4222 0 : set_raw_data(from.raw_data());
4223 : }
4224 : }
4225 0 : mutable_unknown_fields()->append(from.unknown_fields());
4226 0 : }
4227 :
4228 0 : void ClientDownloadRequest_PEImageHeaders_DebugData::CopyFrom(const ClientDownloadRequest_PEImageHeaders_DebugData& from) {
4229 0 : if (&from == this) return;
4230 0 : Clear();
4231 0 : MergeFrom(from);
4232 : }
4233 :
4234 0 : bool ClientDownloadRequest_PEImageHeaders_DebugData::IsInitialized() const {
4235 :
4236 0 : return true;
4237 : }
4238 :
4239 0 : void ClientDownloadRequest_PEImageHeaders_DebugData::Swap(ClientDownloadRequest_PEImageHeaders_DebugData* other) {
4240 0 : if (other != this) {
4241 0 : std::swap(directory_entry_, other->directory_entry_);
4242 0 : std::swap(raw_data_, other->raw_data_);
4243 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
4244 0 : _unknown_fields_.swap(other->_unknown_fields_);
4245 0 : std::swap(_cached_size_, other->_cached_size_);
4246 : }
4247 0 : }
4248 :
4249 0 : ::std::string ClientDownloadRequest_PEImageHeaders_DebugData::GetTypeName() const {
4250 0 : return "safe_browsing.ClientDownloadRequest.PEImageHeaders.DebugData";
4251 : }
4252 :
4253 :
4254 : // -------------------------------------------------------------------
4255 :
4256 : #ifndef _MSC_VER
4257 : const int ClientDownloadRequest_PEImageHeaders::kDosHeaderFieldNumber;
4258 : const int ClientDownloadRequest_PEImageHeaders::kFileHeaderFieldNumber;
4259 : const int ClientDownloadRequest_PEImageHeaders::kOptionalHeaders32FieldNumber;
4260 : const int ClientDownloadRequest_PEImageHeaders::kOptionalHeaders64FieldNumber;
4261 : const int ClientDownloadRequest_PEImageHeaders::kSectionHeaderFieldNumber;
4262 : const int ClientDownloadRequest_PEImageHeaders::kExportSectionDataFieldNumber;
4263 : const int ClientDownloadRequest_PEImageHeaders::kDebugDataFieldNumber;
4264 : #endif // !_MSC_VER
4265 :
4266 0 : ClientDownloadRequest_PEImageHeaders::ClientDownloadRequest_PEImageHeaders()
4267 0 : : ::google::protobuf::MessageLite() {
4268 0 : SharedCtor();
4269 : // @@protoc_insertion_point(constructor:safe_browsing.ClientDownloadRequest.PEImageHeaders)
4270 0 : }
4271 :
4272 0 : void ClientDownloadRequest_PEImageHeaders::InitAsDefaultInstance() {
4273 0 : }
4274 :
4275 0 : ClientDownloadRequest_PEImageHeaders::ClientDownloadRequest_PEImageHeaders(const ClientDownloadRequest_PEImageHeaders& from)
4276 0 : : ::google::protobuf::MessageLite() {
4277 0 : SharedCtor();
4278 0 : MergeFrom(from);
4279 : // @@protoc_insertion_point(copy_constructor:safe_browsing.ClientDownloadRequest.PEImageHeaders)
4280 0 : }
4281 :
4282 0 : void ClientDownloadRequest_PEImageHeaders::SharedCtor() {
4283 0 : ::google::protobuf::internal::GetEmptyString();
4284 0 : _cached_size_ = 0;
4285 0 : dos_header_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4286 0 : file_header_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4287 0 : optional_headers32_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4288 0 : optional_headers64_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4289 0 : export_section_data_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4290 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
4291 0 : }
4292 :
4293 0 : ClientDownloadRequest_PEImageHeaders::~ClientDownloadRequest_PEImageHeaders() {
4294 : // @@protoc_insertion_point(destructor:safe_browsing.ClientDownloadRequest.PEImageHeaders)
4295 0 : SharedDtor();
4296 0 : }
4297 :
4298 0 : void ClientDownloadRequest_PEImageHeaders::SharedDtor() {
4299 0 : if (dos_header_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4300 0 : delete dos_header_;
4301 : }
4302 0 : if (file_header_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4303 0 : delete file_header_;
4304 : }
4305 0 : if (optional_headers32_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4306 0 : delete optional_headers32_;
4307 : }
4308 0 : if (optional_headers64_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4309 0 : delete optional_headers64_;
4310 : }
4311 0 : if (export_section_data_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4312 0 : delete export_section_data_;
4313 : }
4314 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
4315 0 : if (this != &default_instance()) {
4316 : #else
4317 : if (this != default_instance_) {
4318 : #endif
4319 : }
4320 0 : }
4321 :
4322 0 : void ClientDownloadRequest_PEImageHeaders::SetCachedSize(int size) const {
4323 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4324 0 : _cached_size_ = size;
4325 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
4326 0 : }
4327 0 : const ClientDownloadRequest_PEImageHeaders& ClientDownloadRequest_PEImageHeaders::default_instance() {
4328 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
4329 0 : protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
4330 : #else
4331 : if (default_instance_ == NULL) protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
4332 : #endif
4333 0 : return *default_instance_;
4334 : }
4335 :
4336 : ClientDownloadRequest_PEImageHeaders* ClientDownloadRequest_PEImageHeaders::default_instance_ = NULL;
4337 :
4338 0 : ClientDownloadRequest_PEImageHeaders* ClientDownloadRequest_PEImageHeaders::New() const {
4339 0 : return new ClientDownloadRequest_PEImageHeaders;
4340 : }
4341 :
4342 0 : void ClientDownloadRequest_PEImageHeaders::Clear() {
4343 0 : if (_has_bits_[0 / 32] & 47) {
4344 0 : if (has_dos_header()) {
4345 0 : if (dos_header_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4346 0 : dos_header_->clear();
4347 : }
4348 : }
4349 0 : if (has_file_header()) {
4350 0 : if (file_header_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4351 0 : file_header_->clear();
4352 : }
4353 : }
4354 0 : if (has_optional_headers32()) {
4355 0 : if (optional_headers32_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4356 0 : optional_headers32_->clear();
4357 : }
4358 : }
4359 0 : if (has_optional_headers64()) {
4360 0 : if (optional_headers64_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4361 0 : optional_headers64_->clear();
4362 : }
4363 : }
4364 0 : if (has_export_section_data()) {
4365 0 : if (export_section_data_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4366 0 : export_section_data_->clear();
4367 : }
4368 : }
4369 : }
4370 0 : section_header_.Clear();
4371 0 : debug_data_.Clear();
4372 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
4373 0 : mutable_unknown_fields()->clear();
4374 0 : }
4375 :
4376 0 : bool ClientDownloadRequest_PEImageHeaders::MergePartialFromCodedStream(
4377 : ::google::protobuf::io::CodedInputStream* input) {
4378 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
4379 : ::google::protobuf::uint32 tag;
4380 : ::google::protobuf::io::StringOutputStream unknown_fields_string(
4381 0 : mutable_unknown_fields());
4382 : ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
4383 0 : &unknown_fields_string);
4384 : // @@protoc_insertion_point(parse_start:safe_browsing.ClientDownloadRequest.PEImageHeaders)
4385 : for (;;) {
4386 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
4387 0 : tag = p.first;
4388 0 : if (!p.second) goto handle_unusual;
4389 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4390 : // optional bytes dos_header = 1;
4391 : case 1: {
4392 0 : if (tag == 10) {
4393 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
4394 : input, this->mutable_dos_header()));
4395 : } else {
4396 0 : goto handle_unusual;
4397 : }
4398 0 : if (input->ExpectTag(18)) goto parse_file_header;
4399 0 : break;
4400 : }
4401 :
4402 : // optional bytes file_header = 2;
4403 : case 2: {
4404 0 : if (tag == 18) {
4405 : parse_file_header:
4406 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
4407 : input, this->mutable_file_header()));
4408 : } else {
4409 0 : goto handle_unusual;
4410 : }
4411 0 : if (input->ExpectTag(26)) goto parse_optional_headers32;
4412 0 : break;
4413 : }
4414 :
4415 : // optional bytes optional_headers32 = 3;
4416 : case 3: {
4417 0 : if (tag == 26) {
4418 : parse_optional_headers32:
4419 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
4420 : input, this->mutable_optional_headers32()));
4421 : } else {
4422 0 : goto handle_unusual;
4423 : }
4424 0 : if (input->ExpectTag(34)) goto parse_optional_headers64;
4425 0 : break;
4426 : }
4427 :
4428 : // optional bytes optional_headers64 = 4;
4429 : case 4: {
4430 0 : if (tag == 34) {
4431 : parse_optional_headers64:
4432 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
4433 : input, this->mutable_optional_headers64()));
4434 : } else {
4435 0 : goto handle_unusual;
4436 : }
4437 0 : if (input->ExpectTag(42)) goto parse_section_header;
4438 0 : break;
4439 : }
4440 :
4441 : // repeated bytes section_header = 5;
4442 : case 5: {
4443 0 : if (tag == 42) {
4444 : parse_section_header:
4445 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
4446 : input, this->add_section_header()));
4447 : } else {
4448 0 : goto handle_unusual;
4449 : }
4450 0 : if (input->ExpectTag(42)) goto parse_section_header;
4451 0 : if (input->ExpectTag(50)) goto parse_export_section_data;
4452 0 : break;
4453 : }
4454 :
4455 : // optional bytes export_section_data = 6;
4456 : case 6: {
4457 0 : if (tag == 50) {
4458 : parse_export_section_data:
4459 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
4460 : input, this->mutable_export_section_data()));
4461 : } else {
4462 0 : goto handle_unusual;
4463 : }
4464 0 : if (input->ExpectTag(58)) goto parse_debug_data;
4465 0 : break;
4466 : }
4467 :
4468 : // repeated .safe_browsing.ClientDownloadRequest.PEImageHeaders.DebugData debug_data = 7;
4469 : case 7: {
4470 0 : if (tag == 58) {
4471 : parse_debug_data:
4472 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
4473 : input, add_debug_data()));
4474 : } else {
4475 0 : goto handle_unusual;
4476 : }
4477 0 : if (input->ExpectTag(58)) goto parse_debug_data;
4478 0 : if (input->ExpectAtEnd()) goto success;
4479 0 : break;
4480 : }
4481 :
4482 : default: {
4483 : handle_unusual:
4484 0 : if (tag == 0 ||
4485 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4486 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
4487 0 : goto success;
4488 : }
4489 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(
4490 : input, tag, &unknown_fields_stream));
4491 0 : break;
4492 : }
4493 : }
4494 0 : }
4495 : success:
4496 : // @@protoc_insertion_point(parse_success:safe_browsing.ClientDownloadRequest.PEImageHeaders)
4497 0 : return true;
4498 : failure:
4499 : // @@protoc_insertion_point(parse_failure:safe_browsing.ClientDownloadRequest.PEImageHeaders)
4500 0 : return false;
4501 : #undef DO_
4502 : }
4503 :
4504 0 : void ClientDownloadRequest_PEImageHeaders::SerializeWithCachedSizes(
4505 : ::google::protobuf::io::CodedOutputStream* output) const {
4506 : // @@protoc_insertion_point(serialize_start:safe_browsing.ClientDownloadRequest.PEImageHeaders)
4507 : // optional bytes dos_header = 1;
4508 0 : if (has_dos_header()) {
4509 0 : ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
4510 0 : 1, this->dos_header(), output);
4511 : }
4512 :
4513 : // optional bytes file_header = 2;
4514 0 : if (has_file_header()) {
4515 0 : ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
4516 0 : 2, this->file_header(), output);
4517 : }
4518 :
4519 : // optional bytes optional_headers32 = 3;
4520 0 : if (has_optional_headers32()) {
4521 0 : ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
4522 0 : 3, this->optional_headers32(), output);
4523 : }
4524 :
4525 : // optional bytes optional_headers64 = 4;
4526 0 : if (has_optional_headers64()) {
4527 0 : ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
4528 0 : 4, this->optional_headers64(), output);
4529 : }
4530 :
4531 : // repeated bytes section_header = 5;
4532 0 : for (int i = 0; i < this->section_header_size(); i++) {
4533 0 : ::google::protobuf::internal::WireFormatLite::WriteBytes(
4534 0 : 5, this->section_header(i), output);
4535 : }
4536 :
4537 : // optional bytes export_section_data = 6;
4538 0 : if (has_export_section_data()) {
4539 0 : ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
4540 0 : 6, this->export_section_data(), output);
4541 : }
4542 :
4543 : // repeated .safe_browsing.ClientDownloadRequest.PEImageHeaders.DebugData debug_data = 7;
4544 0 : for (int i = 0; i < this->debug_data_size(); i++) {
4545 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
4546 0 : 7, this->debug_data(i), output);
4547 : }
4548 :
4549 0 : output->WriteRaw(unknown_fields().data(),
4550 0 : unknown_fields().size());
4551 : // @@protoc_insertion_point(serialize_end:safe_browsing.ClientDownloadRequest.PEImageHeaders)
4552 0 : }
4553 :
4554 0 : int ClientDownloadRequest_PEImageHeaders::ByteSize() const {
4555 0 : int total_size = 0;
4556 :
4557 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
4558 : // optional bytes dos_header = 1;
4559 0 : if (has_dos_header()) {
4560 0 : total_size += 1 +
4561 0 : ::google::protobuf::internal::WireFormatLite::BytesSize(
4562 : this->dos_header());
4563 : }
4564 :
4565 : // optional bytes file_header = 2;
4566 0 : if (has_file_header()) {
4567 0 : total_size += 1 +
4568 0 : ::google::protobuf::internal::WireFormatLite::BytesSize(
4569 : this->file_header());
4570 : }
4571 :
4572 : // optional bytes optional_headers32 = 3;
4573 0 : if (has_optional_headers32()) {
4574 0 : total_size += 1 +
4575 0 : ::google::protobuf::internal::WireFormatLite::BytesSize(
4576 : this->optional_headers32());
4577 : }
4578 :
4579 : // optional bytes optional_headers64 = 4;
4580 0 : if (has_optional_headers64()) {
4581 0 : total_size += 1 +
4582 0 : ::google::protobuf::internal::WireFormatLite::BytesSize(
4583 : this->optional_headers64());
4584 : }
4585 :
4586 : // optional bytes export_section_data = 6;
4587 0 : if (has_export_section_data()) {
4588 0 : total_size += 1 +
4589 0 : ::google::protobuf::internal::WireFormatLite::BytesSize(
4590 : this->export_section_data());
4591 : }
4592 :
4593 : }
4594 : // repeated bytes section_header = 5;
4595 0 : total_size += 1 * this->section_header_size();
4596 0 : for (int i = 0; i < this->section_header_size(); i++) {
4597 0 : total_size += ::google::protobuf::internal::WireFormatLite::BytesSize(
4598 : this->section_header(i));
4599 : }
4600 :
4601 : // repeated .safe_browsing.ClientDownloadRequest.PEImageHeaders.DebugData debug_data = 7;
4602 0 : total_size += 1 * this->debug_data_size();
4603 0 : for (int i = 0; i < this->debug_data_size(); i++) {
4604 0 : total_size +=
4605 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
4606 : this->debug_data(i));
4607 : }
4608 :
4609 0 : total_size += unknown_fields().size();
4610 :
4611 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4612 0 : _cached_size_ = total_size;
4613 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
4614 0 : return total_size;
4615 : }
4616 :
4617 0 : void ClientDownloadRequest_PEImageHeaders::CheckTypeAndMergeFrom(
4618 : const ::google::protobuf::MessageLite& from) {
4619 0 : MergeFrom(*::google::protobuf::down_cast<const ClientDownloadRequest_PEImageHeaders*>(&from));
4620 0 : }
4621 :
4622 0 : void ClientDownloadRequest_PEImageHeaders::MergeFrom(const ClientDownloadRequest_PEImageHeaders& from) {
4623 0 : GOOGLE_CHECK_NE(&from, this);
4624 0 : section_header_.MergeFrom(from.section_header_);
4625 0 : debug_data_.MergeFrom(from.debug_data_);
4626 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
4627 0 : if (from.has_dos_header()) {
4628 0 : set_dos_header(from.dos_header());
4629 : }
4630 0 : if (from.has_file_header()) {
4631 0 : set_file_header(from.file_header());
4632 : }
4633 0 : if (from.has_optional_headers32()) {
4634 0 : set_optional_headers32(from.optional_headers32());
4635 : }
4636 0 : if (from.has_optional_headers64()) {
4637 0 : set_optional_headers64(from.optional_headers64());
4638 : }
4639 0 : if (from.has_export_section_data()) {
4640 0 : set_export_section_data(from.export_section_data());
4641 : }
4642 : }
4643 0 : mutable_unknown_fields()->append(from.unknown_fields());
4644 0 : }
4645 :
4646 0 : void ClientDownloadRequest_PEImageHeaders::CopyFrom(const ClientDownloadRequest_PEImageHeaders& from) {
4647 0 : if (&from == this) return;
4648 0 : Clear();
4649 0 : MergeFrom(from);
4650 : }
4651 :
4652 0 : bool ClientDownloadRequest_PEImageHeaders::IsInitialized() const {
4653 :
4654 0 : return true;
4655 : }
4656 :
4657 0 : void ClientDownloadRequest_PEImageHeaders::Swap(ClientDownloadRequest_PEImageHeaders* other) {
4658 0 : if (other != this) {
4659 0 : std::swap(dos_header_, other->dos_header_);
4660 0 : std::swap(file_header_, other->file_header_);
4661 0 : std::swap(optional_headers32_, other->optional_headers32_);
4662 0 : std::swap(optional_headers64_, other->optional_headers64_);
4663 0 : section_header_.Swap(&other->section_header_);
4664 0 : std::swap(export_section_data_, other->export_section_data_);
4665 0 : debug_data_.Swap(&other->debug_data_);
4666 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
4667 0 : _unknown_fields_.swap(other->_unknown_fields_);
4668 0 : std::swap(_cached_size_, other->_cached_size_);
4669 : }
4670 0 : }
4671 :
4672 0 : ::std::string ClientDownloadRequest_PEImageHeaders::GetTypeName() const {
4673 0 : return "safe_browsing.ClientDownloadRequest.PEImageHeaders";
4674 : }
4675 :
4676 :
4677 : // -------------------------------------------------------------------
4678 :
4679 : #ifndef _MSC_VER
4680 : const int ClientDownloadRequest_MachOHeaders_LoadCommand::kCommandIdFieldNumber;
4681 : const int ClientDownloadRequest_MachOHeaders_LoadCommand::kCommandFieldNumber;
4682 : #endif // !_MSC_VER
4683 :
4684 0 : ClientDownloadRequest_MachOHeaders_LoadCommand::ClientDownloadRequest_MachOHeaders_LoadCommand()
4685 0 : : ::google::protobuf::MessageLite() {
4686 0 : SharedCtor();
4687 : // @@protoc_insertion_point(constructor:safe_browsing.ClientDownloadRequest.MachOHeaders.LoadCommand)
4688 0 : }
4689 :
4690 0 : void ClientDownloadRequest_MachOHeaders_LoadCommand::InitAsDefaultInstance() {
4691 0 : }
4692 :
4693 0 : ClientDownloadRequest_MachOHeaders_LoadCommand::ClientDownloadRequest_MachOHeaders_LoadCommand(const ClientDownloadRequest_MachOHeaders_LoadCommand& from)
4694 0 : : ::google::protobuf::MessageLite() {
4695 0 : SharedCtor();
4696 0 : MergeFrom(from);
4697 : // @@protoc_insertion_point(copy_constructor:safe_browsing.ClientDownloadRequest.MachOHeaders.LoadCommand)
4698 0 : }
4699 :
4700 0 : void ClientDownloadRequest_MachOHeaders_LoadCommand::SharedCtor() {
4701 0 : ::google::protobuf::internal::GetEmptyString();
4702 0 : _cached_size_ = 0;
4703 0 : command_id_ = 0u;
4704 0 : command_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4705 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
4706 0 : }
4707 :
4708 0 : ClientDownloadRequest_MachOHeaders_LoadCommand::~ClientDownloadRequest_MachOHeaders_LoadCommand() {
4709 : // @@protoc_insertion_point(destructor:safe_browsing.ClientDownloadRequest.MachOHeaders.LoadCommand)
4710 0 : SharedDtor();
4711 0 : }
4712 :
4713 0 : void ClientDownloadRequest_MachOHeaders_LoadCommand::SharedDtor() {
4714 0 : if (command_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4715 0 : delete command_;
4716 : }
4717 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
4718 0 : if (this != &default_instance()) {
4719 : #else
4720 : if (this != default_instance_) {
4721 : #endif
4722 : }
4723 0 : }
4724 :
4725 0 : void ClientDownloadRequest_MachOHeaders_LoadCommand::SetCachedSize(int size) const {
4726 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4727 0 : _cached_size_ = size;
4728 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
4729 0 : }
4730 0 : const ClientDownloadRequest_MachOHeaders_LoadCommand& ClientDownloadRequest_MachOHeaders_LoadCommand::default_instance() {
4731 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
4732 0 : protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
4733 : #else
4734 : if (default_instance_ == NULL) protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
4735 : #endif
4736 0 : return *default_instance_;
4737 : }
4738 :
4739 : ClientDownloadRequest_MachOHeaders_LoadCommand* ClientDownloadRequest_MachOHeaders_LoadCommand::default_instance_ = NULL;
4740 :
4741 0 : ClientDownloadRequest_MachOHeaders_LoadCommand* ClientDownloadRequest_MachOHeaders_LoadCommand::New() const {
4742 0 : return new ClientDownloadRequest_MachOHeaders_LoadCommand;
4743 : }
4744 :
4745 0 : void ClientDownloadRequest_MachOHeaders_LoadCommand::Clear() {
4746 0 : if (_has_bits_[0 / 32] & 3) {
4747 0 : command_id_ = 0u;
4748 0 : if (has_command()) {
4749 0 : if (command_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4750 0 : command_->clear();
4751 : }
4752 : }
4753 : }
4754 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
4755 0 : mutable_unknown_fields()->clear();
4756 0 : }
4757 :
4758 0 : bool ClientDownloadRequest_MachOHeaders_LoadCommand::MergePartialFromCodedStream(
4759 : ::google::protobuf::io::CodedInputStream* input) {
4760 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
4761 : ::google::protobuf::uint32 tag;
4762 : ::google::protobuf::io::StringOutputStream unknown_fields_string(
4763 0 : mutable_unknown_fields());
4764 : ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
4765 0 : &unknown_fields_string);
4766 : // @@protoc_insertion_point(parse_start:safe_browsing.ClientDownloadRequest.MachOHeaders.LoadCommand)
4767 : for (;;) {
4768 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
4769 0 : tag = p.first;
4770 0 : if (!p.second) goto handle_unusual;
4771 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4772 : // required uint32 command_id = 1;
4773 : case 1: {
4774 0 : if (tag == 8) {
4775 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4776 : ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
4777 : input, &command_id_)));
4778 0 : set_has_command_id();
4779 : } else {
4780 0 : goto handle_unusual;
4781 : }
4782 0 : if (input->ExpectTag(18)) goto parse_command;
4783 0 : break;
4784 : }
4785 :
4786 : // required bytes command = 2;
4787 : case 2: {
4788 0 : if (tag == 18) {
4789 : parse_command:
4790 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
4791 : input, this->mutable_command()));
4792 : } else {
4793 0 : goto handle_unusual;
4794 : }
4795 0 : if (input->ExpectAtEnd()) goto success;
4796 0 : break;
4797 : }
4798 :
4799 : default: {
4800 : handle_unusual:
4801 0 : if (tag == 0 ||
4802 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4803 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
4804 0 : goto success;
4805 : }
4806 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(
4807 : input, tag, &unknown_fields_stream));
4808 0 : break;
4809 : }
4810 : }
4811 0 : }
4812 : success:
4813 : // @@protoc_insertion_point(parse_success:safe_browsing.ClientDownloadRequest.MachOHeaders.LoadCommand)
4814 0 : return true;
4815 : failure:
4816 : // @@protoc_insertion_point(parse_failure:safe_browsing.ClientDownloadRequest.MachOHeaders.LoadCommand)
4817 0 : return false;
4818 : #undef DO_
4819 : }
4820 :
4821 0 : void ClientDownloadRequest_MachOHeaders_LoadCommand::SerializeWithCachedSizes(
4822 : ::google::protobuf::io::CodedOutputStream* output) const {
4823 : // @@protoc_insertion_point(serialize_start:safe_browsing.ClientDownloadRequest.MachOHeaders.LoadCommand)
4824 : // required uint32 command_id = 1;
4825 0 : if (has_command_id()) {
4826 0 : ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->command_id(), output);
4827 : }
4828 :
4829 : // required bytes command = 2;
4830 0 : if (has_command()) {
4831 0 : ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
4832 0 : 2, this->command(), output);
4833 : }
4834 :
4835 0 : output->WriteRaw(unknown_fields().data(),
4836 0 : unknown_fields().size());
4837 : // @@protoc_insertion_point(serialize_end:safe_browsing.ClientDownloadRequest.MachOHeaders.LoadCommand)
4838 0 : }
4839 :
4840 0 : int ClientDownloadRequest_MachOHeaders_LoadCommand::ByteSize() const {
4841 0 : int total_size = 0;
4842 :
4843 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
4844 : // required uint32 command_id = 1;
4845 0 : if (has_command_id()) {
4846 0 : total_size += 1 +
4847 0 : ::google::protobuf::internal::WireFormatLite::UInt32Size(
4848 : this->command_id());
4849 : }
4850 :
4851 : // required bytes command = 2;
4852 0 : if (has_command()) {
4853 0 : total_size += 1 +
4854 0 : ::google::protobuf::internal::WireFormatLite::BytesSize(
4855 : this->command());
4856 : }
4857 :
4858 : }
4859 0 : total_size += unknown_fields().size();
4860 :
4861 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4862 0 : _cached_size_ = total_size;
4863 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
4864 0 : return total_size;
4865 : }
4866 :
4867 0 : void ClientDownloadRequest_MachOHeaders_LoadCommand::CheckTypeAndMergeFrom(
4868 : const ::google::protobuf::MessageLite& from) {
4869 0 : MergeFrom(*::google::protobuf::down_cast<const ClientDownloadRequest_MachOHeaders_LoadCommand*>(&from));
4870 0 : }
4871 :
4872 0 : void ClientDownloadRequest_MachOHeaders_LoadCommand::MergeFrom(const ClientDownloadRequest_MachOHeaders_LoadCommand& from) {
4873 0 : GOOGLE_CHECK_NE(&from, this);
4874 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
4875 0 : if (from.has_command_id()) {
4876 0 : set_command_id(from.command_id());
4877 : }
4878 0 : if (from.has_command()) {
4879 0 : set_command(from.command());
4880 : }
4881 : }
4882 0 : mutable_unknown_fields()->append(from.unknown_fields());
4883 0 : }
4884 :
4885 0 : void ClientDownloadRequest_MachOHeaders_LoadCommand::CopyFrom(const ClientDownloadRequest_MachOHeaders_LoadCommand& from) {
4886 0 : if (&from == this) return;
4887 0 : Clear();
4888 0 : MergeFrom(from);
4889 : }
4890 :
4891 0 : bool ClientDownloadRequest_MachOHeaders_LoadCommand::IsInitialized() const {
4892 0 : if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
4893 :
4894 0 : return true;
4895 : }
4896 :
4897 0 : void ClientDownloadRequest_MachOHeaders_LoadCommand::Swap(ClientDownloadRequest_MachOHeaders_LoadCommand* other) {
4898 0 : if (other != this) {
4899 0 : std::swap(command_id_, other->command_id_);
4900 0 : std::swap(command_, other->command_);
4901 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
4902 0 : _unknown_fields_.swap(other->_unknown_fields_);
4903 0 : std::swap(_cached_size_, other->_cached_size_);
4904 : }
4905 0 : }
4906 :
4907 0 : ::std::string ClientDownloadRequest_MachOHeaders_LoadCommand::GetTypeName() const {
4908 0 : return "safe_browsing.ClientDownloadRequest.MachOHeaders.LoadCommand";
4909 : }
4910 :
4911 :
4912 : // -------------------------------------------------------------------
4913 :
4914 : #ifndef _MSC_VER
4915 : const int ClientDownloadRequest_MachOHeaders::kMachHeaderFieldNumber;
4916 : const int ClientDownloadRequest_MachOHeaders::kLoadCommandsFieldNumber;
4917 : #endif // !_MSC_VER
4918 :
4919 0 : ClientDownloadRequest_MachOHeaders::ClientDownloadRequest_MachOHeaders()
4920 0 : : ::google::protobuf::MessageLite() {
4921 0 : SharedCtor();
4922 : // @@protoc_insertion_point(constructor:safe_browsing.ClientDownloadRequest.MachOHeaders)
4923 0 : }
4924 :
4925 0 : void ClientDownloadRequest_MachOHeaders::InitAsDefaultInstance() {
4926 0 : }
4927 :
4928 0 : ClientDownloadRequest_MachOHeaders::ClientDownloadRequest_MachOHeaders(const ClientDownloadRequest_MachOHeaders& from)
4929 0 : : ::google::protobuf::MessageLite() {
4930 0 : SharedCtor();
4931 0 : MergeFrom(from);
4932 : // @@protoc_insertion_point(copy_constructor:safe_browsing.ClientDownloadRequest.MachOHeaders)
4933 0 : }
4934 :
4935 0 : void ClientDownloadRequest_MachOHeaders::SharedCtor() {
4936 0 : ::google::protobuf::internal::GetEmptyString();
4937 0 : _cached_size_ = 0;
4938 0 : mach_header_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4939 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
4940 0 : }
4941 :
4942 0 : ClientDownloadRequest_MachOHeaders::~ClientDownloadRequest_MachOHeaders() {
4943 : // @@protoc_insertion_point(destructor:safe_browsing.ClientDownloadRequest.MachOHeaders)
4944 0 : SharedDtor();
4945 0 : }
4946 :
4947 0 : void ClientDownloadRequest_MachOHeaders::SharedDtor() {
4948 0 : if (mach_header_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4949 0 : delete mach_header_;
4950 : }
4951 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
4952 0 : if (this != &default_instance()) {
4953 : #else
4954 : if (this != default_instance_) {
4955 : #endif
4956 : }
4957 0 : }
4958 :
4959 0 : void ClientDownloadRequest_MachOHeaders::SetCachedSize(int size) const {
4960 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4961 0 : _cached_size_ = size;
4962 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
4963 0 : }
4964 0 : const ClientDownloadRequest_MachOHeaders& ClientDownloadRequest_MachOHeaders::default_instance() {
4965 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
4966 0 : protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
4967 : #else
4968 : if (default_instance_ == NULL) protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
4969 : #endif
4970 0 : return *default_instance_;
4971 : }
4972 :
4973 : ClientDownloadRequest_MachOHeaders* ClientDownloadRequest_MachOHeaders::default_instance_ = NULL;
4974 :
4975 0 : ClientDownloadRequest_MachOHeaders* ClientDownloadRequest_MachOHeaders::New() const {
4976 0 : return new ClientDownloadRequest_MachOHeaders;
4977 : }
4978 :
4979 0 : void ClientDownloadRequest_MachOHeaders::Clear() {
4980 0 : if (has_mach_header()) {
4981 0 : if (mach_header_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4982 0 : mach_header_->clear();
4983 : }
4984 : }
4985 0 : load_commands_.Clear();
4986 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
4987 0 : mutable_unknown_fields()->clear();
4988 0 : }
4989 :
4990 0 : bool ClientDownloadRequest_MachOHeaders::MergePartialFromCodedStream(
4991 : ::google::protobuf::io::CodedInputStream* input) {
4992 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
4993 : ::google::protobuf::uint32 tag;
4994 : ::google::protobuf::io::StringOutputStream unknown_fields_string(
4995 0 : mutable_unknown_fields());
4996 : ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
4997 0 : &unknown_fields_string);
4998 : // @@protoc_insertion_point(parse_start:safe_browsing.ClientDownloadRequest.MachOHeaders)
4999 : for (;;) {
5000 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
5001 0 : tag = p.first;
5002 0 : if (!p.second) goto handle_unusual;
5003 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5004 : // required bytes mach_header = 1;
5005 : case 1: {
5006 0 : if (tag == 10) {
5007 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
5008 : input, this->mutable_mach_header()));
5009 : } else {
5010 0 : goto handle_unusual;
5011 : }
5012 0 : if (input->ExpectTag(18)) goto parse_load_commands;
5013 0 : break;
5014 : }
5015 :
5016 : // repeated .safe_browsing.ClientDownloadRequest.MachOHeaders.LoadCommand load_commands = 2;
5017 : case 2: {
5018 0 : if (tag == 18) {
5019 : parse_load_commands:
5020 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
5021 : input, add_load_commands()));
5022 : } else {
5023 0 : goto handle_unusual;
5024 : }
5025 0 : if (input->ExpectTag(18)) goto parse_load_commands;
5026 0 : if (input->ExpectAtEnd()) goto success;
5027 0 : break;
5028 : }
5029 :
5030 : default: {
5031 : handle_unusual:
5032 0 : if (tag == 0 ||
5033 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5034 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
5035 0 : goto success;
5036 : }
5037 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(
5038 : input, tag, &unknown_fields_stream));
5039 0 : break;
5040 : }
5041 : }
5042 0 : }
5043 : success:
5044 : // @@protoc_insertion_point(parse_success:safe_browsing.ClientDownloadRequest.MachOHeaders)
5045 0 : return true;
5046 : failure:
5047 : // @@protoc_insertion_point(parse_failure:safe_browsing.ClientDownloadRequest.MachOHeaders)
5048 0 : return false;
5049 : #undef DO_
5050 : }
5051 :
5052 0 : void ClientDownloadRequest_MachOHeaders::SerializeWithCachedSizes(
5053 : ::google::protobuf::io::CodedOutputStream* output) const {
5054 : // @@protoc_insertion_point(serialize_start:safe_browsing.ClientDownloadRequest.MachOHeaders)
5055 : // required bytes mach_header = 1;
5056 0 : if (has_mach_header()) {
5057 0 : ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
5058 0 : 1, this->mach_header(), output);
5059 : }
5060 :
5061 : // repeated .safe_browsing.ClientDownloadRequest.MachOHeaders.LoadCommand load_commands = 2;
5062 0 : for (int i = 0; i < this->load_commands_size(); i++) {
5063 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
5064 0 : 2, this->load_commands(i), output);
5065 : }
5066 :
5067 0 : output->WriteRaw(unknown_fields().data(),
5068 0 : unknown_fields().size());
5069 : // @@protoc_insertion_point(serialize_end:safe_browsing.ClientDownloadRequest.MachOHeaders)
5070 0 : }
5071 :
5072 0 : int ClientDownloadRequest_MachOHeaders::ByteSize() const {
5073 0 : int total_size = 0;
5074 :
5075 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
5076 : // required bytes mach_header = 1;
5077 0 : if (has_mach_header()) {
5078 0 : total_size += 1 +
5079 0 : ::google::protobuf::internal::WireFormatLite::BytesSize(
5080 : this->mach_header());
5081 : }
5082 :
5083 : }
5084 : // repeated .safe_browsing.ClientDownloadRequest.MachOHeaders.LoadCommand load_commands = 2;
5085 0 : total_size += 1 * this->load_commands_size();
5086 0 : for (int i = 0; i < this->load_commands_size(); i++) {
5087 0 : total_size +=
5088 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
5089 : this->load_commands(i));
5090 : }
5091 :
5092 0 : total_size += unknown_fields().size();
5093 :
5094 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5095 0 : _cached_size_ = total_size;
5096 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
5097 0 : return total_size;
5098 : }
5099 :
5100 0 : void ClientDownloadRequest_MachOHeaders::CheckTypeAndMergeFrom(
5101 : const ::google::protobuf::MessageLite& from) {
5102 0 : MergeFrom(*::google::protobuf::down_cast<const ClientDownloadRequest_MachOHeaders*>(&from));
5103 0 : }
5104 :
5105 0 : void ClientDownloadRequest_MachOHeaders::MergeFrom(const ClientDownloadRequest_MachOHeaders& from) {
5106 0 : GOOGLE_CHECK_NE(&from, this);
5107 0 : load_commands_.MergeFrom(from.load_commands_);
5108 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
5109 0 : if (from.has_mach_header()) {
5110 0 : set_mach_header(from.mach_header());
5111 : }
5112 : }
5113 0 : mutable_unknown_fields()->append(from.unknown_fields());
5114 0 : }
5115 :
5116 0 : void ClientDownloadRequest_MachOHeaders::CopyFrom(const ClientDownloadRequest_MachOHeaders& from) {
5117 0 : if (&from == this) return;
5118 0 : Clear();
5119 0 : MergeFrom(from);
5120 : }
5121 :
5122 0 : bool ClientDownloadRequest_MachOHeaders::IsInitialized() const {
5123 0 : if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
5124 :
5125 0 : if (!::google::protobuf::internal::AllAreInitialized(this->load_commands())) return false;
5126 0 : return true;
5127 : }
5128 :
5129 0 : void ClientDownloadRequest_MachOHeaders::Swap(ClientDownloadRequest_MachOHeaders* other) {
5130 0 : if (other != this) {
5131 0 : std::swap(mach_header_, other->mach_header_);
5132 0 : load_commands_.Swap(&other->load_commands_);
5133 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
5134 0 : _unknown_fields_.swap(other->_unknown_fields_);
5135 0 : std::swap(_cached_size_, other->_cached_size_);
5136 : }
5137 0 : }
5138 :
5139 0 : ::std::string ClientDownloadRequest_MachOHeaders::GetTypeName() const {
5140 0 : return "safe_browsing.ClientDownloadRequest.MachOHeaders";
5141 : }
5142 :
5143 :
5144 : // -------------------------------------------------------------------
5145 :
5146 : #ifndef _MSC_VER
5147 : const int ClientDownloadRequest_ImageHeaders::kPeHeadersFieldNumber;
5148 : const int ClientDownloadRequest_ImageHeaders::kMachOHeadersFieldNumber;
5149 : #endif // !_MSC_VER
5150 :
5151 0 : ClientDownloadRequest_ImageHeaders::ClientDownloadRequest_ImageHeaders()
5152 0 : : ::google::protobuf::MessageLite() {
5153 0 : SharedCtor();
5154 : // @@protoc_insertion_point(constructor:safe_browsing.ClientDownloadRequest.ImageHeaders)
5155 0 : }
5156 :
5157 0 : void ClientDownloadRequest_ImageHeaders::InitAsDefaultInstance() {
5158 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
5159 0 : pe_headers_ = const_cast< ::safe_browsing::ClientDownloadRequest_PEImageHeaders*>(
5160 0 : ::safe_browsing::ClientDownloadRequest_PEImageHeaders::internal_default_instance());
5161 : #else
5162 : pe_headers_ = const_cast< ::safe_browsing::ClientDownloadRequest_PEImageHeaders*>(&::safe_browsing::ClientDownloadRequest_PEImageHeaders::default_instance());
5163 : #endif
5164 0 : }
5165 :
5166 0 : ClientDownloadRequest_ImageHeaders::ClientDownloadRequest_ImageHeaders(const ClientDownloadRequest_ImageHeaders& from)
5167 0 : : ::google::protobuf::MessageLite() {
5168 0 : SharedCtor();
5169 0 : MergeFrom(from);
5170 : // @@protoc_insertion_point(copy_constructor:safe_browsing.ClientDownloadRequest.ImageHeaders)
5171 0 : }
5172 :
5173 0 : void ClientDownloadRequest_ImageHeaders::SharedCtor() {
5174 0 : _cached_size_ = 0;
5175 0 : pe_headers_ = NULL;
5176 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
5177 0 : }
5178 :
5179 0 : ClientDownloadRequest_ImageHeaders::~ClientDownloadRequest_ImageHeaders() {
5180 : // @@protoc_insertion_point(destructor:safe_browsing.ClientDownloadRequest.ImageHeaders)
5181 0 : SharedDtor();
5182 0 : }
5183 :
5184 0 : void ClientDownloadRequest_ImageHeaders::SharedDtor() {
5185 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
5186 0 : if (this != &default_instance()) {
5187 : #else
5188 : if (this != default_instance_) {
5189 : #endif
5190 0 : delete pe_headers_;
5191 : }
5192 0 : }
5193 :
5194 0 : void ClientDownloadRequest_ImageHeaders::SetCachedSize(int size) const {
5195 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5196 0 : _cached_size_ = size;
5197 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
5198 0 : }
5199 0 : const ClientDownloadRequest_ImageHeaders& ClientDownloadRequest_ImageHeaders::default_instance() {
5200 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
5201 0 : protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
5202 : #else
5203 : if (default_instance_ == NULL) protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
5204 : #endif
5205 0 : return *default_instance_;
5206 : }
5207 :
5208 : ClientDownloadRequest_ImageHeaders* ClientDownloadRequest_ImageHeaders::default_instance_ = NULL;
5209 :
5210 0 : ClientDownloadRequest_ImageHeaders* ClientDownloadRequest_ImageHeaders::New() const {
5211 0 : return new ClientDownloadRequest_ImageHeaders;
5212 : }
5213 :
5214 0 : void ClientDownloadRequest_ImageHeaders::Clear() {
5215 0 : if (has_pe_headers()) {
5216 0 : if (pe_headers_ != NULL) pe_headers_->::safe_browsing::ClientDownloadRequest_PEImageHeaders::Clear();
5217 : }
5218 0 : mach_o_headers_.Clear();
5219 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
5220 0 : mutable_unknown_fields()->clear();
5221 0 : }
5222 :
5223 0 : bool ClientDownloadRequest_ImageHeaders::MergePartialFromCodedStream(
5224 : ::google::protobuf::io::CodedInputStream* input) {
5225 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
5226 : ::google::protobuf::uint32 tag;
5227 : ::google::protobuf::io::StringOutputStream unknown_fields_string(
5228 0 : mutable_unknown_fields());
5229 : ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
5230 0 : &unknown_fields_string);
5231 : // @@protoc_insertion_point(parse_start:safe_browsing.ClientDownloadRequest.ImageHeaders)
5232 : for (;;) {
5233 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
5234 0 : tag = p.first;
5235 0 : if (!p.second) goto handle_unusual;
5236 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5237 : // optional .safe_browsing.ClientDownloadRequest.PEImageHeaders pe_headers = 1;
5238 : case 1: {
5239 0 : if (tag == 10) {
5240 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
5241 : input, mutable_pe_headers()));
5242 : } else {
5243 0 : goto handle_unusual;
5244 : }
5245 0 : if (input->ExpectTag(18)) goto parse_mach_o_headers;
5246 0 : break;
5247 : }
5248 :
5249 : // repeated .safe_browsing.ClientDownloadRequest.MachOHeaders mach_o_headers = 2;
5250 : case 2: {
5251 0 : if (tag == 18) {
5252 : parse_mach_o_headers:
5253 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
5254 : input, add_mach_o_headers()));
5255 : } else {
5256 0 : goto handle_unusual;
5257 : }
5258 0 : if (input->ExpectTag(18)) goto parse_mach_o_headers;
5259 0 : if (input->ExpectAtEnd()) goto success;
5260 0 : break;
5261 : }
5262 :
5263 : default: {
5264 : handle_unusual:
5265 0 : if (tag == 0 ||
5266 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5267 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
5268 0 : goto success;
5269 : }
5270 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(
5271 : input, tag, &unknown_fields_stream));
5272 0 : break;
5273 : }
5274 : }
5275 0 : }
5276 : success:
5277 : // @@protoc_insertion_point(parse_success:safe_browsing.ClientDownloadRequest.ImageHeaders)
5278 0 : return true;
5279 : failure:
5280 : // @@protoc_insertion_point(parse_failure:safe_browsing.ClientDownloadRequest.ImageHeaders)
5281 0 : return false;
5282 : #undef DO_
5283 : }
5284 :
5285 0 : void ClientDownloadRequest_ImageHeaders::SerializeWithCachedSizes(
5286 : ::google::protobuf::io::CodedOutputStream* output) const {
5287 : // @@protoc_insertion_point(serialize_start:safe_browsing.ClientDownloadRequest.ImageHeaders)
5288 : // optional .safe_browsing.ClientDownloadRequest.PEImageHeaders pe_headers = 1;
5289 0 : if (has_pe_headers()) {
5290 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
5291 0 : 1, this->pe_headers(), output);
5292 : }
5293 :
5294 : // repeated .safe_browsing.ClientDownloadRequest.MachOHeaders mach_o_headers = 2;
5295 0 : for (int i = 0; i < this->mach_o_headers_size(); i++) {
5296 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
5297 0 : 2, this->mach_o_headers(i), output);
5298 : }
5299 :
5300 0 : output->WriteRaw(unknown_fields().data(),
5301 0 : unknown_fields().size());
5302 : // @@protoc_insertion_point(serialize_end:safe_browsing.ClientDownloadRequest.ImageHeaders)
5303 0 : }
5304 :
5305 0 : int ClientDownloadRequest_ImageHeaders::ByteSize() const {
5306 0 : int total_size = 0;
5307 :
5308 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
5309 : // optional .safe_browsing.ClientDownloadRequest.PEImageHeaders pe_headers = 1;
5310 0 : if (has_pe_headers()) {
5311 0 : total_size += 1 +
5312 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
5313 : this->pe_headers());
5314 : }
5315 :
5316 : }
5317 : // repeated .safe_browsing.ClientDownloadRequest.MachOHeaders mach_o_headers = 2;
5318 0 : total_size += 1 * this->mach_o_headers_size();
5319 0 : for (int i = 0; i < this->mach_o_headers_size(); i++) {
5320 0 : total_size +=
5321 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
5322 : this->mach_o_headers(i));
5323 : }
5324 :
5325 0 : total_size += unknown_fields().size();
5326 :
5327 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5328 0 : _cached_size_ = total_size;
5329 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
5330 0 : return total_size;
5331 : }
5332 :
5333 0 : void ClientDownloadRequest_ImageHeaders::CheckTypeAndMergeFrom(
5334 : const ::google::protobuf::MessageLite& from) {
5335 0 : MergeFrom(*::google::protobuf::down_cast<const ClientDownloadRequest_ImageHeaders*>(&from));
5336 0 : }
5337 :
5338 0 : void ClientDownloadRequest_ImageHeaders::MergeFrom(const ClientDownloadRequest_ImageHeaders& from) {
5339 0 : GOOGLE_CHECK_NE(&from, this);
5340 0 : mach_o_headers_.MergeFrom(from.mach_o_headers_);
5341 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
5342 0 : if (from.has_pe_headers()) {
5343 0 : mutable_pe_headers()->::safe_browsing::ClientDownloadRequest_PEImageHeaders::MergeFrom(from.pe_headers());
5344 : }
5345 : }
5346 0 : mutable_unknown_fields()->append(from.unknown_fields());
5347 0 : }
5348 :
5349 0 : void ClientDownloadRequest_ImageHeaders::CopyFrom(const ClientDownloadRequest_ImageHeaders& from) {
5350 0 : if (&from == this) return;
5351 0 : Clear();
5352 0 : MergeFrom(from);
5353 : }
5354 :
5355 0 : bool ClientDownloadRequest_ImageHeaders::IsInitialized() const {
5356 :
5357 0 : if (!::google::protobuf::internal::AllAreInitialized(this->mach_o_headers())) return false;
5358 0 : return true;
5359 : }
5360 :
5361 0 : void ClientDownloadRequest_ImageHeaders::Swap(ClientDownloadRequest_ImageHeaders* other) {
5362 0 : if (other != this) {
5363 0 : std::swap(pe_headers_, other->pe_headers_);
5364 0 : mach_o_headers_.Swap(&other->mach_o_headers_);
5365 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
5366 0 : _unknown_fields_.swap(other->_unknown_fields_);
5367 0 : std::swap(_cached_size_, other->_cached_size_);
5368 : }
5369 0 : }
5370 :
5371 0 : ::std::string ClientDownloadRequest_ImageHeaders::GetTypeName() const {
5372 0 : return "safe_browsing.ClientDownloadRequest.ImageHeaders";
5373 : }
5374 :
5375 :
5376 : // -------------------------------------------------------------------
5377 :
5378 : #ifndef _MSC_VER
5379 : const int ClientDownloadRequest_ArchivedBinary::kFileBasenameFieldNumber;
5380 : const int ClientDownloadRequest_ArchivedBinary::kDownloadTypeFieldNumber;
5381 : const int ClientDownloadRequest_ArchivedBinary::kDigestsFieldNumber;
5382 : const int ClientDownloadRequest_ArchivedBinary::kLengthFieldNumber;
5383 : const int ClientDownloadRequest_ArchivedBinary::kSignatureFieldNumber;
5384 : const int ClientDownloadRequest_ArchivedBinary::kImageHeadersFieldNumber;
5385 : #endif // !_MSC_VER
5386 :
5387 0 : ClientDownloadRequest_ArchivedBinary::ClientDownloadRequest_ArchivedBinary()
5388 0 : : ::google::protobuf::MessageLite() {
5389 0 : SharedCtor();
5390 : // @@protoc_insertion_point(constructor:safe_browsing.ClientDownloadRequest.ArchivedBinary)
5391 0 : }
5392 :
5393 0 : void ClientDownloadRequest_ArchivedBinary::InitAsDefaultInstance() {
5394 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
5395 0 : digests_ = const_cast< ::safe_browsing::ClientDownloadRequest_Digests*>(
5396 0 : ::safe_browsing::ClientDownloadRequest_Digests::internal_default_instance());
5397 : #else
5398 : digests_ = const_cast< ::safe_browsing::ClientDownloadRequest_Digests*>(&::safe_browsing::ClientDownloadRequest_Digests::default_instance());
5399 : #endif
5400 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
5401 0 : signature_ = const_cast< ::safe_browsing::ClientDownloadRequest_SignatureInfo*>(
5402 0 : ::safe_browsing::ClientDownloadRequest_SignatureInfo::internal_default_instance());
5403 : #else
5404 : signature_ = const_cast< ::safe_browsing::ClientDownloadRequest_SignatureInfo*>(&::safe_browsing::ClientDownloadRequest_SignatureInfo::default_instance());
5405 : #endif
5406 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
5407 0 : image_headers_ = const_cast< ::safe_browsing::ClientDownloadRequest_ImageHeaders*>(
5408 0 : ::safe_browsing::ClientDownloadRequest_ImageHeaders::internal_default_instance());
5409 : #else
5410 : image_headers_ = const_cast< ::safe_browsing::ClientDownloadRequest_ImageHeaders*>(&::safe_browsing::ClientDownloadRequest_ImageHeaders::default_instance());
5411 : #endif
5412 0 : }
5413 :
5414 0 : ClientDownloadRequest_ArchivedBinary::ClientDownloadRequest_ArchivedBinary(const ClientDownloadRequest_ArchivedBinary& from)
5415 0 : : ::google::protobuf::MessageLite() {
5416 0 : SharedCtor();
5417 0 : MergeFrom(from);
5418 : // @@protoc_insertion_point(copy_constructor:safe_browsing.ClientDownloadRequest.ArchivedBinary)
5419 0 : }
5420 :
5421 0 : void ClientDownloadRequest_ArchivedBinary::SharedCtor() {
5422 0 : ::google::protobuf::internal::GetEmptyString();
5423 0 : _cached_size_ = 0;
5424 0 : file_basename_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5425 0 : download_type_ = 0;
5426 0 : digests_ = NULL;
5427 0 : length_ = GOOGLE_LONGLONG(0);
5428 0 : signature_ = NULL;
5429 0 : image_headers_ = NULL;
5430 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
5431 0 : }
5432 :
5433 0 : ClientDownloadRequest_ArchivedBinary::~ClientDownloadRequest_ArchivedBinary() {
5434 : // @@protoc_insertion_point(destructor:safe_browsing.ClientDownloadRequest.ArchivedBinary)
5435 0 : SharedDtor();
5436 0 : }
5437 :
5438 0 : void ClientDownloadRequest_ArchivedBinary::SharedDtor() {
5439 0 : if (file_basename_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
5440 0 : delete file_basename_;
5441 : }
5442 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
5443 0 : if (this != &default_instance()) {
5444 : #else
5445 : if (this != default_instance_) {
5446 : #endif
5447 0 : delete digests_;
5448 0 : delete signature_;
5449 0 : delete image_headers_;
5450 : }
5451 0 : }
5452 :
5453 0 : void ClientDownloadRequest_ArchivedBinary::SetCachedSize(int size) const {
5454 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5455 0 : _cached_size_ = size;
5456 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
5457 0 : }
5458 0 : const ClientDownloadRequest_ArchivedBinary& ClientDownloadRequest_ArchivedBinary::default_instance() {
5459 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
5460 0 : protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
5461 : #else
5462 : if (default_instance_ == NULL) protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
5463 : #endif
5464 0 : return *default_instance_;
5465 : }
5466 :
5467 : ClientDownloadRequest_ArchivedBinary* ClientDownloadRequest_ArchivedBinary::default_instance_ = NULL;
5468 :
5469 0 : ClientDownloadRequest_ArchivedBinary* ClientDownloadRequest_ArchivedBinary::New() const {
5470 0 : return new ClientDownloadRequest_ArchivedBinary;
5471 : }
5472 :
5473 0 : void ClientDownloadRequest_ArchivedBinary::Clear() {
5474 0 : if (_has_bits_[0 / 32] & 63) {
5475 0 : if (has_file_basename()) {
5476 0 : if (file_basename_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
5477 0 : file_basename_->clear();
5478 : }
5479 : }
5480 0 : download_type_ = 0;
5481 0 : if (has_digests()) {
5482 0 : if (digests_ != NULL) digests_->::safe_browsing::ClientDownloadRequest_Digests::Clear();
5483 : }
5484 0 : length_ = GOOGLE_LONGLONG(0);
5485 0 : if (has_signature()) {
5486 0 : if (signature_ != NULL) signature_->::safe_browsing::ClientDownloadRequest_SignatureInfo::Clear();
5487 : }
5488 0 : if (has_image_headers()) {
5489 0 : if (image_headers_ != NULL) image_headers_->::safe_browsing::ClientDownloadRequest_ImageHeaders::Clear();
5490 : }
5491 : }
5492 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
5493 0 : mutable_unknown_fields()->clear();
5494 0 : }
5495 :
5496 0 : bool ClientDownloadRequest_ArchivedBinary::MergePartialFromCodedStream(
5497 : ::google::protobuf::io::CodedInputStream* input) {
5498 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
5499 : ::google::protobuf::uint32 tag;
5500 : ::google::protobuf::io::StringOutputStream unknown_fields_string(
5501 0 : mutable_unknown_fields());
5502 : ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
5503 0 : &unknown_fields_string);
5504 : // @@protoc_insertion_point(parse_start:safe_browsing.ClientDownloadRequest.ArchivedBinary)
5505 : for (;;) {
5506 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
5507 0 : tag = p.first;
5508 0 : if (!p.second) goto handle_unusual;
5509 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5510 : // optional string file_basename = 1;
5511 : case 1: {
5512 0 : if (tag == 10) {
5513 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
5514 : input, this->mutable_file_basename()));
5515 : } else {
5516 0 : goto handle_unusual;
5517 : }
5518 0 : if (input->ExpectTag(16)) goto parse_download_type;
5519 0 : break;
5520 : }
5521 :
5522 : // optional .safe_browsing.ClientDownloadRequest.DownloadType download_type = 2;
5523 : case 2: {
5524 0 : if (tag == 16) {
5525 : parse_download_type:
5526 : int value;
5527 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5528 : int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
5529 : input, &value)));
5530 0 : if (::safe_browsing::ClientDownloadRequest_DownloadType_IsValid(value)) {
5531 0 : set_download_type(static_cast< ::safe_browsing::ClientDownloadRequest_DownloadType >(value));
5532 : } else {
5533 0 : unknown_fields_stream.WriteVarint32(tag);
5534 0 : unknown_fields_stream.WriteVarint32(value);
5535 : }
5536 : } else {
5537 0 : goto handle_unusual;
5538 : }
5539 0 : if (input->ExpectTag(26)) goto parse_digests;
5540 0 : break;
5541 : }
5542 :
5543 : // optional .safe_browsing.ClientDownloadRequest.Digests digests = 3;
5544 : case 3: {
5545 0 : if (tag == 26) {
5546 : parse_digests:
5547 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
5548 : input, mutable_digests()));
5549 : } else {
5550 0 : goto handle_unusual;
5551 : }
5552 0 : if (input->ExpectTag(32)) goto parse_length;
5553 0 : break;
5554 : }
5555 :
5556 : // optional int64 length = 4;
5557 : case 4: {
5558 0 : if (tag == 32) {
5559 : parse_length:
5560 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5561 : ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
5562 : input, &length_)));
5563 0 : set_has_length();
5564 : } else {
5565 0 : goto handle_unusual;
5566 : }
5567 0 : if (input->ExpectTag(42)) goto parse_signature;
5568 0 : break;
5569 : }
5570 :
5571 : // optional .safe_browsing.ClientDownloadRequest.SignatureInfo signature = 5;
5572 : case 5: {
5573 0 : if (tag == 42) {
5574 : parse_signature:
5575 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
5576 : input, mutable_signature()));
5577 : } else {
5578 0 : goto handle_unusual;
5579 : }
5580 0 : if (input->ExpectTag(50)) goto parse_image_headers;
5581 0 : break;
5582 : }
5583 :
5584 : // optional .safe_browsing.ClientDownloadRequest.ImageHeaders image_headers = 6;
5585 : case 6: {
5586 0 : if (tag == 50) {
5587 : parse_image_headers:
5588 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
5589 : input, mutable_image_headers()));
5590 : } else {
5591 0 : goto handle_unusual;
5592 : }
5593 0 : if (input->ExpectAtEnd()) goto success;
5594 0 : break;
5595 : }
5596 :
5597 : default: {
5598 : handle_unusual:
5599 0 : if (tag == 0 ||
5600 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5601 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
5602 0 : goto success;
5603 : }
5604 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(
5605 : input, tag, &unknown_fields_stream));
5606 0 : break;
5607 : }
5608 : }
5609 0 : }
5610 : success:
5611 : // @@protoc_insertion_point(parse_success:safe_browsing.ClientDownloadRequest.ArchivedBinary)
5612 0 : return true;
5613 : failure:
5614 : // @@protoc_insertion_point(parse_failure:safe_browsing.ClientDownloadRequest.ArchivedBinary)
5615 0 : return false;
5616 : #undef DO_
5617 : }
5618 :
5619 0 : void ClientDownloadRequest_ArchivedBinary::SerializeWithCachedSizes(
5620 : ::google::protobuf::io::CodedOutputStream* output) const {
5621 : // @@protoc_insertion_point(serialize_start:safe_browsing.ClientDownloadRequest.ArchivedBinary)
5622 : // optional string file_basename = 1;
5623 0 : if (has_file_basename()) {
5624 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
5625 0 : 1, this->file_basename(), output);
5626 : }
5627 :
5628 : // optional .safe_browsing.ClientDownloadRequest.DownloadType download_type = 2;
5629 0 : if (has_download_type()) {
5630 0 : ::google::protobuf::internal::WireFormatLite::WriteEnum(
5631 0 : 2, this->download_type(), output);
5632 : }
5633 :
5634 : // optional .safe_browsing.ClientDownloadRequest.Digests digests = 3;
5635 0 : if (has_digests()) {
5636 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
5637 0 : 3, this->digests(), output);
5638 : }
5639 :
5640 : // optional int64 length = 4;
5641 0 : if (has_length()) {
5642 0 : ::google::protobuf::internal::WireFormatLite::WriteInt64(4, this->length(), output);
5643 : }
5644 :
5645 : // optional .safe_browsing.ClientDownloadRequest.SignatureInfo signature = 5;
5646 0 : if (has_signature()) {
5647 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
5648 0 : 5, this->signature(), output);
5649 : }
5650 :
5651 : // optional .safe_browsing.ClientDownloadRequest.ImageHeaders image_headers = 6;
5652 0 : if (has_image_headers()) {
5653 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
5654 0 : 6, this->image_headers(), output);
5655 : }
5656 :
5657 0 : output->WriteRaw(unknown_fields().data(),
5658 0 : unknown_fields().size());
5659 : // @@protoc_insertion_point(serialize_end:safe_browsing.ClientDownloadRequest.ArchivedBinary)
5660 0 : }
5661 :
5662 0 : int ClientDownloadRequest_ArchivedBinary::ByteSize() const {
5663 0 : int total_size = 0;
5664 :
5665 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
5666 : // optional string file_basename = 1;
5667 0 : if (has_file_basename()) {
5668 0 : total_size += 1 +
5669 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
5670 : this->file_basename());
5671 : }
5672 :
5673 : // optional .safe_browsing.ClientDownloadRequest.DownloadType download_type = 2;
5674 0 : if (has_download_type()) {
5675 0 : total_size += 1 +
5676 0 : ::google::protobuf::internal::WireFormatLite::EnumSize(this->download_type());
5677 : }
5678 :
5679 : // optional .safe_browsing.ClientDownloadRequest.Digests digests = 3;
5680 0 : if (has_digests()) {
5681 0 : total_size += 1 +
5682 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
5683 : this->digests());
5684 : }
5685 :
5686 : // optional int64 length = 4;
5687 0 : if (has_length()) {
5688 0 : total_size += 1 +
5689 0 : ::google::protobuf::internal::WireFormatLite::Int64Size(
5690 : this->length());
5691 : }
5692 :
5693 : // optional .safe_browsing.ClientDownloadRequest.SignatureInfo signature = 5;
5694 0 : if (has_signature()) {
5695 0 : total_size += 1 +
5696 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
5697 : this->signature());
5698 : }
5699 :
5700 : // optional .safe_browsing.ClientDownloadRequest.ImageHeaders image_headers = 6;
5701 0 : if (has_image_headers()) {
5702 0 : total_size += 1 +
5703 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
5704 : this->image_headers());
5705 : }
5706 :
5707 : }
5708 0 : total_size += unknown_fields().size();
5709 :
5710 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5711 0 : _cached_size_ = total_size;
5712 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
5713 0 : return total_size;
5714 : }
5715 :
5716 0 : void ClientDownloadRequest_ArchivedBinary::CheckTypeAndMergeFrom(
5717 : const ::google::protobuf::MessageLite& from) {
5718 0 : MergeFrom(*::google::protobuf::down_cast<const ClientDownloadRequest_ArchivedBinary*>(&from));
5719 0 : }
5720 :
5721 0 : void ClientDownloadRequest_ArchivedBinary::MergeFrom(const ClientDownloadRequest_ArchivedBinary& from) {
5722 0 : GOOGLE_CHECK_NE(&from, this);
5723 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
5724 0 : if (from.has_file_basename()) {
5725 0 : set_file_basename(from.file_basename());
5726 : }
5727 0 : if (from.has_download_type()) {
5728 0 : set_download_type(from.download_type());
5729 : }
5730 0 : if (from.has_digests()) {
5731 0 : mutable_digests()->::safe_browsing::ClientDownloadRequest_Digests::MergeFrom(from.digests());
5732 : }
5733 0 : if (from.has_length()) {
5734 0 : set_length(from.length());
5735 : }
5736 0 : if (from.has_signature()) {
5737 0 : mutable_signature()->::safe_browsing::ClientDownloadRequest_SignatureInfo::MergeFrom(from.signature());
5738 : }
5739 0 : if (from.has_image_headers()) {
5740 0 : mutable_image_headers()->::safe_browsing::ClientDownloadRequest_ImageHeaders::MergeFrom(from.image_headers());
5741 : }
5742 : }
5743 0 : mutable_unknown_fields()->append(from.unknown_fields());
5744 0 : }
5745 :
5746 0 : void ClientDownloadRequest_ArchivedBinary::CopyFrom(const ClientDownloadRequest_ArchivedBinary& from) {
5747 0 : if (&from == this) return;
5748 0 : Clear();
5749 0 : MergeFrom(from);
5750 : }
5751 :
5752 0 : bool ClientDownloadRequest_ArchivedBinary::IsInitialized() const {
5753 :
5754 0 : if (has_signature()) {
5755 0 : if (!this->signature().IsInitialized()) return false;
5756 : }
5757 0 : if (has_image_headers()) {
5758 0 : if (!this->image_headers().IsInitialized()) return false;
5759 : }
5760 0 : return true;
5761 : }
5762 :
5763 0 : void ClientDownloadRequest_ArchivedBinary::Swap(ClientDownloadRequest_ArchivedBinary* other) {
5764 0 : if (other != this) {
5765 0 : std::swap(file_basename_, other->file_basename_);
5766 0 : std::swap(download_type_, other->download_type_);
5767 0 : std::swap(digests_, other->digests_);
5768 0 : std::swap(length_, other->length_);
5769 0 : std::swap(signature_, other->signature_);
5770 0 : std::swap(image_headers_, other->image_headers_);
5771 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
5772 0 : _unknown_fields_.swap(other->_unknown_fields_);
5773 0 : std::swap(_cached_size_, other->_cached_size_);
5774 : }
5775 0 : }
5776 :
5777 0 : ::std::string ClientDownloadRequest_ArchivedBinary::GetTypeName() const {
5778 0 : return "safe_browsing.ClientDownloadRequest.ArchivedBinary";
5779 : }
5780 :
5781 :
5782 : // -------------------------------------------------------------------
5783 :
5784 0 : bool ClientDownloadRequest_URLChainEntry_URLType_IsValid(int value) {
5785 0 : switch(value) {
5786 : case 1:
5787 : case 2:
5788 : case 3:
5789 : case 4:
5790 : case 5:
5791 : case 6:
5792 0 : return true;
5793 : default:
5794 0 : return false;
5795 : }
5796 : }
5797 :
5798 : #ifndef _MSC_VER
5799 : const ClientDownloadRequest_URLChainEntry_URLType ClientDownloadRequest_URLChainEntry::DOWNLOAD_URL;
5800 : const ClientDownloadRequest_URLChainEntry_URLType ClientDownloadRequest_URLChainEntry::DOWNLOAD_REFERRER;
5801 : const ClientDownloadRequest_URLChainEntry_URLType ClientDownloadRequest_URLChainEntry::LANDING_PAGE;
5802 : const ClientDownloadRequest_URLChainEntry_URLType ClientDownloadRequest_URLChainEntry::LANDING_REFERRER;
5803 : const ClientDownloadRequest_URLChainEntry_URLType ClientDownloadRequest_URLChainEntry::CLIENT_REDIRECT;
5804 : const ClientDownloadRequest_URLChainEntry_URLType ClientDownloadRequest_URLChainEntry::SERVER_REDIRECT;
5805 : const ClientDownloadRequest_URLChainEntry_URLType ClientDownloadRequest_URLChainEntry::URLType_MIN;
5806 : const ClientDownloadRequest_URLChainEntry_URLType ClientDownloadRequest_URLChainEntry::URLType_MAX;
5807 : const int ClientDownloadRequest_URLChainEntry::URLType_ARRAYSIZE;
5808 : #endif // _MSC_VER
5809 : #ifndef _MSC_VER
5810 : const int ClientDownloadRequest_URLChainEntry::kUrlFieldNumber;
5811 : const int ClientDownloadRequest_URLChainEntry::kTypeFieldNumber;
5812 : const int ClientDownloadRequest_URLChainEntry::kIpAddressFieldNumber;
5813 : const int ClientDownloadRequest_URLChainEntry::kReferrerFieldNumber;
5814 : const int ClientDownloadRequest_URLChainEntry::kMainFrameReferrerFieldNumber;
5815 : const int ClientDownloadRequest_URLChainEntry::kIsRetargetingFieldNumber;
5816 : const int ClientDownloadRequest_URLChainEntry::kIsUserInitiatedFieldNumber;
5817 : const int ClientDownloadRequest_URLChainEntry::kTimestampInMillisecFieldNumber;
5818 : #endif // !_MSC_VER
5819 :
5820 0 : ClientDownloadRequest_URLChainEntry::ClientDownloadRequest_URLChainEntry()
5821 0 : : ::google::protobuf::MessageLite() {
5822 0 : SharedCtor();
5823 : // @@protoc_insertion_point(constructor:safe_browsing.ClientDownloadRequest.URLChainEntry)
5824 0 : }
5825 :
5826 0 : void ClientDownloadRequest_URLChainEntry::InitAsDefaultInstance() {
5827 0 : }
5828 :
5829 0 : ClientDownloadRequest_URLChainEntry::ClientDownloadRequest_URLChainEntry(const ClientDownloadRequest_URLChainEntry& from)
5830 0 : : ::google::protobuf::MessageLite() {
5831 0 : SharedCtor();
5832 0 : MergeFrom(from);
5833 : // @@protoc_insertion_point(copy_constructor:safe_browsing.ClientDownloadRequest.URLChainEntry)
5834 0 : }
5835 :
5836 0 : void ClientDownloadRequest_URLChainEntry::SharedCtor() {
5837 0 : ::google::protobuf::internal::GetEmptyString();
5838 0 : _cached_size_ = 0;
5839 0 : url_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5840 0 : type_ = 1;
5841 0 : ip_address_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5842 0 : referrer_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5843 0 : main_frame_referrer_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5844 0 : is_retargeting_ = false;
5845 0 : is_user_initiated_ = false;
5846 0 : timestamp_in_millisec_ = 0;
5847 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
5848 0 : }
5849 :
5850 0 : ClientDownloadRequest_URLChainEntry::~ClientDownloadRequest_URLChainEntry() {
5851 : // @@protoc_insertion_point(destructor:safe_browsing.ClientDownloadRequest.URLChainEntry)
5852 0 : SharedDtor();
5853 0 : }
5854 :
5855 0 : void ClientDownloadRequest_URLChainEntry::SharedDtor() {
5856 0 : if (url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
5857 0 : delete url_;
5858 : }
5859 0 : if (ip_address_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
5860 0 : delete ip_address_;
5861 : }
5862 0 : if (referrer_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
5863 0 : delete referrer_;
5864 : }
5865 0 : if (main_frame_referrer_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
5866 0 : delete main_frame_referrer_;
5867 : }
5868 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
5869 0 : if (this != &default_instance()) {
5870 : #else
5871 : if (this != default_instance_) {
5872 : #endif
5873 : }
5874 0 : }
5875 :
5876 0 : void ClientDownloadRequest_URLChainEntry::SetCachedSize(int size) const {
5877 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5878 0 : _cached_size_ = size;
5879 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
5880 0 : }
5881 0 : const ClientDownloadRequest_URLChainEntry& ClientDownloadRequest_URLChainEntry::default_instance() {
5882 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
5883 0 : protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
5884 : #else
5885 : if (default_instance_ == NULL) protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
5886 : #endif
5887 0 : return *default_instance_;
5888 : }
5889 :
5890 : ClientDownloadRequest_URLChainEntry* ClientDownloadRequest_URLChainEntry::default_instance_ = NULL;
5891 :
5892 0 : ClientDownloadRequest_URLChainEntry* ClientDownloadRequest_URLChainEntry::New() const {
5893 0 : return new ClientDownloadRequest_URLChainEntry;
5894 : }
5895 :
5896 0 : void ClientDownloadRequest_URLChainEntry::Clear() {
5897 : #define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \
5898 : &reinterpret_cast<ClientDownloadRequest_URLChainEntry*>(16)->f) - \
5899 : reinterpret_cast<char*>(16))
5900 :
5901 : #define ZR_(first, last) do { \
5902 : size_t f = OFFSET_OF_FIELD_(first); \
5903 : size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \
5904 : ::memset(&first, 0, n); \
5905 : } while (0)
5906 :
5907 0 : if (_has_bits_[0 / 32] & 255) {
5908 0 : ZR_(is_retargeting_, timestamp_in_millisec_);
5909 0 : if (has_url()) {
5910 0 : if (url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
5911 0 : url_->clear();
5912 : }
5913 : }
5914 0 : type_ = 1;
5915 0 : if (has_ip_address()) {
5916 0 : if (ip_address_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
5917 0 : ip_address_->clear();
5918 : }
5919 : }
5920 0 : if (has_referrer()) {
5921 0 : if (referrer_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
5922 0 : referrer_->clear();
5923 : }
5924 : }
5925 0 : if (has_main_frame_referrer()) {
5926 0 : if (main_frame_referrer_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
5927 0 : main_frame_referrer_->clear();
5928 : }
5929 : }
5930 : }
5931 :
5932 : #undef OFFSET_OF_FIELD_
5933 : #undef ZR_
5934 :
5935 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
5936 0 : mutable_unknown_fields()->clear();
5937 0 : }
5938 :
5939 0 : bool ClientDownloadRequest_URLChainEntry::MergePartialFromCodedStream(
5940 : ::google::protobuf::io::CodedInputStream* input) {
5941 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
5942 : ::google::protobuf::uint32 tag;
5943 : ::google::protobuf::io::StringOutputStream unknown_fields_string(
5944 0 : mutable_unknown_fields());
5945 : ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
5946 0 : &unknown_fields_string);
5947 : // @@protoc_insertion_point(parse_start:safe_browsing.ClientDownloadRequest.URLChainEntry)
5948 : for (;;) {
5949 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
5950 0 : tag = p.first;
5951 0 : if (!p.second) goto handle_unusual;
5952 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5953 : // optional string url = 1;
5954 : case 1: {
5955 0 : if (tag == 10) {
5956 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
5957 : input, this->mutable_url()));
5958 : } else {
5959 0 : goto handle_unusual;
5960 : }
5961 0 : if (input->ExpectTag(16)) goto parse_type;
5962 0 : break;
5963 : }
5964 :
5965 : // optional .safe_browsing.ClientDownloadRequest.URLChainEntry.URLType type = 2;
5966 : case 2: {
5967 0 : if (tag == 16) {
5968 : parse_type:
5969 : int value;
5970 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5971 : int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
5972 : input, &value)));
5973 0 : if (::safe_browsing::ClientDownloadRequest_URLChainEntry_URLType_IsValid(value)) {
5974 0 : set_type(static_cast< ::safe_browsing::ClientDownloadRequest_URLChainEntry_URLType >(value));
5975 : } else {
5976 0 : unknown_fields_stream.WriteVarint32(tag);
5977 0 : unknown_fields_stream.WriteVarint32(value);
5978 : }
5979 : } else {
5980 0 : goto handle_unusual;
5981 : }
5982 0 : if (input->ExpectTag(26)) goto parse_ip_address;
5983 0 : break;
5984 : }
5985 :
5986 : // optional string ip_address = 3;
5987 : case 3: {
5988 0 : if (tag == 26) {
5989 : parse_ip_address:
5990 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
5991 : input, this->mutable_ip_address()));
5992 : } else {
5993 0 : goto handle_unusual;
5994 : }
5995 0 : if (input->ExpectTag(34)) goto parse_referrer;
5996 0 : break;
5997 : }
5998 :
5999 : // optional string referrer = 4;
6000 : case 4: {
6001 0 : if (tag == 34) {
6002 : parse_referrer:
6003 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6004 : input, this->mutable_referrer()));
6005 : } else {
6006 0 : goto handle_unusual;
6007 : }
6008 0 : if (input->ExpectTag(42)) goto parse_main_frame_referrer;
6009 0 : break;
6010 : }
6011 :
6012 : // optional string main_frame_referrer = 5;
6013 : case 5: {
6014 0 : if (tag == 42) {
6015 : parse_main_frame_referrer:
6016 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6017 : input, this->mutable_main_frame_referrer()));
6018 : } else {
6019 0 : goto handle_unusual;
6020 : }
6021 0 : if (input->ExpectTag(48)) goto parse_is_retargeting;
6022 0 : break;
6023 : }
6024 :
6025 : // optional bool is_retargeting = 6;
6026 : case 6: {
6027 0 : if (tag == 48) {
6028 : parse_is_retargeting:
6029 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6030 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
6031 : input, &is_retargeting_)));
6032 0 : set_has_is_retargeting();
6033 : } else {
6034 0 : goto handle_unusual;
6035 : }
6036 0 : if (input->ExpectTag(56)) goto parse_is_user_initiated;
6037 0 : break;
6038 : }
6039 :
6040 : // optional bool is_user_initiated = 7;
6041 : case 7: {
6042 0 : if (tag == 56) {
6043 : parse_is_user_initiated:
6044 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6045 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
6046 : input, &is_user_initiated_)));
6047 0 : set_has_is_user_initiated();
6048 : } else {
6049 0 : goto handle_unusual;
6050 : }
6051 0 : if (input->ExpectTag(65)) goto parse_timestamp_in_millisec;
6052 0 : break;
6053 : }
6054 :
6055 : // optional double timestamp_in_millisec = 8;
6056 : case 8: {
6057 0 : if (tag == 65) {
6058 : parse_timestamp_in_millisec:
6059 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6060 : double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
6061 : input, ×tamp_in_millisec_)));
6062 0 : set_has_timestamp_in_millisec();
6063 : } else {
6064 0 : goto handle_unusual;
6065 : }
6066 0 : if (input->ExpectAtEnd()) goto success;
6067 0 : break;
6068 : }
6069 :
6070 : default: {
6071 : handle_unusual:
6072 0 : if (tag == 0 ||
6073 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6074 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
6075 0 : goto success;
6076 : }
6077 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(
6078 : input, tag, &unknown_fields_stream));
6079 0 : break;
6080 : }
6081 : }
6082 0 : }
6083 : success:
6084 : // @@protoc_insertion_point(parse_success:safe_browsing.ClientDownloadRequest.URLChainEntry)
6085 0 : return true;
6086 : failure:
6087 : // @@protoc_insertion_point(parse_failure:safe_browsing.ClientDownloadRequest.URLChainEntry)
6088 0 : return false;
6089 : #undef DO_
6090 : }
6091 :
6092 0 : void ClientDownloadRequest_URLChainEntry::SerializeWithCachedSizes(
6093 : ::google::protobuf::io::CodedOutputStream* output) const {
6094 : // @@protoc_insertion_point(serialize_start:safe_browsing.ClientDownloadRequest.URLChainEntry)
6095 : // optional string url = 1;
6096 0 : if (has_url()) {
6097 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
6098 0 : 1, this->url(), output);
6099 : }
6100 :
6101 : // optional .safe_browsing.ClientDownloadRequest.URLChainEntry.URLType type = 2;
6102 0 : if (has_type()) {
6103 0 : ::google::protobuf::internal::WireFormatLite::WriteEnum(
6104 0 : 2, this->type(), output);
6105 : }
6106 :
6107 : // optional string ip_address = 3;
6108 0 : if (has_ip_address()) {
6109 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
6110 0 : 3, this->ip_address(), output);
6111 : }
6112 :
6113 : // optional string referrer = 4;
6114 0 : if (has_referrer()) {
6115 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
6116 0 : 4, this->referrer(), output);
6117 : }
6118 :
6119 : // optional string main_frame_referrer = 5;
6120 0 : if (has_main_frame_referrer()) {
6121 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
6122 0 : 5, this->main_frame_referrer(), output);
6123 : }
6124 :
6125 : // optional bool is_retargeting = 6;
6126 0 : if (has_is_retargeting()) {
6127 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->is_retargeting(), output);
6128 : }
6129 :
6130 : // optional bool is_user_initiated = 7;
6131 0 : if (has_is_user_initiated()) {
6132 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->is_user_initiated(), output);
6133 : }
6134 :
6135 : // optional double timestamp_in_millisec = 8;
6136 0 : if (has_timestamp_in_millisec()) {
6137 0 : ::google::protobuf::internal::WireFormatLite::WriteDouble(8, this->timestamp_in_millisec(), output);
6138 : }
6139 :
6140 0 : output->WriteRaw(unknown_fields().data(),
6141 0 : unknown_fields().size());
6142 : // @@protoc_insertion_point(serialize_end:safe_browsing.ClientDownloadRequest.URLChainEntry)
6143 0 : }
6144 :
6145 0 : int ClientDownloadRequest_URLChainEntry::ByteSize() const {
6146 0 : int total_size = 0;
6147 :
6148 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
6149 : // optional string url = 1;
6150 0 : if (has_url()) {
6151 0 : total_size += 1 +
6152 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
6153 : this->url());
6154 : }
6155 :
6156 : // optional .safe_browsing.ClientDownloadRequest.URLChainEntry.URLType type = 2;
6157 0 : if (has_type()) {
6158 0 : total_size += 1 +
6159 0 : ::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
6160 : }
6161 :
6162 : // optional string ip_address = 3;
6163 0 : if (has_ip_address()) {
6164 0 : total_size += 1 +
6165 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
6166 : this->ip_address());
6167 : }
6168 :
6169 : // optional string referrer = 4;
6170 0 : if (has_referrer()) {
6171 0 : total_size += 1 +
6172 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
6173 : this->referrer());
6174 : }
6175 :
6176 : // optional string main_frame_referrer = 5;
6177 0 : if (has_main_frame_referrer()) {
6178 0 : total_size += 1 +
6179 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
6180 : this->main_frame_referrer());
6181 : }
6182 :
6183 : // optional bool is_retargeting = 6;
6184 0 : if (has_is_retargeting()) {
6185 0 : total_size += 1 + 1;
6186 : }
6187 :
6188 : // optional bool is_user_initiated = 7;
6189 0 : if (has_is_user_initiated()) {
6190 0 : total_size += 1 + 1;
6191 : }
6192 :
6193 : // optional double timestamp_in_millisec = 8;
6194 0 : if (has_timestamp_in_millisec()) {
6195 0 : total_size += 1 + 8;
6196 : }
6197 :
6198 : }
6199 0 : total_size += unknown_fields().size();
6200 :
6201 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6202 0 : _cached_size_ = total_size;
6203 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
6204 0 : return total_size;
6205 : }
6206 :
6207 0 : void ClientDownloadRequest_URLChainEntry::CheckTypeAndMergeFrom(
6208 : const ::google::protobuf::MessageLite& from) {
6209 0 : MergeFrom(*::google::protobuf::down_cast<const ClientDownloadRequest_URLChainEntry*>(&from));
6210 0 : }
6211 :
6212 0 : void ClientDownloadRequest_URLChainEntry::MergeFrom(const ClientDownloadRequest_URLChainEntry& from) {
6213 0 : GOOGLE_CHECK_NE(&from, this);
6214 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
6215 0 : if (from.has_url()) {
6216 0 : set_url(from.url());
6217 : }
6218 0 : if (from.has_type()) {
6219 0 : set_type(from.type());
6220 : }
6221 0 : if (from.has_ip_address()) {
6222 0 : set_ip_address(from.ip_address());
6223 : }
6224 0 : if (from.has_referrer()) {
6225 0 : set_referrer(from.referrer());
6226 : }
6227 0 : if (from.has_main_frame_referrer()) {
6228 0 : set_main_frame_referrer(from.main_frame_referrer());
6229 : }
6230 0 : if (from.has_is_retargeting()) {
6231 0 : set_is_retargeting(from.is_retargeting());
6232 : }
6233 0 : if (from.has_is_user_initiated()) {
6234 0 : set_is_user_initiated(from.is_user_initiated());
6235 : }
6236 0 : if (from.has_timestamp_in_millisec()) {
6237 0 : set_timestamp_in_millisec(from.timestamp_in_millisec());
6238 : }
6239 : }
6240 0 : mutable_unknown_fields()->append(from.unknown_fields());
6241 0 : }
6242 :
6243 0 : void ClientDownloadRequest_URLChainEntry::CopyFrom(const ClientDownloadRequest_URLChainEntry& from) {
6244 0 : if (&from == this) return;
6245 0 : Clear();
6246 0 : MergeFrom(from);
6247 : }
6248 :
6249 0 : bool ClientDownloadRequest_URLChainEntry::IsInitialized() const {
6250 :
6251 0 : return true;
6252 : }
6253 :
6254 0 : void ClientDownloadRequest_URLChainEntry::Swap(ClientDownloadRequest_URLChainEntry* other) {
6255 0 : if (other != this) {
6256 0 : std::swap(url_, other->url_);
6257 0 : std::swap(type_, other->type_);
6258 0 : std::swap(ip_address_, other->ip_address_);
6259 0 : std::swap(referrer_, other->referrer_);
6260 0 : std::swap(main_frame_referrer_, other->main_frame_referrer_);
6261 0 : std::swap(is_retargeting_, other->is_retargeting_);
6262 0 : std::swap(is_user_initiated_, other->is_user_initiated_);
6263 0 : std::swap(timestamp_in_millisec_, other->timestamp_in_millisec_);
6264 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
6265 0 : _unknown_fields_.swap(other->_unknown_fields_);
6266 0 : std::swap(_cached_size_, other->_cached_size_);
6267 : }
6268 0 : }
6269 :
6270 0 : ::std::string ClientDownloadRequest_URLChainEntry::GetTypeName() const {
6271 0 : return "safe_browsing.ClientDownloadRequest.URLChainEntry";
6272 : }
6273 :
6274 :
6275 : // -------------------------------------------------------------------
6276 :
6277 : #ifndef _MSC_VER
6278 : const int ClientDownloadRequest::kUrlFieldNumber;
6279 : const int ClientDownloadRequest::kDigestsFieldNumber;
6280 : const int ClientDownloadRequest::kLengthFieldNumber;
6281 : const int ClientDownloadRequest::kResourcesFieldNumber;
6282 : const int ClientDownloadRequest::kSignatureFieldNumber;
6283 : const int ClientDownloadRequest::kUserInitiatedFieldNumber;
6284 : const int ClientDownloadRequest::kFileBasenameFieldNumber;
6285 : const int ClientDownloadRequest::kDownloadTypeFieldNumber;
6286 : const int ClientDownloadRequest::kLocaleFieldNumber;
6287 : const int ClientDownloadRequest::kImageHeadersFieldNumber;
6288 : const int ClientDownloadRequest::kArchivedBinaryFieldNumber;
6289 : const int ClientDownloadRequest::kPopulationFieldNumber;
6290 : const int ClientDownloadRequest::kArchiveValidFieldNumber;
6291 : const int ClientDownloadRequest::kSkippedUrlWhitelistFieldNumber;
6292 : const int ClientDownloadRequest::kSkippedCertificateWhitelistFieldNumber;
6293 : const int ClientDownloadRequest::kAlternateExtensionsFieldNumber;
6294 : const int ClientDownloadRequest::kUrlChainFieldNumber;
6295 : #endif // !_MSC_VER
6296 :
6297 0 : ClientDownloadRequest::ClientDownloadRequest()
6298 0 : : ::google::protobuf::MessageLite() {
6299 0 : SharedCtor();
6300 : // @@protoc_insertion_point(constructor:safe_browsing.ClientDownloadRequest)
6301 0 : }
6302 :
6303 0 : void ClientDownloadRequest::InitAsDefaultInstance() {
6304 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
6305 0 : digests_ = const_cast< ::safe_browsing::ClientDownloadRequest_Digests*>(
6306 0 : ::safe_browsing::ClientDownloadRequest_Digests::internal_default_instance());
6307 : #else
6308 : digests_ = const_cast< ::safe_browsing::ClientDownloadRequest_Digests*>(&::safe_browsing::ClientDownloadRequest_Digests::default_instance());
6309 : #endif
6310 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
6311 0 : signature_ = const_cast< ::safe_browsing::ClientDownloadRequest_SignatureInfo*>(
6312 0 : ::safe_browsing::ClientDownloadRequest_SignatureInfo::internal_default_instance());
6313 : #else
6314 : signature_ = const_cast< ::safe_browsing::ClientDownloadRequest_SignatureInfo*>(&::safe_browsing::ClientDownloadRequest_SignatureInfo::default_instance());
6315 : #endif
6316 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
6317 0 : image_headers_ = const_cast< ::safe_browsing::ClientDownloadRequest_ImageHeaders*>(
6318 0 : ::safe_browsing::ClientDownloadRequest_ImageHeaders::internal_default_instance());
6319 : #else
6320 : image_headers_ = const_cast< ::safe_browsing::ClientDownloadRequest_ImageHeaders*>(&::safe_browsing::ClientDownloadRequest_ImageHeaders::default_instance());
6321 : #endif
6322 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
6323 0 : population_ = const_cast< ::safe_browsing::ChromeUserPopulation*>(
6324 0 : ::safe_browsing::ChromeUserPopulation::internal_default_instance());
6325 : #else
6326 : population_ = const_cast< ::safe_browsing::ChromeUserPopulation*>(&::safe_browsing::ChromeUserPopulation::default_instance());
6327 : #endif
6328 0 : }
6329 :
6330 0 : ClientDownloadRequest::ClientDownloadRequest(const ClientDownloadRequest& from)
6331 0 : : ::google::protobuf::MessageLite() {
6332 0 : SharedCtor();
6333 0 : MergeFrom(from);
6334 : // @@protoc_insertion_point(copy_constructor:safe_browsing.ClientDownloadRequest)
6335 0 : }
6336 :
6337 0 : void ClientDownloadRequest::SharedCtor() {
6338 0 : ::google::protobuf::internal::GetEmptyString();
6339 0 : _cached_size_ = 0;
6340 0 : url_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6341 0 : digests_ = NULL;
6342 0 : length_ = GOOGLE_LONGLONG(0);
6343 0 : signature_ = NULL;
6344 0 : user_initiated_ = false;
6345 0 : file_basename_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6346 0 : download_type_ = 0;
6347 0 : locale_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6348 0 : image_headers_ = NULL;
6349 0 : population_ = NULL;
6350 0 : archive_valid_ = false;
6351 0 : skipped_url_whitelist_ = false;
6352 0 : skipped_certificate_whitelist_ = false;
6353 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
6354 0 : }
6355 :
6356 0 : ClientDownloadRequest::~ClientDownloadRequest() {
6357 : // @@protoc_insertion_point(destructor:safe_browsing.ClientDownloadRequest)
6358 0 : SharedDtor();
6359 0 : }
6360 :
6361 0 : void ClientDownloadRequest::SharedDtor() {
6362 0 : if (url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
6363 0 : delete url_;
6364 : }
6365 0 : if (file_basename_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
6366 0 : delete file_basename_;
6367 : }
6368 0 : if (locale_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
6369 0 : delete locale_;
6370 : }
6371 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
6372 0 : if (this != &default_instance()) {
6373 : #else
6374 : if (this != default_instance_) {
6375 : #endif
6376 0 : delete digests_;
6377 0 : delete signature_;
6378 0 : delete image_headers_;
6379 0 : delete population_;
6380 : }
6381 0 : }
6382 :
6383 0 : void ClientDownloadRequest::SetCachedSize(int size) const {
6384 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6385 0 : _cached_size_ = size;
6386 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
6387 0 : }
6388 0 : const ClientDownloadRequest& ClientDownloadRequest::default_instance() {
6389 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
6390 0 : protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
6391 : #else
6392 : if (default_instance_ == NULL) protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
6393 : #endif
6394 0 : return *default_instance_;
6395 : }
6396 :
6397 : ClientDownloadRequest* ClientDownloadRequest::default_instance_ = NULL;
6398 :
6399 0 : ClientDownloadRequest* ClientDownloadRequest::New() const {
6400 0 : return new ClientDownloadRequest;
6401 : }
6402 :
6403 0 : void ClientDownloadRequest::Clear() {
6404 : #define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \
6405 : &reinterpret_cast<ClientDownloadRequest*>(16)->f) - \
6406 : reinterpret_cast<char*>(16))
6407 :
6408 : #define ZR_(first, last) do { \
6409 : size_t f = OFFSET_OF_FIELD_(first); \
6410 : size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \
6411 : ::memset(&first, 0, n); \
6412 : } while (0)
6413 :
6414 0 : if (_has_bits_[0 / 32] & 247) {
6415 0 : ZR_(download_type_, user_initiated_);
6416 0 : if (has_url()) {
6417 0 : if (url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
6418 0 : url_->clear();
6419 : }
6420 : }
6421 0 : if (has_digests()) {
6422 0 : if (digests_ != NULL) digests_->::safe_browsing::ClientDownloadRequest_Digests::Clear();
6423 : }
6424 0 : length_ = GOOGLE_LONGLONG(0);
6425 0 : if (has_signature()) {
6426 0 : if (signature_ != NULL) signature_->::safe_browsing::ClientDownloadRequest_SignatureInfo::Clear();
6427 : }
6428 0 : if (has_file_basename()) {
6429 0 : if (file_basename_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
6430 0 : file_basename_->clear();
6431 : }
6432 : }
6433 : }
6434 0 : if (_has_bits_[8 / 32] & 31488) {
6435 0 : ZR_(archive_valid_, skipped_certificate_whitelist_);
6436 0 : if (has_locale()) {
6437 0 : if (locale_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
6438 0 : locale_->clear();
6439 : }
6440 : }
6441 0 : if (has_image_headers()) {
6442 0 : if (image_headers_ != NULL) image_headers_->::safe_browsing::ClientDownloadRequest_ImageHeaders::Clear();
6443 : }
6444 0 : if (has_population()) {
6445 0 : if (population_ != NULL) population_->::safe_browsing::ChromeUserPopulation::Clear();
6446 : }
6447 : }
6448 :
6449 : #undef OFFSET_OF_FIELD_
6450 : #undef ZR_
6451 :
6452 0 : resources_.Clear();
6453 0 : archived_binary_.Clear();
6454 0 : alternate_extensions_.Clear();
6455 0 : url_chain_.Clear();
6456 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
6457 0 : mutable_unknown_fields()->clear();
6458 0 : }
6459 :
6460 0 : bool ClientDownloadRequest::MergePartialFromCodedStream(
6461 : ::google::protobuf::io::CodedInputStream* input) {
6462 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
6463 : ::google::protobuf::uint32 tag;
6464 : ::google::protobuf::io::StringOutputStream unknown_fields_string(
6465 0 : mutable_unknown_fields());
6466 : ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
6467 0 : &unknown_fields_string);
6468 : // @@protoc_insertion_point(parse_start:safe_browsing.ClientDownloadRequest)
6469 : for (;;) {
6470 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383);
6471 0 : tag = p.first;
6472 0 : if (!p.second) goto handle_unusual;
6473 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6474 : // required string url = 1;
6475 : case 1: {
6476 0 : if (tag == 10) {
6477 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6478 : input, this->mutable_url()));
6479 : } else {
6480 0 : goto handle_unusual;
6481 : }
6482 0 : if (input->ExpectTag(18)) goto parse_digests;
6483 0 : break;
6484 : }
6485 :
6486 : // required .safe_browsing.ClientDownloadRequest.Digests digests = 2;
6487 : case 2: {
6488 0 : if (tag == 18) {
6489 : parse_digests:
6490 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
6491 : input, mutable_digests()));
6492 : } else {
6493 0 : goto handle_unusual;
6494 : }
6495 0 : if (input->ExpectTag(24)) goto parse_length;
6496 0 : break;
6497 : }
6498 :
6499 : // required int64 length = 3;
6500 : case 3: {
6501 0 : if (tag == 24) {
6502 : parse_length:
6503 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6504 : ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
6505 : input, &length_)));
6506 0 : set_has_length();
6507 : } else {
6508 0 : goto handle_unusual;
6509 : }
6510 0 : if (input->ExpectTag(34)) goto parse_resources;
6511 0 : break;
6512 : }
6513 :
6514 : // repeated .safe_browsing.ClientDownloadRequest.Resource resources = 4;
6515 : case 4: {
6516 0 : if (tag == 34) {
6517 : parse_resources:
6518 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
6519 : input, add_resources()));
6520 : } else {
6521 0 : goto handle_unusual;
6522 : }
6523 0 : if (input->ExpectTag(34)) goto parse_resources;
6524 0 : if (input->ExpectTag(42)) goto parse_signature;
6525 0 : break;
6526 : }
6527 :
6528 : // optional .safe_browsing.ClientDownloadRequest.SignatureInfo signature = 5;
6529 : case 5: {
6530 0 : if (tag == 42) {
6531 : parse_signature:
6532 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
6533 : input, mutable_signature()));
6534 : } else {
6535 0 : goto handle_unusual;
6536 : }
6537 0 : if (input->ExpectTag(48)) goto parse_user_initiated;
6538 0 : break;
6539 : }
6540 :
6541 : // optional bool user_initiated = 6;
6542 : case 6: {
6543 0 : if (tag == 48) {
6544 : parse_user_initiated:
6545 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6546 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
6547 : input, &user_initiated_)));
6548 0 : set_has_user_initiated();
6549 : } else {
6550 0 : goto handle_unusual;
6551 : }
6552 0 : if (input->ExpectTag(74)) goto parse_file_basename;
6553 0 : break;
6554 : }
6555 :
6556 : // optional string file_basename = 9;
6557 : case 9: {
6558 0 : if (tag == 74) {
6559 : parse_file_basename:
6560 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6561 : input, this->mutable_file_basename()));
6562 : } else {
6563 0 : goto handle_unusual;
6564 : }
6565 0 : if (input->ExpectTag(80)) goto parse_download_type;
6566 0 : break;
6567 : }
6568 :
6569 : // optional .safe_browsing.ClientDownloadRequest.DownloadType download_type = 10 [default = WIN_EXECUTABLE];
6570 : case 10: {
6571 0 : if (tag == 80) {
6572 : parse_download_type:
6573 : int value;
6574 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6575 : int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
6576 : input, &value)));
6577 0 : if (::safe_browsing::ClientDownloadRequest_DownloadType_IsValid(value)) {
6578 0 : set_download_type(static_cast< ::safe_browsing::ClientDownloadRequest_DownloadType >(value));
6579 : } else {
6580 0 : unknown_fields_stream.WriteVarint32(tag);
6581 0 : unknown_fields_stream.WriteVarint32(value);
6582 : }
6583 : } else {
6584 0 : goto handle_unusual;
6585 : }
6586 0 : if (input->ExpectTag(90)) goto parse_locale;
6587 0 : break;
6588 : }
6589 :
6590 : // optional string locale = 11;
6591 : case 11: {
6592 0 : if (tag == 90) {
6593 : parse_locale:
6594 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6595 : input, this->mutable_locale()));
6596 : } else {
6597 0 : goto handle_unusual;
6598 : }
6599 0 : if (input->ExpectTag(146)) goto parse_image_headers;
6600 0 : break;
6601 : }
6602 :
6603 : // optional .safe_browsing.ClientDownloadRequest.ImageHeaders image_headers = 18;
6604 : case 18: {
6605 0 : if (tag == 146) {
6606 : parse_image_headers:
6607 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
6608 : input, mutable_image_headers()));
6609 : } else {
6610 0 : goto handle_unusual;
6611 : }
6612 0 : if (input->ExpectTag(178)) goto parse_archived_binary;
6613 0 : break;
6614 : }
6615 :
6616 : // repeated .safe_browsing.ClientDownloadRequest.ArchivedBinary archived_binary = 22;
6617 : case 22: {
6618 0 : if (tag == 178) {
6619 : parse_archived_binary:
6620 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
6621 : input, add_archived_binary()));
6622 : } else {
6623 0 : goto handle_unusual;
6624 : }
6625 0 : if (input->ExpectTag(178)) goto parse_archived_binary;
6626 0 : if (input->ExpectTag(194)) goto parse_population;
6627 0 : break;
6628 : }
6629 :
6630 : // optional .safe_browsing.ChromeUserPopulation population = 24;
6631 : case 24: {
6632 0 : if (tag == 194) {
6633 : parse_population:
6634 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
6635 : input, mutable_population()));
6636 : } else {
6637 0 : goto handle_unusual;
6638 : }
6639 0 : if (input->ExpectTag(208)) goto parse_archive_valid;
6640 0 : break;
6641 : }
6642 :
6643 : // optional bool archive_valid = 26;
6644 : case 26: {
6645 0 : if (tag == 208) {
6646 : parse_archive_valid:
6647 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6648 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
6649 : input, &archive_valid_)));
6650 0 : set_has_archive_valid();
6651 : } else {
6652 0 : goto handle_unusual;
6653 : }
6654 0 : if (input->ExpectTag(224)) goto parse_skipped_url_whitelist;
6655 0 : break;
6656 : }
6657 :
6658 : // optional bool skipped_url_whitelist = 28;
6659 : case 28: {
6660 0 : if (tag == 224) {
6661 : parse_skipped_url_whitelist:
6662 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6663 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
6664 : input, &skipped_url_whitelist_)));
6665 0 : set_has_skipped_url_whitelist();
6666 : } else {
6667 0 : goto handle_unusual;
6668 : }
6669 0 : if (input->ExpectTag(248)) goto parse_skipped_certificate_whitelist;
6670 0 : break;
6671 : }
6672 :
6673 : // optional bool skipped_certificate_whitelist = 31;
6674 : case 31: {
6675 0 : if (tag == 248) {
6676 : parse_skipped_certificate_whitelist:
6677 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6678 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
6679 : input, &skipped_certificate_whitelist_)));
6680 0 : set_has_skipped_certificate_whitelist();
6681 : } else {
6682 0 : goto handle_unusual;
6683 : }
6684 0 : if (input->ExpectTag(282)) goto parse_alternate_extensions;
6685 0 : break;
6686 : }
6687 :
6688 : // repeated string alternate_extensions = 35;
6689 : case 35: {
6690 0 : if (tag == 282) {
6691 : parse_alternate_extensions:
6692 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6693 : input, this->add_alternate_extensions()));
6694 : } else {
6695 0 : goto handle_unusual;
6696 : }
6697 0 : if (input->ExpectTag(282)) goto parse_alternate_extensions;
6698 0 : if (input->ExpectTag(290)) goto parse_url_chain;
6699 0 : break;
6700 : }
6701 :
6702 : // repeated .safe_browsing.ClientDownloadRequest.URLChainEntry url_chain = 36;
6703 : case 36: {
6704 0 : if (tag == 290) {
6705 : parse_url_chain:
6706 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
6707 : input, add_url_chain()));
6708 : } else {
6709 0 : goto handle_unusual;
6710 : }
6711 0 : if (input->ExpectTag(290)) goto parse_url_chain;
6712 0 : if (input->ExpectAtEnd()) goto success;
6713 0 : break;
6714 : }
6715 :
6716 : default: {
6717 : handle_unusual:
6718 0 : if (tag == 0 ||
6719 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6720 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
6721 0 : goto success;
6722 : }
6723 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(
6724 : input, tag, &unknown_fields_stream));
6725 0 : break;
6726 : }
6727 : }
6728 0 : }
6729 : success:
6730 : // @@protoc_insertion_point(parse_success:safe_browsing.ClientDownloadRequest)
6731 0 : return true;
6732 : failure:
6733 : // @@protoc_insertion_point(parse_failure:safe_browsing.ClientDownloadRequest)
6734 0 : return false;
6735 : #undef DO_
6736 : }
6737 :
6738 0 : void ClientDownloadRequest::SerializeWithCachedSizes(
6739 : ::google::protobuf::io::CodedOutputStream* output) const {
6740 : // @@protoc_insertion_point(serialize_start:safe_browsing.ClientDownloadRequest)
6741 : // required string url = 1;
6742 0 : if (has_url()) {
6743 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
6744 0 : 1, this->url(), output);
6745 : }
6746 :
6747 : // required .safe_browsing.ClientDownloadRequest.Digests digests = 2;
6748 0 : if (has_digests()) {
6749 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
6750 0 : 2, this->digests(), output);
6751 : }
6752 :
6753 : // required int64 length = 3;
6754 0 : if (has_length()) {
6755 0 : ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->length(), output);
6756 : }
6757 :
6758 : // repeated .safe_browsing.ClientDownloadRequest.Resource resources = 4;
6759 0 : for (int i = 0; i < this->resources_size(); i++) {
6760 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
6761 0 : 4, this->resources(i), output);
6762 : }
6763 :
6764 : // optional .safe_browsing.ClientDownloadRequest.SignatureInfo signature = 5;
6765 0 : if (has_signature()) {
6766 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
6767 0 : 5, this->signature(), output);
6768 : }
6769 :
6770 : // optional bool user_initiated = 6;
6771 0 : if (has_user_initiated()) {
6772 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->user_initiated(), output);
6773 : }
6774 :
6775 : // optional string file_basename = 9;
6776 0 : if (has_file_basename()) {
6777 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
6778 0 : 9, this->file_basename(), output);
6779 : }
6780 :
6781 : // optional .safe_browsing.ClientDownloadRequest.DownloadType download_type = 10 [default = WIN_EXECUTABLE];
6782 0 : if (has_download_type()) {
6783 0 : ::google::protobuf::internal::WireFormatLite::WriteEnum(
6784 0 : 10, this->download_type(), output);
6785 : }
6786 :
6787 : // optional string locale = 11;
6788 0 : if (has_locale()) {
6789 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
6790 0 : 11, this->locale(), output);
6791 : }
6792 :
6793 : // optional .safe_browsing.ClientDownloadRequest.ImageHeaders image_headers = 18;
6794 0 : if (has_image_headers()) {
6795 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
6796 0 : 18, this->image_headers(), output);
6797 : }
6798 :
6799 : // repeated .safe_browsing.ClientDownloadRequest.ArchivedBinary archived_binary = 22;
6800 0 : for (int i = 0; i < this->archived_binary_size(); i++) {
6801 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
6802 0 : 22, this->archived_binary(i), output);
6803 : }
6804 :
6805 : // optional .safe_browsing.ChromeUserPopulation population = 24;
6806 0 : if (has_population()) {
6807 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
6808 0 : 24, this->population(), output);
6809 : }
6810 :
6811 : // optional bool archive_valid = 26;
6812 0 : if (has_archive_valid()) {
6813 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(26, this->archive_valid(), output);
6814 : }
6815 :
6816 : // optional bool skipped_url_whitelist = 28;
6817 0 : if (has_skipped_url_whitelist()) {
6818 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(28, this->skipped_url_whitelist(), output);
6819 : }
6820 :
6821 : // optional bool skipped_certificate_whitelist = 31;
6822 0 : if (has_skipped_certificate_whitelist()) {
6823 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(31, this->skipped_certificate_whitelist(), output);
6824 : }
6825 :
6826 : // repeated string alternate_extensions = 35;
6827 0 : for (int i = 0; i < this->alternate_extensions_size(); i++) {
6828 0 : ::google::protobuf::internal::WireFormatLite::WriteString(
6829 0 : 35, this->alternate_extensions(i), output);
6830 : }
6831 :
6832 : // repeated .safe_browsing.ClientDownloadRequest.URLChainEntry url_chain = 36;
6833 0 : for (int i = 0; i < this->url_chain_size(); i++) {
6834 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
6835 0 : 36, this->url_chain(i), output);
6836 : }
6837 :
6838 0 : output->WriteRaw(unknown_fields().data(),
6839 0 : unknown_fields().size());
6840 : // @@protoc_insertion_point(serialize_end:safe_browsing.ClientDownloadRequest)
6841 0 : }
6842 :
6843 0 : int ClientDownloadRequest::ByteSize() const {
6844 0 : int total_size = 0;
6845 :
6846 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
6847 : // required string url = 1;
6848 0 : if (has_url()) {
6849 0 : total_size += 1 +
6850 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
6851 : this->url());
6852 : }
6853 :
6854 : // required .safe_browsing.ClientDownloadRequest.Digests digests = 2;
6855 0 : if (has_digests()) {
6856 0 : total_size += 1 +
6857 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6858 : this->digests());
6859 : }
6860 :
6861 : // required int64 length = 3;
6862 0 : if (has_length()) {
6863 0 : total_size += 1 +
6864 0 : ::google::protobuf::internal::WireFormatLite::Int64Size(
6865 : this->length());
6866 : }
6867 :
6868 : // optional .safe_browsing.ClientDownloadRequest.SignatureInfo signature = 5;
6869 0 : if (has_signature()) {
6870 0 : total_size += 1 +
6871 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6872 : this->signature());
6873 : }
6874 :
6875 : // optional bool user_initiated = 6;
6876 0 : if (has_user_initiated()) {
6877 0 : total_size += 1 + 1;
6878 : }
6879 :
6880 : // optional string file_basename = 9;
6881 0 : if (has_file_basename()) {
6882 0 : total_size += 1 +
6883 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
6884 : this->file_basename());
6885 : }
6886 :
6887 : // optional .safe_browsing.ClientDownloadRequest.DownloadType download_type = 10 [default = WIN_EXECUTABLE];
6888 0 : if (has_download_type()) {
6889 0 : total_size += 1 +
6890 0 : ::google::protobuf::internal::WireFormatLite::EnumSize(this->download_type());
6891 : }
6892 :
6893 : }
6894 0 : if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
6895 : // optional string locale = 11;
6896 0 : if (has_locale()) {
6897 0 : total_size += 1 +
6898 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
6899 : this->locale());
6900 : }
6901 :
6902 : // optional .safe_browsing.ClientDownloadRequest.ImageHeaders image_headers = 18;
6903 0 : if (has_image_headers()) {
6904 0 : total_size += 2 +
6905 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6906 : this->image_headers());
6907 : }
6908 :
6909 : // optional .safe_browsing.ChromeUserPopulation population = 24;
6910 0 : if (has_population()) {
6911 0 : total_size += 2 +
6912 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6913 : this->population());
6914 : }
6915 :
6916 : // optional bool archive_valid = 26;
6917 0 : if (has_archive_valid()) {
6918 0 : total_size += 2 + 1;
6919 : }
6920 :
6921 : // optional bool skipped_url_whitelist = 28;
6922 0 : if (has_skipped_url_whitelist()) {
6923 0 : total_size += 2 + 1;
6924 : }
6925 :
6926 : // optional bool skipped_certificate_whitelist = 31;
6927 0 : if (has_skipped_certificate_whitelist()) {
6928 0 : total_size += 2 + 1;
6929 : }
6930 :
6931 : }
6932 : // repeated .safe_browsing.ClientDownloadRequest.Resource resources = 4;
6933 0 : total_size += 1 * this->resources_size();
6934 0 : for (int i = 0; i < this->resources_size(); i++) {
6935 0 : total_size +=
6936 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6937 : this->resources(i));
6938 : }
6939 :
6940 : // repeated .safe_browsing.ClientDownloadRequest.ArchivedBinary archived_binary = 22;
6941 0 : total_size += 2 * this->archived_binary_size();
6942 0 : for (int i = 0; i < this->archived_binary_size(); i++) {
6943 0 : total_size +=
6944 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6945 : this->archived_binary(i));
6946 : }
6947 :
6948 : // repeated string alternate_extensions = 35;
6949 0 : total_size += 2 * this->alternate_extensions_size();
6950 0 : for (int i = 0; i < this->alternate_extensions_size(); i++) {
6951 0 : total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
6952 : this->alternate_extensions(i));
6953 : }
6954 :
6955 : // repeated .safe_browsing.ClientDownloadRequest.URLChainEntry url_chain = 36;
6956 0 : total_size += 2 * this->url_chain_size();
6957 0 : for (int i = 0; i < this->url_chain_size(); i++) {
6958 0 : total_size +=
6959 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6960 : this->url_chain(i));
6961 : }
6962 :
6963 0 : total_size += unknown_fields().size();
6964 :
6965 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6966 0 : _cached_size_ = total_size;
6967 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
6968 0 : return total_size;
6969 : }
6970 :
6971 0 : void ClientDownloadRequest::CheckTypeAndMergeFrom(
6972 : const ::google::protobuf::MessageLite& from) {
6973 0 : MergeFrom(*::google::protobuf::down_cast<const ClientDownloadRequest*>(&from));
6974 0 : }
6975 :
6976 0 : void ClientDownloadRequest::MergeFrom(const ClientDownloadRequest& from) {
6977 0 : GOOGLE_CHECK_NE(&from, this);
6978 0 : resources_.MergeFrom(from.resources_);
6979 0 : archived_binary_.MergeFrom(from.archived_binary_);
6980 0 : alternate_extensions_.MergeFrom(from.alternate_extensions_);
6981 0 : url_chain_.MergeFrom(from.url_chain_);
6982 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
6983 0 : if (from.has_url()) {
6984 0 : set_url(from.url());
6985 : }
6986 0 : if (from.has_digests()) {
6987 0 : mutable_digests()->::safe_browsing::ClientDownloadRequest_Digests::MergeFrom(from.digests());
6988 : }
6989 0 : if (from.has_length()) {
6990 0 : set_length(from.length());
6991 : }
6992 0 : if (from.has_signature()) {
6993 0 : mutable_signature()->::safe_browsing::ClientDownloadRequest_SignatureInfo::MergeFrom(from.signature());
6994 : }
6995 0 : if (from.has_user_initiated()) {
6996 0 : set_user_initiated(from.user_initiated());
6997 : }
6998 0 : if (from.has_file_basename()) {
6999 0 : set_file_basename(from.file_basename());
7000 : }
7001 0 : if (from.has_download_type()) {
7002 0 : set_download_type(from.download_type());
7003 : }
7004 : }
7005 0 : if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
7006 0 : if (from.has_locale()) {
7007 0 : set_locale(from.locale());
7008 : }
7009 0 : if (from.has_image_headers()) {
7010 0 : mutable_image_headers()->::safe_browsing::ClientDownloadRequest_ImageHeaders::MergeFrom(from.image_headers());
7011 : }
7012 0 : if (from.has_population()) {
7013 0 : mutable_population()->::safe_browsing::ChromeUserPopulation::MergeFrom(from.population());
7014 : }
7015 0 : if (from.has_archive_valid()) {
7016 0 : set_archive_valid(from.archive_valid());
7017 : }
7018 0 : if (from.has_skipped_url_whitelist()) {
7019 0 : set_skipped_url_whitelist(from.skipped_url_whitelist());
7020 : }
7021 0 : if (from.has_skipped_certificate_whitelist()) {
7022 0 : set_skipped_certificate_whitelist(from.skipped_certificate_whitelist());
7023 : }
7024 : }
7025 0 : mutable_unknown_fields()->append(from.unknown_fields());
7026 0 : }
7027 :
7028 0 : void ClientDownloadRequest::CopyFrom(const ClientDownloadRequest& from) {
7029 0 : if (&from == this) return;
7030 0 : Clear();
7031 0 : MergeFrom(from);
7032 : }
7033 :
7034 0 : bool ClientDownloadRequest::IsInitialized() const {
7035 0 : if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false;
7036 :
7037 0 : if (!::google::protobuf::internal::AllAreInitialized(this->resources())) return false;
7038 0 : if (has_signature()) {
7039 0 : if (!this->signature().IsInitialized()) return false;
7040 : }
7041 0 : if (has_image_headers()) {
7042 0 : if (!this->image_headers().IsInitialized()) return false;
7043 : }
7044 0 : if (!::google::protobuf::internal::AllAreInitialized(this->archived_binary())) return false;
7045 0 : return true;
7046 : }
7047 :
7048 0 : void ClientDownloadRequest::Swap(ClientDownloadRequest* other) {
7049 0 : if (other != this) {
7050 0 : std::swap(url_, other->url_);
7051 0 : std::swap(digests_, other->digests_);
7052 0 : std::swap(length_, other->length_);
7053 0 : resources_.Swap(&other->resources_);
7054 0 : std::swap(signature_, other->signature_);
7055 0 : std::swap(user_initiated_, other->user_initiated_);
7056 0 : std::swap(file_basename_, other->file_basename_);
7057 0 : std::swap(download_type_, other->download_type_);
7058 0 : std::swap(locale_, other->locale_);
7059 0 : std::swap(image_headers_, other->image_headers_);
7060 0 : archived_binary_.Swap(&other->archived_binary_);
7061 0 : std::swap(population_, other->population_);
7062 0 : std::swap(archive_valid_, other->archive_valid_);
7063 0 : std::swap(skipped_url_whitelist_, other->skipped_url_whitelist_);
7064 0 : std::swap(skipped_certificate_whitelist_, other->skipped_certificate_whitelist_);
7065 0 : alternate_extensions_.Swap(&other->alternate_extensions_);
7066 0 : url_chain_.Swap(&other->url_chain_);
7067 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
7068 0 : _unknown_fields_.swap(other->_unknown_fields_);
7069 0 : std::swap(_cached_size_, other->_cached_size_);
7070 : }
7071 0 : }
7072 :
7073 0 : ::std::string ClientDownloadRequest::GetTypeName() const {
7074 0 : return "safe_browsing.ClientDownloadRequest";
7075 : }
7076 :
7077 :
7078 : // ===================================================================
7079 :
7080 0 : bool ClientDownloadResponse_Verdict_IsValid(int value) {
7081 0 : switch(value) {
7082 : case 0:
7083 : case 1:
7084 : case 2:
7085 : case 3:
7086 : case 4:
7087 : case 5:
7088 0 : return true;
7089 : default:
7090 0 : return false;
7091 : }
7092 : }
7093 :
7094 : #ifndef _MSC_VER
7095 : const ClientDownloadResponse_Verdict ClientDownloadResponse::SAFE;
7096 : const ClientDownloadResponse_Verdict ClientDownloadResponse::DANGEROUS;
7097 : const ClientDownloadResponse_Verdict ClientDownloadResponse::UNCOMMON;
7098 : const ClientDownloadResponse_Verdict ClientDownloadResponse::POTENTIALLY_UNWANTED;
7099 : const ClientDownloadResponse_Verdict ClientDownloadResponse::DANGEROUS_HOST;
7100 : const ClientDownloadResponse_Verdict ClientDownloadResponse::UNKNOWN;
7101 : const ClientDownloadResponse_Verdict ClientDownloadResponse::Verdict_MIN;
7102 : const ClientDownloadResponse_Verdict ClientDownloadResponse::Verdict_MAX;
7103 : const int ClientDownloadResponse::Verdict_ARRAYSIZE;
7104 : #endif // _MSC_VER
7105 : #ifndef _MSC_VER
7106 : const int ClientDownloadResponse_MoreInfo::kDescriptionFieldNumber;
7107 : const int ClientDownloadResponse_MoreInfo::kUrlFieldNumber;
7108 : #endif // !_MSC_VER
7109 :
7110 0 : ClientDownloadResponse_MoreInfo::ClientDownloadResponse_MoreInfo()
7111 0 : : ::google::protobuf::MessageLite() {
7112 0 : SharedCtor();
7113 : // @@protoc_insertion_point(constructor:safe_browsing.ClientDownloadResponse.MoreInfo)
7114 0 : }
7115 :
7116 0 : void ClientDownloadResponse_MoreInfo::InitAsDefaultInstance() {
7117 0 : }
7118 :
7119 0 : ClientDownloadResponse_MoreInfo::ClientDownloadResponse_MoreInfo(const ClientDownloadResponse_MoreInfo& from)
7120 0 : : ::google::protobuf::MessageLite() {
7121 0 : SharedCtor();
7122 0 : MergeFrom(from);
7123 : // @@protoc_insertion_point(copy_constructor:safe_browsing.ClientDownloadResponse.MoreInfo)
7124 0 : }
7125 :
7126 0 : void ClientDownloadResponse_MoreInfo::SharedCtor() {
7127 0 : ::google::protobuf::internal::GetEmptyString();
7128 0 : _cached_size_ = 0;
7129 0 : description_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7130 0 : url_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7131 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
7132 0 : }
7133 :
7134 0 : ClientDownloadResponse_MoreInfo::~ClientDownloadResponse_MoreInfo() {
7135 : // @@protoc_insertion_point(destructor:safe_browsing.ClientDownloadResponse.MoreInfo)
7136 0 : SharedDtor();
7137 0 : }
7138 :
7139 0 : void ClientDownloadResponse_MoreInfo::SharedDtor() {
7140 0 : if (description_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
7141 0 : delete description_;
7142 : }
7143 0 : if (url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
7144 0 : delete url_;
7145 : }
7146 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
7147 0 : if (this != &default_instance()) {
7148 : #else
7149 : if (this != default_instance_) {
7150 : #endif
7151 : }
7152 0 : }
7153 :
7154 0 : void ClientDownloadResponse_MoreInfo::SetCachedSize(int size) const {
7155 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7156 0 : _cached_size_ = size;
7157 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
7158 0 : }
7159 0 : const ClientDownloadResponse_MoreInfo& ClientDownloadResponse_MoreInfo::default_instance() {
7160 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
7161 0 : protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
7162 : #else
7163 : if (default_instance_ == NULL) protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
7164 : #endif
7165 0 : return *default_instance_;
7166 : }
7167 :
7168 : ClientDownloadResponse_MoreInfo* ClientDownloadResponse_MoreInfo::default_instance_ = NULL;
7169 :
7170 0 : ClientDownloadResponse_MoreInfo* ClientDownloadResponse_MoreInfo::New() const {
7171 0 : return new ClientDownloadResponse_MoreInfo;
7172 : }
7173 :
7174 0 : void ClientDownloadResponse_MoreInfo::Clear() {
7175 0 : if (_has_bits_[0 / 32] & 3) {
7176 0 : if (has_description()) {
7177 0 : if (description_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
7178 0 : description_->clear();
7179 : }
7180 : }
7181 0 : if (has_url()) {
7182 0 : if (url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
7183 0 : url_->clear();
7184 : }
7185 : }
7186 : }
7187 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
7188 0 : mutable_unknown_fields()->clear();
7189 0 : }
7190 :
7191 0 : bool ClientDownloadResponse_MoreInfo::MergePartialFromCodedStream(
7192 : ::google::protobuf::io::CodedInputStream* input) {
7193 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
7194 : ::google::protobuf::uint32 tag;
7195 : ::google::protobuf::io::StringOutputStream unknown_fields_string(
7196 0 : mutable_unknown_fields());
7197 : ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
7198 0 : &unknown_fields_string);
7199 : // @@protoc_insertion_point(parse_start:safe_browsing.ClientDownloadResponse.MoreInfo)
7200 : for (;;) {
7201 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
7202 0 : tag = p.first;
7203 0 : if (!p.second) goto handle_unusual;
7204 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
7205 : // optional string description = 1;
7206 : case 1: {
7207 0 : if (tag == 10) {
7208 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7209 : input, this->mutable_description()));
7210 : } else {
7211 0 : goto handle_unusual;
7212 : }
7213 0 : if (input->ExpectTag(18)) goto parse_url;
7214 0 : break;
7215 : }
7216 :
7217 : // optional string url = 2;
7218 : case 2: {
7219 0 : if (tag == 18) {
7220 : parse_url:
7221 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7222 : input, this->mutable_url()));
7223 : } else {
7224 0 : goto handle_unusual;
7225 : }
7226 0 : if (input->ExpectAtEnd()) goto success;
7227 0 : break;
7228 : }
7229 :
7230 : default: {
7231 : handle_unusual:
7232 0 : if (tag == 0 ||
7233 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
7234 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
7235 0 : goto success;
7236 : }
7237 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(
7238 : input, tag, &unknown_fields_stream));
7239 0 : break;
7240 : }
7241 : }
7242 0 : }
7243 : success:
7244 : // @@protoc_insertion_point(parse_success:safe_browsing.ClientDownloadResponse.MoreInfo)
7245 0 : return true;
7246 : failure:
7247 : // @@protoc_insertion_point(parse_failure:safe_browsing.ClientDownloadResponse.MoreInfo)
7248 0 : return false;
7249 : #undef DO_
7250 : }
7251 :
7252 0 : void ClientDownloadResponse_MoreInfo::SerializeWithCachedSizes(
7253 : ::google::protobuf::io::CodedOutputStream* output) const {
7254 : // @@protoc_insertion_point(serialize_start:safe_browsing.ClientDownloadResponse.MoreInfo)
7255 : // optional string description = 1;
7256 0 : if (has_description()) {
7257 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
7258 0 : 1, this->description(), output);
7259 : }
7260 :
7261 : // optional string url = 2;
7262 0 : if (has_url()) {
7263 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
7264 0 : 2, this->url(), output);
7265 : }
7266 :
7267 0 : output->WriteRaw(unknown_fields().data(),
7268 0 : unknown_fields().size());
7269 : // @@protoc_insertion_point(serialize_end:safe_browsing.ClientDownloadResponse.MoreInfo)
7270 0 : }
7271 :
7272 0 : int ClientDownloadResponse_MoreInfo::ByteSize() const {
7273 0 : int total_size = 0;
7274 :
7275 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
7276 : // optional string description = 1;
7277 0 : if (has_description()) {
7278 0 : total_size += 1 +
7279 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
7280 : this->description());
7281 : }
7282 :
7283 : // optional string url = 2;
7284 0 : if (has_url()) {
7285 0 : total_size += 1 +
7286 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
7287 : this->url());
7288 : }
7289 :
7290 : }
7291 0 : total_size += unknown_fields().size();
7292 :
7293 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7294 0 : _cached_size_ = total_size;
7295 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
7296 0 : return total_size;
7297 : }
7298 :
7299 0 : void ClientDownloadResponse_MoreInfo::CheckTypeAndMergeFrom(
7300 : const ::google::protobuf::MessageLite& from) {
7301 0 : MergeFrom(*::google::protobuf::down_cast<const ClientDownloadResponse_MoreInfo*>(&from));
7302 0 : }
7303 :
7304 0 : void ClientDownloadResponse_MoreInfo::MergeFrom(const ClientDownloadResponse_MoreInfo& from) {
7305 0 : GOOGLE_CHECK_NE(&from, this);
7306 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
7307 0 : if (from.has_description()) {
7308 0 : set_description(from.description());
7309 : }
7310 0 : if (from.has_url()) {
7311 0 : set_url(from.url());
7312 : }
7313 : }
7314 0 : mutable_unknown_fields()->append(from.unknown_fields());
7315 0 : }
7316 :
7317 0 : void ClientDownloadResponse_MoreInfo::CopyFrom(const ClientDownloadResponse_MoreInfo& from) {
7318 0 : if (&from == this) return;
7319 0 : Clear();
7320 0 : MergeFrom(from);
7321 : }
7322 :
7323 0 : bool ClientDownloadResponse_MoreInfo::IsInitialized() const {
7324 :
7325 0 : return true;
7326 : }
7327 :
7328 0 : void ClientDownloadResponse_MoreInfo::Swap(ClientDownloadResponse_MoreInfo* other) {
7329 0 : if (other != this) {
7330 0 : std::swap(description_, other->description_);
7331 0 : std::swap(url_, other->url_);
7332 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
7333 0 : _unknown_fields_.swap(other->_unknown_fields_);
7334 0 : std::swap(_cached_size_, other->_cached_size_);
7335 : }
7336 0 : }
7337 :
7338 0 : ::std::string ClientDownloadResponse_MoreInfo::GetTypeName() const {
7339 0 : return "safe_browsing.ClientDownloadResponse.MoreInfo";
7340 : }
7341 :
7342 :
7343 : // -------------------------------------------------------------------
7344 :
7345 : #ifndef _MSC_VER
7346 : const int ClientDownloadResponse::kVerdictFieldNumber;
7347 : const int ClientDownloadResponse::kMoreInfoFieldNumber;
7348 : const int ClientDownloadResponse::kTokenFieldNumber;
7349 : #endif // !_MSC_VER
7350 :
7351 0 : ClientDownloadResponse::ClientDownloadResponse()
7352 0 : : ::google::protobuf::MessageLite() {
7353 0 : SharedCtor();
7354 : // @@protoc_insertion_point(constructor:safe_browsing.ClientDownloadResponse)
7355 0 : }
7356 :
7357 0 : void ClientDownloadResponse::InitAsDefaultInstance() {
7358 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
7359 0 : more_info_ = const_cast< ::safe_browsing::ClientDownloadResponse_MoreInfo*>(
7360 0 : ::safe_browsing::ClientDownloadResponse_MoreInfo::internal_default_instance());
7361 : #else
7362 : more_info_ = const_cast< ::safe_browsing::ClientDownloadResponse_MoreInfo*>(&::safe_browsing::ClientDownloadResponse_MoreInfo::default_instance());
7363 : #endif
7364 0 : }
7365 :
7366 0 : ClientDownloadResponse::ClientDownloadResponse(const ClientDownloadResponse& from)
7367 0 : : ::google::protobuf::MessageLite() {
7368 0 : SharedCtor();
7369 0 : MergeFrom(from);
7370 : // @@protoc_insertion_point(copy_constructor:safe_browsing.ClientDownloadResponse)
7371 0 : }
7372 :
7373 0 : void ClientDownloadResponse::SharedCtor() {
7374 0 : ::google::protobuf::internal::GetEmptyString();
7375 0 : _cached_size_ = 0;
7376 0 : verdict_ = 0;
7377 0 : more_info_ = NULL;
7378 0 : token_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7379 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
7380 0 : }
7381 :
7382 0 : ClientDownloadResponse::~ClientDownloadResponse() {
7383 : // @@protoc_insertion_point(destructor:safe_browsing.ClientDownloadResponse)
7384 0 : SharedDtor();
7385 0 : }
7386 :
7387 0 : void ClientDownloadResponse::SharedDtor() {
7388 0 : if (token_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
7389 0 : delete token_;
7390 : }
7391 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
7392 0 : if (this != &default_instance()) {
7393 : #else
7394 : if (this != default_instance_) {
7395 : #endif
7396 0 : delete more_info_;
7397 : }
7398 0 : }
7399 :
7400 0 : void ClientDownloadResponse::SetCachedSize(int size) const {
7401 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7402 0 : _cached_size_ = size;
7403 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
7404 0 : }
7405 0 : const ClientDownloadResponse& ClientDownloadResponse::default_instance() {
7406 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
7407 0 : protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
7408 : #else
7409 : if (default_instance_ == NULL) protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
7410 : #endif
7411 0 : return *default_instance_;
7412 : }
7413 :
7414 : ClientDownloadResponse* ClientDownloadResponse::default_instance_ = NULL;
7415 :
7416 0 : ClientDownloadResponse* ClientDownloadResponse::New() const {
7417 0 : return new ClientDownloadResponse;
7418 : }
7419 :
7420 0 : void ClientDownloadResponse::Clear() {
7421 0 : if (_has_bits_[0 / 32] & 7) {
7422 0 : verdict_ = 0;
7423 0 : if (has_more_info()) {
7424 0 : if (more_info_ != NULL) more_info_->::safe_browsing::ClientDownloadResponse_MoreInfo::Clear();
7425 : }
7426 0 : if (has_token()) {
7427 0 : if (token_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
7428 0 : token_->clear();
7429 : }
7430 : }
7431 : }
7432 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
7433 0 : mutable_unknown_fields()->clear();
7434 0 : }
7435 :
7436 0 : bool ClientDownloadResponse::MergePartialFromCodedStream(
7437 : ::google::protobuf::io::CodedInputStream* input) {
7438 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
7439 : ::google::protobuf::uint32 tag;
7440 : ::google::protobuf::io::StringOutputStream unknown_fields_string(
7441 0 : mutable_unknown_fields());
7442 : ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
7443 0 : &unknown_fields_string);
7444 : // @@protoc_insertion_point(parse_start:safe_browsing.ClientDownloadResponse)
7445 : for (;;) {
7446 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
7447 0 : tag = p.first;
7448 0 : if (!p.second) goto handle_unusual;
7449 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
7450 : // optional .safe_browsing.ClientDownloadResponse.Verdict verdict = 1 [default = SAFE];
7451 : case 1: {
7452 0 : if (tag == 8) {
7453 : int value;
7454 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7455 : int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
7456 : input, &value)));
7457 0 : if (::safe_browsing::ClientDownloadResponse_Verdict_IsValid(value)) {
7458 0 : set_verdict(static_cast< ::safe_browsing::ClientDownloadResponse_Verdict >(value));
7459 : } else {
7460 0 : unknown_fields_stream.WriteVarint32(tag);
7461 0 : unknown_fields_stream.WriteVarint32(value);
7462 : }
7463 : } else {
7464 0 : goto handle_unusual;
7465 : }
7466 0 : if (input->ExpectTag(18)) goto parse_more_info;
7467 0 : break;
7468 : }
7469 :
7470 : // optional .safe_browsing.ClientDownloadResponse.MoreInfo more_info = 2;
7471 : case 2: {
7472 0 : if (tag == 18) {
7473 : parse_more_info:
7474 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
7475 : input, mutable_more_info()));
7476 : } else {
7477 0 : goto handle_unusual;
7478 : }
7479 0 : if (input->ExpectTag(26)) goto parse_token;
7480 0 : break;
7481 : }
7482 :
7483 : // optional bytes token = 3;
7484 : case 3: {
7485 0 : if (tag == 26) {
7486 : parse_token:
7487 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
7488 : input, this->mutable_token()));
7489 : } else {
7490 0 : goto handle_unusual;
7491 : }
7492 0 : if (input->ExpectAtEnd()) goto success;
7493 0 : break;
7494 : }
7495 :
7496 : default: {
7497 : handle_unusual:
7498 0 : if (tag == 0 ||
7499 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
7500 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
7501 0 : goto success;
7502 : }
7503 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(
7504 : input, tag, &unknown_fields_stream));
7505 0 : break;
7506 : }
7507 : }
7508 0 : }
7509 : success:
7510 : // @@protoc_insertion_point(parse_success:safe_browsing.ClientDownloadResponse)
7511 0 : return true;
7512 : failure:
7513 : // @@protoc_insertion_point(parse_failure:safe_browsing.ClientDownloadResponse)
7514 0 : return false;
7515 : #undef DO_
7516 : }
7517 :
7518 0 : void ClientDownloadResponse::SerializeWithCachedSizes(
7519 : ::google::protobuf::io::CodedOutputStream* output) const {
7520 : // @@protoc_insertion_point(serialize_start:safe_browsing.ClientDownloadResponse)
7521 : // optional .safe_browsing.ClientDownloadResponse.Verdict verdict = 1 [default = SAFE];
7522 0 : if (has_verdict()) {
7523 0 : ::google::protobuf::internal::WireFormatLite::WriteEnum(
7524 0 : 1, this->verdict(), output);
7525 : }
7526 :
7527 : // optional .safe_browsing.ClientDownloadResponse.MoreInfo more_info = 2;
7528 0 : if (has_more_info()) {
7529 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
7530 0 : 2, this->more_info(), output);
7531 : }
7532 :
7533 : // optional bytes token = 3;
7534 0 : if (has_token()) {
7535 0 : ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
7536 0 : 3, this->token(), output);
7537 : }
7538 :
7539 0 : output->WriteRaw(unknown_fields().data(),
7540 0 : unknown_fields().size());
7541 : // @@protoc_insertion_point(serialize_end:safe_browsing.ClientDownloadResponse)
7542 0 : }
7543 :
7544 0 : int ClientDownloadResponse::ByteSize() const {
7545 0 : int total_size = 0;
7546 :
7547 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
7548 : // optional .safe_browsing.ClientDownloadResponse.Verdict verdict = 1 [default = SAFE];
7549 0 : if (has_verdict()) {
7550 0 : total_size += 1 +
7551 0 : ::google::protobuf::internal::WireFormatLite::EnumSize(this->verdict());
7552 : }
7553 :
7554 : // optional .safe_browsing.ClientDownloadResponse.MoreInfo more_info = 2;
7555 0 : if (has_more_info()) {
7556 0 : total_size += 1 +
7557 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
7558 : this->more_info());
7559 : }
7560 :
7561 : // optional bytes token = 3;
7562 0 : if (has_token()) {
7563 0 : total_size += 1 +
7564 0 : ::google::protobuf::internal::WireFormatLite::BytesSize(
7565 : this->token());
7566 : }
7567 :
7568 : }
7569 0 : total_size += unknown_fields().size();
7570 :
7571 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7572 0 : _cached_size_ = total_size;
7573 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
7574 0 : return total_size;
7575 : }
7576 :
7577 0 : void ClientDownloadResponse::CheckTypeAndMergeFrom(
7578 : const ::google::protobuf::MessageLite& from) {
7579 0 : MergeFrom(*::google::protobuf::down_cast<const ClientDownloadResponse*>(&from));
7580 0 : }
7581 :
7582 0 : void ClientDownloadResponse::MergeFrom(const ClientDownloadResponse& from) {
7583 0 : GOOGLE_CHECK_NE(&from, this);
7584 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
7585 0 : if (from.has_verdict()) {
7586 0 : set_verdict(from.verdict());
7587 : }
7588 0 : if (from.has_more_info()) {
7589 0 : mutable_more_info()->::safe_browsing::ClientDownloadResponse_MoreInfo::MergeFrom(from.more_info());
7590 : }
7591 0 : if (from.has_token()) {
7592 0 : set_token(from.token());
7593 : }
7594 : }
7595 0 : mutable_unknown_fields()->append(from.unknown_fields());
7596 0 : }
7597 :
7598 0 : void ClientDownloadResponse::CopyFrom(const ClientDownloadResponse& from) {
7599 0 : if (&from == this) return;
7600 0 : Clear();
7601 0 : MergeFrom(from);
7602 : }
7603 :
7604 0 : bool ClientDownloadResponse::IsInitialized() const {
7605 :
7606 0 : return true;
7607 : }
7608 :
7609 0 : void ClientDownloadResponse::Swap(ClientDownloadResponse* other) {
7610 0 : if (other != this) {
7611 0 : std::swap(verdict_, other->verdict_);
7612 0 : std::swap(more_info_, other->more_info_);
7613 0 : std::swap(token_, other->token_);
7614 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
7615 0 : _unknown_fields_.swap(other->_unknown_fields_);
7616 0 : std::swap(_cached_size_, other->_cached_size_);
7617 : }
7618 0 : }
7619 :
7620 0 : ::std::string ClientDownloadResponse::GetTypeName() const {
7621 0 : return "safe_browsing.ClientDownloadResponse";
7622 : }
7623 :
7624 :
7625 : // ===================================================================
7626 :
7627 0 : bool ClientDownloadReport_Reason_IsValid(int value) {
7628 0 : switch(value) {
7629 : case 0:
7630 : case 1:
7631 : case 2:
7632 0 : return true;
7633 : default:
7634 0 : return false;
7635 : }
7636 : }
7637 :
7638 : #ifndef _MSC_VER
7639 : const ClientDownloadReport_Reason ClientDownloadReport::SHARE;
7640 : const ClientDownloadReport_Reason ClientDownloadReport::FALSE_POSITIVE;
7641 : const ClientDownloadReport_Reason ClientDownloadReport::APPEAL;
7642 : const ClientDownloadReport_Reason ClientDownloadReport::Reason_MIN;
7643 : const ClientDownloadReport_Reason ClientDownloadReport::Reason_MAX;
7644 : const int ClientDownloadReport::Reason_ARRAYSIZE;
7645 : #endif // _MSC_VER
7646 : #ifndef _MSC_VER
7647 : const int ClientDownloadReport_UserInformation::kEmailFieldNumber;
7648 : #endif // !_MSC_VER
7649 :
7650 0 : ClientDownloadReport_UserInformation::ClientDownloadReport_UserInformation()
7651 0 : : ::google::protobuf::MessageLite() {
7652 0 : SharedCtor();
7653 : // @@protoc_insertion_point(constructor:safe_browsing.ClientDownloadReport.UserInformation)
7654 0 : }
7655 :
7656 0 : void ClientDownloadReport_UserInformation::InitAsDefaultInstance() {
7657 0 : }
7658 :
7659 0 : ClientDownloadReport_UserInformation::ClientDownloadReport_UserInformation(const ClientDownloadReport_UserInformation& from)
7660 0 : : ::google::protobuf::MessageLite() {
7661 0 : SharedCtor();
7662 0 : MergeFrom(from);
7663 : // @@protoc_insertion_point(copy_constructor:safe_browsing.ClientDownloadReport.UserInformation)
7664 0 : }
7665 :
7666 0 : void ClientDownloadReport_UserInformation::SharedCtor() {
7667 0 : ::google::protobuf::internal::GetEmptyString();
7668 0 : _cached_size_ = 0;
7669 0 : email_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7670 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
7671 0 : }
7672 :
7673 0 : ClientDownloadReport_UserInformation::~ClientDownloadReport_UserInformation() {
7674 : // @@protoc_insertion_point(destructor:safe_browsing.ClientDownloadReport.UserInformation)
7675 0 : SharedDtor();
7676 0 : }
7677 :
7678 0 : void ClientDownloadReport_UserInformation::SharedDtor() {
7679 0 : if (email_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
7680 0 : delete email_;
7681 : }
7682 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
7683 0 : if (this != &default_instance()) {
7684 : #else
7685 : if (this != default_instance_) {
7686 : #endif
7687 : }
7688 0 : }
7689 :
7690 0 : void ClientDownloadReport_UserInformation::SetCachedSize(int size) const {
7691 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7692 0 : _cached_size_ = size;
7693 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
7694 0 : }
7695 0 : const ClientDownloadReport_UserInformation& ClientDownloadReport_UserInformation::default_instance() {
7696 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
7697 0 : protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
7698 : #else
7699 : if (default_instance_ == NULL) protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
7700 : #endif
7701 0 : return *default_instance_;
7702 : }
7703 :
7704 : ClientDownloadReport_UserInformation* ClientDownloadReport_UserInformation::default_instance_ = NULL;
7705 :
7706 0 : ClientDownloadReport_UserInformation* ClientDownloadReport_UserInformation::New() const {
7707 0 : return new ClientDownloadReport_UserInformation;
7708 : }
7709 :
7710 0 : void ClientDownloadReport_UserInformation::Clear() {
7711 0 : if (has_email()) {
7712 0 : if (email_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
7713 0 : email_->clear();
7714 : }
7715 : }
7716 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
7717 0 : mutable_unknown_fields()->clear();
7718 0 : }
7719 :
7720 0 : bool ClientDownloadReport_UserInformation::MergePartialFromCodedStream(
7721 : ::google::protobuf::io::CodedInputStream* input) {
7722 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
7723 : ::google::protobuf::uint32 tag;
7724 : ::google::protobuf::io::StringOutputStream unknown_fields_string(
7725 0 : mutable_unknown_fields());
7726 : ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
7727 0 : &unknown_fields_string);
7728 : // @@protoc_insertion_point(parse_start:safe_browsing.ClientDownloadReport.UserInformation)
7729 : for (;;) {
7730 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
7731 0 : tag = p.first;
7732 0 : if (!p.second) goto handle_unusual;
7733 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
7734 : // optional string email = 1;
7735 : case 1: {
7736 0 : if (tag == 10) {
7737 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7738 : input, this->mutable_email()));
7739 : } else {
7740 0 : goto handle_unusual;
7741 : }
7742 0 : if (input->ExpectAtEnd()) goto success;
7743 0 : break;
7744 : }
7745 :
7746 : default: {
7747 : handle_unusual:
7748 0 : if (tag == 0 ||
7749 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
7750 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
7751 0 : goto success;
7752 : }
7753 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(
7754 : input, tag, &unknown_fields_stream));
7755 0 : break;
7756 : }
7757 : }
7758 0 : }
7759 : success:
7760 : // @@protoc_insertion_point(parse_success:safe_browsing.ClientDownloadReport.UserInformation)
7761 0 : return true;
7762 : failure:
7763 : // @@protoc_insertion_point(parse_failure:safe_browsing.ClientDownloadReport.UserInformation)
7764 0 : return false;
7765 : #undef DO_
7766 : }
7767 :
7768 0 : void ClientDownloadReport_UserInformation::SerializeWithCachedSizes(
7769 : ::google::protobuf::io::CodedOutputStream* output) const {
7770 : // @@protoc_insertion_point(serialize_start:safe_browsing.ClientDownloadReport.UserInformation)
7771 : // optional string email = 1;
7772 0 : if (has_email()) {
7773 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
7774 0 : 1, this->email(), output);
7775 : }
7776 :
7777 0 : output->WriteRaw(unknown_fields().data(),
7778 0 : unknown_fields().size());
7779 : // @@protoc_insertion_point(serialize_end:safe_browsing.ClientDownloadReport.UserInformation)
7780 0 : }
7781 :
7782 0 : int ClientDownloadReport_UserInformation::ByteSize() const {
7783 0 : int total_size = 0;
7784 :
7785 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
7786 : // optional string email = 1;
7787 0 : if (has_email()) {
7788 0 : total_size += 1 +
7789 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
7790 : this->email());
7791 : }
7792 :
7793 : }
7794 0 : total_size += unknown_fields().size();
7795 :
7796 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7797 0 : _cached_size_ = total_size;
7798 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
7799 0 : return total_size;
7800 : }
7801 :
7802 0 : void ClientDownloadReport_UserInformation::CheckTypeAndMergeFrom(
7803 : const ::google::protobuf::MessageLite& from) {
7804 0 : MergeFrom(*::google::protobuf::down_cast<const ClientDownloadReport_UserInformation*>(&from));
7805 0 : }
7806 :
7807 0 : void ClientDownloadReport_UserInformation::MergeFrom(const ClientDownloadReport_UserInformation& from) {
7808 0 : GOOGLE_CHECK_NE(&from, this);
7809 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
7810 0 : if (from.has_email()) {
7811 0 : set_email(from.email());
7812 : }
7813 : }
7814 0 : mutable_unknown_fields()->append(from.unknown_fields());
7815 0 : }
7816 :
7817 0 : void ClientDownloadReport_UserInformation::CopyFrom(const ClientDownloadReport_UserInformation& from) {
7818 0 : if (&from == this) return;
7819 0 : Clear();
7820 0 : MergeFrom(from);
7821 : }
7822 :
7823 0 : bool ClientDownloadReport_UserInformation::IsInitialized() const {
7824 :
7825 0 : return true;
7826 : }
7827 :
7828 0 : void ClientDownloadReport_UserInformation::Swap(ClientDownloadReport_UserInformation* other) {
7829 0 : if (other != this) {
7830 0 : std::swap(email_, other->email_);
7831 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
7832 0 : _unknown_fields_.swap(other->_unknown_fields_);
7833 0 : std::swap(_cached_size_, other->_cached_size_);
7834 : }
7835 0 : }
7836 :
7837 0 : ::std::string ClientDownloadReport_UserInformation::GetTypeName() const {
7838 0 : return "safe_browsing.ClientDownloadReport.UserInformation";
7839 : }
7840 :
7841 :
7842 : // -------------------------------------------------------------------
7843 :
7844 : #ifndef _MSC_VER
7845 : const int ClientDownloadReport::kReasonFieldNumber;
7846 : const int ClientDownloadReport::kDownloadRequestFieldNumber;
7847 : const int ClientDownloadReport::kUserInformationFieldNumber;
7848 : const int ClientDownloadReport::kCommentFieldNumber;
7849 : const int ClientDownloadReport::kDownloadResponseFieldNumber;
7850 : #endif // !_MSC_VER
7851 :
7852 0 : ClientDownloadReport::ClientDownloadReport()
7853 0 : : ::google::protobuf::MessageLite() {
7854 0 : SharedCtor();
7855 : // @@protoc_insertion_point(constructor:safe_browsing.ClientDownloadReport)
7856 0 : }
7857 :
7858 0 : void ClientDownloadReport::InitAsDefaultInstance() {
7859 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
7860 0 : download_request_ = const_cast< ::safe_browsing::ClientDownloadRequest*>(
7861 0 : ::safe_browsing::ClientDownloadRequest::internal_default_instance());
7862 : #else
7863 : download_request_ = const_cast< ::safe_browsing::ClientDownloadRequest*>(&::safe_browsing::ClientDownloadRequest::default_instance());
7864 : #endif
7865 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
7866 0 : user_information_ = const_cast< ::safe_browsing::ClientDownloadReport_UserInformation*>(
7867 0 : ::safe_browsing::ClientDownloadReport_UserInformation::internal_default_instance());
7868 : #else
7869 : user_information_ = const_cast< ::safe_browsing::ClientDownloadReport_UserInformation*>(&::safe_browsing::ClientDownloadReport_UserInformation::default_instance());
7870 : #endif
7871 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
7872 0 : download_response_ = const_cast< ::safe_browsing::ClientDownloadResponse*>(
7873 0 : ::safe_browsing::ClientDownloadResponse::internal_default_instance());
7874 : #else
7875 : download_response_ = const_cast< ::safe_browsing::ClientDownloadResponse*>(&::safe_browsing::ClientDownloadResponse::default_instance());
7876 : #endif
7877 0 : }
7878 :
7879 0 : ClientDownloadReport::ClientDownloadReport(const ClientDownloadReport& from)
7880 0 : : ::google::protobuf::MessageLite() {
7881 0 : SharedCtor();
7882 0 : MergeFrom(from);
7883 : // @@protoc_insertion_point(copy_constructor:safe_browsing.ClientDownloadReport)
7884 0 : }
7885 :
7886 0 : void ClientDownloadReport::SharedCtor() {
7887 0 : ::google::protobuf::internal::GetEmptyString();
7888 0 : _cached_size_ = 0;
7889 0 : reason_ = 0;
7890 0 : download_request_ = NULL;
7891 0 : user_information_ = NULL;
7892 0 : comment_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7893 0 : download_response_ = NULL;
7894 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
7895 0 : }
7896 :
7897 0 : ClientDownloadReport::~ClientDownloadReport() {
7898 : // @@protoc_insertion_point(destructor:safe_browsing.ClientDownloadReport)
7899 0 : SharedDtor();
7900 0 : }
7901 :
7902 0 : void ClientDownloadReport::SharedDtor() {
7903 0 : if (comment_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
7904 0 : delete comment_;
7905 : }
7906 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
7907 0 : if (this != &default_instance()) {
7908 : #else
7909 : if (this != default_instance_) {
7910 : #endif
7911 0 : delete download_request_;
7912 0 : delete user_information_;
7913 0 : delete download_response_;
7914 : }
7915 0 : }
7916 :
7917 0 : void ClientDownloadReport::SetCachedSize(int size) const {
7918 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7919 0 : _cached_size_ = size;
7920 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
7921 0 : }
7922 0 : const ClientDownloadReport& ClientDownloadReport::default_instance() {
7923 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
7924 0 : protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
7925 : #else
7926 : if (default_instance_ == NULL) protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
7927 : #endif
7928 0 : return *default_instance_;
7929 : }
7930 :
7931 : ClientDownloadReport* ClientDownloadReport::default_instance_ = NULL;
7932 :
7933 0 : ClientDownloadReport* ClientDownloadReport::New() const {
7934 0 : return new ClientDownloadReport;
7935 : }
7936 :
7937 0 : void ClientDownloadReport::Clear() {
7938 0 : if (_has_bits_[0 / 32] & 31) {
7939 0 : reason_ = 0;
7940 0 : if (has_download_request()) {
7941 0 : if (download_request_ != NULL) download_request_->::safe_browsing::ClientDownloadRequest::Clear();
7942 : }
7943 0 : if (has_user_information()) {
7944 0 : if (user_information_ != NULL) user_information_->::safe_browsing::ClientDownloadReport_UserInformation::Clear();
7945 : }
7946 0 : if (has_comment()) {
7947 0 : if (comment_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
7948 0 : comment_->clear();
7949 : }
7950 : }
7951 0 : if (has_download_response()) {
7952 0 : if (download_response_ != NULL) download_response_->::safe_browsing::ClientDownloadResponse::Clear();
7953 : }
7954 : }
7955 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
7956 0 : mutable_unknown_fields()->clear();
7957 0 : }
7958 :
7959 0 : bool ClientDownloadReport::MergePartialFromCodedStream(
7960 : ::google::protobuf::io::CodedInputStream* input) {
7961 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
7962 : ::google::protobuf::uint32 tag;
7963 : ::google::protobuf::io::StringOutputStream unknown_fields_string(
7964 0 : mutable_unknown_fields());
7965 : ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
7966 0 : &unknown_fields_string);
7967 : // @@protoc_insertion_point(parse_start:safe_browsing.ClientDownloadReport)
7968 : for (;;) {
7969 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
7970 0 : tag = p.first;
7971 0 : if (!p.second) goto handle_unusual;
7972 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
7973 : // optional .safe_browsing.ClientDownloadReport.Reason reason = 1;
7974 : case 1: {
7975 0 : if (tag == 8) {
7976 : int value;
7977 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7978 : int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
7979 : input, &value)));
7980 0 : if (::safe_browsing::ClientDownloadReport_Reason_IsValid(value)) {
7981 0 : set_reason(static_cast< ::safe_browsing::ClientDownloadReport_Reason >(value));
7982 : } else {
7983 0 : unknown_fields_stream.WriteVarint32(tag);
7984 0 : unknown_fields_stream.WriteVarint32(value);
7985 : }
7986 : } else {
7987 0 : goto handle_unusual;
7988 : }
7989 0 : if (input->ExpectTag(18)) goto parse_download_request;
7990 0 : break;
7991 : }
7992 :
7993 : // optional .safe_browsing.ClientDownloadRequest download_request = 2;
7994 : case 2: {
7995 0 : if (tag == 18) {
7996 : parse_download_request:
7997 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
7998 : input, mutable_download_request()));
7999 : } else {
8000 0 : goto handle_unusual;
8001 : }
8002 0 : if (input->ExpectTag(26)) goto parse_user_information;
8003 0 : break;
8004 : }
8005 :
8006 : // optional .safe_browsing.ClientDownloadReport.UserInformation user_information = 3;
8007 : case 3: {
8008 0 : if (tag == 26) {
8009 : parse_user_information:
8010 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
8011 : input, mutable_user_information()));
8012 : } else {
8013 0 : goto handle_unusual;
8014 : }
8015 0 : if (input->ExpectTag(34)) goto parse_comment;
8016 0 : break;
8017 : }
8018 :
8019 : // optional bytes comment = 4;
8020 : case 4: {
8021 0 : if (tag == 34) {
8022 : parse_comment:
8023 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
8024 : input, this->mutable_comment()));
8025 : } else {
8026 0 : goto handle_unusual;
8027 : }
8028 0 : if (input->ExpectTag(42)) goto parse_download_response;
8029 0 : break;
8030 : }
8031 :
8032 : // optional .safe_browsing.ClientDownloadResponse download_response = 5;
8033 : case 5: {
8034 0 : if (tag == 42) {
8035 : parse_download_response:
8036 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
8037 : input, mutable_download_response()));
8038 : } else {
8039 0 : goto handle_unusual;
8040 : }
8041 0 : if (input->ExpectAtEnd()) goto success;
8042 0 : break;
8043 : }
8044 :
8045 : default: {
8046 : handle_unusual:
8047 0 : if (tag == 0 ||
8048 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
8049 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
8050 0 : goto success;
8051 : }
8052 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(
8053 : input, tag, &unknown_fields_stream));
8054 0 : break;
8055 : }
8056 : }
8057 0 : }
8058 : success:
8059 : // @@protoc_insertion_point(parse_success:safe_browsing.ClientDownloadReport)
8060 0 : return true;
8061 : failure:
8062 : // @@protoc_insertion_point(parse_failure:safe_browsing.ClientDownloadReport)
8063 0 : return false;
8064 : #undef DO_
8065 : }
8066 :
8067 0 : void ClientDownloadReport::SerializeWithCachedSizes(
8068 : ::google::protobuf::io::CodedOutputStream* output) const {
8069 : // @@protoc_insertion_point(serialize_start:safe_browsing.ClientDownloadReport)
8070 : // optional .safe_browsing.ClientDownloadReport.Reason reason = 1;
8071 0 : if (has_reason()) {
8072 0 : ::google::protobuf::internal::WireFormatLite::WriteEnum(
8073 0 : 1, this->reason(), output);
8074 : }
8075 :
8076 : // optional .safe_browsing.ClientDownloadRequest download_request = 2;
8077 0 : if (has_download_request()) {
8078 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
8079 0 : 2, this->download_request(), output);
8080 : }
8081 :
8082 : // optional .safe_browsing.ClientDownloadReport.UserInformation user_information = 3;
8083 0 : if (has_user_information()) {
8084 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
8085 0 : 3, this->user_information(), output);
8086 : }
8087 :
8088 : // optional bytes comment = 4;
8089 0 : if (has_comment()) {
8090 0 : ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
8091 0 : 4, this->comment(), output);
8092 : }
8093 :
8094 : // optional .safe_browsing.ClientDownloadResponse download_response = 5;
8095 0 : if (has_download_response()) {
8096 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
8097 0 : 5, this->download_response(), output);
8098 : }
8099 :
8100 0 : output->WriteRaw(unknown_fields().data(),
8101 0 : unknown_fields().size());
8102 : // @@protoc_insertion_point(serialize_end:safe_browsing.ClientDownloadReport)
8103 0 : }
8104 :
8105 0 : int ClientDownloadReport::ByteSize() const {
8106 0 : int total_size = 0;
8107 :
8108 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
8109 : // optional .safe_browsing.ClientDownloadReport.Reason reason = 1;
8110 0 : if (has_reason()) {
8111 0 : total_size += 1 +
8112 0 : ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason());
8113 : }
8114 :
8115 : // optional .safe_browsing.ClientDownloadRequest download_request = 2;
8116 0 : if (has_download_request()) {
8117 0 : total_size += 1 +
8118 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
8119 : this->download_request());
8120 : }
8121 :
8122 : // optional .safe_browsing.ClientDownloadReport.UserInformation user_information = 3;
8123 0 : if (has_user_information()) {
8124 0 : total_size += 1 +
8125 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
8126 : this->user_information());
8127 : }
8128 :
8129 : // optional bytes comment = 4;
8130 0 : if (has_comment()) {
8131 0 : total_size += 1 +
8132 0 : ::google::protobuf::internal::WireFormatLite::BytesSize(
8133 : this->comment());
8134 : }
8135 :
8136 : // optional .safe_browsing.ClientDownloadResponse download_response = 5;
8137 0 : if (has_download_response()) {
8138 0 : total_size += 1 +
8139 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
8140 : this->download_response());
8141 : }
8142 :
8143 : }
8144 0 : total_size += unknown_fields().size();
8145 :
8146 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
8147 0 : _cached_size_ = total_size;
8148 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
8149 0 : return total_size;
8150 : }
8151 :
8152 0 : void ClientDownloadReport::CheckTypeAndMergeFrom(
8153 : const ::google::protobuf::MessageLite& from) {
8154 0 : MergeFrom(*::google::protobuf::down_cast<const ClientDownloadReport*>(&from));
8155 0 : }
8156 :
8157 0 : void ClientDownloadReport::MergeFrom(const ClientDownloadReport& from) {
8158 0 : GOOGLE_CHECK_NE(&from, this);
8159 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
8160 0 : if (from.has_reason()) {
8161 0 : set_reason(from.reason());
8162 : }
8163 0 : if (from.has_download_request()) {
8164 0 : mutable_download_request()->::safe_browsing::ClientDownloadRequest::MergeFrom(from.download_request());
8165 : }
8166 0 : if (from.has_user_information()) {
8167 0 : mutable_user_information()->::safe_browsing::ClientDownloadReport_UserInformation::MergeFrom(from.user_information());
8168 : }
8169 0 : if (from.has_comment()) {
8170 0 : set_comment(from.comment());
8171 : }
8172 0 : if (from.has_download_response()) {
8173 0 : mutable_download_response()->::safe_browsing::ClientDownloadResponse::MergeFrom(from.download_response());
8174 : }
8175 : }
8176 0 : mutable_unknown_fields()->append(from.unknown_fields());
8177 0 : }
8178 :
8179 0 : void ClientDownloadReport::CopyFrom(const ClientDownloadReport& from) {
8180 0 : if (&from == this) return;
8181 0 : Clear();
8182 0 : MergeFrom(from);
8183 : }
8184 :
8185 0 : bool ClientDownloadReport::IsInitialized() const {
8186 :
8187 0 : if (has_download_request()) {
8188 0 : if (!this->download_request().IsInitialized()) return false;
8189 : }
8190 0 : return true;
8191 : }
8192 :
8193 0 : void ClientDownloadReport::Swap(ClientDownloadReport* other) {
8194 0 : if (other != this) {
8195 0 : std::swap(reason_, other->reason_);
8196 0 : std::swap(download_request_, other->download_request_);
8197 0 : std::swap(user_information_, other->user_information_);
8198 0 : std::swap(comment_, other->comment_);
8199 0 : std::swap(download_response_, other->download_response_);
8200 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
8201 0 : _unknown_fields_.swap(other->_unknown_fields_);
8202 0 : std::swap(_cached_size_, other->_cached_size_);
8203 : }
8204 0 : }
8205 :
8206 0 : ::std::string ClientDownloadReport::GetTypeName() const {
8207 0 : return "safe_browsing.ClientDownloadReport";
8208 : }
8209 :
8210 :
8211 : // ===================================================================
8212 :
8213 0 : bool ClientUploadResponse_UploadStatus_IsValid(int value) {
8214 0 : switch(value) {
8215 : case 0:
8216 : case 1:
8217 0 : return true;
8218 : default:
8219 0 : return false;
8220 : }
8221 : }
8222 :
8223 : #ifndef _MSC_VER
8224 : const ClientUploadResponse_UploadStatus ClientUploadResponse::SUCCESS;
8225 : const ClientUploadResponse_UploadStatus ClientUploadResponse::UPLOAD_FAILURE;
8226 : const ClientUploadResponse_UploadStatus ClientUploadResponse::UploadStatus_MIN;
8227 : const ClientUploadResponse_UploadStatus ClientUploadResponse::UploadStatus_MAX;
8228 : const int ClientUploadResponse::UploadStatus_ARRAYSIZE;
8229 : #endif // _MSC_VER
8230 : #ifndef _MSC_VER
8231 : const int ClientUploadResponse::kStatusFieldNumber;
8232 : const int ClientUploadResponse::kPermalinkFieldNumber;
8233 : #endif // !_MSC_VER
8234 :
8235 0 : ClientUploadResponse::ClientUploadResponse()
8236 0 : : ::google::protobuf::MessageLite() {
8237 0 : SharedCtor();
8238 : // @@protoc_insertion_point(constructor:safe_browsing.ClientUploadResponse)
8239 0 : }
8240 :
8241 0 : void ClientUploadResponse::InitAsDefaultInstance() {
8242 0 : }
8243 :
8244 0 : ClientUploadResponse::ClientUploadResponse(const ClientUploadResponse& from)
8245 0 : : ::google::protobuf::MessageLite() {
8246 0 : SharedCtor();
8247 0 : MergeFrom(from);
8248 : // @@protoc_insertion_point(copy_constructor:safe_browsing.ClientUploadResponse)
8249 0 : }
8250 :
8251 0 : void ClientUploadResponse::SharedCtor() {
8252 0 : ::google::protobuf::internal::GetEmptyString();
8253 0 : _cached_size_ = 0;
8254 0 : status_ = 0;
8255 0 : permalink_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8256 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
8257 0 : }
8258 :
8259 0 : ClientUploadResponse::~ClientUploadResponse() {
8260 : // @@protoc_insertion_point(destructor:safe_browsing.ClientUploadResponse)
8261 0 : SharedDtor();
8262 0 : }
8263 :
8264 0 : void ClientUploadResponse::SharedDtor() {
8265 0 : if (permalink_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
8266 0 : delete permalink_;
8267 : }
8268 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
8269 0 : if (this != &default_instance()) {
8270 : #else
8271 : if (this != default_instance_) {
8272 : #endif
8273 : }
8274 0 : }
8275 :
8276 0 : void ClientUploadResponse::SetCachedSize(int size) const {
8277 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
8278 0 : _cached_size_ = size;
8279 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
8280 0 : }
8281 0 : const ClientUploadResponse& ClientUploadResponse::default_instance() {
8282 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
8283 0 : protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
8284 : #else
8285 : if (default_instance_ == NULL) protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
8286 : #endif
8287 0 : return *default_instance_;
8288 : }
8289 :
8290 : ClientUploadResponse* ClientUploadResponse::default_instance_ = NULL;
8291 :
8292 0 : ClientUploadResponse* ClientUploadResponse::New() const {
8293 0 : return new ClientUploadResponse;
8294 : }
8295 :
8296 0 : void ClientUploadResponse::Clear() {
8297 0 : if (_has_bits_[0 / 32] & 3) {
8298 0 : status_ = 0;
8299 0 : if (has_permalink()) {
8300 0 : if (permalink_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
8301 0 : permalink_->clear();
8302 : }
8303 : }
8304 : }
8305 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
8306 0 : mutable_unknown_fields()->clear();
8307 0 : }
8308 :
8309 0 : bool ClientUploadResponse::MergePartialFromCodedStream(
8310 : ::google::protobuf::io::CodedInputStream* input) {
8311 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
8312 : ::google::protobuf::uint32 tag;
8313 : ::google::protobuf::io::StringOutputStream unknown_fields_string(
8314 0 : mutable_unknown_fields());
8315 : ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
8316 0 : &unknown_fields_string);
8317 : // @@protoc_insertion_point(parse_start:safe_browsing.ClientUploadResponse)
8318 : for (;;) {
8319 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
8320 0 : tag = p.first;
8321 0 : if (!p.second) goto handle_unusual;
8322 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
8323 : // optional .safe_browsing.ClientUploadResponse.UploadStatus status = 1;
8324 : case 1: {
8325 0 : if (tag == 8) {
8326 : int value;
8327 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8328 : int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
8329 : input, &value)));
8330 0 : if (::safe_browsing::ClientUploadResponse_UploadStatus_IsValid(value)) {
8331 0 : set_status(static_cast< ::safe_browsing::ClientUploadResponse_UploadStatus >(value));
8332 : } else {
8333 0 : unknown_fields_stream.WriteVarint32(tag);
8334 0 : unknown_fields_stream.WriteVarint32(value);
8335 : }
8336 : } else {
8337 0 : goto handle_unusual;
8338 : }
8339 0 : if (input->ExpectTag(18)) goto parse_permalink;
8340 0 : break;
8341 : }
8342 :
8343 : // optional string permalink = 2;
8344 : case 2: {
8345 0 : if (tag == 18) {
8346 : parse_permalink:
8347 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
8348 : input, this->mutable_permalink()));
8349 : } else {
8350 0 : goto handle_unusual;
8351 : }
8352 0 : if (input->ExpectAtEnd()) goto success;
8353 0 : break;
8354 : }
8355 :
8356 : default: {
8357 : handle_unusual:
8358 0 : if (tag == 0 ||
8359 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
8360 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
8361 0 : goto success;
8362 : }
8363 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(
8364 : input, tag, &unknown_fields_stream));
8365 0 : break;
8366 : }
8367 : }
8368 0 : }
8369 : success:
8370 : // @@protoc_insertion_point(parse_success:safe_browsing.ClientUploadResponse)
8371 0 : return true;
8372 : failure:
8373 : // @@protoc_insertion_point(parse_failure:safe_browsing.ClientUploadResponse)
8374 0 : return false;
8375 : #undef DO_
8376 : }
8377 :
8378 0 : void ClientUploadResponse::SerializeWithCachedSizes(
8379 : ::google::protobuf::io::CodedOutputStream* output) const {
8380 : // @@protoc_insertion_point(serialize_start:safe_browsing.ClientUploadResponse)
8381 : // optional .safe_browsing.ClientUploadResponse.UploadStatus status = 1;
8382 0 : if (has_status()) {
8383 0 : ::google::protobuf::internal::WireFormatLite::WriteEnum(
8384 0 : 1, this->status(), output);
8385 : }
8386 :
8387 : // optional string permalink = 2;
8388 0 : if (has_permalink()) {
8389 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
8390 0 : 2, this->permalink(), output);
8391 : }
8392 :
8393 0 : output->WriteRaw(unknown_fields().data(),
8394 0 : unknown_fields().size());
8395 : // @@protoc_insertion_point(serialize_end:safe_browsing.ClientUploadResponse)
8396 0 : }
8397 :
8398 0 : int ClientUploadResponse::ByteSize() const {
8399 0 : int total_size = 0;
8400 :
8401 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
8402 : // optional .safe_browsing.ClientUploadResponse.UploadStatus status = 1;
8403 0 : if (has_status()) {
8404 0 : total_size += 1 +
8405 0 : ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
8406 : }
8407 :
8408 : // optional string permalink = 2;
8409 0 : if (has_permalink()) {
8410 0 : total_size += 1 +
8411 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
8412 : this->permalink());
8413 : }
8414 :
8415 : }
8416 0 : total_size += unknown_fields().size();
8417 :
8418 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
8419 0 : _cached_size_ = total_size;
8420 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
8421 0 : return total_size;
8422 : }
8423 :
8424 0 : void ClientUploadResponse::CheckTypeAndMergeFrom(
8425 : const ::google::protobuf::MessageLite& from) {
8426 0 : MergeFrom(*::google::protobuf::down_cast<const ClientUploadResponse*>(&from));
8427 0 : }
8428 :
8429 0 : void ClientUploadResponse::MergeFrom(const ClientUploadResponse& from) {
8430 0 : GOOGLE_CHECK_NE(&from, this);
8431 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
8432 0 : if (from.has_status()) {
8433 0 : set_status(from.status());
8434 : }
8435 0 : if (from.has_permalink()) {
8436 0 : set_permalink(from.permalink());
8437 : }
8438 : }
8439 0 : mutable_unknown_fields()->append(from.unknown_fields());
8440 0 : }
8441 :
8442 0 : void ClientUploadResponse::CopyFrom(const ClientUploadResponse& from) {
8443 0 : if (&from == this) return;
8444 0 : Clear();
8445 0 : MergeFrom(from);
8446 : }
8447 :
8448 0 : bool ClientUploadResponse::IsInitialized() const {
8449 :
8450 0 : return true;
8451 : }
8452 :
8453 0 : void ClientUploadResponse::Swap(ClientUploadResponse* other) {
8454 0 : if (other != this) {
8455 0 : std::swap(status_, other->status_);
8456 0 : std::swap(permalink_, other->permalink_);
8457 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
8458 0 : _unknown_fields_.swap(other->_unknown_fields_);
8459 0 : std::swap(_cached_size_, other->_cached_size_);
8460 : }
8461 0 : }
8462 :
8463 0 : ::std::string ClientUploadResponse::GetTypeName() const {
8464 0 : return "safe_browsing.ClientUploadResponse";
8465 : }
8466 :
8467 :
8468 : // ===================================================================
8469 :
8470 0 : bool ClientIncidentReport_IncidentData_TrackedPreferenceIncident_ValueState_IsValid(int value) {
8471 0 : switch(value) {
8472 : case 0:
8473 : case 1:
8474 : case 2:
8475 : case 3:
8476 : case 4:
8477 0 : return true;
8478 : default:
8479 0 : return false;
8480 : }
8481 : }
8482 :
8483 : #ifndef _MSC_VER
8484 : const ClientIncidentReport_IncidentData_TrackedPreferenceIncident_ValueState ClientIncidentReport_IncidentData_TrackedPreferenceIncident::UNKNOWN;
8485 : const ClientIncidentReport_IncidentData_TrackedPreferenceIncident_ValueState ClientIncidentReport_IncidentData_TrackedPreferenceIncident::CLEARED;
8486 : const ClientIncidentReport_IncidentData_TrackedPreferenceIncident_ValueState ClientIncidentReport_IncidentData_TrackedPreferenceIncident::WEAK_LEGACY_OBSOLETE;
8487 : const ClientIncidentReport_IncidentData_TrackedPreferenceIncident_ValueState ClientIncidentReport_IncidentData_TrackedPreferenceIncident::CHANGED;
8488 : const ClientIncidentReport_IncidentData_TrackedPreferenceIncident_ValueState ClientIncidentReport_IncidentData_TrackedPreferenceIncident::UNTRUSTED_UNKNOWN_VALUE;
8489 : const ClientIncidentReport_IncidentData_TrackedPreferenceIncident_ValueState ClientIncidentReport_IncidentData_TrackedPreferenceIncident::ValueState_MIN;
8490 : const ClientIncidentReport_IncidentData_TrackedPreferenceIncident_ValueState ClientIncidentReport_IncidentData_TrackedPreferenceIncident::ValueState_MAX;
8491 : const int ClientIncidentReport_IncidentData_TrackedPreferenceIncident::ValueState_ARRAYSIZE;
8492 : #endif // _MSC_VER
8493 : #ifndef _MSC_VER
8494 : const int ClientIncidentReport_IncidentData_TrackedPreferenceIncident::kPathFieldNumber;
8495 : const int ClientIncidentReport_IncidentData_TrackedPreferenceIncident::kAtomicValueFieldNumber;
8496 : const int ClientIncidentReport_IncidentData_TrackedPreferenceIncident::kSplitKeyFieldNumber;
8497 : const int ClientIncidentReport_IncidentData_TrackedPreferenceIncident::kValueStateFieldNumber;
8498 : #endif // !_MSC_VER
8499 :
8500 0 : ClientIncidentReport_IncidentData_TrackedPreferenceIncident::ClientIncidentReport_IncidentData_TrackedPreferenceIncident()
8501 0 : : ::google::protobuf::MessageLite() {
8502 0 : SharedCtor();
8503 : // @@protoc_insertion_point(constructor:safe_browsing.ClientIncidentReport.IncidentData.TrackedPreferenceIncident)
8504 0 : }
8505 :
8506 0 : void ClientIncidentReport_IncidentData_TrackedPreferenceIncident::InitAsDefaultInstance() {
8507 0 : }
8508 :
8509 0 : ClientIncidentReport_IncidentData_TrackedPreferenceIncident::ClientIncidentReport_IncidentData_TrackedPreferenceIncident(const ClientIncidentReport_IncidentData_TrackedPreferenceIncident& from)
8510 0 : : ::google::protobuf::MessageLite() {
8511 0 : SharedCtor();
8512 0 : MergeFrom(from);
8513 : // @@protoc_insertion_point(copy_constructor:safe_browsing.ClientIncidentReport.IncidentData.TrackedPreferenceIncident)
8514 0 : }
8515 :
8516 0 : void ClientIncidentReport_IncidentData_TrackedPreferenceIncident::SharedCtor() {
8517 0 : ::google::protobuf::internal::GetEmptyString();
8518 0 : _cached_size_ = 0;
8519 0 : path_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8520 0 : atomic_value_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8521 0 : value_state_ = 0;
8522 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
8523 0 : }
8524 :
8525 0 : ClientIncidentReport_IncidentData_TrackedPreferenceIncident::~ClientIncidentReport_IncidentData_TrackedPreferenceIncident() {
8526 : // @@protoc_insertion_point(destructor:safe_browsing.ClientIncidentReport.IncidentData.TrackedPreferenceIncident)
8527 0 : SharedDtor();
8528 0 : }
8529 :
8530 0 : void ClientIncidentReport_IncidentData_TrackedPreferenceIncident::SharedDtor() {
8531 0 : if (path_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
8532 0 : delete path_;
8533 : }
8534 0 : if (atomic_value_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
8535 0 : delete atomic_value_;
8536 : }
8537 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
8538 0 : if (this != &default_instance()) {
8539 : #else
8540 : if (this != default_instance_) {
8541 : #endif
8542 : }
8543 0 : }
8544 :
8545 0 : void ClientIncidentReport_IncidentData_TrackedPreferenceIncident::SetCachedSize(int size) const {
8546 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
8547 0 : _cached_size_ = size;
8548 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
8549 0 : }
8550 0 : const ClientIncidentReport_IncidentData_TrackedPreferenceIncident& ClientIncidentReport_IncidentData_TrackedPreferenceIncident::default_instance() {
8551 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
8552 0 : protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
8553 : #else
8554 : if (default_instance_ == NULL) protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
8555 : #endif
8556 0 : return *default_instance_;
8557 : }
8558 :
8559 : ClientIncidentReport_IncidentData_TrackedPreferenceIncident* ClientIncidentReport_IncidentData_TrackedPreferenceIncident::default_instance_ = NULL;
8560 :
8561 0 : ClientIncidentReport_IncidentData_TrackedPreferenceIncident* ClientIncidentReport_IncidentData_TrackedPreferenceIncident::New() const {
8562 0 : return new ClientIncidentReport_IncidentData_TrackedPreferenceIncident;
8563 : }
8564 :
8565 0 : void ClientIncidentReport_IncidentData_TrackedPreferenceIncident::Clear() {
8566 0 : if (_has_bits_[0 / 32] & 11) {
8567 0 : if (has_path()) {
8568 0 : if (path_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
8569 0 : path_->clear();
8570 : }
8571 : }
8572 0 : if (has_atomic_value()) {
8573 0 : if (atomic_value_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
8574 0 : atomic_value_->clear();
8575 : }
8576 : }
8577 0 : value_state_ = 0;
8578 : }
8579 0 : split_key_.Clear();
8580 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
8581 0 : mutable_unknown_fields()->clear();
8582 0 : }
8583 :
8584 0 : bool ClientIncidentReport_IncidentData_TrackedPreferenceIncident::MergePartialFromCodedStream(
8585 : ::google::protobuf::io::CodedInputStream* input) {
8586 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
8587 : ::google::protobuf::uint32 tag;
8588 : ::google::protobuf::io::StringOutputStream unknown_fields_string(
8589 0 : mutable_unknown_fields());
8590 : ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
8591 0 : &unknown_fields_string);
8592 : // @@protoc_insertion_point(parse_start:safe_browsing.ClientIncidentReport.IncidentData.TrackedPreferenceIncident)
8593 : for (;;) {
8594 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
8595 0 : tag = p.first;
8596 0 : if (!p.second) goto handle_unusual;
8597 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
8598 : // optional string path = 1;
8599 : case 1: {
8600 0 : if (tag == 10) {
8601 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
8602 : input, this->mutable_path()));
8603 : } else {
8604 0 : goto handle_unusual;
8605 : }
8606 0 : if (input->ExpectTag(18)) goto parse_atomic_value;
8607 0 : break;
8608 : }
8609 :
8610 : // optional string atomic_value = 2;
8611 : case 2: {
8612 0 : if (tag == 18) {
8613 : parse_atomic_value:
8614 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
8615 : input, this->mutable_atomic_value()));
8616 : } else {
8617 0 : goto handle_unusual;
8618 : }
8619 0 : if (input->ExpectTag(26)) goto parse_split_key;
8620 0 : break;
8621 : }
8622 :
8623 : // repeated string split_key = 3;
8624 : case 3: {
8625 0 : if (tag == 26) {
8626 : parse_split_key:
8627 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
8628 : input, this->add_split_key()));
8629 : } else {
8630 0 : goto handle_unusual;
8631 : }
8632 0 : if (input->ExpectTag(26)) goto parse_split_key;
8633 0 : if (input->ExpectTag(32)) goto parse_value_state;
8634 0 : break;
8635 : }
8636 :
8637 : // optional .safe_browsing.ClientIncidentReport.IncidentData.TrackedPreferenceIncident.ValueState value_state = 4;
8638 : case 4: {
8639 0 : if (tag == 32) {
8640 : parse_value_state:
8641 : int value;
8642 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8643 : int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
8644 : input, &value)));
8645 0 : if (::safe_browsing::ClientIncidentReport_IncidentData_TrackedPreferenceIncident_ValueState_IsValid(value)) {
8646 0 : set_value_state(static_cast< ::safe_browsing::ClientIncidentReport_IncidentData_TrackedPreferenceIncident_ValueState >(value));
8647 : } else {
8648 0 : unknown_fields_stream.WriteVarint32(tag);
8649 0 : unknown_fields_stream.WriteVarint32(value);
8650 : }
8651 : } else {
8652 0 : goto handle_unusual;
8653 : }
8654 0 : if (input->ExpectAtEnd()) goto success;
8655 0 : break;
8656 : }
8657 :
8658 : default: {
8659 : handle_unusual:
8660 0 : if (tag == 0 ||
8661 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
8662 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
8663 0 : goto success;
8664 : }
8665 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(
8666 : input, tag, &unknown_fields_stream));
8667 0 : break;
8668 : }
8669 : }
8670 0 : }
8671 : success:
8672 : // @@protoc_insertion_point(parse_success:safe_browsing.ClientIncidentReport.IncidentData.TrackedPreferenceIncident)
8673 0 : return true;
8674 : failure:
8675 : // @@protoc_insertion_point(parse_failure:safe_browsing.ClientIncidentReport.IncidentData.TrackedPreferenceIncident)
8676 0 : return false;
8677 : #undef DO_
8678 : }
8679 :
8680 0 : void ClientIncidentReport_IncidentData_TrackedPreferenceIncident::SerializeWithCachedSizes(
8681 : ::google::protobuf::io::CodedOutputStream* output) const {
8682 : // @@protoc_insertion_point(serialize_start:safe_browsing.ClientIncidentReport.IncidentData.TrackedPreferenceIncident)
8683 : // optional string path = 1;
8684 0 : if (has_path()) {
8685 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
8686 0 : 1, this->path(), output);
8687 : }
8688 :
8689 : // optional string atomic_value = 2;
8690 0 : if (has_atomic_value()) {
8691 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
8692 0 : 2, this->atomic_value(), output);
8693 : }
8694 :
8695 : // repeated string split_key = 3;
8696 0 : for (int i = 0; i < this->split_key_size(); i++) {
8697 0 : ::google::protobuf::internal::WireFormatLite::WriteString(
8698 0 : 3, this->split_key(i), output);
8699 : }
8700 :
8701 : // optional .safe_browsing.ClientIncidentReport.IncidentData.TrackedPreferenceIncident.ValueState value_state = 4;
8702 0 : if (has_value_state()) {
8703 0 : ::google::protobuf::internal::WireFormatLite::WriteEnum(
8704 0 : 4, this->value_state(), output);
8705 : }
8706 :
8707 0 : output->WriteRaw(unknown_fields().data(),
8708 0 : unknown_fields().size());
8709 : // @@protoc_insertion_point(serialize_end:safe_browsing.ClientIncidentReport.IncidentData.TrackedPreferenceIncident)
8710 0 : }
8711 :
8712 0 : int ClientIncidentReport_IncidentData_TrackedPreferenceIncident::ByteSize() const {
8713 0 : int total_size = 0;
8714 :
8715 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
8716 : // optional string path = 1;
8717 0 : if (has_path()) {
8718 0 : total_size += 1 +
8719 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
8720 : this->path());
8721 : }
8722 :
8723 : // optional string atomic_value = 2;
8724 0 : if (has_atomic_value()) {
8725 0 : total_size += 1 +
8726 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
8727 : this->atomic_value());
8728 : }
8729 :
8730 : // optional .safe_browsing.ClientIncidentReport.IncidentData.TrackedPreferenceIncident.ValueState value_state = 4;
8731 0 : if (has_value_state()) {
8732 0 : total_size += 1 +
8733 0 : ::google::protobuf::internal::WireFormatLite::EnumSize(this->value_state());
8734 : }
8735 :
8736 : }
8737 : // repeated string split_key = 3;
8738 0 : total_size += 1 * this->split_key_size();
8739 0 : for (int i = 0; i < this->split_key_size(); i++) {
8740 0 : total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
8741 : this->split_key(i));
8742 : }
8743 :
8744 0 : total_size += unknown_fields().size();
8745 :
8746 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
8747 0 : _cached_size_ = total_size;
8748 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
8749 0 : return total_size;
8750 : }
8751 :
8752 0 : void ClientIncidentReport_IncidentData_TrackedPreferenceIncident::CheckTypeAndMergeFrom(
8753 : const ::google::protobuf::MessageLite& from) {
8754 0 : MergeFrom(*::google::protobuf::down_cast<const ClientIncidentReport_IncidentData_TrackedPreferenceIncident*>(&from));
8755 0 : }
8756 :
8757 0 : void ClientIncidentReport_IncidentData_TrackedPreferenceIncident::MergeFrom(const ClientIncidentReport_IncidentData_TrackedPreferenceIncident& from) {
8758 0 : GOOGLE_CHECK_NE(&from, this);
8759 0 : split_key_.MergeFrom(from.split_key_);
8760 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
8761 0 : if (from.has_path()) {
8762 0 : set_path(from.path());
8763 : }
8764 0 : if (from.has_atomic_value()) {
8765 0 : set_atomic_value(from.atomic_value());
8766 : }
8767 0 : if (from.has_value_state()) {
8768 0 : set_value_state(from.value_state());
8769 : }
8770 : }
8771 0 : mutable_unknown_fields()->append(from.unknown_fields());
8772 0 : }
8773 :
8774 0 : void ClientIncidentReport_IncidentData_TrackedPreferenceIncident::CopyFrom(const ClientIncidentReport_IncidentData_TrackedPreferenceIncident& from) {
8775 0 : if (&from == this) return;
8776 0 : Clear();
8777 0 : MergeFrom(from);
8778 : }
8779 :
8780 0 : bool ClientIncidentReport_IncidentData_TrackedPreferenceIncident::IsInitialized() const {
8781 :
8782 0 : return true;
8783 : }
8784 :
8785 0 : void ClientIncidentReport_IncidentData_TrackedPreferenceIncident::Swap(ClientIncidentReport_IncidentData_TrackedPreferenceIncident* other) {
8786 0 : if (other != this) {
8787 0 : std::swap(path_, other->path_);
8788 0 : std::swap(atomic_value_, other->atomic_value_);
8789 0 : split_key_.Swap(&other->split_key_);
8790 0 : std::swap(value_state_, other->value_state_);
8791 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
8792 0 : _unknown_fields_.swap(other->_unknown_fields_);
8793 0 : std::swap(_cached_size_, other->_cached_size_);
8794 : }
8795 0 : }
8796 :
8797 0 : ::std::string ClientIncidentReport_IncidentData_TrackedPreferenceIncident::GetTypeName() const {
8798 0 : return "safe_browsing.ClientIncidentReport.IncidentData.TrackedPreferenceIncident";
8799 : }
8800 :
8801 :
8802 : // -------------------------------------------------------------------
8803 :
8804 : #ifndef _MSC_VER
8805 : const int ClientIncidentReport_IncidentData_BinaryIntegrityIncident_ContainedFile::kRelativePathFieldNumber;
8806 : const int ClientIncidentReport_IncidentData_BinaryIntegrityIncident_ContainedFile::kSignatureFieldNumber;
8807 : const int ClientIncidentReport_IncidentData_BinaryIntegrityIncident_ContainedFile::kImageHeadersFieldNumber;
8808 : #endif // !_MSC_VER
8809 :
8810 0 : ClientIncidentReport_IncidentData_BinaryIntegrityIncident_ContainedFile::ClientIncidentReport_IncidentData_BinaryIntegrityIncident_ContainedFile()
8811 0 : : ::google::protobuf::MessageLite() {
8812 0 : SharedCtor();
8813 : // @@protoc_insertion_point(constructor:safe_browsing.ClientIncidentReport.IncidentData.BinaryIntegrityIncident.ContainedFile)
8814 0 : }
8815 :
8816 0 : void ClientIncidentReport_IncidentData_BinaryIntegrityIncident_ContainedFile::InitAsDefaultInstance() {
8817 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
8818 0 : signature_ = const_cast< ::safe_browsing::ClientDownloadRequest_SignatureInfo*>(
8819 0 : ::safe_browsing::ClientDownloadRequest_SignatureInfo::internal_default_instance());
8820 : #else
8821 : signature_ = const_cast< ::safe_browsing::ClientDownloadRequest_SignatureInfo*>(&::safe_browsing::ClientDownloadRequest_SignatureInfo::default_instance());
8822 : #endif
8823 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
8824 0 : image_headers_ = const_cast< ::safe_browsing::ClientDownloadRequest_ImageHeaders*>(
8825 0 : ::safe_browsing::ClientDownloadRequest_ImageHeaders::internal_default_instance());
8826 : #else
8827 : image_headers_ = const_cast< ::safe_browsing::ClientDownloadRequest_ImageHeaders*>(&::safe_browsing::ClientDownloadRequest_ImageHeaders::default_instance());
8828 : #endif
8829 0 : }
8830 :
8831 0 : ClientIncidentReport_IncidentData_BinaryIntegrityIncident_ContainedFile::ClientIncidentReport_IncidentData_BinaryIntegrityIncident_ContainedFile(const ClientIncidentReport_IncidentData_BinaryIntegrityIncident_ContainedFile& from)
8832 0 : : ::google::protobuf::MessageLite() {
8833 0 : SharedCtor();
8834 0 : MergeFrom(from);
8835 : // @@protoc_insertion_point(copy_constructor:safe_browsing.ClientIncidentReport.IncidentData.BinaryIntegrityIncident.ContainedFile)
8836 0 : }
8837 :
8838 0 : void ClientIncidentReport_IncidentData_BinaryIntegrityIncident_ContainedFile::SharedCtor() {
8839 0 : ::google::protobuf::internal::GetEmptyString();
8840 0 : _cached_size_ = 0;
8841 0 : relative_path_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8842 0 : signature_ = NULL;
8843 0 : image_headers_ = NULL;
8844 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
8845 0 : }
8846 :
8847 0 : ClientIncidentReport_IncidentData_BinaryIntegrityIncident_ContainedFile::~ClientIncidentReport_IncidentData_BinaryIntegrityIncident_ContainedFile() {
8848 : // @@protoc_insertion_point(destructor:safe_browsing.ClientIncidentReport.IncidentData.BinaryIntegrityIncident.ContainedFile)
8849 0 : SharedDtor();
8850 0 : }
8851 :
8852 0 : void ClientIncidentReport_IncidentData_BinaryIntegrityIncident_ContainedFile::SharedDtor() {
8853 0 : if (relative_path_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
8854 0 : delete relative_path_;
8855 : }
8856 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
8857 0 : if (this != &default_instance()) {
8858 : #else
8859 : if (this != default_instance_) {
8860 : #endif
8861 0 : delete signature_;
8862 0 : delete image_headers_;
8863 : }
8864 0 : }
8865 :
8866 0 : void ClientIncidentReport_IncidentData_BinaryIntegrityIncident_ContainedFile::SetCachedSize(int size) const {
8867 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
8868 0 : _cached_size_ = size;
8869 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
8870 0 : }
8871 0 : const ClientIncidentReport_IncidentData_BinaryIntegrityIncident_ContainedFile& ClientIncidentReport_IncidentData_BinaryIntegrityIncident_ContainedFile::default_instance() {
8872 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
8873 0 : protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
8874 : #else
8875 : if (default_instance_ == NULL) protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
8876 : #endif
8877 0 : return *default_instance_;
8878 : }
8879 :
8880 : ClientIncidentReport_IncidentData_BinaryIntegrityIncident_ContainedFile* ClientIncidentReport_IncidentData_BinaryIntegrityIncident_ContainedFile::default_instance_ = NULL;
8881 :
8882 0 : ClientIncidentReport_IncidentData_BinaryIntegrityIncident_ContainedFile* ClientIncidentReport_IncidentData_BinaryIntegrityIncident_ContainedFile::New() const {
8883 0 : return new ClientIncidentReport_IncidentData_BinaryIntegrityIncident_ContainedFile;
8884 : }
8885 :
8886 0 : void ClientIncidentReport_IncidentData_BinaryIntegrityIncident_ContainedFile::Clear() {
8887 0 : if (_has_bits_[0 / 32] & 7) {
8888 0 : if (has_relative_path()) {
8889 0 : if (relative_path_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
8890 0 : relative_path_->clear();
8891 : }
8892 : }
8893 0 : if (has_signature()) {
8894 0 : if (signature_ != NULL) signature_->::safe_browsing::ClientDownloadRequest_SignatureInfo::Clear();
8895 : }
8896 0 : if (has_image_headers()) {
8897 0 : if (image_headers_ != NULL) image_headers_->::safe_browsing::ClientDownloadRequest_ImageHeaders::Clear();
8898 : }
8899 : }
8900 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
8901 0 : mutable_unknown_fields()->clear();
8902 0 : }
8903 :
8904 0 : bool ClientIncidentReport_IncidentData_BinaryIntegrityIncident_ContainedFile::MergePartialFromCodedStream(
8905 : ::google::protobuf::io::CodedInputStream* input) {
8906 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
8907 : ::google::protobuf::uint32 tag;
8908 : ::google::protobuf::io::StringOutputStream unknown_fields_string(
8909 0 : mutable_unknown_fields());
8910 : ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
8911 0 : &unknown_fields_string);
8912 : // @@protoc_insertion_point(parse_start:safe_browsing.ClientIncidentReport.IncidentData.BinaryIntegrityIncident.ContainedFile)
8913 : for (;;) {
8914 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
8915 0 : tag = p.first;
8916 0 : if (!p.second) goto handle_unusual;
8917 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
8918 : // optional string relative_path = 1;
8919 : case 1: {
8920 0 : if (tag == 10) {
8921 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
8922 : input, this->mutable_relative_path()));
8923 : } else {
8924 0 : goto handle_unusual;
8925 : }
8926 0 : if (input->ExpectTag(18)) goto parse_signature;
8927 0 : break;
8928 : }
8929 :
8930 : // optional .safe_browsing.ClientDownloadRequest.SignatureInfo signature = 2;
8931 : case 2: {
8932 0 : if (tag == 18) {
8933 : parse_signature:
8934 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
8935 : input, mutable_signature()));
8936 : } else {
8937 0 : goto handle_unusual;
8938 : }
8939 0 : if (input->ExpectTag(26)) goto parse_image_headers;
8940 0 : break;
8941 : }
8942 :
8943 : // optional .safe_browsing.ClientDownloadRequest.ImageHeaders image_headers = 3;
8944 : case 3: {
8945 0 : if (tag == 26) {
8946 : parse_image_headers:
8947 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
8948 : input, mutable_image_headers()));
8949 : } else {
8950 0 : goto handle_unusual;
8951 : }
8952 0 : if (input->ExpectAtEnd()) goto success;
8953 0 : break;
8954 : }
8955 :
8956 : default: {
8957 : handle_unusual:
8958 0 : if (tag == 0 ||
8959 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
8960 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
8961 0 : goto success;
8962 : }
8963 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(
8964 : input, tag, &unknown_fields_stream));
8965 0 : break;
8966 : }
8967 : }
8968 0 : }
8969 : success:
8970 : // @@protoc_insertion_point(parse_success:safe_browsing.ClientIncidentReport.IncidentData.BinaryIntegrityIncident.ContainedFile)
8971 0 : return true;
8972 : failure:
8973 : // @@protoc_insertion_point(parse_failure:safe_browsing.ClientIncidentReport.IncidentData.BinaryIntegrityIncident.ContainedFile)
8974 0 : return false;
8975 : #undef DO_
8976 : }
8977 :
8978 0 : void ClientIncidentReport_IncidentData_BinaryIntegrityIncident_ContainedFile::SerializeWithCachedSizes(
8979 : ::google::protobuf::io::CodedOutputStream* output) const {
8980 : // @@protoc_insertion_point(serialize_start:safe_browsing.ClientIncidentReport.IncidentData.BinaryIntegrityIncident.ContainedFile)
8981 : // optional string relative_path = 1;
8982 0 : if (has_relative_path()) {
8983 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
8984 0 : 1, this->relative_path(), output);
8985 : }
8986 :
8987 : // optional .safe_browsing.ClientDownloadRequest.SignatureInfo signature = 2;
8988 0 : if (has_signature()) {
8989 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
8990 0 : 2, this->signature(), output);
8991 : }
8992 :
8993 : // optional .safe_browsing.ClientDownloadRequest.ImageHeaders image_headers = 3;
8994 0 : if (has_image_headers()) {
8995 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
8996 0 : 3, this->image_headers(), output);
8997 : }
8998 :
8999 0 : output->WriteRaw(unknown_fields().data(),
9000 0 : unknown_fields().size());
9001 : // @@protoc_insertion_point(serialize_end:safe_browsing.ClientIncidentReport.IncidentData.BinaryIntegrityIncident.ContainedFile)
9002 0 : }
9003 :
9004 0 : int ClientIncidentReport_IncidentData_BinaryIntegrityIncident_ContainedFile::ByteSize() const {
9005 0 : int total_size = 0;
9006 :
9007 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
9008 : // optional string relative_path = 1;
9009 0 : if (has_relative_path()) {
9010 0 : total_size += 1 +
9011 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
9012 : this->relative_path());
9013 : }
9014 :
9015 : // optional .safe_browsing.ClientDownloadRequest.SignatureInfo signature = 2;
9016 0 : if (has_signature()) {
9017 0 : total_size += 1 +
9018 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
9019 : this->signature());
9020 : }
9021 :
9022 : // optional .safe_browsing.ClientDownloadRequest.ImageHeaders image_headers = 3;
9023 0 : if (has_image_headers()) {
9024 0 : total_size += 1 +
9025 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
9026 : this->image_headers());
9027 : }
9028 :
9029 : }
9030 0 : total_size += unknown_fields().size();
9031 :
9032 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
9033 0 : _cached_size_ = total_size;
9034 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
9035 0 : return total_size;
9036 : }
9037 :
9038 0 : void ClientIncidentReport_IncidentData_BinaryIntegrityIncident_ContainedFile::CheckTypeAndMergeFrom(
9039 : const ::google::protobuf::MessageLite& from) {
9040 0 : MergeFrom(*::google::protobuf::down_cast<const ClientIncidentReport_IncidentData_BinaryIntegrityIncident_ContainedFile*>(&from));
9041 0 : }
9042 :
9043 0 : void ClientIncidentReport_IncidentData_BinaryIntegrityIncident_ContainedFile::MergeFrom(const ClientIncidentReport_IncidentData_BinaryIntegrityIncident_ContainedFile& from) {
9044 0 : GOOGLE_CHECK_NE(&from, this);
9045 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
9046 0 : if (from.has_relative_path()) {
9047 0 : set_relative_path(from.relative_path());
9048 : }
9049 0 : if (from.has_signature()) {
9050 0 : mutable_signature()->::safe_browsing::ClientDownloadRequest_SignatureInfo::MergeFrom(from.signature());
9051 : }
9052 0 : if (from.has_image_headers()) {
9053 0 : mutable_image_headers()->::safe_browsing::ClientDownloadRequest_ImageHeaders::MergeFrom(from.image_headers());
9054 : }
9055 : }
9056 0 : mutable_unknown_fields()->append(from.unknown_fields());
9057 0 : }
9058 :
9059 0 : void ClientIncidentReport_IncidentData_BinaryIntegrityIncident_ContainedFile::CopyFrom(const ClientIncidentReport_IncidentData_BinaryIntegrityIncident_ContainedFile& from) {
9060 0 : if (&from == this) return;
9061 0 : Clear();
9062 0 : MergeFrom(from);
9063 : }
9064 :
9065 0 : bool ClientIncidentReport_IncidentData_BinaryIntegrityIncident_ContainedFile::IsInitialized() const {
9066 :
9067 0 : if (has_signature()) {
9068 0 : if (!this->signature().IsInitialized()) return false;
9069 : }
9070 0 : if (has_image_headers()) {
9071 0 : if (!this->image_headers().IsInitialized()) return false;
9072 : }
9073 0 : return true;
9074 : }
9075 :
9076 0 : void ClientIncidentReport_IncidentData_BinaryIntegrityIncident_ContainedFile::Swap(ClientIncidentReport_IncidentData_BinaryIntegrityIncident_ContainedFile* other) {
9077 0 : if (other != this) {
9078 0 : std::swap(relative_path_, other->relative_path_);
9079 0 : std::swap(signature_, other->signature_);
9080 0 : std::swap(image_headers_, other->image_headers_);
9081 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
9082 0 : _unknown_fields_.swap(other->_unknown_fields_);
9083 0 : std::swap(_cached_size_, other->_cached_size_);
9084 : }
9085 0 : }
9086 :
9087 0 : ::std::string ClientIncidentReport_IncidentData_BinaryIntegrityIncident_ContainedFile::GetTypeName() const {
9088 0 : return "safe_browsing.ClientIncidentReport.IncidentData.BinaryIntegrityIncident.ContainedFile";
9089 : }
9090 :
9091 :
9092 : // -------------------------------------------------------------------
9093 :
9094 : #ifndef _MSC_VER
9095 : const int ClientIncidentReport_IncidentData_BinaryIntegrityIncident::kFileBasenameFieldNumber;
9096 : const int ClientIncidentReport_IncidentData_BinaryIntegrityIncident::kSignatureFieldNumber;
9097 : const int ClientIncidentReport_IncidentData_BinaryIntegrityIncident::kImageHeadersFieldNumber;
9098 : const int ClientIncidentReport_IncidentData_BinaryIntegrityIncident::kSecErrorFieldNumber;
9099 : const int ClientIncidentReport_IncidentData_BinaryIntegrityIncident::kContainedFileFieldNumber;
9100 : #endif // !_MSC_VER
9101 :
9102 0 : ClientIncidentReport_IncidentData_BinaryIntegrityIncident::ClientIncidentReport_IncidentData_BinaryIntegrityIncident()
9103 0 : : ::google::protobuf::MessageLite() {
9104 0 : SharedCtor();
9105 : // @@protoc_insertion_point(constructor:safe_browsing.ClientIncidentReport.IncidentData.BinaryIntegrityIncident)
9106 0 : }
9107 :
9108 0 : void ClientIncidentReport_IncidentData_BinaryIntegrityIncident::InitAsDefaultInstance() {
9109 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
9110 0 : signature_ = const_cast< ::safe_browsing::ClientDownloadRequest_SignatureInfo*>(
9111 0 : ::safe_browsing::ClientDownloadRequest_SignatureInfo::internal_default_instance());
9112 : #else
9113 : signature_ = const_cast< ::safe_browsing::ClientDownloadRequest_SignatureInfo*>(&::safe_browsing::ClientDownloadRequest_SignatureInfo::default_instance());
9114 : #endif
9115 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
9116 0 : image_headers_ = const_cast< ::safe_browsing::ClientDownloadRequest_ImageHeaders*>(
9117 0 : ::safe_browsing::ClientDownloadRequest_ImageHeaders::internal_default_instance());
9118 : #else
9119 : image_headers_ = const_cast< ::safe_browsing::ClientDownloadRequest_ImageHeaders*>(&::safe_browsing::ClientDownloadRequest_ImageHeaders::default_instance());
9120 : #endif
9121 0 : }
9122 :
9123 0 : ClientIncidentReport_IncidentData_BinaryIntegrityIncident::ClientIncidentReport_IncidentData_BinaryIntegrityIncident(const ClientIncidentReport_IncidentData_BinaryIntegrityIncident& from)
9124 0 : : ::google::protobuf::MessageLite() {
9125 0 : SharedCtor();
9126 0 : MergeFrom(from);
9127 : // @@protoc_insertion_point(copy_constructor:safe_browsing.ClientIncidentReport.IncidentData.BinaryIntegrityIncident)
9128 0 : }
9129 :
9130 0 : void ClientIncidentReport_IncidentData_BinaryIntegrityIncident::SharedCtor() {
9131 0 : ::google::protobuf::internal::GetEmptyString();
9132 0 : _cached_size_ = 0;
9133 0 : file_basename_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9134 0 : signature_ = NULL;
9135 0 : image_headers_ = NULL;
9136 0 : sec_error_ = 0;
9137 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
9138 0 : }
9139 :
9140 0 : ClientIncidentReport_IncidentData_BinaryIntegrityIncident::~ClientIncidentReport_IncidentData_BinaryIntegrityIncident() {
9141 : // @@protoc_insertion_point(destructor:safe_browsing.ClientIncidentReport.IncidentData.BinaryIntegrityIncident)
9142 0 : SharedDtor();
9143 0 : }
9144 :
9145 0 : void ClientIncidentReport_IncidentData_BinaryIntegrityIncident::SharedDtor() {
9146 0 : if (file_basename_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
9147 0 : delete file_basename_;
9148 : }
9149 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
9150 0 : if (this != &default_instance()) {
9151 : #else
9152 : if (this != default_instance_) {
9153 : #endif
9154 0 : delete signature_;
9155 0 : delete image_headers_;
9156 : }
9157 0 : }
9158 :
9159 0 : void ClientIncidentReport_IncidentData_BinaryIntegrityIncident::SetCachedSize(int size) const {
9160 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
9161 0 : _cached_size_ = size;
9162 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
9163 0 : }
9164 0 : const ClientIncidentReport_IncidentData_BinaryIntegrityIncident& ClientIncidentReport_IncidentData_BinaryIntegrityIncident::default_instance() {
9165 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
9166 0 : protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
9167 : #else
9168 : if (default_instance_ == NULL) protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
9169 : #endif
9170 0 : return *default_instance_;
9171 : }
9172 :
9173 : ClientIncidentReport_IncidentData_BinaryIntegrityIncident* ClientIncidentReport_IncidentData_BinaryIntegrityIncident::default_instance_ = NULL;
9174 :
9175 0 : ClientIncidentReport_IncidentData_BinaryIntegrityIncident* ClientIncidentReport_IncidentData_BinaryIntegrityIncident::New() const {
9176 0 : return new ClientIncidentReport_IncidentData_BinaryIntegrityIncident;
9177 : }
9178 :
9179 0 : void ClientIncidentReport_IncidentData_BinaryIntegrityIncident::Clear() {
9180 0 : if (_has_bits_[0 / 32] & 15) {
9181 0 : if (has_file_basename()) {
9182 0 : if (file_basename_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
9183 0 : file_basename_->clear();
9184 : }
9185 : }
9186 0 : if (has_signature()) {
9187 0 : if (signature_ != NULL) signature_->::safe_browsing::ClientDownloadRequest_SignatureInfo::Clear();
9188 : }
9189 0 : if (has_image_headers()) {
9190 0 : if (image_headers_ != NULL) image_headers_->::safe_browsing::ClientDownloadRequest_ImageHeaders::Clear();
9191 : }
9192 0 : sec_error_ = 0;
9193 : }
9194 0 : contained_file_.Clear();
9195 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
9196 0 : mutable_unknown_fields()->clear();
9197 0 : }
9198 :
9199 0 : bool ClientIncidentReport_IncidentData_BinaryIntegrityIncident::MergePartialFromCodedStream(
9200 : ::google::protobuf::io::CodedInputStream* input) {
9201 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
9202 : ::google::protobuf::uint32 tag;
9203 : ::google::protobuf::io::StringOutputStream unknown_fields_string(
9204 0 : mutable_unknown_fields());
9205 : ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
9206 0 : &unknown_fields_string);
9207 : // @@protoc_insertion_point(parse_start:safe_browsing.ClientIncidentReport.IncidentData.BinaryIntegrityIncident)
9208 : for (;;) {
9209 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
9210 0 : tag = p.first;
9211 0 : if (!p.second) goto handle_unusual;
9212 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
9213 : // optional string file_basename = 1;
9214 : case 1: {
9215 0 : if (tag == 10) {
9216 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
9217 : input, this->mutable_file_basename()));
9218 : } else {
9219 0 : goto handle_unusual;
9220 : }
9221 0 : if (input->ExpectTag(18)) goto parse_signature;
9222 0 : break;
9223 : }
9224 :
9225 : // optional .safe_browsing.ClientDownloadRequest.SignatureInfo signature = 2;
9226 : case 2: {
9227 0 : if (tag == 18) {
9228 : parse_signature:
9229 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
9230 : input, mutable_signature()));
9231 : } else {
9232 0 : goto handle_unusual;
9233 : }
9234 0 : if (input->ExpectTag(26)) goto parse_image_headers;
9235 0 : break;
9236 : }
9237 :
9238 : // optional .safe_browsing.ClientDownloadRequest.ImageHeaders image_headers = 3;
9239 : case 3: {
9240 0 : if (tag == 26) {
9241 : parse_image_headers:
9242 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
9243 : input, mutable_image_headers()));
9244 : } else {
9245 0 : goto handle_unusual;
9246 : }
9247 0 : if (input->ExpectTag(32)) goto parse_sec_error;
9248 0 : break;
9249 : }
9250 :
9251 : // optional int32 sec_error = 4;
9252 : case 4: {
9253 0 : if (tag == 32) {
9254 : parse_sec_error:
9255 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9256 : ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
9257 : input, &sec_error_)));
9258 0 : set_has_sec_error();
9259 : } else {
9260 0 : goto handle_unusual;
9261 : }
9262 0 : if (input->ExpectTag(42)) goto parse_contained_file;
9263 0 : break;
9264 : }
9265 :
9266 : // repeated .safe_browsing.ClientIncidentReport.IncidentData.BinaryIntegrityIncident.ContainedFile contained_file = 5;
9267 : case 5: {
9268 0 : if (tag == 42) {
9269 : parse_contained_file:
9270 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
9271 : input, add_contained_file()));
9272 : } else {
9273 0 : goto handle_unusual;
9274 : }
9275 0 : if (input->ExpectTag(42)) goto parse_contained_file;
9276 0 : if (input->ExpectAtEnd()) goto success;
9277 0 : break;
9278 : }
9279 :
9280 : default: {
9281 : handle_unusual:
9282 0 : if (tag == 0 ||
9283 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
9284 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
9285 0 : goto success;
9286 : }
9287 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(
9288 : input, tag, &unknown_fields_stream));
9289 0 : break;
9290 : }
9291 : }
9292 0 : }
9293 : success:
9294 : // @@protoc_insertion_point(parse_success:safe_browsing.ClientIncidentReport.IncidentData.BinaryIntegrityIncident)
9295 0 : return true;
9296 : failure:
9297 : // @@protoc_insertion_point(parse_failure:safe_browsing.ClientIncidentReport.IncidentData.BinaryIntegrityIncident)
9298 0 : return false;
9299 : #undef DO_
9300 : }
9301 :
9302 0 : void ClientIncidentReport_IncidentData_BinaryIntegrityIncident::SerializeWithCachedSizes(
9303 : ::google::protobuf::io::CodedOutputStream* output) const {
9304 : // @@protoc_insertion_point(serialize_start:safe_browsing.ClientIncidentReport.IncidentData.BinaryIntegrityIncident)
9305 : // optional string file_basename = 1;
9306 0 : if (has_file_basename()) {
9307 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
9308 0 : 1, this->file_basename(), output);
9309 : }
9310 :
9311 : // optional .safe_browsing.ClientDownloadRequest.SignatureInfo signature = 2;
9312 0 : if (has_signature()) {
9313 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
9314 0 : 2, this->signature(), output);
9315 : }
9316 :
9317 : // optional .safe_browsing.ClientDownloadRequest.ImageHeaders image_headers = 3;
9318 0 : if (has_image_headers()) {
9319 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
9320 0 : 3, this->image_headers(), output);
9321 : }
9322 :
9323 : // optional int32 sec_error = 4;
9324 0 : if (has_sec_error()) {
9325 0 : ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->sec_error(), output);
9326 : }
9327 :
9328 : // repeated .safe_browsing.ClientIncidentReport.IncidentData.BinaryIntegrityIncident.ContainedFile contained_file = 5;
9329 0 : for (int i = 0; i < this->contained_file_size(); i++) {
9330 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
9331 0 : 5, this->contained_file(i), output);
9332 : }
9333 :
9334 0 : output->WriteRaw(unknown_fields().data(),
9335 0 : unknown_fields().size());
9336 : // @@protoc_insertion_point(serialize_end:safe_browsing.ClientIncidentReport.IncidentData.BinaryIntegrityIncident)
9337 0 : }
9338 :
9339 0 : int ClientIncidentReport_IncidentData_BinaryIntegrityIncident::ByteSize() const {
9340 0 : int total_size = 0;
9341 :
9342 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
9343 : // optional string file_basename = 1;
9344 0 : if (has_file_basename()) {
9345 0 : total_size += 1 +
9346 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
9347 : this->file_basename());
9348 : }
9349 :
9350 : // optional .safe_browsing.ClientDownloadRequest.SignatureInfo signature = 2;
9351 0 : if (has_signature()) {
9352 0 : total_size += 1 +
9353 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
9354 : this->signature());
9355 : }
9356 :
9357 : // optional .safe_browsing.ClientDownloadRequest.ImageHeaders image_headers = 3;
9358 0 : if (has_image_headers()) {
9359 0 : total_size += 1 +
9360 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
9361 : this->image_headers());
9362 : }
9363 :
9364 : // optional int32 sec_error = 4;
9365 0 : if (has_sec_error()) {
9366 0 : total_size += 1 +
9367 0 : ::google::protobuf::internal::WireFormatLite::Int32Size(
9368 : this->sec_error());
9369 : }
9370 :
9371 : }
9372 : // repeated .safe_browsing.ClientIncidentReport.IncidentData.BinaryIntegrityIncident.ContainedFile contained_file = 5;
9373 0 : total_size += 1 * this->contained_file_size();
9374 0 : for (int i = 0; i < this->contained_file_size(); i++) {
9375 0 : total_size +=
9376 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
9377 : this->contained_file(i));
9378 : }
9379 :
9380 0 : total_size += unknown_fields().size();
9381 :
9382 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
9383 0 : _cached_size_ = total_size;
9384 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
9385 0 : return total_size;
9386 : }
9387 :
9388 0 : void ClientIncidentReport_IncidentData_BinaryIntegrityIncident::CheckTypeAndMergeFrom(
9389 : const ::google::protobuf::MessageLite& from) {
9390 0 : MergeFrom(*::google::protobuf::down_cast<const ClientIncidentReport_IncidentData_BinaryIntegrityIncident*>(&from));
9391 0 : }
9392 :
9393 0 : void ClientIncidentReport_IncidentData_BinaryIntegrityIncident::MergeFrom(const ClientIncidentReport_IncidentData_BinaryIntegrityIncident& from) {
9394 0 : GOOGLE_CHECK_NE(&from, this);
9395 0 : contained_file_.MergeFrom(from.contained_file_);
9396 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
9397 0 : if (from.has_file_basename()) {
9398 0 : set_file_basename(from.file_basename());
9399 : }
9400 0 : if (from.has_signature()) {
9401 0 : mutable_signature()->::safe_browsing::ClientDownloadRequest_SignatureInfo::MergeFrom(from.signature());
9402 : }
9403 0 : if (from.has_image_headers()) {
9404 0 : mutable_image_headers()->::safe_browsing::ClientDownloadRequest_ImageHeaders::MergeFrom(from.image_headers());
9405 : }
9406 0 : if (from.has_sec_error()) {
9407 0 : set_sec_error(from.sec_error());
9408 : }
9409 : }
9410 0 : mutable_unknown_fields()->append(from.unknown_fields());
9411 0 : }
9412 :
9413 0 : void ClientIncidentReport_IncidentData_BinaryIntegrityIncident::CopyFrom(const ClientIncidentReport_IncidentData_BinaryIntegrityIncident& from) {
9414 0 : if (&from == this) return;
9415 0 : Clear();
9416 0 : MergeFrom(from);
9417 : }
9418 :
9419 0 : bool ClientIncidentReport_IncidentData_BinaryIntegrityIncident::IsInitialized() const {
9420 :
9421 0 : if (has_signature()) {
9422 0 : if (!this->signature().IsInitialized()) return false;
9423 : }
9424 0 : if (has_image_headers()) {
9425 0 : if (!this->image_headers().IsInitialized()) return false;
9426 : }
9427 0 : if (!::google::protobuf::internal::AllAreInitialized(this->contained_file())) return false;
9428 0 : return true;
9429 : }
9430 :
9431 0 : void ClientIncidentReport_IncidentData_BinaryIntegrityIncident::Swap(ClientIncidentReport_IncidentData_BinaryIntegrityIncident* other) {
9432 0 : if (other != this) {
9433 0 : std::swap(file_basename_, other->file_basename_);
9434 0 : std::swap(signature_, other->signature_);
9435 0 : std::swap(image_headers_, other->image_headers_);
9436 0 : std::swap(sec_error_, other->sec_error_);
9437 0 : contained_file_.Swap(&other->contained_file_);
9438 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
9439 0 : _unknown_fields_.swap(other->_unknown_fields_);
9440 0 : std::swap(_cached_size_, other->_cached_size_);
9441 : }
9442 0 : }
9443 :
9444 0 : ::std::string ClientIncidentReport_IncidentData_BinaryIntegrityIncident::GetTypeName() const {
9445 0 : return "safe_browsing.ClientIncidentReport.IncidentData.BinaryIntegrityIncident";
9446 : }
9447 :
9448 :
9449 : // -------------------------------------------------------------------
9450 :
9451 : #ifndef _MSC_VER
9452 : const int ClientIncidentReport_IncidentData_BlacklistLoadIncident::kPathFieldNumber;
9453 : const int ClientIncidentReport_IncidentData_BlacklistLoadIncident::kDigestFieldNumber;
9454 : const int ClientIncidentReport_IncidentData_BlacklistLoadIncident::kVersionFieldNumber;
9455 : const int ClientIncidentReport_IncidentData_BlacklistLoadIncident::kBlacklistInitializedFieldNumber;
9456 : const int ClientIncidentReport_IncidentData_BlacklistLoadIncident::kSignatureFieldNumber;
9457 : const int ClientIncidentReport_IncidentData_BlacklistLoadIncident::kImageHeadersFieldNumber;
9458 : #endif // !_MSC_VER
9459 :
9460 0 : ClientIncidentReport_IncidentData_BlacklistLoadIncident::ClientIncidentReport_IncidentData_BlacklistLoadIncident()
9461 0 : : ::google::protobuf::MessageLite() {
9462 0 : SharedCtor();
9463 : // @@protoc_insertion_point(constructor:safe_browsing.ClientIncidentReport.IncidentData.BlacklistLoadIncident)
9464 0 : }
9465 :
9466 0 : void ClientIncidentReport_IncidentData_BlacklistLoadIncident::InitAsDefaultInstance() {
9467 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
9468 0 : digest_ = const_cast< ::safe_browsing::ClientDownloadRequest_Digests*>(
9469 0 : ::safe_browsing::ClientDownloadRequest_Digests::internal_default_instance());
9470 : #else
9471 : digest_ = const_cast< ::safe_browsing::ClientDownloadRequest_Digests*>(&::safe_browsing::ClientDownloadRequest_Digests::default_instance());
9472 : #endif
9473 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
9474 0 : signature_ = const_cast< ::safe_browsing::ClientDownloadRequest_SignatureInfo*>(
9475 0 : ::safe_browsing::ClientDownloadRequest_SignatureInfo::internal_default_instance());
9476 : #else
9477 : signature_ = const_cast< ::safe_browsing::ClientDownloadRequest_SignatureInfo*>(&::safe_browsing::ClientDownloadRequest_SignatureInfo::default_instance());
9478 : #endif
9479 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
9480 0 : image_headers_ = const_cast< ::safe_browsing::ClientDownloadRequest_ImageHeaders*>(
9481 0 : ::safe_browsing::ClientDownloadRequest_ImageHeaders::internal_default_instance());
9482 : #else
9483 : image_headers_ = const_cast< ::safe_browsing::ClientDownloadRequest_ImageHeaders*>(&::safe_browsing::ClientDownloadRequest_ImageHeaders::default_instance());
9484 : #endif
9485 0 : }
9486 :
9487 0 : ClientIncidentReport_IncidentData_BlacklistLoadIncident::ClientIncidentReport_IncidentData_BlacklistLoadIncident(const ClientIncidentReport_IncidentData_BlacklistLoadIncident& from)
9488 0 : : ::google::protobuf::MessageLite() {
9489 0 : SharedCtor();
9490 0 : MergeFrom(from);
9491 : // @@protoc_insertion_point(copy_constructor:safe_browsing.ClientIncidentReport.IncidentData.BlacklistLoadIncident)
9492 0 : }
9493 :
9494 0 : void ClientIncidentReport_IncidentData_BlacklistLoadIncident::SharedCtor() {
9495 0 : ::google::protobuf::internal::GetEmptyString();
9496 0 : _cached_size_ = 0;
9497 0 : path_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9498 0 : digest_ = NULL;
9499 0 : version_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9500 0 : blacklist_initialized_ = false;
9501 0 : signature_ = NULL;
9502 0 : image_headers_ = NULL;
9503 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
9504 0 : }
9505 :
9506 0 : ClientIncidentReport_IncidentData_BlacklistLoadIncident::~ClientIncidentReport_IncidentData_BlacklistLoadIncident() {
9507 : // @@protoc_insertion_point(destructor:safe_browsing.ClientIncidentReport.IncidentData.BlacklistLoadIncident)
9508 0 : SharedDtor();
9509 0 : }
9510 :
9511 0 : void ClientIncidentReport_IncidentData_BlacklistLoadIncident::SharedDtor() {
9512 0 : if (path_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
9513 0 : delete path_;
9514 : }
9515 0 : if (version_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
9516 0 : delete version_;
9517 : }
9518 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
9519 0 : if (this != &default_instance()) {
9520 : #else
9521 : if (this != default_instance_) {
9522 : #endif
9523 0 : delete digest_;
9524 0 : delete signature_;
9525 0 : delete image_headers_;
9526 : }
9527 0 : }
9528 :
9529 0 : void ClientIncidentReport_IncidentData_BlacklistLoadIncident::SetCachedSize(int size) const {
9530 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
9531 0 : _cached_size_ = size;
9532 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
9533 0 : }
9534 0 : const ClientIncidentReport_IncidentData_BlacklistLoadIncident& ClientIncidentReport_IncidentData_BlacklistLoadIncident::default_instance() {
9535 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
9536 0 : protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
9537 : #else
9538 : if (default_instance_ == NULL) protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
9539 : #endif
9540 0 : return *default_instance_;
9541 : }
9542 :
9543 : ClientIncidentReport_IncidentData_BlacklistLoadIncident* ClientIncidentReport_IncidentData_BlacklistLoadIncident::default_instance_ = NULL;
9544 :
9545 0 : ClientIncidentReport_IncidentData_BlacklistLoadIncident* ClientIncidentReport_IncidentData_BlacklistLoadIncident::New() const {
9546 0 : return new ClientIncidentReport_IncidentData_BlacklistLoadIncident;
9547 : }
9548 :
9549 0 : void ClientIncidentReport_IncidentData_BlacklistLoadIncident::Clear() {
9550 0 : if (_has_bits_[0 / 32] & 63) {
9551 0 : if (has_path()) {
9552 0 : if (path_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
9553 0 : path_->clear();
9554 : }
9555 : }
9556 0 : if (has_digest()) {
9557 0 : if (digest_ != NULL) digest_->::safe_browsing::ClientDownloadRequest_Digests::Clear();
9558 : }
9559 0 : if (has_version()) {
9560 0 : if (version_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
9561 0 : version_->clear();
9562 : }
9563 : }
9564 0 : blacklist_initialized_ = false;
9565 0 : if (has_signature()) {
9566 0 : if (signature_ != NULL) signature_->::safe_browsing::ClientDownloadRequest_SignatureInfo::Clear();
9567 : }
9568 0 : if (has_image_headers()) {
9569 0 : if (image_headers_ != NULL) image_headers_->::safe_browsing::ClientDownloadRequest_ImageHeaders::Clear();
9570 : }
9571 : }
9572 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
9573 0 : mutable_unknown_fields()->clear();
9574 0 : }
9575 :
9576 0 : bool ClientIncidentReport_IncidentData_BlacklistLoadIncident::MergePartialFromCodedStream(
9577 : ::google::protobuf::io::CodedInputStream* input) {
9578 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
9579 : ::google::protobuf::uint32 tag;
9580 : ::google::protobuf::io::StringOutputStream unknown_fields_string(
9581 0 : mutable_unknown_fields());
9582 : ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
9583 0 : &unknown_fields_string);
9584 : // @@protoc_insertion_point(parse_start:safe_browsing.ClientIncidentReport.IncidentData.BlacklistLoadIncident)
9585 : for (;;) {
9586 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
9587 0 : tag = p.first;
9588 0 : if (!p.second) goto handle_unusual;
9589 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
9590 : // optional string path = 1;
9591 : case 1: {
9592 0 : if (tag == 10) {
9593 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
9594 : input, this->mutable_path()));
9595 : } else {
9596 0 : goto handle_unusual;
9597 : }
9598 0 : if (input->ExpectTag(18)) goto parse_digest;
9599 0 : break;
9600 : }
9601 :
9602 : // optional .safe_browsing.ClientDownloadRequest.Digests digest = 2;
9603 : case 2: {
9604 0 : if (tag == 18) {
9605 : parse_digest:
9606 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
9607 : input, mutable_digest()));
9608 : } else {
9609 0 : goto handle_unusual;
9610 : }
9611 0 : if (input->ExpectTag(26)) goto parse_version;
9612 0 : break;
9613 : }
9614 :
9615 : // optional string version = 3;
9616 : case 3: {
9617 0 : if (tag == 26) {
9618 : parse_version:
9619 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
9620 : input, this->mutable_version()));
9621 : } else {
9622 0 : goto handle_unusual;
9623 : }
9624 0 : if (input->ExpectTag(32)) goto parse_blacklist_initialized;
9625 0 : break;
9626 : }
9627 :
9628 : // optional bool blacklist_initialized = 4;
9629 : case 4: {
9630 0 : if (tag == 32) {
9631 : parse_blacklist_initialized:
9632 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9633 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
9634 : input, &blacklist_initialized_)));
9635 0 : set_has_blacklist_initialized();
9636 : } else {
9637 0 : goto handle_unusual;
9638 : }
9639 0 : if (input->ExpectTag(42)) goto parse_signature;
9640 0 : break;
9641 : }
9642 :
9643 : // optional .safe_browsing.ClientDownloadRequest.SignatureInfo signature = 5;
9644 : case 5: {
9645 0 : if (tag == 42) {
9646 : parse_signature:
9647 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
9648 : input, mutable_signature()));
9649 : } else {
9650 0 : goto handle_unusual;
9651 : }
9652 0 : if (input->ExpectTag(50)) goto parse_image_headers;
9653 0 : break;
9654 : }
9655 :
9656 : // optional .safe_browsing.ClientDownloadRequest.ImageHeaders image_headers = 6;
9657 : case 6: {
9658 0 : if (tag == 50) {
9659 : parse_image_headers:
9660 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
9661 : input, mutable_image_headers()));
9662 : } else {
9663 0 : goto handle_unusual;
9664 : }
9665 0 : if (input->ExpectAtEnd()) goto success;
9666 0 : break;
9667 : }
9668 :
9669 : default: {
9670 : handle_unusual:
9671 0 : if (tag == 0 ||
9672 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
9673 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
9674 0 : goto success;
9675 : }
9676 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(
9677 : input, tag, &unknown_fields_stream));
9678 0 : break;
9679 : }
9680 : }
9681 0 : }
9682 : success:
9683 : // @@protoc_insertion_point(parse_success:safe_browsing.ClientIncidentReport.IncidentData.BlacklistLoadIncident)
9684 0 : return true;
9685 : failure:
9686 : // @@protoc_insertion_point(parse_failure:safe_browsing.ClientIncidentReport.IncidentData.BlacklistLoadIncident)
9687 0 : return false;
9688 : #undef DO_
9689 : }
9690 :
9691 0 : void ClientIncidentReport_IncidentData_BlacklistLoadIncident::SerializeWithCachedSizes(
9692 : ::google::protobuf::io::CodedOutputStream* output) const {
9693 : // @@protoc_insertion_point(serialize_start:safe_browsing.ClientIncidentReport.IncidentData.BlacklistLoadIncident)
9694 : // optional string path = 1;
9695 0 : if (has_path()) {
9696 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
9697 0 : 1, this->path(), output);
9698 : }
9699 :
9700 : // optional .safe_browsing.ClientDownloadRequest.Digests digest = 2;
9701 0 : if (has_digest()) {
9702 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
9703 0 : 2, this->digest(), output);
9704 : }
9705 :
9706 : // optional string version = 3;
9707 0 : if (has_version()) {
9708 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
9709 0 : 3, this->version(), output);
9710 : }
9711 :
9712 : // optional bool blacklist_initialized = 4;
9713 0 : if (has_blacklist_initialized()) {
9714 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->blacklist_initialized(), output);
9715 : }
9716 :
9717 : // optional .safe_browsing.ClientDownloadRequest.SignatureInfo signature = 5;
9718 0 : if (has_signature()) {
9719 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
9720 0 : 5, this->signature(), output);
9721 : }
9722 :
9723 : // optional .safe_browsing.ClientDownloadRequest.ImageHeaders image_headers = 6;
9724 0 : if (has_image_headers()) {
9725 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
9726 0 : 6, this->image_headers(), output);
9727 : }
9728 :
9729 0 : output->WriteRaw(unknown_fields().data(),
9730 0 : unknown_fields().size());
9731 : // @@protoc_insertion_point(serialize_end:safe_browsing.ClientIncidentReport.IncidentData.BlacklistLoadIncident)
9732 0 : }
9733 :
9734 0 : int ClientIncidentReport_IncidentData_BlacklistLoadIncident::ByteSize() const {
9735 0 : int total_size = 0;
9736 :
9737 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
9738 : // optional string path = 1;
9739 0 : if (has_path()) {
9740 0 : total_size += 1 +
9741 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
9742 : this->path());
9743 : }
9744 :
9745 : // optional .safe_browsing.ClientDownloadRequest.Digests digest = 2;
9746 0 : if (has_digest()) {
9747 0 : total_size += 1 +
9748 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
9749 : this->digest());
9750 : }
9751 :
9752 : // optional string version = 3;
9753 0 : if (has_version()) {
9754 0 : total_size += 1 +
9755 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
9756 : this->version());
9757 : }
9758 :
9759 : // optional bool blacklist_initialized = 4;
9760 0 : if (has_blacklist_initialized()) {
9761 0 : total_size += 1 + 1;
9762 : }
9763 :
9764 : // optional .safe_browsing.ClientDownloadRequest.SignatureInfo signature = 5;
9765 0 : if (has_signature()) {
9766 0 : total_size += 1 +
9767 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
9768 : this->signature());
9769 : }
9770 :
9771 : // optional .safe_browsing.ClientDownloadRequest.ImageHeaders image_headers = 6;
9772 0 : if (has_image_headers()) {
9773 0 : total_size += 1 +
9774 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
9775 : this->image_headers());
9776 : }
9777 :
9778 : }
9779 0 : total_size += unknown_fields().size();
9780 :
9781 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
9782 0 : _cached_size_ = total_size;
9783 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
9784 0 : return total_size;
9785 : }
9786 :
9787 0 : void ClientIncidentReport_IncidentData_BlacklistLoadIncident::CheckTypeAndMergeFrom(
9788 : const ::google::protobuf::MessageLite& from) {
9789 0 : MergeFrom(*::google::protobuf::down_cast<const ClientIncidentReport_IncidentData_BlacklistLoadIncident*>(&from));
9790 0 : }
9791 :
9792 0 : void ClientIncidentReport_IncidentData_BlacklistLoadIncident::MergeFrom(const ClientIncidentReport_IncidentData_BlacklistLoadIncident& from) {
9793 0 : GOOGLE_CHECK_NE(&from, this);
9794 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
9795 0 : if (from.has_path()) {
9796 0 : set_path(from.path());
9797 : }
9798 0 : if (from.has_digest()) {
9799 0 : mutable_digest()->::safe_browsing::ClientDownloadRequest_Digests::MergeFrom(from.digest());
9800 : }
9801 0 : if (from.has_version()) {
9802 0 : set_version(from.version());
9803 : }
9804 0 : if (from.has_blacklist_initialized()) {
9805 0 : set_blacklist_initialized(from.blacklist_initialized());
9806 : }
9807 0 : if (from.has_signature()) {
9808 0 : mutable_signature()->::safe_browsing::ClientDownloadRequest_SignatureInfo::MergeFrom(from.signature());
9809 : }
9810 0 : if (from.has_image_headers()) {
9811 0 : mutable_image_headers()->::safe_browsing::ClientDownloadRequest_ImageHeaders::MergeFrom(from.image_headers());
9812 : }
9813 : }
9814 0 : mutable_unknown_fields()->append(from.unknown_fields());
9815 0 : }
9816 :
9817 0 : void ClientIncidentReport_IncidentData_BlacklistLoadIncident::CopyFrom(const ClientIncidentReport_IncidentData_BlacklistLoadIncident& from) {
9818 0 : if (&from == this) return;
9819 0 : Clear();
9820 0 : MergeFrom(from);
9821 : }
9822 :
9823 0 : bool ClientIncidentReport_IncidentData_BlacklistLoadIncident::IsInitialized() const {
9824 :
9825 0 : if (has_signature()) {
9826 0 : if (!this->signature().IsInitialized()) return false;
9827 : }
9828 0 : if (has_image_headers()) {
9829 0 : if (!this->image_headers().IsInitialized()) return false;
9830 : }
9831 0 : return true;
9832 : }
9833 :
9834 0 : void ClientIncidentReport_IncidentData_BlacklistLoadIncident::Swap(ClientIncidentReport_IncidentData_BlacklistLoadIncident* other) {
9835 0 : if (other != this) {
9836 0 : std::swap(path_, other->path_);
9837 0 : std::swap(digest_, other->digest_);
9838 0 : std::swap(version_, other->version_);
9839 0 : std::swap(blacklist_initialized_, other->blacklist_initialized_);
9840 0 : std::swap(signature_, other->signature_);
9841 0 : std::swap(image_headers_, other->image_headers_);
9842 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
9843 0 : _unknown_fields_.swap(other->_unknown_fields_);
9844 0 : std::swap(_cached_size_, other->_cached_size_);
9845 : }
9846 0 : }
9847 :
9848 0 : ::std::string ClientIncidentReport_IncidentData_BlacklistLoadIncident::GetTypeName() const {
9849 0 : return "safe_browsing.ClientIncidentReport.IncidentData.BlacklistLoadIncident";
9850 : }
9851 :
9852 :
9853 : // -------------------------------------------------------------------
9854 :
9855 : #ifndef _MSC_VER
9856 : const int ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident::kVariationsSeedSignatureFieldNumber;
9857 : #endif // !_MSC_VER
9858 :
9859 0 : ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident::ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident()
9860 0 : : ::google::protobuf::MessageLite() {
9861 0 : SharedCtor();
9862 : // @@protoc_insertion_point(constructor:safe_browsing.ClientIncidentReport.IncidentData.VariationsSeedSignatureIncident)
9863 0 : }
9864 :
9865 0 : void ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident::InitAsDefaultInstance() {
9866 0 : }
9867 :
9868 0 : ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident::ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident(const ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident& from)
9869 0 : : ::google::protobuf::MessageLite() {
9870 0 : SharedCtor();
9871 0 : MergeFrom(from);
9872 : // @@protoc_insertion_point(copy_constructor:safe_browsing.ClientIncidentReport.IncidentData.VariationsSeedSignatureIncident)
9873 0 : }
9874 :
9875 0 : void ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident::SharedCtor() {
9876 0 : ::google::protobuf::internal::GetEmptyString();
9877 0 : _cached_size_ = 0;
9878 0 : variations_seed_signature_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9879 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
9880 0 : }
9881 :
9882 0 : ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident::~ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident() {
9883 : // @@protoc_insertion_point(destructor:safe_browsing.ClientIncidentReport.IncidentData.VariationsSeedSignatureIncident)
9884 0 : SharedDtor();
9885 0 : }
9886 :
9887 0 : void ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident::SharedDtor() {
9888 0 : if (variations_seed_signature_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
9889 0 : delete variations_seed_signature_;
9890 : }
9891 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
9892 0 : if (this != &default_instance()) {
9893 : #else
9894 : if (this != default_instance_) {
9895 : #endif
9896 : }
9897 0 : }
9898 :
9899 0 : void ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident::SetCachedSize(int size) const {
9900 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
9901 0 : _cached_size_ = size;
9902 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
9903 0 : }
9904 0 : const ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident& ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident::default_instance() {
9905 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
9906 0 : protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
9907 : #else
9908 : if (default_instance_ == NULL) protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
9909 : #endif
9910 0 : return *default_instance_;
9911 : }
9912 :
9913 : ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident* ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident::default_instance_ = NULL;
9914 :
9915 0 : ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident* ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident::New() const {
9916 0 : return new ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident;
9917 : }
9918 :
9919 0 : void ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident::Clear() {
9920 0 : if (has_variations_seed_signature()) {
9921 0 : if (variations_seed_signature_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
9922 0 : variations_seed_signature_->clear();
9923 : }
9924 : }
9925 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
9926 0 : mutable_unknown_fields()->clear();
9927 0 : }
9928 :
9929 0 : bool ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident::MergePartialFromCodedStream(
9930 : ::google::protobuf::io::CodedInputStream* input) {
9931 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
9932 : ::google::protobuf::uint32 tag;
9933 : ::google::protobuf::io::StringOutputStream unknown_fields_string(
9934 0 : mutable_unknown_fields());
9935 : ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
9936 0 : &unknown_fields_string);
9937 : // @@protoc_insertion_point(parse_start:safe_browsing.ClientIncidentReport.IncidentData.VariationsSeedSignatureIncident)
9938 : for (;;) {
9939 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
9940 0 : tag = p.first;
9941 0 : if (!p.second) goto handle_unusual;
9942 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
9943 : // optional string variations_seed_signature = 1;
9944 : case 1: {
9945 0 : if (tag == 10) {
9946 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
9947 : input, this->mutable_variations_seed_signature()));
9948 : } else {
9949 0 : goto handle_unusual;
9950 : }
9951 0 : if (input->ExpectAtEnd()) goto success;
9952 0 : break;
9953 : }
9954 :
9955 : default: {
9956 : handle_unusual:
9957 0 : if (tag == 0 ||
9958 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
9959 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
9960 0 : goto success;
9961 : }
9962 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(
9963 : input, tag, &unknown_fields_stream));
9964 0 : break;
9965 : }
9966 : }
9967 0 : }
9968 : success:
9969 : // @@protoc_insertion_point(parse_success:safe_browsing.ClientIncidentReport.IncidentData.VariationsSeedSignatureIncident)
9970 0 : return true;
9971 : failure:
9972 : // @@protoc_insertion_point(parse_failure:safe_browsing.ClientIncidentReport.IncidentData.VariationsSeedSignatureIncident)
9973 0 : return false;
9974 : #undef DO_
9975 : }
9976 :
9977 0 : void ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident::SerializeWithCachedSizes(
9978 : ::google::protobuf::io::CodedOutputStream* output) const {
9979 : // @@protoc_insertion_point(serialize_start:safe_browsing.ClientIncidentReport.IncidentData.VariationsSeedSignatureIncident)
9980 : // optional string variations_seed_signature = 1;
9981 0 : if (has_variations_seed_signature()) {
9982 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
9983 0 : 1, this->variations_seed_signature(), output);
9984 : }
9985 :
9986 0 : output->WriteRaw(unknown_fields().data(),
9987 0 : unknown_fields().size());
9988 : // @@protoc_insertion_point(serialize_end:safe_browsing.ClientIncidentReport.IncidentData.VariationsSeedSignatureIncident)
9989 0 : }
9990 :
9991 0 : int ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident::ByteSize() const {
9992 0 : int total_size = 0;
9993 :
9994 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
9995 : // optional string variations_seed_signature = 1;
9996 0 : if (has_variations_seed_signature()) {
9997 0 : total_size += 1 +
9998 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
9999 : this->variations_seed_signature());
10000 : }
10001 :
10002 : }
10003 0 : total_size += unknown_fields().size();
10004 :
10005 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
10006 0 : _cached_size_ = total_size;
10007 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
10008 0 : return total_size;
10009 : }
10010 :
10011 0 : void ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident::CheckTypeAndMergeFrom(
10012 : const ::google::protobuf::MessageLite& from) {
10013 0 : MergeFrom(*::google::protobuf::down_cast<const ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident*>(&from));
10014 0 : }
10015 :
10016 0 : void ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident::MergeFrom(const ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident& from) {
10017 0 : GOOGLE_CHECK_NE(&from, this);
10018 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
10019 0 : if (from.has_variations_seed_signature()) {
10020 0 : set_variations_seed_signature(from.variations_seed_signature());
10021 : }
10022 : }
10023 0 : mutable_unknown_fields()->append(from.unknown_fields());
10024 0 : }
10025 :
10026 0 : void ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident::CopyFrom(const ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident& from) {
10027 0 : if (&from == this) return;
10028 0 : Clear();
10029 0 : MergeFrom(from);
10030 : }
10031 :
10032 0 : bool ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident::IsInitialized() const {
10033 :
10034 0 : return true;
10035 : }
10036 :
10037 0 : void ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident::Swap(ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident* other) {
10038 0 : if (other != this) {
10039 0 : std::swap(variations_seed_signature_, other->variations_seed_signature_);
10040 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
10041 0 : _unknown_fields_.swap(other->_unknown_fields_);
10042 0 : std::swap(_cached_size_, other->_cached_size_);
10043 : }
10044 0 : }
10045 :
10046 0 : ::std::string ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident::GetTypeName() const {
10047 0 : return "safe_browsing.ClientIncidentReport.IncidentData.VariationsSeedSignatureIncident";
10048 : }
10049 :
10050 :
10051 : // -------------------------------------------------------------------
10052 :
10053 0 : bool ClientIncidentReport_IncidentData_ResourceRequestIncident_Type_IsValid(int value) {
10054 0 : switch(value) {
10055 : case 0:
10056 : case 3:
10057 0 : return true;
10058 : default:
10059 0 : return false;
10060 : }
10061 : }
10062 :
10063 : #ifndef _MSC_VER
10064 : const ClientIncidentReport_IncidentData_ResourceRequestIncident_Type ClientIncidentReport_IncidentData_ResourceRequestIncident::UNKNOWN;
10065 : const ClientIncidentReport_IncidentData_ResourceRequestIncident_Type ClientIncidentReport_IncidentData_ResourceRequestIncident::TYPE_PATTERN;
10066 : const ClientIncidentReport_IncidentData_ResourceRequestIncident_Type ClientIncidentReport_IncidentData_ResourceRequestIncident::Type_MIN;
10067 : const ClientIncidentReport_IncidentData_ResourceRequestIncident_Type ClientIncidentReport_IncidentData_ResourceRequestIncident::Type_MAX;
10068 : const int ClientIncidentReport_IncidentData_ResourceRequestIncident::Type_ARRAYSIZE;
10069 : #endif // _MSC_VER
10070 : #ifndef _MSC_VER
10071 : const int ClientIncidentReport_IncidentData_ResourceRequestIncident::kDigestFieldNumber;
10072 : const int ClientIncidentReport_IncidentData_ResourceRequestIncident::kOriginFieldNumber;
10073 : const int ClientIncidentReport_IncidentData_ResourceRequestIncident::kTypeFieldNumber;
10074 : #endif // !_MSC_VER
10075 :
10076 0 : ClientIncidentReport_IncidentData_ResourceRequestIncident::ClientIncidentReport_IncidentData_ResourceRequestIncident()
10077 0 : : ::google::protobuf::MessageLite() {
10078 0 : SharedCtor();
10079 : // @@protoc_insertion_point(constructor:safe_browsing.ClientIncidentReport.IncidentData.ResourceRequestIncident)
10080 0 : }
10081 :
10082 0 : void ClientIncidentReport_IncidentData_ResourceRequestIncident::InitAsDefaultInstance() {
10083 0 : }
10084 :
10085 0 : ClientIncidentReport_IncidentData_ResourceRequestIncident::ClientIncidentReport_IncidentData_ResourceRequestIncident(const ClientIncidentReport_IncidentData_ResourceRequestIncident& from)
10086 0 : : ::google::protobuf::MessageLite() {
10087 0 : SharedCtor();
10088 0 : MergeFrom(from);
10089 : // @@protoc_insertion_point(copy_constructor:safe_browsing.ClientIncidentReport.IncidentData.ResourceRequestIncident)
10090 0 : }
10091 :
10092 0 : void ClientIncidentReport_IncidentData_ResourceRequestIncident::SharedCtor() {
10093 0 : ::google::protobuf::internal::GetEmptyString();
10094 0 : _cached_size_ = 0;
10095 0 : digest_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
10096 0 : origin_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
10097 0 : type_ = 0;
10098 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
10099 0 : }
10100 :
10101 0 : ClientIncidentReport_IncidentData_ResourceRequestIncident::~ClientIncidentReport_IncidentData_ResourceRequestIncident() {
10102 : // @@protoc_insertion_point(destructor:safe_browsing.ClientIncidentReport.IncidentData.ResourceRequestIncident)
10103 0 : SharedDtor();
10104 0 : }
10105 :
10106 0 : void ClientIncidentReport_IncidentData_ResourceRequestIncident::SharedDtor() {
10107 0 : if (digest_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
10108 0 : delete digest_;
10109 : }
10110 0 : if (origin_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
10111 0 : delete origin_;
10112 : }
10113 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
10114 0 : if (this != &default_instance()) {
10115 : #else
10116 : if (this != default_instance_) {
10117 : #endif
10118 : }
10119 0 : }
10120 :
10121 0 : void ClientIncidentReport_IncidentData_ResourceRequestIncident::SetCachedSize(int size) const {
10122 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
10123 0 : _cached_size_ = size;
10124 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
10125 0 : }
10126 0 : const ClientIncidentReport_IncidentData_ResourceRequestIncident& ClientIncidentReport_IncidentData_ResourceRequestIncident::default_instance() {
10127 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
10128 0 : protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
10129 : #else
10130 : if (default_instance_ == NULL) protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
10131 : #endif
10132 0 : return *default_instance_;
10133 : }
10134 :
10135 : ClientIncidentReport_IncidentData_ResourceRequestIncident* ClientIncidentReport_IncidentData_ResourceRequestIncident::default_instance_ = NULL;
10136 :
10137 0 : ClientIncidentReport_IncidentData_ResourceRequestIncident* ClientIncidentReport_IncidentData_ResourceRequestIncident::New() const {
10138 0 : return new ClientIncidentReport_IncidentData_ResourceRequestIncident;
10139 : }
10140 :
10141 0 : void ClientIncidentReport_IncidentData_ResourceRequestIncident::Clear() {
10142 0 : if (_has_bits_[0 / 32] & 7) {
10143 0 : if (has_digest()) {
10144 0 : if (digest_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
10145 0 : digest_->clear();
10146 : }
10147 : }
10148 0 : if (has_origin()) {
10149 0 : if (origin_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
10150 0 : origin_->clear();
10151 : }
10152 : }
10153 0 : type_ = 0;
10154 : }
10155 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
10156 0 : mutable_unknown_fields()->clear();
10157 0 : }
10158 :
10159 0 : bool ClientIncidentReport_IncidentData_ResourceRequestIncident::MergePartialFromCodedStream(
10160 : ::google::protobuf::io::CodedInputStream* input) {
10161 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
10162 : ::google::protobuf::uint32 tag;
10163 : ::google::protobuf::io::StringOutputStream unknown_fields_string(
10164 0 : mutable_unknown_fields());
10165 : ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
10166 0 : &unknown_fields_string);
10167 : // @@protoc_insertion_point(parse_start:safe_browsing.ClientIncidentReport.IncidentData.ResourceRequestIncident)
10168 : for (;;) {
10169 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
10170 0 : tag = p.first;
10171 0 : if (!p.second) goto handle_unusual;
10172 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
10173 : // optional bytes digest = 1;
10174 : case 1: {
10175 0 : if (tag == 10) {
10176 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
10177 : input, this->mutable_digest()));
10178 : } else {
10179 0 : goto handle_unusual;
10180 : }
10181 0 : if (input->ExpectTag(18)) goto parse_origin;
10182 0 : break;
10183 : }
10184 :
10185 : // optional string origin = 2;
10186 : case 2: {
10187 0 : if (tag == 18) {
10188 : parse_origin:
10189 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
10190 : input, this->mutable_origin()));
10191 : } else {
10192 0 : goto handle_unusual;
10193 : }
10194 0 : if (input->ExpectTag(24)) goto parse_type;
10195 0 : break;
10196 : }
10197 :
10198 : // optional .safe_browsing.ClientIncidentReport.IncidentData.ResourceRequestIncident.Type type = 3 [default = UNKNOWN];
10199 : case 3: {
10200 0 : if (tag == 24) {
10201 : parse_type:
10202 : int value;
10203 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10204 : int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
10205 : input, &value)));
10206 0 : if (::safe_browsing::ClientIncidentReport_IncidentData_ResourceRequestIncident_Type_IsValid(value)) {
10207 0 : set_type(static_cast< ::safe_browsing::ClientIncidentReport_IncidentData_ResourceRequestIncident_Type >(value));
10208 : } else {
10209 0 : unknown_fields_stream.WriteVarint32(tag);
10210 0 : unknown_fields_stream.WriteVarint32(value);
10211 : }
10212 : } else {
10213 0 : goto handle_unusual;
10214 : }
10215 0 : if (input->ExpectAtEnd()) goto success;
10216 0 : break;
10217 : }
10218 :
10219 : default: {
10220 : handle_unusual:
10221 0 : if (tag == 0 ||
10222 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
10223 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
10224 0 : goto success;
10225 : }
10226 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(
10227 : input, tag, &unknown_fields_stream));
10228 0 : break;
10229 : }
10230 : }
10231 0 : }
10232 : success:
10233 : // @@protoc_insertion_point(parse_success:safe_browsing.ClientIncidentReport.IncidentData.ResourceRequestIncident)
10234 0 : return true;
10235 : failure:
10236 : // @@protoc_insertion_point(parse_failure:safe_browsing.ClientIncidentReport.IncidentData.ResourceRequestIncident)
10237 0 : return false;
10238 : #undef DO_
10239 : }
10240 :
10241 0 : void ClientIncidentReport_IncidentData_ResourceRequestIncident::SerializeWithCachedSizes(
10242 : ::google::protobuf::io::CodedOutputStream* output) const {
10243 : // @@protoc_insertion_point(serialize_start:safe_browsing.ClientIncidentReport.IncidentData.ResourceRequestIncident)
10244 : // optional bytes digest = 1;
10245 0 : if (has_digest()) {
10246 0 : ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
10247 0 : 1, this->digest(), output);
10248 : }
10249 :
10250 : // optional string origin = 2;
10251 0 : if (has_origin()) {
10252 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
10253 0 : 2, this->origin(), output);
10254 : }
10255 :
10256 : // optional .safe_browsing.ClientIncidentReport.IncidentData.ResourceRequestIncident.Type type = 3 [default = UNKNOWN];
10257 0 : if (has_type()) {
10258 0 : ::google::protobuf::internal::WireFormatLite::WriteEnum(
10259 0 : 3, this->type(), output);
10260 : }
10261 :
10262 0 : output->WriteRaw(unknown_fields().data(),
10263 0 : unknown_fields().size());
10264 : // @@protoc_insertion_point(serialize_end:safe_browsing.ClientIncidentReport.IncidentData.ResourceRequestIncident)
10265 0 : }
10266 :
10267 0 : int ClientIncidentReport_IncidentData_ResourceRequestIncident::ByteSize() const {
10268 0 : int total_size = 0;
10269 :
10270 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
10271 : // optional bytes digest = 1;
10272 0 : if (has_digest()) {
10273 0 : total_size += 1 +
10274 0 : ::google::protobuf::internal::WireFormatLite::BytesSize(
10275 : this->digest());
10276 : }
10277 :
10278 : // optional string origin = 2;
10279 0 : if (has_origin()) {
10280 0 : total_size += 1 +
10281 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
10282 : this->origin());
10283 : }
10284 :
10285 : // optional .safe_browsing.ClientIncidentReport.IncidentData.ResourceRequestIncident.Type type = 3 [default = UNKNOWN];
10286 0 : if (has_type()) {
10287 0 : total_size += 1 +
10288 0 : ::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
10289 : }
10290 :
10291 : }
10292 0 : total_size += unknown_fields().size();
10293 :
10294 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
10295 0 : _cached_size_ = total_size;
10296 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
10297 0 : return total_size;
10298 : }
10299 :
10300 0 : void ClientIncidentReport_IncidentData_ResourceRequestIncident::CheckTypeAndMergeFrom(
10301 : const ::google::protobuf::MessageLite& from) {
10302 0 : MergeFrom(*::google::protobuf::down_cast<const ClientIncidentReport_IncidentData_ResourceRequestIncident*>(&from));
10303 0 : }
10304 :
10305 0 : void ClientIncidentReport_IncidentData_ResourceRequestIncident::MergeFrom(const ClientIncidentReport_IncidentData_ResourceRequestIncident& from) {
10306 0 : GOOGLE_CHECK_NE(&from, this);
10307 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
10308 0 : if (from.has_digest()) {
10309 0 : set_digest(from.digest());
10310 : }
10311 0 : if (from.has_origin()) {
10312 0 : set_origin(from.origin());
10313 : }
10314 0 : if (from.has_type()) {
10315 0 : set_type(from.type());
10316 : }
10317 : }
10318 0 : mutable_unknown_fields()->append(from.unknown_fields());
10319 0 : }
10320 :
10321 0 : void ClientIncidentReport_IncidentData_ResourceRequestIncident::CopyFrom(const ClientIncidentReport_IncidentData_ResourceRequestIncident& from) {
10322 0 : if (&from == this) return;
10323 0 : Clear();
10324 0 : MergeFrom(from);
10325 : }
10326 :
10327 0 : bool ClientIncidentReport_IncidentData_ResourceRequestIncident::IsInitialized() const {
10328 :
10329 0 : return true;
10330 : }
10331 :
10332 0 : void ClientIncidentReport_IncidentData_ResourceRequestIncident::Swap(ClientIncidentReport_IncidentData_ResourceRequestIncident* other) {
10333 0 : if (other != this) {
10334 0 : std::swap(digest_, other->digest_);
10335 0 : std::swap(origin_, other->origin_);
10336 0 : std::swap(type_, other->type_);
10337 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
10338 0 : _unknown_fields_.swap(other->_unknown_fields_);
10339 0 : std::swap(_cached_size_, other->_cached_size_);
10340 : }
10341 0 : }
10342 :
10343 0 : ::std::string ClientIncidentReport_IncidentData_ResourceRequestIncident::GetTypeName() const {
10344 0 : return "safe_browsing.ClientIncidentReport.IncidentData.ResourceRequestIncident";
10345 : }
10346 :
10347 :
10348 : // -------------------------------------------------------------------
10349 :
10350 : #ifndef _MSC_VER
10351 : const int ClientIncidentReport_IncidentData_SuspiciousModuleIncident::kPathFieldNumber;
10352 : const int ClientIncidentReport_IncidentData_SuspiciousModuleIncident::kDigestFieldNumber;
10353 : const int ClientIncidentReport_IncidentData_SuspiciousModuleIncident::kVersionFieldNumber;
10354 : const int ClientIncidentReport_IncidentData_SuspiciousModuleIncident::kSignatureFieldNumber;
10355 : const int ClientIncidentReport_IncidentData_SuspiciousModuleIncident::kImageHeadersFieldNumber;
10356 : #endif // !_MSC_VER
10357 :
10358 0 : ClientIncidentReport_IncidentData_SuspiciousModuleIncident::ClientIncidentReport_IncidentData_SuspiciousModuleIncident()
10359 0 : : ::google::protobuf::MessageLite() {
10360 0 : SharedCtor();
10361 : // @@protoc_insertion_point(constructor:safe_browsing.ClientIncidentReport.IncidentData.SuspiciousModuleIncident)
10362 0 : }
10363 :
10364 0 : void ClientIncidentReport_IncidentData_SuspiciousModuleIncident::InitAsDefaultInstance() {
10365 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
10366 0 : digest_ = const_cast< ::safe_browsing::ClientDownloadRequest_Digests*>(
10367 0 : ::safe_browsing::ClientDownloadRequest_Digests::internal_default_instance());
10368 : #else
10369 : digest_ = const_cast< ::safe_browsing::ClientDownloadRequest_Digests*>(&::safe_browsing::ClientDownloadRequest_Digests::default_instance());
10370 : #endif
10371 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
10372 0 : signature_ = const_cast< ::safe_browsing::ClientDownloadRequest_SignatureInfo*>(
10373 0 : ::safe_browsing::ClientDownloadRequest_SignatureInfo::internal_default_instance());
10374 : #else
10375 : signature_ = const_cast< ::safe_browsing::ClientDownloadRequest_SignatureInfo*>(&::safe_browsing::ClientDownloadRequest_SignatureInfo::default_instance());
10376 : #endif
10377 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
10378 0 : image_headers_ = const_cast< ::safe_browsing::ClientDownloadRequest_ImageHeaders*>(
10379 0 : ::safe_browsing::ClientDownloadRequest_ImageHeaders::internal_default_instance());
10380 : #else
10381 : image_headers_ = const_cast< ::safe_browsing::ClientDownloadRequest_ImageHeaders*>(&::safe_browsing::ClientDownloadRequest_ImageHeaders::default_instance());
10382 : #endif
10383 0 : }
10384 :
10385 0 : ClientIncidentReport_IncidentData_SuspiciousModuleIncident::ClientIncidentReport_IncidentData_SuspiciousModuleIncident(const ClientIncidentReport_IncidentData_SuspiciousModuleIncident& from)
10386 0 : : ::google::protobuf::MessageLite() {
10387 0 : SharedCtor();
10388 0 : MergeFrom(from);
10389 : // @@protoc_insertion_point(copy_constructor:safe_browsing.ClientIncidentReport.IncidentData.SuspiciousModuleIncident)
10390 0 : }
10391 :
10392 0 : void ClientIncidentReport_IncidentData_SuspiciousModuleIncident::SharedCtor() {
10393 0 : ::google::protobuf::internal::GetEmptyString();
10394 0 : _cached_size_ = 0;
10395 0 : path_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
10396 0 : digest_ = NULL;
10397 0 : version_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
10398 0 : signature_ = NULL;
10399 0 : image_headers_ = NULL;
10400 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
10401 0 : }
10402 :
10403 0 : ClientIncidentReport_IncidentData_SuspiciousModuleIncident::~ClientIncidentReport_IncidentData_SuspiciousModuleIncident() {
10404 : // @@protoc_insertion_point(destructor:safe_browsing.ClientIncidentReport.IncidentData.SuspiciousModuleIncident)
10405 0 : SharedDtor();
10406 0 : }
10407 :
10408 0 : void ClientIncidentReport_IncidentData_SuspiciousModuleIncident::SharedDtor() {
10409 0 : if (path_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
10410 0 : delete path_;
10411 : }
10412 0 : if (version_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
10413 0 : delete version_;
10414 : }
10415 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
10416 0 : if (this != &default_instance()) {
10417 : #else
10418 : if (this != default_instance_) {
10419 : #endif
10420 0 : delete digest_;
10421 0 : delete signature_;
10422 0 : delete image_headers_;
10423 : }
10424 0 : }
10425 :
10426 0 : void ClientIncidentReport_IncidentData_SuspiciousModuleIncident::SetCachedSize(int size) const {
10427 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
10428 0 : _cached_size_ = size;
10429 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
10430 0 : }
10431 0 : const ClientIncidentReport_IncidentData_SuspiciousModuleIncident& ClientIncidentReport_IncidentData_SuspiciousModuleIncident::default_instance() {
10432 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
10433 0 : protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
10434 : #else
10435 : if (default_instance_ == NULL) protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
10436 : #endif
10437 0 : return *default_instance_;
10438 : }
10439 :
10440 : ClientIncidentReport_IncidentData_SuspiciousModuleIncident* ClientIncidentReport_IncidentData_SuspiciousModuleIncident::default_instance_ = NULL;
10441 :
10442 0 : ClientIncidentReport_IncidentData_SuspiciousModuleIncident* ClientIncidentReport_IncidentData_SuspiciousModuleIncident::New() const {
10443 0 : return new ClientIncidentReport_IncidentData_SuspiciousModuleIncident;
10444 : }
10445 :
10446 0 : void ClientIncidentReport_IncidentData_SuspiciousModuleIncident::Clear() {
10447 0 : if (_has_bits_[0 / 32] & 31) {
10448 0 : if (has_path()) {
10449 0 : if (path_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
10450 0 : path_->clear();
10451 : }
10452 : }
10453 0 : if (has_digest()) {
10454 0 : if (digest_ != NULL) digest_->::safe_browsing::ClientDownloadRequest_Digests::Clear();
10455 : }
10456 0 : if (has_version()) {
10457 0 : if (version_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
10458 0 : version_->clear();
10459 : }
10460 : }
10461 0 : if (has_signature()) {
10462 0 : if (signature_ != NULL) signature_->::safe_browsing::ClientDownloadRequest_SignatureInfo::Clear();
10463 : }
10464 0 : if (has_image_headers()) {
10465 0 : if (image_headers_ != NULL) image_headers_->::safe_browsing::ClientDownloadRequest_ImageHeaders::Clear();
10466 : }
10467 : }
10468 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
10469 0 : mutable_unknown_fields()->clear();
10470 0 : }
10471 :
10472 0 : bool ClientIncidentReport_IncidentData_SuspiciousModuleIncident::MergePartialFromCodedStream(
10473 : ::google::protobuf::io::CodedInputStream* input) {
10474 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
10475 : ::google::protobuf::uint32 tag;
10476 : ::google::protobuf::io::StringOutputStream unknown_fields_string(
10477 0 : mutable_unknown_fields());
10478 : ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
10479 0 : &unknown_fields_string);
10480 : // @@protoc_insertion_point(parse_start:safe_browsing.ClientIncidentReport.IncidentData.SuspiciousModuleIncident)
10481 : for (;;) {
10482 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
10483 0 : tag = p.first;
10484 0 : if (!p.second) goto handle_unusual;
10485 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
10486 : // optional string path = 1;
10487 : case 1: {
10488 0 : if (tag == 10) {
10489 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
10490 : input, this->mutable_path()));
10491 : } else {
10492 0 : goto handle_unusual;
10493 : }
10494 0 : if (input->ExpectTag(18)) goto parse_digest;
10495 0 : break;
10496 : }
10497 :
10498 : // optional .safe_browsing.ClientDownloadRequest.Digests digest = 2;
10499 : case 2: {
10500 0 : if (tag == 18) {
10501 : parse_digest:
10502 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
10503 : input, mutable_digest()));
10504 : } else {
10505 0 : goto handle_unusual;
10506 : }
10507 0 : if (input->ExpectTag(26)) goto parse_version;
10508 0 : break;
10509 : }
10510 :
10511 : // optional string version = 3;
10512 : case 3: {
10513 0 : if (tag == 26) {
10514 : parse_version:
10515 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
10516 : input, this->mutable_version()));
10517 : } else {
10518 0 : goto handle_unusual;
10519 : }
10520 0 : if (input->ExpectTag(34)) goto parse_signature;
10521 0 : break;
10522 : }
10523 :
10524 : // optional .safe_browsing.ClientDownloadRequest.SignatureInfo signature = 4;
10525 : case 4: {
10526 0 : if (tag == 34) {
10527 : parse_signature:
10528 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
10529 : input, mutable_signature()));
10530 : } else {
10531 0 : goto handle_unusual;
10532 : }
10533 0 : if (input->ExpectTag(42)) goto parse_image_headers;
10534 0 : break;
10535 : }
10536 :
10537 : // optional .safe_browsing.ClientDownloadRequest.ImageHeaders image_headers = 5;
10538 : case 5: {
10539 0 : if (tag == 42) {
10540 : parse_image_headers:
10541 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
10542 : input, mutable_image_headers()));
10543 : } else {
10544 0 : goto handle_unusual;
10545 : }
10546 0 : if (input->ExpectAtEnd()) goto success;
10547 0 : break;
10548 : }
10549 :
10550 : default: {
10551 : handle_unusual:
10552 0 : if (tag == 0 ||
10553 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
10554 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
10555 0 : goto success;
10556 : }
10557 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(
10558 : input, tag, &unknown_fields_stream));
10559 0 : break;
10560 : }
10561 : }
10562 0 : }
10563 : success:
10564 : // @@protoc_insertion_point(parse_success:safe_browsing.ClientIncidentReport.IncidentData.SuspiciousModuleIncident)
10565 0 : return true;
10566 : failure:
10567 : // @@protoc_insertion_point(parse_failure:safe_browsing.ClientIncidentReport.IncidentData.SuspiciousModuleIncident)
10568 0 : return false;
10569 : #undef DO_
10570 : }
10571 :
10572 0 : void ClientIncidentReport_IncidentData_SuspiciousModuleIncident::SerializeWithCachedSizes(
10573 : ::google::protobuf::io::CodedOutputStream* output) const {
10574 : // @@protoc_insertion_point(serialize_start:safe_browsing.ClientIncidentReport.IncidentData.SuspiciousModuleIncident)
10575 : // optional string path = 1;
10576 0 : if (has_path()) {
10577 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
10578 0 : 1, this->path(), output);
10579 : }
10580 :
10581 : // optional .safe_browsing.ClientDownloadRequest.Digests digest = 2;
10582 0 : if (has_digest()) {
10583 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
10584 0 : 2, this->digest(), output);
10585 : }
10586 :
10587 : // optional string version = 3;
10588 0 : if (has_version()) {
10589 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
10590 0 : 3, this->version(), output);
10591 : }
10592 :
10593 : // optional .safe_browsing.ClientDownloadRequest.SignatureInfo signature = 4;
10594 0 : if (has_signature()) {
10595 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
10596 0 : 4, this->signature(), output);
10597 : }
10598 :
10599 : // optional .safe_browsing.ClientDownloadRequest.ImageHeaders image_headers = 5;
10600 0 : if (has_image_headers()) {
10601 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
10602 0 : 5, this->image_headers(), output);
10603 : }
10604 :
10605 0 : output->WriteRaw(unknown_fields().data(),
10606 0 : unknown_fields().size());
10607 : // @@protoc_insertion_point(serialize_end:safe_browsing.ClientIncidentReport.IncidentData.SuspiciousModuleIncident)
10608 0 : }
10609 :
10610 0 : int ClientIncidentReport_IncidentData_SuspiciousModuleIncident::ByteSize() const {
10611 0 : int total_size = 0;
10612 :
10613 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
10614 : // optional string path = 1;
10615 0 : if (has_path()) {
10616 0 : total_size += 1 +
10617 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
10618 : this->path());
10619 : }
10620 :
10621 : // optional .safe_browsing.ClientDownloadRequest.Digests digest = 2;
10622 0 : if (has_digest()) {
10623 0 : total_size += 1 +
10624 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
10625 : this->digest());
10626 : }
10627 :
10628 : // optional string version = 3;
10629 0 : if (has_version()) {
10630 0 : total_size += 1 +
10631 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
10632 : this->version());
10633 : }
10634 :
10635 : // optional .safe_browsing.ClientDownloadRequest.SignatureInfo signature = 4;
10636 0 : if (has_signature()) {
10637 0 : total_size += 1 +
10638 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
10639 : this->signature());
10640 : }
10641 :
10642 : // optional .safe_browsing.ClientDownloadRequest.ImageHeaders image_headers = 5;
10643 0 : if (has_image_headers()) {
10644 0 : total_size += 1 +
10645 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
10646 : this->image_headers());
10647 : }
10648 :
10649 : }
10650 0 : total_size += unknown_fields().size();
10651 :
10652 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
10653 0 : _cached_size_ = total_size;
10654 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
10655 0 : return total_size;
10656 : }
10657 :
10658 0 : void ClientIncidentReport_IncidentData_SuspiciousModuleIncident::CheckTypeAndMergeFrom(
10659 : const ::google::protobuf::MessageLite& from) {
10660 0 : MergeFrom(*::google::protobuf::down_cast<const ClientIncidentReport_IncidentData_SuspiciousModuleIncident*>(&from));
10661 0 : }
10662 :
10663 0 : void ClientIncidentReport_IncidentData_SuspiciousModuleIncident::MergeFrom(const ClientIncidentReport_IncidentData_SuspiciousModuleIncident& from) {
10664 0 : GOOGLE_CHECK_NE(&from, this);
10665 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
10666 0 : if (from.has_path()) {
10667 0 : set_path(from.path());
10668 : }
10669 0 : if (from.has_digest()) {
10670 0 : mutable_digest()->::safe_browsing::ClientDownloadRequest_Digests::MergeFrom(from.digest());
10671 : }
10672 0 : if (from.has_version()) {
10673 0 : set_version(from.version());
10674 : }
10675 0 : if (from.has_signature()) {
10676 0 : mutable_signature()->::safe_browsing::ClientDownloadRequest_SignatureInfo::MergeFrom(from.signature());
10677 : }
10678 0 : if (from.has_image_headers()) {
10679 0 : mutable_image_headers()->::safe_browsing::ClientDownloadRequest_ImageHeaders::MergeFrom(from.image_headers());
10680 : }
10681 : }
10682 0 : mutable_unknown_fields()->append(from.unknown_fields());
10683 0 : }
10684 :
10685 0 : void ClientIncidentReport_IncidentData_SuspiciousModuleIncident::CopyFrom(const ClientIncidentReport_IncidentData_SuspiciousModuleIncident& from) {
10686 0 : if (&from == this) return;
10687 0 : Clear();
10688 0 : MergeFrom(from);
10689 : }
10690 :
10691 0 : bool ClientIncidentReport_IncidentData_SuspiciousModuleIncident::IsInitialized() const {
10692 :
10693 0 : if (has_signature()) {
10694 0 : if (!this->signature().IsInitialized()) return false;
10695 : }
10696 0 : if (has_image_headers()) {
10697 0 : if (!this->image_headers().IsInitialized()) return false;
10698 : }
10699 0 : return true;
10700 : }
10701 :
10702 0 : void ClientIncidentReport_IncidentData_SuspiciousModuleIncident::Swap(ClientIncidentReport_IncidentData_SuspiciousModuleIncident* other) {
10703 0 : if (other != this) {
10704 0 : std::swap(path_, other->path_);
10705 0 : std::swap(digest_, other->digest_);
10706 0 : std::swap(version_, other->version_);
10707 0 : std::swap(signature_, other->signature_);
10708 0 : std::swap(image_headers_, other->image_headers_);
10709 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
10710 0 : _unknown_fields_.swap(other->_unknown_fields_);
10711 0 : std::swap(_cached_size_, other->_cached_size_);
10712 : }
10713 0 : }
10714 :
10715 0 : ::std::string ClientIncidentReport_IncidentData_SuspiciousModuleIncident::GetTypeName() const {
10716 0 : return "safe_browsing.ClientIncidentReport.IncidentData.SuspiciousModuleIncident";
10717 : }
10718 :
10719 :
10720 : // -------------------------------------------------------------------
10721 :
10722 : #ifndef _MSC_VER
10723 : const int ClientIncidentReport_IncidentData::kIncidentTimeMsecFieldNumber;
10724 : const int ClientIncidentReport_IncidentData::kTrackedPreferenceFieldNumber;
10725 : const int ClientIncidentReport_IncidentData::kBinaryIntegrityFieldNumber;
10726 : const int ClientIncidentReport_IncidentData::kBlacklistLoadFieldNumber;
10727 : const int ClientIncidentReport_IncidentData::kVariationsSeedSignatureFieldNumber;
10728 : const int ClientIncidentReport_IncidentData::kResourceRequestFieldNumber;
10729 : const int ClientIncidentReport_IncidentData::kSuspiciousModuleFieldNumber;
10730 : #endif // !_MSC_VER
10731 :
10732 0 : ClientIncidentReport_IncidentData::ClientIncidentReport_IncidentData()
10733 0 : : ::google::protobuf::MessageLite() {
10734 0 : SharedCtor();
10735 : // @@protoc_insertion_point(constructor:safe_browsing.ClientIncidentReport.IncidentData)
10736 0 : }
10737 :
10738 0 : void ClientIncidentReport_IncidentData::InitAsDefaultInstance() {
10739 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
10740 0 : tracked_preference_ = const_cast< ::safe_browsing::ClientIncidentReport_IncidentData_TrackedPreferenceIncident*>(
10741 0 : ::safe_browsing::ClientIncidentReport_IncidentData_TrackedPreferenceIncident::internal_default_instance());
10742 : #else
10743 : tracked_preference_ = const_cast< ::safe_browsing::ClientIncidentReport_IncidentData_TrackedPreferenceIncident*>(&::safe_browsing::ClientIncidentReport_IncidentData_TrackedPreferenceIncident::default_instance());
10744 : #endif
10745 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
10746 0 : binary_integrity_ = const_cast< ::safe_browsing::ClientIncidentReport_IncidentData_BinaryIntegrityIncident*>(
10747 0 : ::safe_browsing::ClientIncidentReport_IncidentData_BinaryIntegrityIncident::internal_default_instance());
10748 : #else
10749 : binary_integrity_ = const_cast< ::safe_browsing::ClientIncidentReport_IncidentData_BinaryIntegrityIncident*>(&::safe_browsing::ClientIncidentReport_IncidentData_BinaryIntegrityIncident::default_instance());
10750 : #endif
10751 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
10752 0 : blacklist_load_ = const_cast< ::safe_browsing::ClientIncidentReport_IncidentData_BlacklistLoadIncident*>(
10753 0 : ::safe_browsing::ClientIncidentReport_IncidentData_BlacklistLoadIncident::internal_default_instance());
10754 : #else
10755 : blacklist_load_ = const_cast< ::safe_browsing::ClientIncidentReport_IncidentData_BlacklistLoadIncident*>(&::safe_browsing::ClientIncidentReport_IncidentData_BlacklistLoadIncident::default_instance());
10756 : #endif
10757 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
10758 0 : variations_seed_signature_ = const_cast< ::safe_browsing::ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident*>(
10759 0 : ::safe_browsing::ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident::internal_default_instance());
10760 : #else
10761 : variations_seed_signature_ = const_cast< ::safe_browsing::ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident*>(&::safe_browsing::ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident::default_instance());
10762 : #endif
10763 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
10764 0 : resource_request_ = const_cast< ::safe_browsing::ClientIncidentReport_IncidentData_ResourceRequestIncident*>(
10765 0 : ::safe_browsing::ClientIncidentReport_IncidentData_ResourceRequestIncident::internal_default_instance());
10766 : #else
10767 : resource_request_ = const_cast< ::safe_browsing::ClientIncidentReport_IncidentData_ResourceRequestIncident*>(&::safe_browsing::ClientIncidentReport_IncidentData_ResourceRequestIncident::default_instance());
10768 : #endif
10769 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
10770 0 : suspicious_module_ = const_cast< ::safe_browsing::ClientIncidentReport_IncidentData_SuspiciousModuleIncident*>(
10771 0 : ::safe_browsing::ClientIncidentReport_IncidentData_SuspiciousModuleIncident::internal_default_instance());
10772 : #else
10773 : suspicious_module_ = const_cast< ::safe_browsing::ClientIncidentReport_IncidentData_SuspiciousModuleIncident*>(&::safe_browsing::ClientIncidentReport_IncidentData_SuspiciousModuleIncident::default_instance());
10774 : #endif
10775 0 : }
10776 :
10777 0 : ClientIncidentReport_IncidentData::ClientIncidentReport_IncidentData(const ClientIncidentReport_IncidentData& from)
10778 0 : : ::google::protobuf::MessageLite() {
10779 0 : SharedCtor();
10780 0 : MergeFrom(from);
10781 : // @@protoc_insertion_point(copy_constructor:safe_browsing.ClientIncidentReport.IncidentData)
10782 0 : }
10783 :
10784 0 : void ClientIncidentReport_IncidentData::SharedCtor() {
10785 0 : _cached_size_ = 0;
10786 0 : incident_time_msec_ = GOOGLE_LONGLONG(0);
10787 0 : tracked_preference_ = NULL;
10788 0 : binary_integrity_ = NULL;
10789 0 : blacklist_load_ = NULL;
10790 0 : variations_seed_signature_ = NULL;
10791 0 : resource_request_ = NULL;
10792 0 : suspicious_module_ = NULL;
10793 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
10794 0 : }
10795 :
10796 0 : ClientIncidentReport_IncidentData::~ClientIncidentReport_IncidentData() {
10797 : // @@protoc_insertion_point(destructor:safe_browsing.ClientIncidentReport.IncidentData)
10798 0 : SharedDtor();
10799 0 : }
10800 :
10801 0 : void ClientIncidentReport_IncidentData::SharedDtor() {
10802 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
10803 0 : if (this != &default_instance()) {
10804 : #else
10805 : if (this != default_instance_) {
10806 : #endif
10807 0 : delete tracked_preference_;
10808 0 : delete binary_integrity_;
10809 0 : delete blacklist_load_;
10810 0 : delete variations_seed_signature_;
10811 0 : delete resource_request_;
10812 0 : delete suspicious_module_;
10813 : }
10814 0 : }
10815 :
10816 0 : void ClientIncidentReport_IncidentData::SetCachedSize(int size) const {
10817 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
10818 0 : _cached_size_ = size;
10819 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
10820 0 : }
10821 0 : const ClientIncidentReport_IncidentData& ClientIncidentReport_IncidentData::default_instance() {
10822 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
10823 0 : protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
10824 : #else
10825 : if (default_instance_ == NULL) protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
10826 : #endif
10827 0 : return *default_instance_;
10828 : }
10829 :
10830 : ClientIncidentReport_IncidentData* ClientIncidentReport_IncidentData::default_instance_ = NULL;
10831 :
10832 0 : ClientIncidentReport_IncidentData* ClientIncidentReport_IncidentData::New() const {
10833 0 : return new ClientIncidentReport_IncidentData;
10834 : }
10835 :
10836 0 : void ClientIncidentReport_IncidentData::Clear() {
10837 0 : if (_has_bits_[0 / 32] & 127) {
10838 0 : incident_time_msec_ = GOOGLE_LONGLONG(0);
10839 0 : if (has_tracked_preference()) {
10840 0 : if (tracked_preference_ != NULL) tracked_preference_->::safe_browsing::ClientIncidentReport_IncidentData_TrackedPreferenceIncident::Clear();
10841 : }
10842 0 : if (has_binary_integrity()) {
10843 0 : if (binary_integrity_ != NULL) binary_integrity_->::safe_browsing::ClientIncidentReport_IncidentData_BinaryIntegrityIncident::Clear();
10844 : }
10845 0 : if (has_blacklist_load()) {
10846 0 : if (blacklist_load_ != NULL) blacklist_load_->::safe_browsing::ClientIncidentReport_IncidentData_BlacklistLoadIncident::Clear();
10847 : }
10848 0 : if (has_variations_seed_signature()) {
10849 0 : if (variations_seed_signature_ != NULL) variations_seed_signature_->::safe_browsing::ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident::Clear();
10850 : }
10851 0 : if (has_resource_request()) {
10852 0 : if (resource_request_ != NULL) resource_request_->::safe_browsing::ClientIncidentReport_IncidentData_ResourceRequestIncident::Clear();
10853 : }
10854 0 : if (has_suspicious_module()) {
10855 0 : if (suspicious_module_ != NULL) suspicious_module_->::safe_browsing::ClientIncidentReport_IncidentData_SuspiciousModuleIncident::Clear();
10856 : }
10857 : }
10858 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
10859 0 : mutable_unknown_fields()->clear();
10860 0 : }
10861 :
10862 0 : bool ClientIncidentReport_IncidentData::MergePartialFromCodedStream(
10863 : ::google::protobuf::io::CodedInputStream* input) {
10864 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
10865 : ::google::protobuf::uint32 tag;
10866 : ::google::protobuf::io::StringOutputStream unknown_fields_string(
10867 0 : mutable_unknown_fields());
10868 : ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
10869 0 : &unknown_fields_string);
10870 : // @@protoc_insertion_point(parse_start:safe_browsing.ClientIncidentReport.IncidentData)
10871 : for (;;) {
10872 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
10873 0 : tag = p.first;
10874 0 : if (!p.second) goto handle_unusual;
10875 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
10876 : // optional int64 incident_time_msec = 1;
10877 : case 1: {
10878 0 : if (tag == 8) {
10879 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10880 : ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
10881 : input, &incident_time_msec_)));
10882 0 : set_has_incident_time_msec();
10883 : } else {
10884 0 : goto handle_unusual;
10885 : }
10886 0 : if (input->ExpectTag(18)) goto parse_tracked_preference;
10887 0 : break;
10888 : }
10889 :
10890 : // optional .safe_browsing.ClientIncidentReport.IncidentData.TrackedPreferenceIncident tracked_preference = 2;
10891 : case 2: {
10892 0 : if (tag == 18) {
10893 : parse_tracked_preference:
10894 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
10895 : input, mutable_tracked_preference()));
10896 : } else {
10897 0 : goto handle_unusual;
10898 : }
10899 0 : if (input->ExpectTag(26)) goto parse_binary_integrity;
10900 0 : break;
10901 : }
10902 :
10903 : // optional .safe_browsing.ClientIncidentReport.IncidentData.BinaryIntegrityIncident binary_integrity = 3;
10904 : case 3: {
10905 0 : if (tag == 26) {
10906 : parse_binary_integrity:
10907 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
10908 : input, mutable_binary_integrity()));
10909 : } else {
10910 0 : goto handle_unusual;
10911 : }
10912 0 : if (input->ExpectTag(34)) goto parse_blacklist_load;
10913 0 : break;
10914 : }
10915 :
10916 : // optional .safe_browsing.ClientIncidentReport.IncidentData.BlacklistLoadIncident blacklist_load = 4;
10917 : case 4: {
10918 0 : if (tag == 34) {
10919 : parse_blacklist_load:
10920 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
10921 : input, mutable_blacklist_load()));
10922 : } else {
10923 0 : goto handle_unusual;
10924 : }
10925 0 : if (input->ExpectTag(50)) goto parse_variations_seed_signature;
10926 0 : break;
10927 : }
10928 :
10929 : // optional .safe_browsing.ClientIncidentReport.IncidentData.VariationsSeedSignatureIncident variations_seed_signature = 6;
10930 : case 6: {
10931 0 : if (tag == 50) {
10932 : parse_variations_seed_signature:
10933 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
10934 : input, mutable_variations_seed_signature()));
10935 : } else {
10936 0 : goto handle_unusual;
10937 : }
10938 0 : if (input->ExpectTag(58)) goto parse_resource_request;
10939 0 : break;
10940 : }
10941 :
10942 : // optional .safe_browsing.ClientIncidentReport.IncidentData.ResourceRequestIncident resource_request = 7;
10943 : case 7: {
10944 0 : if (tag == 58) {
10945 : parse_resource_request:
10946 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
10947 : input, mutable_resource_request()));
10948 : } else {
10949 0 : goto handle_unusual;
10950 : }
10951 0 : if (input->ExpectTag(66)) goto parse_suspicious_module;
10952 0 : break;
10953 : }
10954 :
10955 : // optional .safe_browsing.ClientIncidentReport.IncidentData.SuspiciousModuleIncident suspicious_module = 8;
10956 : case 8: {
10957 0 : if (tag == 66) {
10958 : parse_suspicious_module:
10959 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
10960 : input, mutable_suspicious_module()));
10961 : } else {
10962 0 : goto handle_unusual;
10963 : }
10964 0 : if (input->ExpectAtEnd()) goto success;
10965 0 : break;
10966 : }
10967 :
10968 : default: {
10969 : handle_unusual:
10970 0 : if (tag == 0 ||
10971 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
10972 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
10973 0 : goto success;
10974 : }
10975 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(
10976 : input, tag, &unknown_fields_stream));
10977 0 : break;
10978 : }
10979 : }
10980 0 : }
10981 : success:
10982 : // @@protoc_insertion_point(parse_success:safe_browsing.ClientIncidentReport.IncidentData)
10983 0 : return true;
10984 : failure:
10985 : // @@protoc_insertion_point(parse_failure:safe_browsing.ClientIncidentReport.IncidentData)
10986 0 : return false;
10987 : #undef DO_
10988 : }
10989 :
10990 0 : void ClientIncidentReport_IncidentData::SerializeWithCachedSizes(
10991 : ::google::protobuf::io::CodedOutputStream* output) const {
10992 : // @@protoc_insertion_point(serialize_start:safe_browsing.ClientIncidentReport.IncidentData)
10993 : // optional int64 incident_time_msec = 1;
10994 0 : if (has_incident_time_msec()) {
10995 0 : ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->incident_time_msec(), output);
10996 : }
10997 :
10998 : // optional .safe_browsing.ClientIncidentReport.IncidentData.TrackedPreferenceIncident tracked_preference = 2;
10999 0 : if (has_tracked_preference()) {
11000 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
11001 0 : 2, this->tracked_preference(), output);
11002 : }
11003 :
11004 : // optional .safe_browsing.ClientIncidentReport.IncidentData.BinaryIntegrityIncident binary_integrity = 3;
11005 0 : if (has_binary_integrity()) {
11006 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
11007 0 : 3, this->binary_integrity(), output);
11008 : }
11009 :
11010 : // optional .safe_browsing.ClientIncidentReport.IncidentData.BlacklistLoadIncident blacklist_load = 4;
11011 0 : if (has_blacklist_load()) {
11012 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
11013 0 : 4, this->blacklist_load(), output);
11014 : }
11015 :
11016 : // optional .safe_browsing.ClientIncidentReport.IncidentData.VariationsSeedSignatureIncident variations_seed_signature = 6;
11017 0 : if (has_variations_seed_signature()) {
11018 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
11019 0 : 6, this->variations_seed_signature(), output);
11020 : }
11021 :
11022 : // optional .safe_browsing.ClientIncidentReport.IncidentData.ResourceRequestIncident resource_request = 7;
11023 0 : if (has_resource_request()) {
11024 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
11025 0 : 7, this->resource_request(), output);
11026 : }
11027 :
11028 : // optional .safe_browsing.ClientIncidentReport.IncidentData.SuspiciousModuleIncident suspicious_module = 8;
11029 0 : if (has_suspicious_module()) {
11030 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
11031 0 : 8, this->suspicious_module(), output);
11032 : }
11033 :
11034 0 : output->WriteRaw(unknown_fields().data(),
11035 0 : unknown_fields().size());
11036 : // @@protoc_insertion_point(serialize_end:safe_browsing.ClientIncidentReport.IncidentData)
11037 0 : }
11038 :
11039 0 : int ClientIncidentReport_IncidentData::ByteSize() const {
11040 0 : int total_size = 0;
11041 :
11042 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
11043 : // optional int64 incident_time_msec = 1;
11044 0 : if (has_incident_time_msec()) {
11045 0 : total_size += 1 +
11046 0 : ::google::protobuf::internal::WireFormatLite::Int64Size(
11047 : this->incident_time_msec());
11048 : }
11049 :
11050 : // optional .safe_browsing.ClientIncidentReport.IncidentData.TrackedPreferenceIncident tracked_preference = 2;
11051 0 : if (has_tracked_preference()) {
11052 0 : total_size += 1 +
11053 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
11054 : this->tracked_preference());
11055 : }
11056 :
11057 : // optional .safe_browsing.ClientIncidentReport.IncidentData.BinaryIntegrityIncident binary_integrity = 3;
11058 0 : if (has_binary_integrity()) {
11059 0 : total_size += 1 +
11060 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
11061 : this->binary_integrity());
11062 : }
11063 :
11064 : // optional .safe_browsing.ClientIncidentReport.IncidentData.BlacklistLoadIncident blacklist_load = 4;
11065 0 : if (has_blacklist_load()) {
11066 0 : total_size += 1 +
11067 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
11068 : this->blacklist_load());
11069 : }
11070 :
11071 : // optional .safe_browsing.ClientIncidentReport.IncidentData.VariationsSeedSignatureIncident variations_seed_signature = 6;
11072 0 : if (has_variations_seed_signature()) {
11073 0 : total_size += 1 +
11074 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
11075 : this->variations_seed_signature());
11076 : }
11077 :
11078 : // optional .safe_browsing.ClientIncidentReport.IncidentData.ResourceRequestIncident resource_request = 7;
11079 0 : if (has_resource_request()) {
11080 0 : total_size += 1 +
11081 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
11082 : this->resource_request());
11083 : }
11084 :
11085 : // optional .safe_browsing.ClientIncidentReport.IncidentData.SuspiciousModuleIncident suspicious_module = 8;
11086 0 : if (has_suspicious_module()) {
11087 0 : total_size += 1 +
11088 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
11089 : this->suspicious_module());
11090 : }
11091 :
11092 : }
11093 0 : total_size += unknown_fields().size();
11094 :
11095 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
11096 0 : _cached_size_ = total_size;
11097 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
11098 0 : return total_size;
11099 : }
11100 :
11101 0 : void ClientIncidentReport_IncidentData::CheckTypeAndMergeFrom(
11102 : const ::google::protobuf::MessageLite& from) {
11103 0 : MergeFrom(*::google::protobuf::down_cast<const ClientIncidentReport_IncidentData*>(&from));
11104 0 : }
11105 :
11106 0 : void ClientIncidentReport_IncidentData::MergeFrom(const ClientIncidentReport_IncidentData& from) {
11107 0 : GOOGLE_CHECK_NE(&from, this);
11108 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
11109 0 : if (from.has_incident_time_msec()) {
11110 0 : set_incident_time_msec(from.incident_time_msec());
11111 : }
11112 0 : if (from.has_tracked_preference()) {
11113 0 : mutable_tracked_preference()->::safe_browsing::ClientIncidentReport_IncidentData_TrackedPreferenceIncident::MergeFrom(from.tracked_preference());
11114 : }
11115 0 : if (from.has_binary_integrity()) {
11116 0 : mutable_binary_integrity()->::safe_browsing::ClientIncidentReport_IncidentData_BinaryIntegrityIncident::MergeFrom(from.binary_integrity());
11117 : }
11118 0 : if (from.has_blacklist_load()) {
11119 0 : mutable_blacklist_load()->::safe_browsing::ClientIncidentReport_IncidentData_BlacklistLoadIncident::MergeFrom(from.blacklist_load());
11120 : }
11121 0 : if (from.has_variations_seed_signature()) {
11122 0 : mutable_variations_seed_signature()->::safe_browsing::ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident::MergeFrom(from.variations_seed_signature());
11123 : }
11124 0 : if (from.has_resource_request()) {
11125 0 : mutable_resource_request()->::safe_browsing::ClientIncidentReport_IncidentData_ResourceRequestIncident::MergeFrom(from.resource_request());
11126 : }
11127 0 : if (from.has_suspicious_module()) {
11128 0 : mutable_suspicious_module()->::safe_browsing::ClientIncidentReport_IncidentData_SuspiciousModuleIncident::MergeFrom(from.suspicious_module());
11129 : }
11130 : }
11131 0 : mutable_unknown_fields()->append(from.unknown_fields());
11132 0 : }
11133 :
11134 0 : void ClientIncidentReport_IncidentData::CopyFrom(const ClientIncidentReport_IncidentData& from) {
11135 0 : if (&from == this) return;
11136 0 : Clear();
11137 0 : MergeFrom(from);
11138 : }
11139 :
11140 0 : bool ClientIncidentReport_IncidentData::IsInitialized() const {
11141 :
11142 0 : if (has_binary_integrity()) {
11143 0 : if (!this->binary_integrity().IsInitialized()) return false;
11144 : }
11145 0 : if (has_blacklist_load()) {
11146 0 : if (!this->blacklist_load().IsInitialized()) return false;
11147 : }
11148 0 : if (has_suspicious_module()) {
11149 0 : if (!this->suspicious_module().IsInitialized()) return false;
11150 : }
11151 0 : return true;
11152 : }
11153 :
11154 0 : void ClientIncidentReport_IncidentData::Swap(ClientIncidentReport_IncidentData* other) {
11155 0 : if (other != this) {
11156 0 : std::swap(incident_time_msec_, other->incident_time_msec_);
11157 0 : std::swap(tracked_preference_, other->tracked_preference_);
11158 0 : std::swap(binary_integrity_, other->binary_integrity_);
11159 0 : std::swap(blacklist_load_, other->blacklist_load_);
11160 0 : std::swap(variations_seed_signature_, other->variations_seed_signature_);
11161 0 : std::swap(resource_request_, other->resource_request_);
11162 0 : std::swap(suspicious_module_, other->suspicious_module_);
11163 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
11164 0 : _unknown_fields_.swap(other->_unknown_fields_);
11165 0 : std::swap(_cached_size_, other->_cached_size_);
11166 : }
11167 0 : }
11168 :
11169 0 : ::std::string ClientIncidentReport_IncidentData::GetTypeName() const {
11170 0 : return "safe_browsing.ClientIncidentReport.IncidentData";
11171 : }
11172 :
11173 :
11174 : // -------------------------------------------------------------------
11175 :
11176 : #ifndef _MSC_VER
11177 : const int ClientIncidentReport_DownloadDetails::kTokenFieldNumber;
11178 : const int ClientIncidentReport_DownloadDetails::kDownloadFieldNumber;
11179 : const int ClientIncidentReport_DownloadDetails::kDownloadTimeMsecFieldNumber;
11180 : const int ClientIncidentReport_DownloadDetails::kOpenTimeMsecFieldNumber;
11181 : #endif // !_MSC_VER
11182 :
11183 0 : ClientIncidentReport_DownloadDetails::ClientIncidentReport_DownloadDetails()
11184 0 : : ::google::protobuf::MessageLite() {
11185 0 : SharedCtor();
11186 : // @@protoc_insertion_point(constructor:safe_browsing.ClientIncidentReport.DownloadDetails)
11187 0 : }
11188 :
11189 0 : void ClientIncidentReport_DownloadDetails::InitAsDefaultInstance() {
11190 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
11191 0 : download_ = const_cast< ::safe_browsing::ClientDownloadRequest*>(
11192 0 : ::safe_browsing::ClientDownloadRequest::internal_default_instance());
11193 : #else
11194 : download_ = const_cast< ::safe_browsing::ClientDownloadRequest*>(&::safe_browsing::ClientDownloadRequest::default_instance());
11195 : #endif
11196 0 : }
11197 :
11198 0 : ClientIncidentReport_DownloadDetails::ClientIncidentReport_DownloadDetails(const ClientIncidentReport_DownloadDetails& from)
11199 0 : : ::google::protobuf::MessageLite() {
11200 0 : SharedCtor();
11201 0 : MergeFrom(from);
11202 : // @@protoc_insertion_point(copy_constructor:safe_browsing.ClientIncidentReport.DownloadDetails)
11203 0 : }
11204 :
11205 0 : void ClientIncidentReport_DownloadDetails::SharedCtor() {
11206 0 : ::google::protobuf::internal::GetEmptyString();
11207 0 : _cached_size_ = 0;
11208 0 : token_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
11209 0 : download_ = NULL;
11210 0 : download_time_msec_ = GOOGLE_LONGLONG(0);
11211 0 : open_time_msec_ = GOOGLE_LONGLONG(0);
11212 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
11213 0 : }
11214 :
11215 0 : ClientIncidentReport_DownloadDetails::~ClientIncidentReport_DownloadDetails() {
11216 : // @@protoc_insertion_point(destructor:safe_browsing.ClientIncidentReport.DownloadDetails)
11217 0 : SharedDtor();
11218 0 : }
11219 :
11220 0 : void ClientIncidentReport_DownloadDetails::SharedDtor() {
11221 0 : if (token_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
11222 0 : delete token_;
11223 : }
11224 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
11225 0 : if (this != &default_instance()) {
11226 : #else
11227 : if (this != default_instance_) {
11228 : #endif
11229 0 : delete download_;
11230 : }
11231 0 : }
11232 :
11233 0 : void ClientIncidentReport_DownloadDetails::SetCachedSize(int size) const {
11234 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
11235 0 : _cached_size_ = size;
11236 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
11237 0 : }
11238 0 : const ClientIncidentReport_DownloadDetails& ClientIncidentReport_DownloadDetails::default_instance() {
11239 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
11240 0 : protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
11241 : #else
11242 : if (default_instance_ == NULL) protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
11243 : #endif
11244 0 : return *default_instance_;
11245 : }
11246 :
11247 : ClientIncidentReport_DownloadDetails* ClientIncidentReport_DownloadDetails::default_instance_ = NULL;
11248 :
11249 0 : ClientIncidentReport_DownloadDetails* ClientIncidentReport_DownloadDetails::New() const {
11250 0 : return new ClientIncidentReport_DownloadDetails;
11251 : }
11252 :
11253 0 : void ClientIncidentReport_DownloadDetails::Clear() {
11254 : #define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \
11255 : &reinterpret_cast<ClientIncidentReport_DownloadDetails*>(16)->f) - \
11256 : reinterpret_cast<char*>(16))
11257 :
11258 : #define ZR_(first, last) do { \
11259 : size_t f = OFFSET_OF_FIELD_(first); \
11260 : size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \
11261 : ::memset(&first, 0, n); \
11262 : } while (0)
11263 :
11264 0 : if (_has_bits_[0 / 32] & 15) {
11265 0 : ZR_(download_time_msec_, open_time_msec_);
11266 0 : if (has_token()) {
11267 0 : if (token_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
11268 0 : token_->clear();
11269 : }
11270 : }
11271 0 : if (has_download()) {
11272 0 : if (download_ != NULL) download_->::safe_browsing::ClientDownloadRequest::Clear();
11273 : }
11274 : }
11275 :
11276 : #undef OFFSET_OF_FIELD_
11277 : #undef ZR_
11278 :
11279 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
11280 0 : mutable_unknown_fields()->clear();
11281 0 : }
11282 :
11283 0 : bool ClientIncidentReport_DownloadDetails::MergePartialFromCodedStream(
11284 : ::google::protobuf::io::CodedInputStream* input) {
11285 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
11286 : ::google::protobuf::uint32 tag;
11287 : ::google::protobuf::io::StringOutputStream unknown_fields_string(
11288 0 : mutable_unknown_fields());
11289 : ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
11290 0 : &unknown_fields_string);
11291 : // @@protoc_insertion_point(parse_start:safe_browsing.ClientIncidentReport.DownloadDetails)
11292 : for (;;) {
11293 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
11294 0 : tag = p.first;
11295 0 : if (!p.second) goto handle_unusual;
11296 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
11297 : // optional bytes token = 1;
11298 : case 1: {
11299 0 : if (tag == 10) {
11300 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
11301 : input, this->mutable_token()));
11302 : } else {
11303 0 : goto handle_unusual;
11304 : }
11305 0 : if (input->ExpectTag(18)) goto parse_download;
11306 0 : break;
11307 : }
11308 :
11309 : // optional .safe_browsing.ClientDownloadRequest download = 2;
11310 : case 2: {
11311 0 : if (tag == 18) {
11312 : parse_download:
11313 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
11314 : input, mutable_download()));
11315 : } else {
11316 0 : goto handle_unusual;
11317 : }
11318 0 : if (input->ExpectTag(24)) goto parse_download_time_msec;
11319 0 : break;
11320 : }
11321 :
11322 : // optional int64 download_time_msec = 3;
11323 : case 3: {
11324 0 : if (tag == 24) {
11325 : parse_download_time_msec:
11326 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
11327 : ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
11328 : input, &download_time_msec_)));
11329 0 : set_has_download_time_msec();
11330 : } else {
11331 0 : goto handle_unusual;
11332 : }
11333 0 : if (input->ExpectTag(32)) goto parse_open_time_msec;
11334 0 : break;
11335 : }
11336 :
11337 : // optional int64 open_time_msec = 4;
11338 : case 4: {
11339 0 : if (tag == 32) {
11340 : parse_open_time_msec:
11341 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
11342 : ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
11343 : input, &open_time_msec_)));
11344 0 : set_has_open_time_msec();
11345 : } else {
11346 0 : goto handle_unusual;
11347 : }
11348 0 : if (input->ExpectAtEnd()) goto success;
11349 0 : break;
11350 : }
11351 :
11352 : default: {
11353 : handle_unusual:
11354 0 : if (tag == 0 ||
11355 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
11356 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
11357 0 : goto success;
11358 : }
11359 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(
11360 : input, tag, &unknown_fields_stream));
11361 0 : break;
11362 : }
11363 : }
11364 0 : }
11365 : success:
11366 : // @@protoc_insertion_point(parse_success:safe_browsing.ClientIncidentReport.DownloadDetails)
11367 0 : return true;
11368 : failure:
11369 : // @@protoc_insertion_point(parse_failure:safe_browsing.ClientIncidentReport.DownloadDetails)
11370 0 : return false;
11371 : #undef DO_
11372 : }
11373 :
11374 0 : void ClientIncidentReport_DownloadDetails::SerializeWithCachedSizes(
11375 : ::google::protobuf::io::CodedOutputStream* output) const {
11376 : // @@protoc_insertion_point(serialize_start:safe_browsing.ClientIncidentReport.DownloadDetails)
11377 : // optional bytes token = 1;
11378 0 : if (has_token()) {
11379 0 : ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
11380 0 : 1, this->token(), output);
11381 : }
11382 :
11383 : // optional .safe_browsing.ClientDownloadRequest download = 2;
11384 0 : if (has_download()) {
11385 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
11386 0 : 2, this->download(), output);
11387 : }
11388 :
11389 : // optional int64 download_time_msec = 3;
11390 0 : if (has_download_time_msec()) {
11391 0 : ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->download_time_msec(), output);
11392 : }
11393 :
11394 : // optional int64 open_time_msec = 4;
11395 0 : if (has_open_time_msec()) {
11396 0 : ::google::protobuf::internal::WireFormatLite::WriteInt64(4, this->open_time_msec(), output);
11397 : }
11398 :
11399 0 : output->WriteRaw(unknown_fields().data(),
11400 0 : unknown_fields().size());
11401 : // @@protoc_insertion_point(serialize_end:safe_browsing.ClientIncidentReport.DownloadDetails)
11402 0 : }
11403 :
11404 0 : int ClientIncidentReport_DownloadDetails::ByteSize() const {
11405 0 : int total_size = 0;
11406 :
11407 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
11408 : // optional bytes token = 1;
11409 0 : if (has_token()) {
11410 0 : total_size += 1 +
11411 0 : ::google::protobuf::internal::WireFormatLite::BytesSize(
11412 : this->token());
11413 : }
11414 :
11415 : // optional .safe_browsing.ClientDownloadRequest download = 2;
11416 0 : if (has_download()) {
11417 0 : total_size += 1 +
11418 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
11419 : this->download());
11420 : }
11421 :
11422 : // optional int64 download_time_msec = 3;
11423 0 : if (has_download_time_msec()) {
11424 0 : total_size += 1 +
11425 0 : ::google::protobuf::internal::WireFormatLite::Int64Size(
11426 : this->download_time_msec());
11427 : }
11428 :
11429 : // optional int64 open_time_msec = 4;
11430 0 : if (has_open_time_msec()) {
11431 0 : total_size += 1 +
11432 0 : ::google::protobuf::internal::WireFormatLite::Int64Size(
11433 : this->open_time_msec());
11434 : }
11435 :
11436 : }
11437 0 : total_size += unknown_fields().size();
11438 :
11439 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
11440 0 : _cached_size_ = total_size;
11441 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
11442 0 : return total_size;
11443 : }
11444 :
11445 0 : void ClientIncidentReport_DownloadDetails::CheckTypeAndMergeFrom(
11446 : const ::google::protobuf::MessageLite& from) {
11447 0 : MergeFrom(*::google::protobuf::down_cast<const ClientIncidentReport_DownloadDetails*>(&from));
11448 0 : }
11449 :
11450 0 : void ClientIncidentReport_DownloadDetails::MergeFrom(const ClientIncidentReport_DownloadDetails& from) {
11451 0 : GOOGLE_CHECK_NE(&from, this);
11452 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
11453 0 : if (from.has_token()) {
11454 0 : set_token(from.token());
11455 : }
11456 0 : if (from.has_download()) {
11457 0 : mutable_download()->::safe_browsing::ClientDownloadRequest::MergeFrom(from.download());
11458 : }
11459 0 : if (from.has_download_time_msec()) {
11460 0 : set_download_time_msec(from.download_time_msec());
11461 : }
11462 0 : if (from.has_open_time_msec()) {
11463 0 : set_open_time_msec(from.open_time_msec());
11464 : }
11465 : }
11466 0 : mutable_unknown_fields()->append(from.unknown_fields());
11467 0 : }
11468 :
11469 0 : void ClientIncidentReport_DownloadDetails::CopyFrom(const ClientIncidentReport_DownloadDetails& from) {
11470 0 : if (&from == this) return;
11471 0 : Clear();
11472 0 : MergeFrom(from);
11473 : }
11474 :
11475 0 : bool ClientIncidentReport_DownloadDetails::IsInitialized() const {
11476 :
11477 0 : if (has_download()) {
11478 0 : if (!this->download().IsInitialized()) return false;
11479 : }
11480 0 : return true;
11481 : }
11482 :
11483 0 : void ClientIncidentReport_DownloadDetails::Swap(ClientIncidentReport_DownloadDetails* other) {
11484 0 : if (other != this) {
11485 0 : std::swap(token_, other->token_);
11486 0 : std::swap(download_, other->download_);
11487 0 : std::swap(download_time_msec_, other->download_time_msec_);
11488 0 : std::swap(open_time_msec_, other->open_time_msec_);
11489 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
11490 0 : _unknown_fields_.swap(other->_unknown_fields_);
11491 0 : std::swap(_cached_size_, other->_cached_size_);
11492 : }
11493 0 : }
11494 :
11495 0 : ::std::string ClientIncidentReport_DownloadDetails::GetTypeName() const {
11496 0 : return "safe_browsing.ClientIncidentReport.DownloadDetails";
11497 : }
11498 :
11499 :
11500 : // -------------------------------------------------------------------
11501 :
11502 : #ifndef _MSC_VER
11503 : const int ClientIncidentReport_EnvironmentData_OS_RegistryValue::kNameFieldNumber;
11504 : const int ClientIncidentReport_EnvironmentData_OS_RegistryValue::kTypeFieldNumber;
11505 : const int ClientIncidentReport_EnvironmentData_OS_RegistryValue::kDataFieldNumber;
11506 : #endif // !_MSC_VER
11507 :
11508 0 : ClientIncidentReport_EnvironmentData_OS_RegistryValue::ClientIncidentReport_EnvironmentData_OS_RegistryValue()
11509 0 : : ::google::protobuf::MessageLite() {
11510 0 : SharedCtor();
11511 : // @@protoc_insertion_point(constructor:safe_browsing.ClientIncidentReport.EnvironmentData.OS.RegistryValue)
11512 0 : }
11513 :
11514 0 : void ClientIncidentReport_EnvironmentData_OS_RegistryValue::InitAsDefaultInstance() {
11515 0 : }
11516 :
11517 0 : ClientIncidentReport_EnvironmentData_OS_RegistryValue::ClientIncidentReport_EnvironmentData_OS_RegistryValue(const ClientIncidentReport_EnvironmentData_OS_RegistryValue& from)
11518 0 : : ::google::protobuf::MessageLite() {
11519 0 : SharedCtor();
11520 0 : MergeFrom(from);
11521 : // @@protoc_insertion_point(copy_constructor:safe_browsing.ClientIncidentReport.EnvironmentData.OS.RegistryValue)
11522 0 : }
11523 :
11524 0 : void ClientIncidentReport_EnvironmentData_OS_RegistryValue::SharedCtor() {
11525 0 : ::google::protobuf::internal::GetEmptyString();
11526 0 : _cached_size_ = 0;
11527 0 : name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
11528 0 : type_ = 0u;
11529 0 : data_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
11530 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
11531 0 : }
11532 :
11533 0 : ClientIncidentReport_EnvironmentData_OS_RegistryValue::~ClientIncidentReport_EnvironmentData_OS_RegistryValue() {
11534 : // @@protoc_insertion_point(destructor:safe_browsing.ClientIncidentReport.EnvironmentData.OS.RegistryValue)
11535 0 : SharedDtor();
11536 0 : }
11537 :
11538 0 : void ClientIncidentReport_EnvironmentData_OS_RegistryValue::SharedDtor() {
11539 0 : if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
11540 0 : delete name_;
11541 : }
11542 0 : if (data_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
11543 0 : delete data_;
11544 : }
11545 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
11546 0 : if (this != &default_instance()) {
11547 : #else
11548 : if (this != default_instance_) {
11549 : #endif
11550 : }
11551 0 : }
11552 :
11553 0 : void ClientIncidentReport_EnvironmentData_OS_RegistryValue::SetCachedSize(int size) const {
11554 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
11555 0 : _cached_size_ = size;
11556 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
11557 0 : }
11558 0 : const ClientIncidentReport_EnvironmentData_OS_RegistryValue& ClientIncidentReport_EnvironmentData_OS_RegistryValue::default_instance() {
11559 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
11560 0 : protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
11561 : #else
11562 : if (default_instance_ == NULL) protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
11563 : #endif
11564 0 : return *default_instance_;
11565 : }
11566 :
11567 : ClientIncidentReport_EnvironmentData_OS_RegistryValue* ClientIncidentReport_EnvironmentData_OS_RegistryValue::default_instance_ = NULL;
11568 :
11569 0 : ClientIncidentReport_EnvironmentData_OS_RegistryValue* ClientIncidentReport_EnvironmentData_OS_RegistryValue::New() const {
11570 0 : return new ClientIncidentReport_EnvironmentData_OS_RegistryValue;
11571 : }
11572 :
11573 0 : void ClientIncidentReport_EnvironmentData_OS_RegistryValue::Clear() {
11574 0 : if (_has_bits_[0 / 32] & 7) {
11575 0 : if (has_name()) {
11576 0 : if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
11577 0 : name_->clear();
11578 : }
11579 : }
11580 0 : type_ = 0u;
11581 0 : if (has_data()) {
11582 0 : if (data_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
11583 0 : data_->clear();
11584 : }
11585 : }
11586 : }
11587 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
11588 0 : mutable_unknown_fields()->clear();
11589 0 : }
11590 :
11591 0 : bool ClientIncidentReport_EnvironmentData_OS_RegistryValue::MergePartialFromCodedStream(
11592 : ::google::protobuf::io::CodedInputStream* input) {
11593 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
11594 : ::google::protobuf::uint32 tag;
11595 : ::google::protobuf::io::StringOutputStream unknown_fields_string(
11596 0 : mutable_unknown_fields());
11597 : ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
11598 0 : &unknown_fields_string);
11599 : // @@protoc_insertion_point(parse_start:safe_browsing.ClientIncidentReport.EnvironmentData.OS.RegistryValue)
11600 : for (;;) {
11601 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
11602 0 : tag = p.first;
11603 0 : if (!p.second) goto handle_unusual;
11604 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
11605 : // optional string name = 1;
11606 : case 1: {
11607 0 : if (tag == 10) {
11608 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
11609 : input, this->mutable_name()));
11610 : } else {
11611 0 : goto handle_unusual;
11612 : }
11613 0 : if (input->ExpectTag(16)) goto parse_type;
11614 0 : break;
11615 : }
11616 :
11617 : // optional uint32 type = 2;
11618 : case 2: {
11619 0 : if (tag == 16) {
11620 : parse_type:
11621 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
11622 : ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
11623 : input, &type_)));
11624 0 : set_has_type();
11625 : } else {
11626 0 : goto handle_unusual;
11627 : }
11628 0 : if (input->ExpectTag(26)) goto parse_data;
11629 0 : break;
11630 : }
11631 :
11632 : // optional bytes data = 3;
11633 : case 3: {
11634 0 : if (tag == 26) {
11635 : parse_data:
11636 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
11637 : input, this->mutable_data()));
11638 : } else {
11639 0 : goto handle_unusual;
11640 : }
11641 0 : if (input->ExpectAtEnd()) goto success;
11642 0 : break;
11643 : }
11644 :
11645 : default: {
11646 : handle_unusual:
11647 0 : if (tag == 0 ||
11648 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
11649 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
11650 0 : goto success;
11651 : }
11652 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(
11653 : input, tag, &unknown_fields_stream));
11654 0 : break;
11655 : }
11656 : }
11657 0 : }
11658 : success:
11659 : // @@protoc_insertion_point(parse_success:safe_browsing.ClientIncidentReport.EnvironmentData.OS.RegistryValue)
11660 0 : return true;
11661 : failure:
11662 : // @@protoc_insertion_point(parse_failure:safe_browsing.ClientIncidentReport.EnvironmentData.OS.RegistryValue)
11663 0 : return false;
11664 : #undef DO_
11665 : }
11666 :
11667 0 : void ClientIncidentReport_EnvironmentData_OS_RegistryValue::SerializeWithCachedSizes(
11668 : ::google::protobuf::io::CodedOutputStream* output) const {
11669 : // @@protoc_insertion_point(serialize_start:safe_browsing.ClientIncidentReport.EnvironmentData.OS.RegistryValue)
11670 : // optional string name = 1;
11671 0 : if (has_name()) {
11672 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
11673 0 : 1, this->name(), output);
11674 : }
11675 :
11676 : // optional uint32 type = 2;
11677 0 : if (has_type()) {
11678 0 : ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->type(), output);
11679 : }
11680 :
11681 : // optional bytes data = 3;
11682 0 : if (has_data()) {
11683 0 : ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
11684 0 : 3, this->data(), output);
11685 : }
11686 :
11687 0 : output->WriteRaw(unknown_fields().data(),
11688 0 : unknown_fields().size());
11689 : // @@protoc_insertion_point(serialize_end:safe_browsing.ClientIncidentReport.EnvironmentData.OS.RegistryValue)
11690 0 : }
11691 :
11692 0 : int ClientIncidentReport_EnvironmentData_OS_RegistryValue::ByteSize() const {
11693 0 : int total_size = 0;
11694 :
11695 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
11696 : // optional string name = 1;
11697 0 : if (has_name()) {
11698 0 : total_size += 1 +
11699 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
11700 : this->name());
11701 : }
11702 :
11703 : // optional uint32 type = 2;
11704 0 : if (has_type()) {
11705 0 : total_size += 1 +
11706 0 : ::google::protobuf::internal::WireFormatLite::UInt32Size(
11707 : this->type());
11708 : }
11709 :
11710 : // optional bytes data = 3;
11711 0 : if (has_data()) {
11712 0 : total_size += 1 +
11713 0 : ::google::protobuf::internal::WireFormatLite::BytesSize(
11714 : this->data());
11715 : }
11716 :
11717 : }
11718 0 : total_size += unknown_fields().size();
11719 :
11720 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
11721 0 : _cached_size_ = total_size;
11722 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
11723 0 : return total_size;
11724 : }
11725 :
11726 0 : void ClientIncidentReport_EnvironmentData_OS_RegistryValue::CheckTypeAndMergeFrom(
11727 : const ::google::protobuf::MessageLite& from) {
11728 0 : MergeFrom(*::google::protobuf::down_cast<const ClientIncidentReport_EnvironmentData_OS_RegistryValue*>(&from));
11729 0 : }
11730 :
11731 0 : void ClientIncidentReport_EnvironmentData_OS_RegistryValue::MergeFrom(const ClientIncidentReport_EnvironmentData_OS_RegistryValue& from) {
11732 0 : GOOGLE_CHECK_NE(&from, this);
11733 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
11734 0 : if (from.has_name()) {
11735 0 : set_name(from.name());
11736 : }
11737 0 : if (from.has_type()) {
11738 0 : set_type(from.type());
11739 : }
11740 0 : if (from.has_data()) {
11741 0 : set_data(from.data());
11742 : }
11743 : }
11744 0 : mutable_unknown_fields()->append(from.unknown_fields());
11745 0 : }
11746 :
11747 0 : void ClientIncidentReport_EnvironmentData_OS_RegistryValue::CopyFrom(const ClientIncidentReport_EnvironmentData_OS_RegistryValue& from) {
11748 0 : if (&from == this) return;
11749 0 : Clear();
11750 0 : MergeFrom(from);
11751 : }
11752 :
11753 0 : bool ClientIncidentReport_EnvironmentData_OS_RegistryValue::IsInitialized() const {
11754 :
11755 0 : return true;
11756 : }
11757 :
11758 0 : void ClientIncidentReport_EnvironmentData_OS_RegistryValue::Swap(ClientIncidentReport_EnvironmentData_OS_RegistryValue* other) {
11759 0 : if (other != this) {
11760 0 : std::swap(name_, other->name_);
11761 0 : std::swap(type_, other->type_);
11762 0 : std::swap(data_, other->data_);
11763 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
11764 0 : _unknown_fields_.swap(other->_unknown_fields_);
11765 0 : std::swap(_cached_size_, other->_cached_size_);
11766 : }
11767 0 : }
11768 :
11769 0 : ::std::string ClientIncidentReport_EnvironmentData_OS_RegistryValue::GetTypeName() const {
11770 0 : return "safe_browsing.ClientIncidentReport.EnvironmentData.OS.RegistryValue";
11771 : }
11772 :
11773 :
11774 : // -------------------------------------------------------------------
11775 :
11776 : #ifndef _MSC_VER
11777 : const int ClientIncidentReport_EnvironmentData_OS_RegistryKey::kNameFieldNumber;
11778 : const int ClientIncidentReport_EnvironmentData_OS_RegistryKey::kValueFieldNumber;
11779 : const int ClientIncidentReport_EnvironmentData_OS_RegistryKey::kKeyFieldNumber;
11780 : #endif // !_MSC_VER
11781 :
11782 0 : ClientIncidentReport_EnvironmentData_OS_RegistryKey::ClientIncidentReport_EnvironmentData_OS_RegistryKey()
11783 0 : : ::google::protobuf::MessageLite() {
11784 0 : SharedCtor();
11785 : // @@protoc_insertion_point(constructor:safe_browsing.ClientIncidentReport.EnvironmentData.OS.RegistryKey)
11786 0 : }
11787 :
11788 0 : void ClientIncidentReport_EnvironmentData_OS_RegistryKey::InitAsDefaultInstance() {
11789 0 : }
11790 :
11791 0 : ClientIncidentReport_EnvironmentData_OS_RegistryKey::ClientIncidentReport_EnvironmentData_OS_RegistryKey(const ClientIncidentReport_EnvironmentData_OS_RegistryKey& from)
11792 0 : : ::google::protobuf::MessageLite() {
11793 0 : SharedCtor();
11794 0 : MergeFrom(from);
11795 : // @@protoc_insertion_point(copy_constructor:safe_browsing.ClientIncidentReport.EnvironmentData.OS.RegistryKey)
11796 0 : }
11797 :
11798 0 : void ClientIncidentReport_EnvironmentData_OS_RegistryKey::SharedCtor() {
11799 0 : ::google::protobuf::internal::GetEmptyString();
11800 0 : _cached_size_ = 0;
11801 0 : name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
11802 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
11803 0 : }
11804 :
11805 0 : ClientIncidentReport_EnvironmentData_OS_RegistryKey::~ClientIncidentReport_EnvironmentData_OS_RegistryKey() {
11806 : // @@protoc_insertion_point(destructor:safe_browsing.ClientIncidentReport.EnvironmentData.OS.RegistryKey)
11807 0 : SharedDtor();
11808 0 : }
11809 :
11810 0 : void ClientIncidentReport_EnvironmentData_OS_RegistryKey::SharedDtor() {
11811 0 : if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
11812 0 : delete name_;
11813 : }
11814 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
11815 0 : if (this != &default_instance()) {
11816 : #else
11817 : if (this != default_instance_) {
11818 : #endif
11819 : }
11820 0 : }
11821 :
11822 0 : void ClientIncidentReport_EnvironmentData_OS_RegistryKey::SetCachedSize(int size) const {
11823 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
11824 0 : _cached_size_ = size;
11825 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
11826 0 : }
11827 0 : const ClientIncidentReport_EnvironmentData_OS_RegistryKey& ClientIncidentReport_EnvironmentData_OS_RegistryKey::default_instance() {
11828 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
11829 0 : protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
11830 : #else
11831 : if (default_instance_ == NULL) protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
11832 : #endif
11833 0 : return *default_instance_;
11834 : }
11835 :
11836 : ClientIncidentReport_EnvironmentData_OS_RegistryKey* ClientIncidentReport_EnvironmentData_OS_RegistryKey::default_instance_ = NULL;
11837 :
11838 0 : ClientIncidentReport_EnvironmentData_OS_RegistryKey* ClientIncidentReport_EnvironmentData_OS_RegistryKey::New() const {
11839 0 : return new ClientIncidentReport_EnvironmentData_OS_RegistryKey;
11840 : }
11841 :
11842 0 : void ClientIncidentReport_EnvironmentData_OS_RegistryKey::Clear() {
11843 0 : if (has_name()) {
11844 0 : if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
11845 0 : name_->clear();
11846 : }
11847 : }
11848 0 : value_.Clear();
11849 0 : key_.Clear();
11850 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
11851 0 : mutable_unknown_fields()->clear();
11852 0 : }
11853 :
11854 0 : bool ClientIncidentReport_EnvironmentData_OS_RegistryKey::MergePartialFromCodedStream(
11855 : ::google::protobuf::io::CodedInputStream* input) {
11856 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
11857 : ::google::protobuf::uint32 tag;
11858 : ::google::protobuf::io::StringOutputStream unknown_fields_string(
11859 0 : mutable_unknown_fields());
11860 : ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
11861 0 : &unknown_fields_string);
11862 : // @@protoc_insertion_point(parse_start:safe_browsing.ClientIncidentReport.EnvironmentData.OS.RegistryKey)
11863 : for (;;) {
11864 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
11865 0 : tag = p.first;
11866 0 : if (!p.second) goto handle_unusual;
11867 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
11868 : // optional string name = 1;
11869 : case 1: {
11870 0 : if (tag == 10) {
11871 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
11872 : input, this->mutable_name()));
11873 : } else {
11874 0 : goto handle_unusual;
11875 : }
11876 0 : if (input->ExpectTag(18)) goto parse_value;
11877 0 : break;
11878 : }
11879 :
11880 : // repeated .safe_browsing.ClientIncidentReport.EnvironmentData.OS.RegistryValue value = 2;
11881 : case 2: {
11882 0 : if (tag == 18) {
11883 : parse_value:
11884 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
11885 : input, add_value()));
11886 : } else {
11887 0 : goto handle_unusual;
11888 : }
11889 0 : if (input->ExpectTag(18)) goto parse_value;
11890 0 : if (input->ExpectTag(26)) goto parse_key;
11891 0 : break;
11892 : }
11893 :
11894 : // repeated .safe_browsing.ClientIncidentReport.EnvironmentData.OS.RegistryKey key = 3;
11895 : case 3: {
11896 0 : if (tag == 26) {
11897 : parse_key:
11898 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
11899 : input, add_key()));
11900 : } else {
11901 0 : goto handle_unusual;
11902 : }
11903 0 : if (input->ExpectTag(26)) goto parse_key;
11904 0 : if (input->ExpectAtEnd()) goto success;
11905 0 : break;
11906 : }
11907 :
11908 : default: {
11909 : handle_unusual:
11910 0 : if (tag == 0 ||
11911 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
11912 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
11913 0 : goto success;
11914 : }
11915 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(
11916 : input, tag, &unknown_fields_stream));
11917 0 : break;
11918 : }
11919 : }
11920 0 : }
11921 : success:
11922 : // @@protoc_insertion_point(parse_success:safe_browsing.ClientIncidentReport.EnvironmentData.OS.RegistryKey)
11923 0 : return true;
11924 : failure:
11925 : // @@protoc_insertion_point(parse_failure:safe_browsing.ClientIncidentReport.EnvironmentData.OS.RegistryKey)
11926 0 : return false;
11927 : #undef DO_
11928 : }
11929 :
11930 0 : void ClientIncidentReport_EnvironmentData_OS_RegistryKey::SerializeWithCachedSizes(
11931 : ::google::protobuf::io::CodedOutputStream* output) const {
11932 : // @@protoc_insertion_point(serialize_start:safe_browsing.ClientIncidentReport.EnvironmentData.OS.RegistryKey)
11933 : // optional string name = 1;
11934 0 : if (has_name()) {
11935 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
11936 0 : 1, this->name(), output);
11937 : }
11938 :
11939 : // repeated .safe_browsing.ClientIncidentReport.EnvironmentData.OS.RegistryValue value = 2;
11940 0 : for (int i = 0; i < this->value_size(); i++) {
11941 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
11942 0 : 2, this->value(i), output);
11943 : }
11944 :
11945 : // repeated .safe_browsing.ClientIncidentReport.EnvironmentData.OS.RegistryKey key = 3;
11946 0 : for (int i = 0; i < this->key_size(); i++) {
11947 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
11948 0 : 3, this->key(i), output);
11949 : }
11950 :
11951 0 : output->WriteRaw(unknown_fields().data(),
11952 0 : unknown_fields().size());
11953 : // @@protoc_insertion_point(serialize_end:safe_browsing.ClientIncidentReport.EnvironmentData.OS.RegistryKey)
11954 0 : }
11955 :
11956 0 : int ClientIncidentReport_EnvironmentData_OS_RegistryKey::ByteSize() const {
11957 0 : int total_size = 0;
11958 :
11959 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
11960 : // optional string name = 1;
11961 0 : if (has_name()) {
11962 0 : total_size += 1 +
11963 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
11964 : this->name());
11965 : }
11966 :
11967 : }
11968 : // repeated .safe_browsing.ClientIncidentReport.EnvironmentData.OS.RegistryValue value = 2;
11969 0 : total_size += 1 * this->value_size();
11970 0 : for (int i = 0; i < this->value_size(); i++) {
11971 0 : total_size +=
11972 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
11973 : this->value(i));
11974 : }
11975 :
11976 : // repeated .safe_browsing.ClientIncidentReport.EnvironmentData.OS.RegistryKey key = 3;
11977 0 : total_size += 1 * this->key_size();
11978 0 : for (int i = 0; i < this->key_size(); i++) {
11979 0 : total_size +=
11980 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
11981 : this->key(i));
11982 : }
11983 :
11984 0 : total_size += unknown_fields().size();
11985 :
11986 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
11987 0 : _cached_size_ = total_size;
11988 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
11989 0 : return total_size;
11990 : }
11991 :
11992 0 : void ClientIncidentReport_EnvironmentData_OS_RegistryKey::CheckTypeAndMergeFrom(
11993 : const ::google::protobuf::MessageLite& from) {
11994 0 : MergeFrom(*::google::protobuf::down_cast<const ClientIncidentReport_EnvironmentData_OS_RegistryKey*>(&from));
11995 0 : }
11996 :
11997 0 : void ClientIncidentReport_EnvironmentData_OS_RegistryKey::MergeFrom(const ClientIncidentReport_EnvironmentData_OS_RegistryKey& from) {
11998 0 : GOOGLE_CHECK_NE(&from, this);
11999 0 : value_.MergeFrom(from.value_);
12000 0 : key_.MergeFrom(from.key_);
12001 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
12002 0 : if (from.has_name()) {
12003 0 : set_name(from.name());
12004 : }
12005 : }
12006 0 : mutable_unknown_fields()->append(from.unknown_fields());
12007 0 : }
12008 :
12009 0 : void ClientIncidentReport_EnvironmentData_OS_RegistryKey::CopyFrom(const ClientIncidentReport_EnvironmentData_OS_RegistryKey& from) {
12010 0 : if (&from == this) return;
12011 0 : Clear();
12012 0 : MergeFrom(from);
12013 : }
12014 :
12015 0 : bool ClientIncidentReport_EnvironmentData_OS_RegistryKey::IsInitialized() const {
12016 :
12017 0 : return true;
12018 : }
12019 :
12020 0 : void ClientIncidentReport_EnvironmentData_OS_RegistryKey::Swap(ClientIncidentReport_EnvironmentData_OS_RegistryKey* other) {
12021 0 : if (other != this) {
12022 0 : std::swap(name_, other->name_);
12023 0 : value_.Swap(&other->value_);
12024 0 : key_.Swap(&other->key_);
12025 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
12026 0 : _unknown_fields_.swap(other->_unknown_fields_);
12027 0 : std::swap(_cached_size_, other->_cached_size_);
12028 : }
12029 0 : }
12030 :
12031 0 : ::std::string ClientIncidentReport_EnvironmentData_OS_RegistryKey::GetTypeName() const {
12032 0 : return "safe_browsing.ClientIncidentReport.EnvironmentData.OS.RegistryKey";
12033 : }
12034 :
12035 :
12036 : // -------------------------------------------------------------------
12037 :
12038 : #ifndef _MSC_VER
12039 : const int ClientIncidentReport_EnvironmentData_OS::kOsNameFieldNumber;
12040 : const int ClientIncidentReport_EnvironmentData_OS::kOsVersionFieldNumber;
12041 : const int ClientIncidentReport_EnvironmentData_OS::kRegistryKeyFieldNumber;
12042 : const int ClientIncidentReport_EnvironmentData_OS::kIsEnrolledToDomainFieldNumber;
12043 : #endif // !_MSC_VER
12044 :
12045 0 : ClientIncidentReport_EnvironmentData_OS::ClientIncidentReport_EnvironmentData_OS()
12046 0 : : ::google::protobuf::MessageLite() {
12047 0 : SharedCtor();
12048 : // @@protoc_insertion_point(constructor:safe_browsing.ClientIncidentReport.EnvironmentData.OS)
12049 0 : }
12050 :
12051 0 : void ClientIncidentReport_EnvironmentData_OS::InitAsDefaultInstance() {
12052 0 : }
12053 :
12054 0 : ClientIncidentReport_EnvironmentData_OS::ClientIncidentReport_EnvironmentData_OS(const ClientIncidentReport_EnvironmentData_OS& from)
12055 0 : : ::google::protobuf::MessageLite() {
12056 0 : SharedCtor();
12057 0 : MergeFrom(from);
12058 : // @@protoc_insertion_point(copy_constructor:safe_browsing.ClientIncidentReport.EnvironmentData.OS)
12059 0 : }
12060 :
12061 0 : void ClientIncidentReport_EnvironmentData_OS::SharedCtor() {
12062 0 : ::google::protobuf::internal::GetEmptyString();
12063 0 : _cached_size_ = 0;
12064 0 : os_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12065 0 : os_version_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12066 0 : is_enrolled_to_domain_ = false;
12067 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
12068 0 : }
12069 :
12070 0 : ClientIncidentReport_EnvironmentData_OS::~ClientIncidentReport_EnvironmentData_OS() {
12071 : // @@protoc_insertion_point(destructor:safe_browsing.ClientIncidentReport.EnvironmentData.OS)
12072 0 : SharedDtor();
12073 0 : }
12074 :
12075 0 : void ClientIncidentReport_EnvironmentData_OS::SharedDtor() {
12076 0 : if (os_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
12077 0 : delete os_name_;
12078 : }
12079 0 : if (os_version_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
12080 0 : delete os_version_;
12081 : }
12082 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
12083 0 : if (this != &default_instance()) {
12084 : #else
12085 : if (this != default_instance_) {
12086 : #endif
12087 : }
12088 0 : }
12089 :
12090 0 : void ClientIncidentReport_EnvironmentData_OS::SetCachedSize(int size) const {
12091 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
12092 0 : _cached_size_ = size;
12093 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
12094 0 : }
12095 0 : const ClientIncidentReport_EnvironmentData_OS& ClientIncidentReport_EnvironmentData_OS::default_instance() {
12096 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
12097 0 : protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
12098 : #else
12099 : if (default_instance_ == NULL) protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
12100 : #endif
12101 0 : return *default_instance_;
12102 : }
12103 :
12104 : ClientIncidentReport_EnvironmentData_OS* ClientIncidentReport_EnvironmentData_OS::default_instance_ = NULL;
12105 :
12106 0 : ClientIncidentReport_EnvironmentData_OS* ClientIncidentReport_EnvironmentData_OS::New() const {
12107 0 : return new ClientIncidentReport_EnvironmentData_OS;
12108 : }
12109 :
12110 0 : void ClientIncidentReport_EnvironmentData_OS::Clear() {
12111 0 : if (_has_bits_[0 / 32] & 11) {
12112 0 : if (has_os_name()) {
12113 0 : if (os_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
12114 0 : os_name_->clear();
12115 : }
12116 : }
12117 0 : if (has_os_version()) {
12118 0 : if (os_version_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
12119 0 : os_version_->clear();
12120 : }
12121 : }
12122 0 : is_enrolled_to_domain_ = false;
12123 : }
12124 0 : registry_key_.Clear();
12125 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
12126 0 : mutable_unknown_fields()->clear();
12127 0 : }
12128 :
12129 0 : bool ClientIncidentReport_EnvironmentData_OS::MergePartialFromCodedStream(
12130 : ::google::protobuf::io::CodedInputStream* input) {
12131 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
12132 : ::google::protobuf::uint32 tag;
12133 : ::google::protobuf::io::StringOutputStream unknown_fields_string(
12134 0 : mutable_unknown_fields());
12135 : ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
12136 0 : &unknown_fields_string);
12137 : // @@protoc_insertion_point(parse_start:safe_browsing.ClientIncidentReport.EnvironmentData.OS)
12138 : for (;;) {
12139 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
12140 0 : tag = p.first;
12141 0 : if (!p.second) goto handle_unusual;
12142 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
12143 : // optional string os_name = 1;
12144 : case 1: {
12145 0 : if (tag == 10) {
12146 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
12147 : input, this->mutable_os_name()));
12148 : } else {
12149 0 : goto handle_unusual;
12150 : }
12151 0 : if (input->ExpectTag(18)) goto parse_os_version;
12152 0 : break;
12153 : }
12154 :
12155 : // optional string os_version = 2;
12156 : case 2: {
12157 0 : if (tag == 18) {
12158 : parse_os_version:
12159 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
12160 : input, this->mutable_os_version()));
12161 : } else {
12162 0 : goto handle_unusual;
12163 : }
12164 0 : if (input->ExpectTag(26)) goto parse_registry_key;
12165 0 : break;
12166 : }
12167 :
12168 : // repeated .safe_browsing.ClientIncidentReport.EnvironmentData.OS.RegistryKey registry_key = 3;
12169 : case 3: {
12170 0 : if (tag == 26) {
12171 : parse_registry_key:
12172 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
12173 : input, add_registry_key()));
12174 : } else {
12175 0 : goto handle_unusual;
12176 : }
12177 0 : if (input->ExpectTag(26)) goto parse_registry_key;
12178 0 : if (input->ExpectTag(32)) goto parse_is_enrolled_to_domain;
12179 0 : break;
12180 : }
12181 :
12182 : // optional bool is_enrolled_to_domain = 4;
12183 : case 4: {
12184 0 : if (tag == 32) {
12185 : parse_is_enrolled_to_domain:
12186 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
12187 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
12188 : input, &is_enrolled_to_domain_)));
12189 0 : set_has_is_enrolled_to_domain();
12190 : } else {
12191 0 : goto handle_unusual;
12192 : }
12193 0 : if (input->ExpectAtEnd()) goto success;
12194 0 : break;
12195 : }
12196 :
12197 : default: {
12198 : handle_unusual:
12199 0 : if (tag == 0 ||
12200 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
12201 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
12202 0 : goto success;
12203 : }
12204 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(
12205 : input, tag, &unknown_fields_stream));
12206 0 : break;
12207 : }
12208 : }
12209 0 : }
12210 : success:
12211 : // @@protoc_insertion_point(parse_success:safe_browsing.ClientIncidentReport.EnvironmentData.OS)
12212 0 : return true;
12213 : failure:
12214 : // @@protoc_insertion_point(parse_failure:safe_browsing.ClientIncidentReport.EnvironmentData.OS)
12215 0 : return false;
12216 : #undef DO_
12217 : }
12218 :
12219 0 : void ClientIncidentReport_EnvironmentData_OS::SerializeWithCachedSizes(
12220 : ::google::protobuf::io::CodedOutputStream* output) const {
12221 : // @@protoc_insertion_point(serialize_start:safe_browsing.ClientIncidentReport.EnvironmentData.OS)
12222 : // optional string os_name = 1;
12223 0 : if (has_os_name()) {
12224 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
12225 0 : 1, this->os_name(), output);
12226 : }
12227 :
12228 : // optional string os_version = 2;
12229 0 : if (has_os_version()) {
12230 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
12231 0 : 2, this->os_version(), output);
12232 : }
12233 :
12234 : // repeated .safe_browsing.ClientIncidentReport.EnvironmentData.OS.RegistryKey registry_key = 3;
12235 0 : for (int i = 0; i < this->registry_key_size(); i++) {
12236 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
12237 0 : 3, this->registry_key(i), output);
12238 : }
12239 :
12240 : // optional bool is_enrolled_to_domain = 4;
12241 0 : if (has_is_enrolled_to_domain()) {
12242 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->is_enrolled_to_domain(), output);
12243 : }
12244 :
12245 0 : output->WriteRaw(unknown_fields().data(),
12246 0 : unknown_fields().size());
12247 : // @@protoc_insertion_point(serialize_end:safe_browsing.ClientIncidentReport.EnvironmentData.OS)
12248 0 : }
12249 :
12250 0 : int ClientIncidentReport_EnvironmentData_OS::ByteSize() const {
12251 0 : int total_size = 0;
12252 :
12253 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
12254 : // optional string os_name = 1;
12255 0 : if (has_os_name()) {
12256 0 : total_size += 1 +
12257 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
12258 : this->os_name());
12259 : }
12260 :
12261 : // optional string os_version = 2;
12262 0 : if (has_os_version()) {
12263 0 : total_size += 1 +
12264 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
12265 : this->os_version());
12266 : }
12267 :
12268 : // optional bool is_enrolled_to_domain = 4;
12269 0 : if (has_is_enrolled_to_domain()) {
12270 0 : total_size += 1 + 1;
12271 : }
12272 :
12273 : }
12274 : // repeated .safe_browsing.ClientIncidentReport.EnvironmentData.OS.RegistryKey registry_key = 3;
12275 0 : total_size += 1 * this->registry_key_size();
12276 0 : for (int i = 0; i < this->registry_key_size(); i++) {
12277 0 : total_size +=
12278 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
12279 : this->registry_key(i));
12280 : }
12281 :
12282 0 : total_size += unknown_fields().size();
12283 :
12284 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
12285 0 : _cached_size_ = total_size;
12286 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
12287 0 : return total_size;
12288 : }
12289 :
12290 0 : void ClientIncidentReport_EnvironmentData_OS::CheckTypeAndMergeFrom(
12291 : const ::google::protobuf::MessageLite& from) {
12292 0 : MergeFrom(*::google::protobuf::down_cast<const ClientIncidentReport_EnvironmentData_OS*>(&from));
12293 0 : }
12294 :
12295 0 : void ClientIncidentReport_EnvironmentData_OS::MergeFrom(const ClientIncidentReport_EnvironmentData_OS& from) {
12296 0 : GOOGLE_CHECK_NE(&from, this);
12297 0 : registry_key_.MergeFrom(from.registry_key_);
12298 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
12299 0 : if (from.has_os_name()) {
12300 0 : set_os_name(from.os_name());
12301 : }
12302 0 : if (from.has_os_version()) {
12303 0 : set_os_version(from.os_version());
12304 : }
12305 0 : if (from.has_is_enrolled_to_domain()) {
12306 0 : set_is_enrolled_to_domain(from.is_enrolled_to_domain());
12307 : }
12308 : }
12309 0 : mutable_unknown_fields()->append(from.unknown_fields());
12310 0 : }
12311 :
12312 0 : void ClientIncidentReport_EnvironmentData_OS::CopyFrom(const ClientIncidentReport_EnvironmentData_OS& from) {
12313 0 : if (&from == this) return;
12314 0 : Clear();
12315 0 : MergeFrom(from);
12316 : }
12317 :
12318 0 : bool ClientIncidentReport_EnvironmentData_OS::IsInitialized() const {
12319 :
12320 0 : return true;
12321 : }
12322 :
12323 0 : void ClientIncidentReport_EnvironmentData_OS::Swap(ClientIncidentReport_EnvironmentData_OS* other) {
12324 0 : if (other != this) {
12325 0 : std::swap(os_name_, other->os_name_);
12326 0 : std::swap(os_version_, other->os_version_);
12327 0 : registry_key_.Swap(&other->registry_key_);
12328 0 : std::swap(is_enrolled_to_domain_, other->is_enrolled_to_domain_);
12329 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
12330 0 : _unknown_fields_.swap(other->_unknown_fields_);
12331 0 : std::swap(_cached_size_, other->_cached_size_);
12332 : }
12333 0 : }
12334 :
12335 0 : ::std::string ClientIncidentReport_EnvironmentData_OS::GetTypeName() const {
12336 0 : return "safe_browsing.ClientIncidentReport.EnvironmentData.OS";
12337 : }
12338 :
12339 :
12340 : // -------------------------------------------------------------------
12341 :
12342 : #ifndef _MSC_VER
12343 : const int ClientIncidentReport_EnvironmentData_Machine::kCpuArchitectureFieldNumber;
12344 : const int ClientIncidentReport_EnvironmentData_Machine::kCpuVendorFieldNumber;
12345 : const int ClientIncidentReport_EnvironmentData_Machine::kCpuidFieldNumber;
12346 : #endif // !_MSC_VER
12347 :
12348 0 : ClientIncidentReport_EnvironmentData_Machine::ClientIncidentReport_EnvironmentData_Machine()
12349 0 : : ::google::protobuf::MessageLite() {
12350 0 : SharedCtor();
12351 : // @@protoc_insertion_point(constructor:safe_browsing.ClientIncidentReport.EnvironmentData.Machine)
12352 0 : }
12353 :
12354 0 : void ClientIncidentReport_EnvironmentData_Machine::InitAsDefaultInstance() {
12355 0 : }
12356 :
12357 0 : ClientIncidentReport_EnvironmentData_Machine::ClientIncidentReport_EnvironmentData_Machine(const ClientIncidentReport_EnvironmentData_Machine& from)
12358 0 : : ::google::protobuf::MessageLite() {
12359 0 : SharedCtor();
12360 0 : MergeFrom(from);
12361 : // @@protoc_insertion_point(copy_constructor:safe_browsing.ClientIncidentReport.EnvironmentData.Machine)
12362 0 : }
12363 :
12364 0 : void ClientIncidentReport_EnvironmentData_Machine::SharedCtor() {
12365 0 : ::google::protobuf::internal::GetEmptyString();
12366 0 : _cached_size_ = 0;
12367 0 : cpu_architecture_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12368 0 : cpu_vendor_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12369 0 : cpuid_ = 0u;
12370 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
12371 0 : }
12372 :
12373 0 : ClientIncidentReport_EnvironmentData_Machine::~ClientIncidentReport_EnvironmentData_Machine() {
12374 : // @@protoc_insertion_point(destructor:safe_browsing.ClientIncidentReport.EnvironmentData.Machine)
12375 0 : SharedDtor();
12376 0 : }
12377 :
12378 0 : void ClientIncidentReport_EnvironmentData_Machine::SharedDtor() {
12379 0 : if (cpu_architecture_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
12380 0 : delete cpu_architecture_;
12381 : }
12382 0 : if (cpu_vendor_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
12383 0 : delete cpu_vendor_;
12384 : }
12385 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
12386 0 : if (this != &default_instance()) {
12387 : #else
12388 : if (this != default_instance_) {
12389 : #endif
12390 : }
12391 0 : }
12392 :
12393 0 : void ClientIncidentReport_EnvironmentData_Machine::SetCachedSize(int size) const {
12394 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
12395 0 : _cached_size_ = size;
12396 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
12397 0 : }
12398 0 : const ClientIncidentReport_EnvironmentData_Machine& ClientIncidentReport_EnvironmentData_Machine::default_instance() {
12399 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
12400 0 : protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
12401 : #else
12402 : if (default_instance_ == NULL) protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
12403 : #endif
12404 0 : return *default_instance_;
12405 : }
12406 :
12407 : ClientIncidentReport_EnvironmentData_Machine* ClientIncidentReport_EnvironmentData_Machine::default_instance_ = NULL;
12408 :
12409 0 : ClientIncidentReport_EnvironmentData_Machine* ClientIncidentReport_EnvironmentData_Machine::New() const {
12410 0 : return new ClientIncidentReport_EnvironmentData_Machine;
12411 : }
12412 :
12413 0 : void ClientIncidentReport_EnvironmentData_Machine::Clear() {
12414 0 : if (_has_bits_[0 / 32] & 7) {
12415 0 : if (has_cpu_architecture()) {
12416 0 : if (cpu_architecture_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
12417 0 : cpu_architecture_->clear();
12418 : }
12419 : }
12420 0 : if (has_cpu_vendor()) {
12421 0 : if (cpu_vendor_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
12422 0 : cpu_vendor_->clear();
12423 : }
12424 : }
12425 0 : cpuid_ = 0u;
12426 : }
12427 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
12428 0 : mutable_unknown_fields()->clear();
12429 0 : }
12430 :
12431 0 : bool ClientIncidentReport_EnvironmentData_Machine::MergePartialFromCodedStream(
12432 : ::google::protobuf::io::CodedInputStream* input) {
12433 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
12434 : ::google::protobuf::uint32 tag;
12435 : ::google::protobuf::io::StringOutputStream unknown_fields_string(
12436 0 : mutable_unknown_fields());
12437 : ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
12438 0 : &unknown_fields_string);
12439 : // @@protoc_insertion_point(parse_start:safe_browsing.ClientIncidentReport.EnvironmentData.Machine)
12440 : for (;;) {
12441 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
12442 0 : tag = p.first;
12443 0 : if (!p.second) goto handle_unusual;
12444 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
12445 : // optional string cpu_architecture = 1;
12446 : case 1: {
12447 0 : if (tag == 10) {
12448 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
12449 : input, this->mutable_cpu_architecture()));
12450 : } else {
12451 0 : goto handle_unusual;
12452 : }
12453 0 : if (input->ExpectTag(18)) goto parse_cpu_vendor;
12454 0 : break;
12455 : }
12456 :
12457 : // optional string cpu_vendor = 2;
12458 : case 2: {
12459 0 : if (tag == 18) {
12460 : parse_cpu_vendor:
12461 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
12462 : input, this->mutable_cpu_vendor()));
12463 : } else {
12464 0 : goto handle_unusual;
12465 : }
12466 0 : if (input->ExpectTag(24)) goto parse_cpuid;
12467 0 : break;
12468 : }
12469 :
12470 : // optional uint32 cpuid = 3;
12471 : case 3: {
12472 0 : if (tag == 24) {
12473 : parse_cpuid:
12474 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
12475 : ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
12476 : input, &cpuid_)));
12477 0 : set_has_cpuid();
12478 : } else {
12479 0 : goto handle_unusual;
12480 : }
12481 0 : if (input->ExpectAtEnd()) goto success;
12482 0 : break;
12483 : }
12484 :
12485 : default: {
12486 : handle_unusual:
12487 0 : if (tag == 0 ||
12488 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
12489 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
12490 0 : goto success;
12491 : }
12492 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(
12493 : input, tag, &unknown_fields_stream));
12494 0 : break;
12495 : }
12496 : }
12497 0 : }
12498 : success:
12499 : // @@protoc_insertion_point(parse_success:safe_browsing.ClientIncidentReport.EnvironmentData.Machine)
12500 0 : return true;
12501 : failure:
12502 : // @@protoc_insertion_point(parse_failure:safe_browsing.ClientIncidentReport.EnvironmentData.Machine)
12503 0 : return false;
12504 : #undef DO_
12505 : }
12506 :
12507 0 : void ClientIncidentReport_EnvironmentData_Machine::SerializeWithCachedSizes(
12508 : ::google::protobuf::io::CodedOutputStream* output) const {
12509 : // @@protoc_insertion_point(serialize_start:safe_browsing.ClientIncidentReport.EnvironmentData.Machine)
12510 : // optional string cpu_architecture = 1;
12511 0 : if (has_cpu_architecture()) {
12512 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
12513 0 : 1, this->cpu_architecture(), output);
12514 : }
12515 :
12516 : // optional string cpu_vendor = 2;
12517 0 : if (has_cpu_vendor()) {
12518 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
12519 0 : 2, this->cpu_vendor(), output);
12520 : }
12521 :
12522 : // optional uint32 cpuid = 3;
12523 0 : if (has_cpuid()) {
12524 0 : ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->cpuid(), output);
12525 : }
12526 :
12527 0 : output->WriteRaw(unknown_fields().data(),
12528 0 : unknown_fields().size());
12529 : // @@protoc_insertion_point(serialize_end:safe_browsing.ClientIncidentReport.EnvironmentData.Machine)
12530 0 : }
12531 :
12532 0 : int ClientIncidentReport_EnvironmentData_Machine::ByteSize() const {
12533 0 : int total_size = 0;
12534 :
12535 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
12536 : // optional string cpu_architecture = 1;
12537 0 : if (has_cpu_architecture()) {
12538 0 : total_size += 1 +
12539 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
12540 : this->cpu_architecture());
12541 : }
12542 :
12543 : // optional string cpu_vendor = 2;
12544 0 : if (has_cpu_vendor()) {
12545 0 : total_size += 1 +
12546 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
12547 : this->cpu_vendor());
12548 : }
12549 :
12550 : // optional uint32 cpuid = 3;
12551 0 : if (has_cpuid()) {
12552 0 : total_size += 1 +
12553 0 : ::google::protobuf::internal::WireFormatLite::UInt32Size(
12554 : this->cpuid());
12555 : }
12556 :
12557 : }
12558 0 : total_size += unknown_fields().size();
12559 :
12560 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
12561 0 : _cached_size_ = total_size;
12562 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
12563 0 : return total_size;
12564 : }
12565 :
12566 0 : void ClientIncidentReport_EnvironmentData_Machine::CheckTypeAndMergeFrom(
12567 : const ::google::protobuf::MessageLite& from) {
12568 0 : MergeFrom(*::google::protobuf::down_cast<const ClientIncidentReport_EnvironmentData_Machine*>(&from));
12569 0 : }
12570 :
12571 0 : void ClientIncidentReport_EnvironmentData_Machine::MergeFrom(const ClientIncidentReport_EnvironmentData_Machine& from) {
12572 0 : GOOGLE_CHECK_NE(&from, this);
12573 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
12574 0 : if (from.has_cpu_architecture()) {
12575 0 : set_cpu_architecture(from.cpu_architecture());
12576 : }
12577 0 : if (from.has_cpu_vendor()) {
12578 0 : set_cpu_vendor(from.cpu_vendor());
12579 : }
12580 0 : if (from.has_cpuid()) {
12581 0 : set_cpuid(from.cpuid());
12582 : }
12583 : }
12584 0 : mutable_unknown_fields()->append(from.unknown_fields());
12585 0 : }
12586 :
12587 0 : void ClientIncidentReport_EnvironmentData_Machine::CopyFrom(const ClientIncidentReport_EnvironmentData_Machine& from) {
12588 0 : if (&from == this) return;
12589 0 : Clear();
12590 0 : MergeFrom(from);
12591 : }
12592 :
12593 0 : bool ClientIncidentReport_EnvironmentData_Machine::IsInitialized() const {
12594 :
12595 0 : return true;
12596 : }
12597 :
12598 0 : void ClientIncidentReport_EnvironmentData_Machine::Swap(ClientIncidentReport_EnvironmentData_Machine* other) {
12599 0 : if (other != this) {
12600 0 : std::swap(cpu_architecture_, other->cpu_architecture_);
12601 0 : std::swap(cpu_vendor_, other->cpu_vendor_);
12602 0 : std::swap(cpuid_, other->cpuid_);
12603 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
12604 0 : _unknown_fields_.swap(other->_unknown_fields_);
12605 0 : std::swap(_cached_size_, other->_cached_size_);
12606 : }
12607 0 : }
12608 :
12609 0 : ::std::string ClientIncidentReport_EnvironmentData_Machine::GetTypeName() const {
12610 0 : return "safe_browsing.ClientIncidentReport.EnvironmentData.Machine";
12611 : }
12612 :
12613 :
12614 : // -------------------------------------------------------------------
12615 :
12616 0 : bool ClientIncidentReport_EnvironmentData_Process_Channel_IsValid(int value) {
12617 0 : switch(value) {
12618 : case 0:
12619 : case 1:
12620 : case 2:
12621 : case 3:
12622 : case 4:
12623 0 : return true;
12624 : default:
12625 0 : return false;
12626 : }
12627 : }
12628 :
12629 : #ifndef _MSC_VER
12630 : const ClientIncidentReport_EnvironmentData_Process_Channel ClientIncidentReport_EnvironmentData_Process::CHANNEL_UNKNOWN;
12631 : const ClientIncidentReport_EnvironmentData_Process_Channel ClientIncidentReport_EnvironmentData_Process::CHANNEL_CANARY;
12632 : const ClientIncidentReport_EnvironmentData_Process_Channel ClientIncidentReport_EnvironmentData_Process::CHANNEL_DEV;
12633 : const ClientIncidentReport_EnvironmentData_Process_Channel ClientIncidentReport_EnvironmentData_Process::CHANNEL_BETA;
12634 : const ClientIncidentReport_EnvironmentData_Process_Channel ClientIncidentReport_EnvironmentData_Process::CHANNEL_STABLE;
12635 : const ClientIncidentReport_EnvironmentData_Process_Channel ClientIncidentReport_EnvironmentData_Process::Channel_MIN;
12636 : const ClientIncidentReport_EnvironmentData_Process_Channel ClientIncidentReport_EnvironmentData_Process::Channel_MAX;
12637 : const int ClientIncidentReport_EnvironmentData_Process::Channel_ARRAYSIZE;
12638 : #endif // _MSC_VER
12639 : #ifndef _MSC_VER
12640 : const int ClientIncidentReport_EnvironmentData_Process_Patch::kFunctionFieldNumber;
12641 : const int ClientIncidentReport_EnvironmentData_Process_Patch::kTargetDllFieldNumber;
12642 : #endif // !_MSC_VER
12643 :
12644 0 : ClientIncidentReport_EnvironmentData_Process_Patch::ClientIncidentReport_EnvironmentData_Process_Patch()
12645 0 : : ::google::protobuf::MessageLite() {
12646 0 : SharedCtor();
12647 : // @@protoc_insertion_point(constructor:safe_browsing.ClientIncidentReport.EnvironmentData.Process.Patch)
12648 0 : }
12649 :
12650 0 : void ClientIncidentReport_EnvironmentData_Process_Patch::InitAsDefaultInstance() {
12651 0 : }
12652 :
12653 0 : ClientIncidentReport_EnvironmentData_Process_Patch::ClientIncidentReport_EnvironmentData_Process_Patch(const ClientIncidentReport_EnvironmentData_Process_Patch& from)
12654 0 : : ::google::protobuf::MessageLite() {
12655 0 : SharedCtor();
12656 0 : MergeFrom(from);
12657 : // @@protoc_insertion_point(copy_constructor:safe_browsing.ClientIncidentReport.EnvironmentData.Process.Patch)
12658 0 : }
12659 :
12660 0 : void ClientIncidentReport_EnvironmentData_Process_Patch::SharedCtor() {
12661 0 : ::google::protobuf::internal::GetEmptyString();
12662 0 : _cached_size_ = 0;
12663 0 : function_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12664 0 : target_dll_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12665 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
12666 0 : }
12667 :
12668 0 : ClientIncidentReport_EnvironmentData_Process_Patch::~ClientIncidentReport_EnvironmentData_Process_Patch() {
12669 : // @@protoc_insertion_point(destructor:safe_browsing.ClientIncidentReport.EnvironmentData.Process.Patch)
12670 0 : SharedDtor();
12671 0 : }
12672 :
12673 0 : void ClientIncidentReport_EnvironmentData_Process_Patch::SharedDtor() {
12674 0 : if (function_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
12675 0 : delete function_;
12676 : }
12677 0 : if (target_dll_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
12678 0 : delete target_dll_;
12679 : }
12680 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
12681 0 : if (this != &default_instance()) {
12682 : #else
12683 : if (this != default_instance_) {
12684 : #endif
12685 : }
12686 0 : }
12687 :
12688 0 : void ClientIncidentReport_EnvironmentData_Process_Patch::SetCachedSize(int size) const {
12689 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
12690 0 : _cached_size_ = size;
12691 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
12692 0 : }
12693 0 : const ClientIncidentReport_EnvironmentData_Process_Patch& ClientIncidentReport_EnvironmentData_Process_Patch::default_instance() {
12694 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
12695 0 : protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
12696 : #else
12697 : if (default_instance_ == NULL) protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
12698 : #endif
12699 0 : return *default_instance_;
12700 : }
12701 :
12702 : ClientIncidentReport_EnvironmentData_Process_Patch* ClientIncidentReport_EnvironmentData_Process_Patch::default_instance_ = NULL;
12703 :
12704 0 : ClientIncidentReport_EnvironmentData_Process_Patch* ClientIncidentReport_EnvironmentData_Process_Patch::New() const {
12705 0 : return new ClientIncidentReport_EnvironmentData_Process_Patch;
12706 : }
12707 :
12708 0 : void ClientIncidentReport_EnvironmentData_Process_Patch::Clear() {
12709 0 : if (_has_bits_[0 / 32] & 3) {
12710 0 : if (has_function()) {
12711 0 : if (function_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
12712 0 : function_->clear();
12713 : }
12714 : }
12715 0 : if (has_target_dll()) {
12716 0 : if (target_dll_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
12717 0 : target_dll_->clear();
12718 : }
12719 : }
12720 : }
12721 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
12722 0 : mutable_unknown_fields()->clear();
12723 0 : }
12724 :
12725 0 : bool ClientIncidentReport_EnvironmentData_Process_Patch::MergePartialFromCodedStream(
12726 : ::google::protobuf::io::CodedInputStream* input) {
12727 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
12728 : ::google::protobuf::uint32 tag;
12729 : ::google::protobuf::io::StringOutputStream unknown_fields_string(
12730 0 : mutable_unknown_fields());
12731 : ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
12732 0 : &unknown_fields_string);
12733 : // @@protoc_insertion_point(parse_start:safe_browsing.ClientIncidentReport.EnvironmentData.Process.Patch)
12734 : for (;;) {
12735 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
12736 0 : tag = p.first;
12737 0 : if (!p.second) goto handle_unusual;
12738 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
12739 : // optional string function = 1;
12740 : case 1: {
12741 0 : if (tag == 10) {
12742 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
12743 : input, this->mutable_function()));
12744 : } else {
12745 0 : goto handle_unusual;
12746 : }
12747 0 : if (input->ExpectTag(18)) goto parse_target_dll;
12748 0 : break;
12749 : }
12750 :
12751 : // optional string target_dll = 2;
12752 : case 2: {
12753 0 : if (tag == 18) {
12754 : parse_target_dll:
12755 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
12756 : input, this->mutable_target_dll()));
12757 : } else {
12758 0 : goto handle_unusual;
12759 : }
12760 0 : if (input->ExpectAtEnd()) goto success;
12761 0 : break;
12762 : }
12763 :
12764 : default: {
12765 : handle_unusual:
12766 0 : if (tag == 0 ||
12767 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
12768 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
12769 0 : goto success;
12770 : }
12771 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(
12772 : input, tag, &unknown_fields_stream));
12773 0 : break;
12774 : }
12775 : }
12776 0 : }
12777 : success:
12778 : // @@protoc_insertion_point(parse_success:safe_browsing.ClientIncidentReport.EnvironmentData.Process.Patch)
12779 0 : return true;
12780 : failure:
12781 : // @@protoc_insertion_point(parse_failure:safe_browsing.ClientIncidentReport.EnvironmentData.Process.Patch)
12782 0 : return false;
12783 : #undef DO_
12784 : }
12785 :
12786 0 : void ClientIncidentReport_EnvironmentData_Process_Patch::SerializeWithCachedSizes(
12787 : ::google::protobuf::io::CodedOutputStream* output) const {
12788 : // @@protoc_insertion_point(serialize_start:safe_browsing.ClientIncidentReport.EnvironmentData.Process.Patch)
12789 : // optional string function = 1;
12790 0 : if (has_function()) {
12791 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
12792 0 : 1, this->function(), output);
12793 : }
12794 :
12795 : // optional string target_dll = 2;
12796 0 : if (has_target_dll()) {
12797 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
12798 0 : 2, this->target_dll(), output);
12799 : }
12800 :
12801 0 : output->WriteRaw(unknown_fields().data(),
12802 0 : unknown_fields().size());
12803 : // @@protoc_insertion_point(serialize_end:safe_browsing.ClientIncidentReport.EnvironmentData.Process.Patch)
12804 0 : }
12805 :
12806 0 : int ClientIncidentReport_EnvironmentData_Process_Patch::ByteSize() const {
12807 0 : int total_size = 0;
12808 :
12809 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
12810 : // optional string function = 1;
12811 0 : if (has_function()) {
12812 0 : total_size += 1 +
12813 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
12814 : this->function());
12815 : }
12816 :
12817 : // optional string target_dll = 2;
12818 0 : if (has_target_dll()) {
12819 0 : total_size += 1 +
12820 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
12821 : this->target_dll());
12822 : }
12823 :
12824 : }
12825 0 : total_size += unknown_fields().size();
12826 :
12827 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
12828 0 : _cached_size_ = total_size;
12829 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
12830 0 : return total_size;
12831 : }
12832 :
12833 0 : void ClientIncidentReport_EnvironmentData_Process_Patch::CheckTypeAndMergeFrom(
12834 : const ::google::protobuf::MessageLite& from) {
12835 0 : MergeFrom(*::google::protobuf::down_cast<const ClientIncidentReport_EnvironmentData_Process_Patch*>(&from));
12836 0 : }
12837 :
12838 0 : void ClientIncidentReport_EnvironmentData_Process_Patch::MergeFrom(const ClientIncidentReport_EnvironmentData_Process_Patch& from) {
12839 0 : GOOGLE_CHECK_NE(&from, this);
12840 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
12841 0 : if (from.has_function()) {
12842 0 : set_function(from.function());
12843 : }
12844 0 : if (from.has_target_dll()) {
12845 0 : set_target_dll(from.target_dll());
12846 : }
12847 : }
12848 0 : mutable_unknown_fields()->append(from.unknown_fields());
12849 0 : }
12850 :
12851 0 : void ClientIncidentReport_EnvironmentData_Process_Patch::CopyFrom(const ClientIncidentReport_EnvironmentData_Process_Patch& from) {
12852 0 : if (&from == this) return;
12853 0 : Clear();
12854 0 : MergeFrom(from);
12855 : }
12856 :
12857 0 : bool ClientIncidentReport_EnvironmentData_Process_Patch::IsInitialized() const {
12858 :
12859 0 : return true;
12860 : }
12861 :
12862 0 : void ClientIncidentReport_EnvironmentData_Process_Patch::Swap(ClientIncidentReport_EnvironmentData_Process_Patch* other) {
12863 0 : if (other != this) {
12864 0 : std::swap(function_, other->function_);
12865 0 : std::swap(target_dll_, other->target_dll_);
12866 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
12867 0 : _unknown_fields_.swap(other->_unknown_fields_);
12868 0 : std::swap(_cached_size_, other->_cached_size_);
12869 : }
12870 0 : }
12871 :
12872 0 : ::std::string ClientIncidentReport_EnvironmentData_Process_Patch::GetTypeName() const {
12873 0 : return "safe_browsing.ClientIncidentReport.EnvironmentData.Process.Patch";
12874 : }
12875 :
12876 :
12877 : // -------------------------------------------------------------------
12878 :
12879 : #ifndef _MSC_VER
12880 : #endif // !_MSC_VER
12881 :
12882 0 : ClientIncidentReport_EnvironmentData_Process_NetworkProvider::ClientIncidentReport_EnvironmentData_Process_NetworkProvider()
12883 0 : : ::google::protobuf::MessageLite() {
12884 0 : SharedCtor();
12885 : // @@protoc_insertion_point(constructor:safe_browsing.ClientIncidentReport.EnvironmentData.Process.NetworkProvider)
12886 0 : }
12887 :
12888 0 : void ClientIncidentReport_EnvironmentData_Process_NetworkProvider::InitAsDefaultInstance() {
12889 0 : }
12890 :
12891 0 : ClientIncidentReport_EnvironmentData_Process_NetworkProvider::ClientIncidentReport_EnvironmentData_Process_NetworkProvider(const ClientIncidentReport_EnvironmentData_Process_NetworkProvider& from)
12892 0 : : ::google::protobuf::MessageLite() {
12893 0 : SharedCtor();
12894 0 : MergeFrom(from);
12895 : // @@protoc_insertion_point(copy_constructor:safe_browsing.ClientIncidentReport.EnvironmentData.Process.NetworkProvider)
12896 0 : }
12897 :
12898 0 : void ClientIncidentReport_EnvironmentData_Process_NetworkProvider::SharedCtor() {
12899 0 : _cached_size_ = 0;
12900 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
12901 0 : }
12902 :
12903 0 : ClientIncidentReport_EnvironmentData_Process_NetworkProvider::~ClientIncidentReport_EnvironmentData_Process_NetworkProvider() {
12904 : // @@protoc_insertion_point(destructor:safe_browsing.ClientIncidentReport.EnvironmentData.Process.NetworkProvider)
12905 0 : SharedDtor();
12906 0 : }
12907 :
12908 0 : void ClientIncidentReport_EnvironmentData_Process_NetworkProvider::SharedDtor() {
12909 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
12910 0 : if (this != &default_instance()) {
12911 : #else
12912 : if (this != default_instance_) {
12913 : #endif
12914 : }
12915 0 : }
12916 :
12917 0 : void ClientIncidentReport_EnvironmentData_Process_NetworkProvider::SetCachedSize(int size) const {
12918 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
12919 0 : _cached_size_ = size;
12920 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
12921 0 : }
12922 0 : const ClientIncidentReport_EnvironmentData_Process_NetworkProvider& ClientIncidentReport_EnvironmentData_Process_NetworkProvider::default_instance() {
12923 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
12924 0 : protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
12925 : #else
12926 : if (default_instance_ == NULL) protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
12927 : #endif
12928 0 : return *default_instance_;
12929 : }
12930 :
12931 : ClientIncidentReport_EnvironmentData_Process_NetworkProvider* ClientIncidentReport_EnvironmentData_Process_NetworkProvider::default_instance_ = NULL;
12932 :
12933 0 : ClientIncidentReport_EnvironmentData_Process_NetworkProvider* ClientIncidentReport_EnvironmentData_Process_NetworkProvider::New() const {
12934 0 : return new ClientIncidentReport_EnvironmentData_Process_NetworkProvider;
12935 : }
12936 :
12937 0 : void ClientIncidentReport_EnvironmentData_Process_NetworkProvider::Clear() {
12938 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
12939 0 : mutable_unknown_fields()->clear();
12940 0 : }
12941 :
12942 0 : bool ClientIncidentReport_EnvironmentData_Process_NetworkProvider::MergePartialFromCodedStream(
12943 : ::google::protobuf::io::CodedInputStream* input) {
12944 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
12945 : ::google::protobuf::uint32 tag;
12946 : ::google::protobuf::io::StringOutputStream unknown_fields_string(
12947 0 : mutable_unknown_fields());
12948 : ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
12949 0 : &unknown_fields_string);
12950 : // @@protoc_insertion_point(parse_start:safe_browsing.ClientIncidentReport.EnvironmentData.Process.NetworkProvider)
12951 : for (;;) {
12952 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
12953 0 : tag = p.first;
12954 0 : if (!p.second) goto handle_unusual;
12955 : handle_unusual:
12956 0 : if (tag == 0 ||
12957 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
12958 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
12959 0 : goto success;
12960 : }
12961 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(
12962 : input, tag, &unknown_fields_stream));
12963 0 : }
12964 : success:
12965 : // @@protoc_insertion_point(parse_success:safe_browsing.ClientIncidentReport.EnvironmentData.Process.NetworkProvider)
12966 0 : return true;
12967 : failure:
12968 : // @@protoc_insertion_point(parse_failure:safe_browsing.ClientIncidentReport.EnvironmentData.Process.NetworkProvider)
12969 0 : return false;
12970 : #undef DO_
12971 : }
12972 :
12973 0 : void ClientIncidentReport_EnvironmentData_Process_NetworkProvider::SerializeWithCachedSizes(
12974 : ::google::protobuf::io::CodedOutputStream* output) const {
12975 : // @@protoc_insertion_point(serialize_start:safe_browsing.ClientIncidentReport.EnvironmentData.Process.NetworkProvider)
12976 0 : output->WriteRaw(unknown_fields().data(),
12977 0 : unknown_fields().size());
12978 : // @@protoc_insertion_point(serialize_end:safe_browsing.ClientIncidentReport.EnvironmentData.Process.NetworkProvider)
12979 0 : }
12980 :
12981 0 : int ClientIncidentReport_EnvironmentData_Process_NetworkProvider::ByteSize() const {
12982 0 : int total_size = 0;
12983 :
12984 0 : total_size += unknown_fields().size();
12985 :
12986 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
12987 0 : _cached_size_ = total_size;
12988 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
12989 0 : return total_size;
12990 : }
12991 :
12992 0 : void ClientIncidentReport_EnvironmentData_Process_NetworkProvider::CheckTypeAndMergeFrom(
12993 : const ::google::protobuf::MessageLite& from) {
12994 0 : MergeFrom(*::google::protobuf::down_cast<const ClientIncidentReport_EnvironmentData_Process_NetworkProvider*>(&from));
12995 0 : }
12996 :
12997 0 : void ClientIncidentReport_EnvironmentData_Process_NetworkProvider::MergeFrom(const ClientIncidentReport_EnvironmentData_Process_NetworkProvider& from) {
12998 0 : GOOGLE_CHECK_NE(&from, this);
12999 0 : mutable_unknown_fields()->append(from.unknown_fields());
13000 0 : }
13001 :
13002 0 : void ClientIncidentReport_EnvironmentData_Process_NetworkProvider::CopyFrom(const ClientIncidentReport_EnvironmentData_Process_NetworkProvider& from) {
13003 0 : if (&from == this) return;
13004 0 : Clear();
13005 0 : MergeFrom(from);
13006 : }
13007 :
13008 0 : bool ClientIncidentReport_EnvironmentData_Process_NetworkProvider::IsInitialized() const {
13009 :
13010 0 : return true;
13011 : }
13012 :
13013 0 : void ClientIncidentReport_EnvironmentData_Process_NetworkProvider::Swap(ClientIncidentReport_EnvironmentData_Process_NetworkProvider* other) {
13014 0 : if (other != this) {
13015 0 : _unknown_fields_.swap(other->_unknown_fields_);
13016 0 : std::swap(_cached_size_, other->_cached_size_);
13017 : }
13018 0 : }
13019 :
13020 0 : ::std::string ClientIncidentReport_EnvironmentData_Process_NetworkProvider::GetTypeName() const {
13021 0 : return "safe_browsing.ClientIncidentReport.EnvironmentData.Process.NetworkProvider";
13022 : }
13023 :
13024 :
13025 : // -------------------------------------------------------------------
13026 :
13027 0 : bool ClientIncidentReport_EnvironmentData_Process_Dll_Feature_IsValid(int value) {
13028 0 : switch(value) {
13029 : case 0:
13030 : case 1:
13031 0 : return true;
13032 : default:
13033 0 : return false;
13034 : }
13035 : }
13036 :
13037 : #ifndef _MSC_VER
13038 : const ClientIncidentReport_EnvironmentData_Process_Dll_Feature ClientIncidentReport_EnvironmentData_Process_Dll::UNKNOWN;
13039 : const ClientIncidentReport_EnvironmentData_Process_Dll_Feature ClientIncidentReport_EnvironmentData_Process_Dll::LSP;
13040 : const ClientIncidentReport_EnvironmentData_Process_Dll_Feature ClientIncidentReport_EnvironmentData_Process_Dll::Feature_MIN;
13041 : const ClientIncidentReport_EnvironmentData_Process_Dll_Feature ClientIncidentReport_EnvironmentData_Process_Dll::Feature_MAX;
13042 : const int ClientIncidentReport_EnvironmentData_Process_Dll::Feature_ARRAYSIZE;
13043 : #endif // _MSC_VER
13044 : #ifndef _MSC_VER
13045 : const int ClientIncidentReport_EnvironmentData_Process_Dll::kPathFieldNumber;
13046 : const int ClientIncidentReport_EnvironmentData_Process_Dll::kBaseAddressFieldNumber;
13047 : const int ClientIncidentReport_EnvironmentData_Process_Dll::kLengthFieldNumber;
13048 : const int ClientIncidentReport_EnvironmentData_Process_Dll::kFeatureFieldNumber;
13049 : const int ClientIncidentReport_EnvironmentData_Process_Dll::kImageHeadersFieldNumber;
13050 : #endif // !_MSC_VER
13051 :
13052 0 : ClientIncidentReport_EnvironmentData_Process_Dll::ClientIncidentReport_EnvironmentData_Process_Dll()
13053 0 : : ::google::protobuf::MessageLite() {
13054 0 : SharedCtor();
13055 : // @@protoc_insertion_point(constructor:safe_browsing.ClientIncidentReport.EnvironmentData.Process.Dll)
13056 0 : }
13057 :
13058 0 : void ClientIncidentReport_EnvironmentData_Process_Dll::InitAsDefaultInstance() {
13059 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
13060 0 : image_headers_ = const_cast< ::safe_browsing::ClientDownloadRequest_ImageHeaders*>(
13061 0 : ::safe_browsing::ClientDownloadRequest_ImageHeaders::internal_default_instance());
13062 : #else
13063 : image_headers_ = const_cast< ::safe_browsing::ClientDownloadRequest_ImageHeaders*>(&::safe_browsing::ClientDownloadRequest_ImageHeaders::default_instance());
13064 : #endif
13065 0 : }
13066 :
13067 0 : ClientIncidentReport_EnvironmentData_Process_Dll::ClientIncidentReport_EnvironmentData_Process_Dll(const ClientIncidentReport_EnvironmentData_Process_Dll& from)
13068 0 : : ::google::protobuf::MessageLite() {
13069 0 : SharedCtor();
13070 0 : MergeFrom(from);
13071 : // @@protoc_insertion_point(copy_constructor:safe_browsing.ClientIncidentReport.EnvironmentData.Process.Dll)
13072 0 : }
13073 :
13074 0 : void ClientIncidentReport_EnvironmentData_Process_Dll::SharedCtor() {
13075 0 : ::google::protobuf::internal::GetEmptyString();
13076 0 : _cached_size_ = 0;
13077 0 : path_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13078 0 : base_address_ = GOOGLE_ULONGLONG(0);
13079 0 : length_ = 0u;
13080 0 : image_headers_ = NULL;
13081 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
13082 0 : }
13083 :
13084 0 : ClientIncidentReport_EnvironmentData_Process_Dll::~ClientIncidentReport_EnvironmentData_Process_Dll() {
13085 : // @@protoc_insertion_point(destructor:safe_browsing.ClientIncidentReport.EnvironmentData.Process.Dll)
13086 0 : SharedDtor();
13087 0 : }
13088 :
13089 0 : void ClientIncidentReport_EnvironmentData_Process_Dll::SharedDtor() {
13090 0 : if (path_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
13091 0 : delete path_;
13092 : }
13093 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
13094 0 : if (this != &default_instance()) {
13095 : #else
13096 : if (this != default_instance_) {
13097 : #endif
13098 0 : delete image_headers_;
13099 : }
13100 0 : }
13101 :
13102 0 : void ClientIncidentReport_EnvironmentData_Process_Dll::SetCachedSize(int size) const {
13103 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
13104 0 : _cached_size_ = size;
13105 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
13106 0 : }
13107 0 : const ClientIncidentReport_EnvironmentData_Process_Dll& ClientIncidentReport_EnvironmentData_Process_Dll::default_instance() {
13108 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
13109 0 : protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
13110 : #else
13111 : if (default_instance_ == NULL) protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
13112 : #endif
13113 0 : return *default_instance_;
13114 : }
13115 :
13116 : ClientIncidentReport_EnvironmentData_Process_Dll* ClientIncidentReport_EnvironmentData_Process_Dll::default_instance_ = NULL;
13117 :
13118 0 : ClientIncidentReport_EnvironmentData_Process_Dll* ClientIncidentReport_EnvironmentData_Process_Dll::New() const {
13119 0 : return new ClientIncidentReport_EnvironmentData_Process_Dll;
13120 : }
13121 :
13122 0 : void ClientIncidentReport_EnvironmentData_Process_Dll::Clear() {
13123 0 : if (_has_bits_[0 / 32] & 23) {
13124 0 : if (has_path()) {
13125 0 : if (path_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
13126 0 : path_->clear();
13127 : }
13128 : }
13129 0 : base_address_ = GOOGLE_ULONGLONG(0);
13130 0 : length_ = 0u;
13131 0 : if (has_image_headers()) {
13132 0 : if (image_headers_ != NULL) image_headers_->::safe_browsing::ClientDownloadRequest_ImageHeaders::Clear();
13133 : }
13134 : }
13135 0 : feature_.Clear();
13136 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
13137 0 : mutable_unknown_fields()->clear();
13138 0 : }
13139 :
13140 0 : bool ClientIncidentReport_EnvironmentData_Process_Dll::MergePartialFromCodedStream(
13141 : ::google::protobuf::io::CodedInputStream* input) {
13142 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
13143 : ::google::protobuf::uint32 tag;
13144 : ::google::protobuf::io::StringOutputStream unknown_fields_string(
13145 0 : mutable_unknown_fields());
13146 : ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
13147 0 : &unknown_fields_string);
13148 : // @@protoc_insertion_point(parse_start:safe_browsing.ClientIncidentReport.EnvironmentData.Process.Dll)
13149 : for (;;) {
13150 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
13151 0 : tag = p.first;
13152 0 : if (!p.second) goto handle_unusual;
13153 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
13154 : // optional string path = 1;
13155 : case 1: {
13156 0 : if (tag == 10) {
13157 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
13158 : input, this->mutable_path()));
13159 : } else {
13160 0 : goto handle_unusual;
13161 : }
13162 0 : if (input->ExpectTag(16)) goto parse_base_address;
13163 0 : break;
13164 : }
13165 :
13166 : // optional uint64 base_address = 2;
13167 : case 2: {
13168 0 : if (tag == 16) {
13169 : parse_base_address:
13170 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
13171 : ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
13172 : input, &base_address_)));
13173 0 : set_has_base_address();
13174 : } else {
13175 0 : goto handle_unusual;
13176 : }
13177 0 : if (input->ExpectTag(24)) goto parse_length;
13178 0 : break;
13179 : }
13180 :
13181 : // optional uint32 length = 3;
13182 : case 3: {
13183 0 : if (tag == 24) {
13184 : parse_length:
13185 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
13186 : ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
13187 : input, &length_)));
13188 0 : set_has_length();
13189 : } else {
13190 0 : goto handle_unusual;
13191 : }
13192 0 : if (input->ExpectTag(32)) goto parse_feature;
13193 0 : break;
13194 : }
13195 :
13196 : // repeated .safe_browsing.ClientIncidentReport.EnvironmentData.Process.Dll.Feature feature = 4;
13197 : case 4: {
13198 0 : if (tag == 32) {
13199 : parse_feature:
13200 : int value;
13201 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
13202 : int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
13203 : input, &value)));
13204 0 : if (::safe_browsing::ClientIncidentReport_EnvironmentData_Process_Dll_Feature_IsValid(value)) {
13205 0 : add_feature(static_cast< ::safe_browsing::ClientIncidentReport_EnvironmentData_Process_Dll_Feature >(value));
13206 : } else {
13207 0 : unknown_fields_stream.WriteVarint32(tag);
13208 0 : unknown_fields_stream.WriteVarint32(value);
13209 : }
13210 0 : } else if (tag == 34) {
13211 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPackedEnumNoInline(
13212 : input,
13213 : &::safe_browsing::ClientIncidentReport_EnvironmentData_Process_Dll_Feature_IsValid,
13214 : this->mutable_feature())));
13215 : } else {
13216 0 : goto handle_unusual;
13217 : }
13218 0 : if (input->ExpectTag(32)) goto parse_feature;
13219 0 : if (input->ExpectTag(42)) goto parse_image_headers;
13220 0 : break;
13221 : }
13222 :
13223 : // optional .safe_browsing.ClientDownloadRequest.ImageHeaders image_headers = 5;
13224 : case 5: {
13225 0 : if (tag == 42) {
13226 : parse_image_headers:
13227 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
13228 : input, mutable_image_headers()));
13229 : } else {
13230 0 : goto handle_unusual;
13231 : }
13232 0 : if (input->ExpectAtEnd()) goto success;
13233 0 : break;
13234 : }
13235 :
13236 : default: {
13237 : handle_unusual:
13238 0 : if (tag == 0 ||
13239 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
13240 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
13241 0 : goto success;
13242 : }
13243 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(
13244 : input, tag, &unknown_fields_stream));
13245 0 : break;
13246 : }
13247 : }
13248 0 : }
13249 : success:
13250 : // @@protoc_insertion_point(parse_success:safe_browsing.ClientIncidentReport.EnvironmentData.Process.Dll)
13251 0 : return true;
13252 : failure:
13253 : // @@protoc_insertion_point(parse_failure:safe_browsing.ClientIncidentReport.EnvironmentData.Process.Dll)
13254 0 : return false;
13255 : #undef DO_
13256 : }
13257 :
13258 0 : void ClientIncidentReport_EnvironmentData_Process_Dll::SerializeWithCachedSizes(
13259 : ::google::protobuf::io::CodedOutputStream* output) const {
13260 : // @@protoc_insertion_point(serialize_start:safe_browsing.ClientIncidentReport.EnvironmentData.Process.Dll)
13261 : // optional string path = 1;
13262 0 : if (has_path()) {
13263 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
13264 0 : 1, this->path(), output);
13265 : }
13266 :
13267 : // optional uint64 base_address = 2;
13268 0 : if (has_base_address()) {
13269 0 : ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->base_address(), output);
13270 : }
13271 :
13272 : // optional uint32 length = 3;
13273 0 : if (has_length()) {
13274 0 : ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->length(), output);
13275 : }
13276 :
13277 : // repeated .safe_browsing.ClientIncidentReport.EnvironmentData.Process.Dll.Feature feature = 4;
13278 0 : for (int i = 0; i < this->feature_size(); i++) {
13279 0 : ::google::protobuf::internal::WireFormatLite::WriteEnum(
13280 0 : 4, this->feature(i), output);
13281 : }
13282 :
13283 : // optional .safe_browsing.ClientDownloadRequest.ImageHeaders image_headers = 5;
13284 0 : if (has_image_headers()) {
13285 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
13286 0 : 5, this->image_headers(), output);
13287 : }
13288 :
13289 0 : output->WriteRaw(unknown_fields().data(),
13290 0 : unknown_fields().size());
13291 : // @@protoc_insertion_point(serialize_end:safe_browsing.ClientIncidentReport.EnvironmentData.Process.Dll)
13292 0 : }
13293 :
13294 0 : int ClientIncidentReport_EnvironmentData_Process_Dll::ByteSize() const {
13295 0 : int total_size = 0;
13296 :
13297 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
13298 : // optional string path = 1;
13299 0 : if (has_path()) {
13300 0 : total_size += 1 +
13301 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
13302 : this->path());
13303 : }
13304 :
13305 : // optional uint64 base_address = 2;
13306 0 : if (has_base_address()) {
13307 0 : total_size += 1 +
13308 0 : ::google::protobuf::internal::WireFormatLite::UInt64Size(
13309 : this->base_address());
13310 : }
13311 :
13312 : // optional uint32 length = 3;
13313 0 : if (has_length()) {
13314 0 : total_size += 1 +
13315 0 : ::google::protobuf::internal::WireFormatLite::UInt32Size(
13316 : this->length());
13317 : }
13318 :
13319 : // optional .safe_browsing.ClientDownloadRequest.ImageHeaders image_headers = 5;
13320 0 : if (has_image_headers()) {
13321 0 : total_size += 1 +
13322 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
13323 : this->image_headers());
13324 : }
13325 :
13326 : }
13327 : // repeated .safe_browsing.ClientIncidentReport.EnvironmentData.Process.Dll.Feature feature = 4;
13328 : {
13329 0 : int data_size = 0;
13330 0 : for (int i = 0; i < this->feature_size(); i++) {
13331 0 : data_size += ::google::protobuf::internal::WireFormatLite::EnumSize(
13332 0 : this->feature(i));
13333 : }
13334 0 : total_size += 1 * this->feature_size() + data_size;
13335 : }
13336 :
13337 0 : total_size += unknown_fields().size();
13338 :
13339 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
13340 0 : _cached_size_ = total_size;
13341 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
13342 0 : return total_size;
13343 : }
13344 :
13345 0 : void ClientIncidentReport_EnvironmentData_Process_Dll::CheckTypeAndMergeFrom(
13346 : const ::google::protobuf::MessageLite& from) {
13347 0 : MergeFrom(*::google::protobuf::down_cast<const ClientIncidentReport_EnvironmentData_Process_Dll*>(&from));
13348 0 : }
13349 :
13350 0 : void ClientIncidentReport_EnvironmentData_Process_Dll::MergeFrom(const ClientIncidentReport_EnvironmentData_Process_Dll& from) {
13351 0 : GOOGLE_CHECK_NE(&from, this);
13352 0 : feature_.MergeFrom(from.feature_);
13353 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
13354 0 : if (from.has_path()) {
13355 0 : set_path(from.path());
13356 : }
13357 0 : if (from.has_base_address()) {
13358 0 : set_base_address(from.base_address());
13359 : }
13360 0 : if (from.has_length()) {
13361 0 : set_length(from.length());
13362 : }
13363 0 : if (from.has_image_headers()) {
13364 0 : mutable_image_headers()->::safe_browsing::ClientDownloadRequest_ImageHeaders::MergeFrom(from.image_headers());
13365 : }
13366 : }
13367 0 : mutable_unknown_fields()->append(from.unknown_fields());
13368 0 : }
13369 :
13370 0 : void ClientIncidentReport_EnvironmentData_Process_Dll::CopyFrom(const ClientIncidentReport_EnvironmentData_Process_Dll& from) {
13371 0 : if (&from == this) return;
13372 0 : Clear();
13373 0 : MergeFrom(from);
13374 : }
13375 :
13376 0 : bool ClientIncidentReport_EnvironmentData_Process_Dll::IsInitialized() const {
13377 :
13378 0 : if (has_image_headers()) {
13379 0 : if (!this->image_headers().IsInitialized()) return false;
13380 : }
13381 0 : return true;
13382 : }
13383 :
13384 0 : void ClientIncidentReport_EnvironmentData_Process_Dll::Swap(ClientIncidentReport_EnvironmentData_Process_Dll* other) {
13385 0 : if (other != this) {
13386 0 : std::swap(path_, other->path_);
13387 0 : std::swap(base_address_, other->base_address_);
13388 0 : std::swap(length_, other->length_);
13389 0 : feature_.Swap(&other->feature_);
13390 0 : std::swap(image_headers_, other->image_headers_);
13391 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
13392 0 : _unknown_fields_.swap(other->_unknown_fields_);
13393 0 : std::swap(_cached_size_, other->_cached_size_);
13394 : }
13395 0 : }
13396 :
13397 0 : ::std::string ClientIncidentReport_EnvironmentData_Process_Dll::GetTypeName() const {
13398 0 : return "safe_browsing.ClientIncidentReport.EnvironmentData.Process.Dll";
13399 : }
13400 :
13401 :
13402 : // -------------------------------------------------------------------
13403 :
13404 0 : bool ClientIncidentReport_EnvironmentData_Process_ModuleState_ModifiedState_IsValid(int value) {
13405 0 : switch(value) {
13406 : case 0:
13407 : case 1:
13408 : case 2:
13409 : case 3:
13410 0 : return true;
13411 : default:
13412 0 : return false;
13413 : }
13414 : }
13415 :
13416 : #ifndef _MSC_VER
13417 : const ClientIncidentReport_EnvironmentData_Process_ModuleState_ModifiedState ClientIncidentReport_EnvironmentData_Process_ModuleState::UNKNOWN;
13418 : const ClientIncidentReport_EnvironmentData_Process_ModuleState_ModifiedState ClientIncidentReport_EnvironmentData_Process_ModuleState::MODULE_STATE_UNKNOWN;
13419 : const ClientIncidentReport_EnvironmentData_Process_ModuleState_ModifiedState ClientIncidentReport_EnvironmentData_Process_ModuleState::MODULE_STATE_UNMODIFIED;
13420 : const ClientIncidentReport_EnvironmentData_Process_ModuleState_ModifiedState ClientIncidentReport_EnvironmentData_Process_ModuleState::MODULE_STATE_MODIFIED;
13421 : const ClientIncidentReport_EnvironmentData_Process_ModuleState_ModifiedState ClientIncidentReport_EnvironmentData_Process_ModuleState::ModifiedState_MIN;
13422 : const ClientIncidentReport_EnvironmentData_Process_ModuleState_ModifiedState ClientIncidentReport_EnvironmentData_Process_ModuleState::ModifiedState_MAX;
13423 : const int ClientIncidentReport_EnvironmentData_Process_ModuleState::ModifiedState_ARRAYSIZE;
13424 : #endif // _MSC_VER
13425 : #ifndef _MSC_VER
13426 : const int ClientIncidentReport_EnvironmentData_Process_ModuleState_Modification::kFileOffsetFieldNumber;
13427 : const int ClientIncidentReport_EnvironmentData_Process_ModuleState_Modification::kByteCountFieldNumber;
13428 : const int ClientIncidentReport_EnvironmentData_Process_ModuleState_Modification::kModifiedBytesFieldNumber;
13429 : const int ClientIncidentReport_EnvironmentData_Process_ModuleState_Modification::kExportNameFieldNumber;
13430 : #endif // !_MSC_VER
13431 :
13432 0 : ClientIncidentReport_EnvironmentData_Process_ModuleState_Modification::ClientIncidentReport_EnvironmentData_Process_ModuleState_Modification()
13433 0 : : ::google::protobuf::MessageLite() {
13434 0 : SharedCtor();
13435 : // @@protoc_insertion_point(constructor:safe_browsing.ClientIncidentReport.EnvironmentData.Process.ModuleState.Modification)
13436 0 : }
13437 :
13438 0 : void ClientIncidentReport_EnvironmentData_Process_ModuleState_Modification::InitAsDefaultInstance() {
13439 0 : }
13440 :
13441 0 : ClientIncidentReport_EnvironmentData_Process_ModuleState_Modification::ClientIncidentReport_EnvironmentData_Process_ModuleState_Modification(const ClientIncidentReport_EnvironmentData_Process_ModuleState_Modification& from)
13442 0 : : ::google::protobuf::MessageLite() {
13443 0 : SharedCtor();
13444 0 : MergeFrom(from);
13445 : // @@protoc_insertion_point(copy_constructor:safe_browsing.ClientIncidentReport.EnvironmentData.Process.ModuleState.Modification)
13446 0 : }
13447 :
13448 0 : void ClientIncidentReport_EnvironmentData_Process_ModuleState_Modification::SharedCtor() {
13449 0 : ::google::protobuf::internal::GetEmptyString();
13450 0 : _cached_size_ = 0;
13451 0 : file_offset_ = 0u;
13452 0 : byte_count_ = 0;
13453 0 : modified_bytes_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13454 0 : export_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13455 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
13456 0 : }
13457 :
13458 0 : ClientIncidentReport_EnvironmentData_Process_ModuleState_Modification::~ClientIncidentReport_EnvironmentData_Process_ModuleState_Modification() {
13459 : // @@protoc_insertion_point(destructor:safe_browsing.ClientIncidentReport.EnvironmentData.Process.ModuleState.Modification)
13460 0 : SharedDtor();
13461 0 : }
13462 :
13463 0 : void ClientIncidentReport_EnvironmentData_Process_ModuleState_Modification::SharedDtor() {
13464 0 : if (modified_bytes_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
13465 0 : delete modified_bytes_;
13466 : }
13467 0 : if (export_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
13468 0 : delete export_name_;
13469 : }
13470 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
13471 0 : if (this != &default_instance()) {
13472 : #else
13473 : if (this != default_instance_) {
13474 : #endif
13475 : }
13476 0 : }
13477 :
13478 0 : void ClientIncidentReport_EnvironmentData_Process_ModuleState_Modification::SetCachedSize(int size) const {
13479 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
13480 0 : _cached_size_ = size;
13481 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
13482 0 : }
13483 0 : const ClientIncidentReport_EnvironmentData_Process_ModuleState_Modification& ClientIncidentReport_EnvironmentData_Process_ModuleState_Modification::default_instance() {
13484 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
13485 0 : protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
13486 : #else
13487 : if (default_instance_ == NULL) protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
13488 : #endif
13489 0 : return *default_instance_;
13490 : }
13491 :
13492 : ClientIncidentReport_EnvironmentData_Process_ModuleState_Modification* ClientIncidentReport_EnvironmentData_Process_ModuleState_Modification::default_instance_ = NULL;
13493 :
13494 0 : ClientIncidentReport_EnvironmentData_Process_ModuleState_Modification* ClientIncidentReport_EnvironmentData_Process_ModuleState_Modification::New() const {
13495 0 : return new ClientIncidentReport_EnvironmentData_Process_ModuleState_Modification;
13496 : }
13497 :
13498 0 : void ClientIncidentReport_EnvironmentData_Process_ModuleState_Modification::Clear() {
13499 : #define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \
13500 : &reinterpret_cast<ClientIncidentReport_EnvironmentData_Process_ModuleState_Modification*>(16)->f) - \
13501 : reinterpret_cast<char*>(16))
13502 :
13503 : #define ZR_(first, last) do { \
13504 : size_t f = OFFSET_OF_FIELD_(first); \
13505 : size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \
13506 : ::memset(&first, 0, n); \
13507 : } while (0)
13508 :
13509 0 : if (_has_bits_[0 / 32] & 15) {
13510 0 : ZR_(file_offset_, byte_count_);
13511 0 : if (has_modified_bytes()) {
13512 0 : if (modified_bytes_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
13513 0 : modified_bytes_->clear();
13514 : }
13515 : }
13516 0 : if (has_export_name()) {
13517 0 : if (export_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
13518 0 : export_name_->clear();
13519 : }
13520 : }
13521 : }
13522 :
13523 : #undef OFFSET_OF_FIELD_
13524 : #undef ZR_
13525 :
13526 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
13527 0 : mutable_unknown_fields()->clear();
13528 0 : }
13529 :
13530 0 : bool ClientIncidentReport_EnvironmentData_Process_ModuleState_Modification::MergePartialFromCodedStream(
13531 : ::google::protobuf::io::CodedInputStream* input) {
13532 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
13533 : ::google::protobuf::uint32 tag;
13534 : ::google::protobuf::io::StringOutputStream unknown_fields_string(
13535 0 : mutable_unknown_fields());
13536 : ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
13537 0 : &unknown_fields_string);
13538 : // @@protoc_insertion_point(parse_start:safe_browsing.ClientIncidentReport.EnvironmentData.Process.ModuleState.Modification)
13539 : for (;;) {
13540 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
13541 0 : tag = p.first;
13542 0 : if (!p.second) goto handle_unusual;
13543 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
13544 : // optional uint32 file_offset = 1;
13545 : case 1: {
13546 0 : if (tag == 8) {
13547 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
13548 : ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
13549 : input, &file_offset_)));
13550 0 : set_has_file_offset();
13551 : } else {
13552 0 : goto handle_unusual;
13553 : }
13554 0 : if (input->ExpectTag(16)) goto parse_byte_count;
13555 0 : break;
13556 : }
13557 :
13558 : // optional int32 byte_count = 2;
13559 : case 2: {
13560 0 : if (tag == 16) {
13561 : parse_byte_count:
13562 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
13563 : ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
13564 : input, &byte_count_)));
13565 0 : set_has_byte_count();
13566 : } else {
13567 0 : goto handle_unusual;
13568 : }
13569 0 : if (input->ExpectTag(26)) goto parse_modified_bytes;
13570 0 : break;
13571 : }
13572 :
13573 : // optional bytes modified_bytes = 3;
13574 : case 3: {
13575 0 : if (tag == 26) {
13576 : parse_modified_bytes:
13577 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
13578 : input, this->mutable_modified_bytes()));
13579 : } else {
13580 0 : goto handle_unusual;
13581 : }
13582 0 : if (input->ExpectTag(34)) goto parse_export_name;
13583 0 : break;
13584 : }
13585 :
13586 : // optional string export_name = 4;
13587 : case 4: {
13588 0 : if (tag == 34) {
13589 : parse_export_name:
13590 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
13591 : input, this->mutable_export_name()));
13592 : } else {
13593 0 : goto handle_unusual;
13594 : }
13595 0 : if (input->ExpectAtEnd()) goto success;
13596 0 : break;
13597 : }
13598 :
13599 : default: {
13600 : handle_unusual:
13601 0 : if (tag == 0 ||
13602 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
13603 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
13604 0 : goto success;
13605 : }
13606 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(
13607 : input, tag, &unknown_fields_stream));
13608 0 : break;
13609 : }
13610 : }
13611 0 : }
13612 : success:
13613 : // @@protoc_insertion_point(parse_success:safe_browsing.ClientIncidentReport.EnvironmentData.Process.ModuleState.Modification)
13614 0 : return true;
13615 : failure:
13616 : // @@protoc_insertion_point(parse_failure:safe_browsing.ClientIncidentReport.EnvironmentData.Process.ModuleState.Modification)
13617 0 : return false;
13618 : #undef DO_
13619 : }
13620 :
13621 0 : void ClientIncidentReport_EnvironmentData_Process_ModuleState_Modification::SerializeWithCachedSizes(
13622 : ::google::protobuf::io::CodedOutputStream* output) const {
13623 : // @@protoc_insertion_point(serialize_start:safe_browsing.ClientIncidentReport.EnvironmentData.Process.ModuleState.Modification)
13624 : // optional uint32 file_offset = 1;
13625 0 : if (has_file_offset()) {
13626 0 : ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->file_offset(), output);
13627 : }
13628 :
13629 : // optional int32 byte_count = 2;
13630 0 : if (has_byte_count()) {
13631 0 : ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->byte_count(), output);
13632 : }
13633 :
13634 : // optional bytes modified_bytes = 3;
13635 0 : if (has_modified_bytes()) {
13636 0 : ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
13637 0 : 3, this->modified_bytes(), output);
13638 : }
13639 :
13640 : // optional string export_name = 4;
13641 0 : if (has_export_name()) {
13642 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
13643 0 : 4, this->export_name(), output);
13644 : }
13645 :
13646 0 : output->WriteRaw(unknown_fields().data(),
13647 0 : unknown_fields().size());
13648 : // @@protoc_insertion_point(serialize_end:safe_browsing.ClientIncidentReport.EnvironmentData.Process.ModuleState.Modification)
13649 0 : }
13650 :
13651 0 : int ClientIncidentReport_EnvironmentData_Process_ModuleState_Modification::ByteSize() const {
13652 0 : int total_size = 0;
13653 :
13654 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
13655 : // optional uint32 file_offset = 1;
13656 0 : if (has_file_offset()) {
13657 0 : total_size += 1 +
13658 0 : ::google::protobuf::internal::WireFormatLite::UInt32Size(
13659 : this->file_offset());
13660 : }
13661 :
13662 : // optional int32 byte_count = 2;
13663 0 : if (has_byte_count()) {
13664 0 : total_size += 1 +
13665 0 : ::google::protobuf::internal::WireFormatLite::Int32Size(
13666 : this->byte_count());
13667 : }
13668 :
13669 : // optional bytes modified_bytes = 3;
13670 0 : if (has_modified_bytes()) {
13671 0 : total_size += 1 +
13672 0 : ::google::protobuf::internal::WireFormatLite::BytesSize(
13673 : this->modified_bytes());
13674 : }
13675 :
13676 : // optional string export_name = 4;
13677 0 : if (has_export_name()) {
13678 0 : total_size += 1 +
13679 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
13680 : this->export_name());
13681 : }
13682 :
13683 : }
13684 0 : total_size += unknown_fields().size();
13685 :
13686 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
13687 0 : _cached_size_ = total_size;
13688 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
13689 0 : return total_size;
13690 : }
13691 :
13692 0 : void ClientIncidentReport_EnvironmentData_Process_ModuleState_Modification::CheckTypeAndMergeFrom(
13693 : const ::google::protobuf::MessageLite& from) {
13694 0 : MergeFrom(*::google::protobuf::down_cast<const ClientIncidentReport_EnvironmentData_Process_ModuleState_Modification*>(&from));
13695 0 : }
13696 :
13697 0 : void ClientIncidentReport_EnvironmentData_Process_ModuleState_Modification::MergeFrom(const ClientIncidentReport_EnvironmentData_Process_ModuleState_Modification& from) {
13698 0 : GOOGLE_CHECK_NE(&from, this);
13699 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
13700 0 : if (from.has_file_offset()) {
13701 0 : set_file_offset(from.file_offset());
13702 : }
13703 0 : if (from.has_byte_count()) {
13704 0 : set_byte_count(from.byte_count());
13705 : }
13706 0 : if (from.has_modified_bytes()) {
13707 0 : set_modified_bytes(from.modified_bytes());
13708 : }
13709 0 : if (from.has_export_name()) {
13710 0 : set_export_name(from.export_name());
13711 : }
13712 : }
13713 0 : mutable_unknown_fields()->append(from.unknown_fields());
13714 0 : }
13715 :
13716 0 : void ClientIncidentReport_EnvironmentData_Process_ModuleState_Modification::CopyFrom(const ClientIncidentReport_EnvironmentData_Process_ModuleState_Modification& from) {
13717 0 : if (&from == this) return;
13718 0 : Clear();
13719 0 : MergeFrom(from);
13720 : }
13721 :
13722 0 : bool ClientIncidentReport_EnvironmentData_Process_ModuleState_Modification::IsInitialized() const {
13723 :
13724 0 : return true;
13725 : }
13726 :
13727 0 : void ClientIncidentReport_EnvironmentData_Process_ModuleState_Modification::Swap(ClientIncidentReport_EnvironmentData_Process_ModuleState_Modification* other) {
13728 0 : if (other != this) {
13729 0 : std::swap(file_offset_, other->file_offset_);
13730 0 : std::swap(byte_count_, other->byte_count_);
13731 0 : std::swap(modified_bytes_, other->modified_bytes_);
13732 0 : std::swap(export_name_, other->export_name_);
13733 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
13734 0 : _unknown_fields_.swap(other->_unknown_fields_);
13735 0 : std::swap(_cached_size_, other->_cached_size_);
13736 : }
13737 0 : }
13738 :
13739 0 : ::std::string ClientIncidentReport_EnvironmentData_Process_ModuleState_Modification::GetTypeName() const {
13740 0 : return "safe_browsing.ClientIncidentReport.EnvironmentData.Process.ModuleState.Modification";
13741 : }
13742 :
13743 :
13744 : // -------------------------------------------------------------------
13745 :
13746 : #ifndef _MSC_VER
13747 : const int ClientIncidentReport_EnvironmentData_Process_ModuleState::kNameFieldNumber;
13748 : const int ClientIncidentReport_EnvironmentData_Process_ModuleState::kModifiedStateFieldNumber;
13749 : const int ClientIncidentReport_EnvironmentData_Process_ModuleState::kOBSOLETEModifiedExportFieldNumber;
13750 : const int ClientIncidentReport_EnvironmentData_Process_ModuleState::kModificationFieldNumber;
13751 : #endif // !_MSC_VER
13752 :
13753 0 : ClientIncidentReport_EnvironmentData_Process_ModuleState::ClientIncidentReport_EnvironmentData_Process_ModuleState()
13754 0 : : ::google::protobuf::MessageLite() {
13755 0 : SharedCtor();
13756 : // @@protoc_insertion_point(constructor:safe_browsing.ClientIncidentReport.EnvironmentData.Process.ModuleState)
13757 0 : }
13758 :
13759 0 : void ClientIncidentReport_EnvironmentData_Process_ModuleState::InitAsDefaultInstance() {
13760 0 : }
13761 :
13762 0 : ClientIncidentReport_EnvironmentData_Process_ModuleState::ClientIncidentReport_EnvironmentData_Process_ModuleState(const ClientIncidentReport_EnvironmentData_Process_ModuleState& from)
13763 0 : : ::google::protobuf::MessageLite() {
13764 0 : SharedCtor();
13765 0 : MergeFrom(from);
13766 : // @@protoc_insertion_point(copy_constructor:safe_browsing.ClientIncidentReport.EnvironmentData.Process.ModuleState)
13767 0 : }
13768 :
13769 0 : void ClientIncidentReport_EnvironmentData_Process_ModuleState::SharedCtor() {
13770 0 : ::google::protobuf::internal::GetEmptyString();
13771 0 : _cached_size_ = 0;
13772 0 : name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13773 0 : modified_state_ = 0;
13774 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
13775 0 : }
13776 :
13777 0 : ClientIncidentReport_EnvironmentData_Process_ModuleState::~ClientIncidentReport_EnvironmentData_Process_ModuleState() {
13778 : // @@protoc_insertion_point(destructor:safe_browsing.ClientIncidentReport.EnvironmentData.Process.ModuleState)
13779 0 : SharedDtor();
13780 0 : }
13781 :
13782 0 : void ClientIncidentReport_EnvironmentData_Process_ModuleState::SharedDtor() {
13783 0 : if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
13784 0 : delete name_;
13785 : }
13786 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
13787 0 : if (this != &default_instance()) {
13788 : #else
13789 : if (this != default_instance_) {
13790 : #endif
13791 : }
13792 0 : }
13793 :
13794 0 : void ClientIncidentReport_EnvironmentData_Process_ModuleState::SetCachedSize(int size) const {
13795 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
13796 0 : _cached_size_ = size;
13797 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
13798 0 : }
13799 0 : const ClientIncidentReport_EnvironmentData_Process_ModuleState& ClientIncidentReport_EnvironmentData_Process_ModuleState::default_instance() {
13800 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
13801 0 : protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
13802 : #else
13803 : if (default_instance_ == NULL) protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
13804 : #endif
13805 0 : return *default_instance_;
13806 : }
13807 :
13808 : ClientIncidentReport_EnvironmentData_Process_ModuleState* ClientIncidentReport_EnvironmentData_Process_ModuleState::default_instance_ = NULL;
13809 :
13810 0 : ClientIncidentReport_EnvironmentData_Process_ModuleState* ClientIncidentReport_EnvironmentData_Process_ModuleState::New() const {
13811 0 : return new ClientIncidentReport_EnvironmentData_Process_ModuleState;
13812 : }
13813 :
13814 0 : void ClientIncidentReport_EnvironmentData_Process_ModuleState::Clear() {
13815 0 : if (_has_bits_[0 / 32] & 3) {
13816 0 : if (has_name()) {
13817 0 : if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
13818 0 : name_->clear();
13819 : }
13820 : }
13821 0 : modified_state_ = 0;
13822 : }
13823 0 : obsolete_modified_export_.Clear();
13824 0 : modification_.Clear();
13825 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
13826 0 : mutable_unknown_fields()->clear();
13827 0 : }
13828 :
13829 0 : bool ClientIncidentReport_EnvironmentData_Process_ModuleState::MergePartialFromCodedStream(
13830 : ::google::protobuf::io::CodedInputStream* input) {
13831 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
13832 : ::google::protobuf::uint32 tag;
13833 : ::google::protobuf::io::StringOutputStream unknown_fields_string(
13834 0 : mutable_unknown_fields());
13835 : ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
13836 0 : &unknown_fields_string);
13837 : // @@protoc_insertion_point(parse_start:safe_browsing.ClientIncidentReport.EnvironmentData.Process.ModuleState)
13838 : for (;;) {
13839 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
13840 0 : tag = p.first;
13841 0 : if (!p.second) goto handle_unusual;
13842 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
13843 : // optional string name = 1;
13844 : case 1: {
13845 0 : if (tag == 10) {
13846 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
13847 : input, this->mutable_name()));
13848 : } else {
13849 0 : goto handle_unusual;
13850 : }
13851 0 : if (input->ExpectTag(16)) goto parse_modified_state;
13852 0 : break;
13853 : }
13854 :
13855 : // optional .safe_browsing.ClientIncidentReport.EnvironmentData.Process.ModuleState.ModifiedState modified_state = 2;
13856 : case 2: {
13857 0 : if (tag == 16) {
13858 : parse_modified_state:
13859 : int value;
13860 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
13861 : int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
13862 : input, &value)));
13863 0 : if (::safe_browsing::ClientIncidentReport_EnvironmentData_Process_ModuleState_ModifiedState_IsValid(value)) {
13864 0 : set_modified_state(static_cast< ::safe_browsing::ClientIncidentReport_EnvironmentData_Process_ModuleState_ModifiedState >(value));
13865 : } else {
13866 0 : unknown_fields_stream.WriteVarint32(tag);
13867 0 : unknown_fields_stream.WriteVarint32(value);
13868 : }
13869 : } else {
13870 0 : goto handle_unusual;
13871 : }
13872 0 : if (input->ExpectTag(26)) goto parse_OBSOLETE_modified_export;
13873 0 : break;
13874 : }
13875 :
13876 : // repeated string OBSOLETE_modified_export = 3;
13877 : case 3: {
13878 0 : if (tag == 26) {
13879 : parse_OBSOLETE_modified_export:
13880 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
13881 : input, this->add_obsolete_modified_export()));
13882 : } else {
13883 0 : goto handle_unusual;
13884 : }
13885 0 : if (input->ExpectTag(26)) goto parse_OBSOLETE_modified_export;
13886 0 : if (input->ExpectTag(34)) goto parse_modification;
13887 0 : break;
13888 : }
13889 :
13890 : // repeated .safe_browsing.ClientIncidentReport.EnvironmentData.Process.ModuleState.Modification modification = 4;
13891 : case 4: {
13892 0 : if (tag == 34) {
13893 : parse_modification:
13894 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
13895 : input, add_modification()));
13896 : } else {
13897 0 : goto handle_unusual;
13898 : }
13899 0 : if (input->ExpectTag(34)) goto parse_modification;
13900 0 : if (input->ExpectAtEnd()) goto success;
13901 0 : break;
13902 : }
13903 :
13904 : default: {
13905 : handle_unusual:
13906 0 : if (tag == 0 ||
13907 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
13908 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
13909 0 : goto success;
13910 : }
13911 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(
13912 : input, tag, &unknown_fields_stream));
13913 0 : break;
13914 : }
13915 : }
13916 0 : }
13917 : success:
13918 : // @@protoc_insertion_point(parse_success:safe_browsing.ClientIncidentReport.EnvironmentData.Process.ModuleState)
13919 0 : return true;
13920 : failure:
13921 : // @@protoc_insertion_point(parse_failure:safe_browsing.ClientIncidentReport.EnvironmentData.Process.ModuleState)
13922 0 : return false;
13923 : #undef DO_
13924 : }
13925 :
13926 0 : void ClientIncidentReport_EnvironmentData_Process_ModuleState::SerializeWithCachedSizes(
13927 : ::google::protobuf::io::CodedOutputStream* output) const {
13928 : // @@protoc_insertion_point(serialize_start:safe_browsing.ClientIncidentReport.EnvironmentData.Process.ModuleState)
13929 : // optional string name = 1;
13930 0 : if (has_name()) {
13931 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
13932 0 : 1, this->name(), output);
13933 : }
13934 :
13935 : // optional .safe_browsing.ClientIncidentReport.EnvironmentData.Process.ModuleState.ModifiedState modified_state = 2;
13936 0 : if (has_modified_state()) {
13937 0 : ::google::protobuf::internal::WireFormatLite::WriteEnum(
13938 0 : 2, this->modified_state(), output);
13939 : }
13940 :
13941 : // repeated string OBSOLETE_modified_export = 3;
13942 0 : for (int i = 0; i < this->obsolete_modified_export_size(); i++) {
13943 0 : ::google::protobuf::internal::WireFormatLite::WriteString(
13944 0 : 3, this->obsolete_modified_export(i), output);
13945 : }
13946 :
13947 : // repeated .safe_browsing.ClientIncidentReport.EnvironmentData.Process.ModuleState.Modification modification = 4;
13948 0 : for (int i = 0; i < this->modification_size(); i++) {
13949 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
13950 0 : 4, this->modification(i), output);
13951 : }
13952 :
13953 0 : output->WriteRaw(unknown_fields().data(),
13954 0 : unknown_fields().size());
13955 : // @@protoc_insertion_point(serialize_end:safe_browsing.ClientIncidentReport.EnvironmentData.Process.ModuleState)
13956 0 : }
13957 :
13958 0 : int ClientIncidentReport_EnvironmentData_Process_ModuleState::ByteSize() const {
13959 0 : int total_size = 0;
13960 :
13961 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
13962 : // optional string name = 1;
13963 0 : if (has_name()) {
13964 0 : total_size += 1 +
13965 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
13966 : this->name());
13967 : }
13968 :
13969 : // optional .safe_browsing.ClientIncidentReport.EnvironmentData.Process.ModuleState.ModifiedState modified_state = 2;
13970 0 : if (has_modified_state()) {
13971 0 : total_size += 1 +
13972 0 : ::google::protobuf::internal::WireFormatLite::EnumSize(this->modified_state());
13973 : }
13974 :
13975 : }
13976 : // repeated string OBSOLETE_modified_export = 3;
13977 0 : total_size += 1 * this->obsolete_modified_export_size();
13978 0 : for (int i = 0; i < this->obsolete_modified_export_size(); i++) {
13979 0 : total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
13980 : this->obsolete_modified_export(i));
13981 : }
13982 :
13983 : // repeated .safe_browsing.ClientIncidentReport.EnvironmentData.Process.ModuleState.Modification modification = 4;
13984 0 : total_size += 1 * this->modification_size();
13985 0 : for (int i = 0; i < this->modification_size(); i++) {
13986 0 : total_size +=
13987 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
13988 : this->modification(i));
13989 : }
13990 :
13991 0 : total_size += unknown_fields().size();
13992 :
13993 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
13994 0 : _cached_size_ = total_size;
13995 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
13996 0 : return total_size;
13997 : }
13998 :
13999 0 : void ClientIncidentReport_EnvironmentData_Process_ModuleState::CheckTypeAndMergeFrom(
14000 : const ::google::protobuf::MessageLite& from) {
14001 0 : MergeFrom(*::google::protobuf::down_cast<const ClientIncidentReport_EnvironmentData_Process_ModuleState*>(&from));
14002 0 : }
14003 :
14004 0 : void ClientIncidentReport_EnvironmentData_Process_ModuleState::MergeFrom(const ClientIncidentReport_EnvironmentData_Process_ModuleState& from) {
14005 0 : GOOGLE_CHECK_NE(&from, this);
14006 0 : obsolete_modified_export_.MergeFrom(from.obsolete_modified_export_);
14007 0 : modification_.MergeFrom(from.modification_);
14008 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
14009 0 : if (from.has_name()) {
14010 0 : set_name(from.name());
14011 : }
14012 0 : if (from.has_modified_state()) {
14013 0 : set_modified_state(from.modified_state());
14014 : }
14015 : }
14016 0 : mutable_unknown_fields()->append(from.unknown_fields());
14017 0 : }
14018 :
14019 0 : void ClientIncidentReport_EnvironmentData_Process_ModuleState::CopyFrom(const ClientIncidentReport_EnvironmentData_Process_ModuleState& from) {
14020 0 : if (&from == this) return;
14021 0 : Clear();
14022 0 : MergeFrom(from);
14023 : }
14024 :
14025 0 : bool ClientIncidentReport_EnvironmentData_Process_ModuleState::IsInitialized() const {
14026 :
14027 0 : return true;
14028 : }
14029 :
14030 0 : void ClientIncidentReport_EnvironmentData_Process_ModuleState::Swap(ClientIncidentReport_EnvironmentData_Process_ModuleState* other) {
14031 0 : if (other != this) {
14032 0 : std::swap(name_, other->name_);
14033 0 : std::swap(modified_state_, other->modified_state_);
14034 0 : obsolete_modified_export_.Swap(&other->obsolete_modified_export_);
14035 0 : modification_.Swap(&other->modification_);
14036 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
14037 0 : _unknown_fields_.swap(other->_unknown_fields_);
14038 0 : std::swap(_cached_size_, other->_cached_size_);
14039 : }
14040 0 : }
14041 :
14042 0 : ::std::string ClientIncidentReport_EnvironmentData_Process_ModuleState::GetTypeName() const {
14043 0 : return "safe_browsing.ClientIncidentReport.EnvironmentData.Process.ModuleState";
14044 : }
14045 :
14046 :
14047 : // -------------------------------------------------------------------
14048 :
14049 : #ifndef _MSC_VER
14050 : const int ClientIncidentReport_EnvironmentData_Process::kVersionFieldNumber;
14051 : const int ClientIncidentReport_EnvironmentData_Process::kOBSOLETEDllsFieldNumber;
14052 : const int ClientIncidentReport_EnvironmentData_Process::kPatchesFieldNumber;
14053 : const int ClientIncidentReport_EnvironmentData_Process::kNetworkProvidersFieldNumber;
14054 : const int ClientIncidentReport_EnvironmentData_Process::kChromeUpdateChannelFieldNumber;
14055 : const int ClientIncidentReport_EnvironmentData_Process::kUptimeMsecFieldNumber;
14056 : const int ClientIncidentReport_EnvironmentData_Process::kMetricsConsentFieldNumber;
14057 : const int ClientIncidentReport_EnvironmentData_Process::kExtendedConsentFieldNumber;
14058 : const int ClientIncidentReport_EnvironmentData_Process::kDllFieldNumber;
14059 : const int ClientIncidentReport_EnvironmentData_Process::kBlacklistedDllFieldNumber;
14060 : const int ClientIncidentReport_EnvironmentData_Process::kModuleStateFieldNumber;
14061 : const int ClientIncidentReport_EnvironmentData_Process::kFieldTrialParticipantFieldNumber;
14062 : #endif // !_MSC_VER
14063 :
14064 0 : ClientIncidentReport_EnvironmentData_Process::ClientIncidentReport_EnvironmentData_Process()
14065 0 : : ::google::protobuf::MessageLite() {
14066 0 : SharedCtor();
14067 : // @@protoc_insertion_point(constructor:safe_browsing.ClientIncidentReport.EnvironmentData.Process)
14068 0 : }
14069 :
14070 0 : void ClientIncidentReport_EnvironmentData_Process::InitAsDefaultInstance() {
14071 0 : }
14072 :
14073 0 : ClientIncidentReport_EnvironmentData_Process::ClientIncidentReport_EnvironmentData_Process(const ClientIncidentReport_EnvironmentData_Process& from)
14074 0 : : ::google::protobuf::MessageLite() {
14075 0 : SharedCtor();
14076 0 : MergeFrom(from);
14077 : // @@protoc_insertion_point(copy_constructor:safe_browsing.ClientIncidentReport.EnvironmentData.Process)
14078 0 : }
14079 :
14080 0 : void ClientIncidentReport_EnvironmentData_Process::SharedCtor() {
14081 0 : ::google::protobuf::internal::GetEmptyString();
14082 0 : _cached_size_ = 0;
14083 0 : version_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
14084 0 : chrome_update_channel_ = 0;
14085 0 : uptime_msec_ = GOOGLE_LONGLONG(0);
14086 0 : metrics_consent_ = false;
14087 0 : extended_consent_ = false;
14088 0 : field_trial_participant_ = false;
14089 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
14090 0 : }
14091 :
14092 0 : ClientIncidentReport_EnvironmentData_Process::~ClientIncidentReport_EnvironmentData_Process() {
14093 : // @@protoc_insertion_point(destructor:safe_browsing.ClientIncidentReport.EnvironmentData.Process)
14094 0 : SharedDtor();
14095 0 : }
14096 :
14097 0 : void ClientIncidentReport_EnvironmentData_Process::SharedDtor() {
14098 0 : if (version_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
14099 0 : delete version_;
14100 : }
14101 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
14102 0 : if (this != &default_instance()) {
14103 : #else
14104 : if (this != default_instance_) {
14105 : #endif
14106 : }
14107 0 : }
14108 :
14109 0 : void ClientIncidentReport_EnvironmentData_Process::SetCachedSize(int size) const {
14110 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
14111 0 : _cached_size_ = size;
14112 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
14113 0 : }
14114 0 : const ClientIncidentReport_EnvironmentData_Process& ClientIncidentReport_EnvironmentData_Process::default_instance() {
14115 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
14116 0 : protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
14117 : #else
14118 : if (default_instance_ == NULL) protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
14119 : #endif
14120 0 : return *default_instance_;
14121 : }
14122 :
14123 : ClientIncidentReport_EnvironmentData_Process* ClientIncidentReport_EnvironmentData_Process::default_instance_ = NULL;
14124 :
14125 0 : ClientIncidentReport_EnvironmentData_Process* ClientIncidentReport_EnvironmentData_Process::New() const {
14126 0 : return new ClientIncidentReport_EnvironmentData_Process;
14127 : }
14128 :
14129 0 : void ClientIncidentReport_EnvironmentData_Process::Clear() {
14130 : #define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \
14131 : &reinterpret_cast<ClientIncidentReport_EnvironmentData_Process*>(16)->f) - \
14132 : reinterpret_cast<char*>(16))
14133 :
14134 : #define ZR_(first, last) do { \
14135 : size_t f = OFFSET_OF_FIELD_(first); \
14136 : size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \
14137 : ::memset(&first, 0, n); \
14138 : } while (0)
14139 :
14140 0 : if (_has_bits_[0 / 32] & 241) {
14141 0 : ZR_(uptime_msec_, extended_consent_);
14142 0 : if (has_version()) {
14143 0 : if (version_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
14144 0 : version_->clear();
14145 : }
14146 : }
14147 : }
14148 0 : field_trial_participant_ = false;
14149 :
14150 : #undef OFFSET_OF_FIELD_
14151 : #undef ZR_
14152 :
14153 0 : obsolete_dlls_.Clear();
14154 0 : patches_.Clear();
14155 0 : network_providers_.Clear();
14156 0 : dll_.Clear();
14157 0 : blacklisted_dll_.Clear();
14158 0 : module_state_.Clear();
14159 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
14160 0 : mutable_unknown_fields()->clear();
14161 0 : }
14162 :
14163 0 : bool ClientIncidentReport_EnvironmentData_Process::MergePartialFromCodedStream(
14164 : ::google::protobuf::io::CodedInputStream* input) {
14165 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
14166 : ::google::protobuf::uint32 tag;
14167 : ::google::protobuf::io::StringOutputStream unknown_fields_string(
14168 0 : mutable_unknown_fields());
14169 : ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
14170 0 : &unknown_fields_string);
14171 : // @@protoc_insertion_point(parse_start:safe_browsing.ClientIncidentReport.EnvironmentData.Process)
14172 : for (;;) {
14173 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
14174 0 : tag = p.first;
14175 0 : if (!p.second) goto handle_unusual;
14176 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
14177 : // optional string version = 1;
14178 : case 1: {
14179 0 : if (tag == 10) {
14180 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
14181 : input, this->mutable_version()));
14182 : } else {
14183 0 : goto handle_unusual;
14184 : }
14185 0 : if (input->ExpectTag(18)) goto parse_OBSOLETE_dlls;
14186 0 : break;
14187 : }
14188 :
14189 : // repeated string OBSOLETE_dlls = 2;
14190 : case 2: {
14191 0 : if (tag == 18) {
14192 : parse_OBSOLETE_dlls:
14193 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
14194 : input, this->add_obsolete_dlls()));
14195 : } else {
14196 0 : goto handle_unusual;
14197 : }
14198 0 : if (input->ExpectTag(18)) goto parse_OBSOLETE_dlls;
14199 0 : if (input->ExpectTag(26)) goto parse_patches;
14200 0 : break;
14201 : }
14202 :
14203 : // repeated .safe_browsing.ClientIncidentReport.EnvironmentData.Process.Patch patches = 3;
14204 : case 3: {
14205 0 : if (tag == 26) {
14206 : parse_patches:
14207 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
14208 : input, add_patches()));
14209 : } else {
14210 0 : goto handle_unusual;
14211 : }
14212 0 : if (input->ExpectTag(26)) goto parse_patches;
14213 0 : if (input->ExpectTag(34)) goto parse_network_providers;
14214 0 : break;
14215 : }
14216 :
14217 : // repeated .safe_browsing.ClientIncidentReport.EnvironmentData.Process.NetworkProvider network_providers = 4;
14218 : case 4: {
14219 0 : if (tag == 34) {
14220 : parse_network_providers:
14221 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
14222 : input, add_network_providers()));
14223 : } else {
14224 0 : goto handle_unusual;
14225 : }
14226 0 : if (input->ExpectTag(34)) goto parse_network_providers;
14227 0 : if (input->ExpectTag(40)) goto parse_chrome_update_channel;
14228 0 : break;
14229 : }
14230 :
14231 : // optional .safe_browsing.ClientIncidentReport.EnvironmentData.Process.Channel chrome_update_channel = 5;
14232 : case 5: {
14233 0 : if (tag == 40) {
14234 : parse_chrome_update_channel:
14235 : int value;
14236 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
14237 : int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
14238 : input, &value)));
14239 0 : if (::safe_browsing::ClientIncidentReport_EnvironmentData_Process_Channel_IsValid(value)) {
14240 0 : set_chrome_update_channel(static_cast< ::safe_browsing::ClientIncidentReport_EnvironmentData_Process_Channel >(value));
14241 : } else {
14242 0 : unknown_fields_stream.WriteVarint32(tag);
14243 0 : unknown_fields_stream.WriteVarint32(value);
14244 : }
14245 : } else {
14246 0 : goto handle_unusual;
14247 : }
14248 0 : if (input->ExpectTag(48)) goto parse_uptime_msec;
14249 0 : break;
14250 : }
14251 :
14252 : // optional int64 uptime_msec = 6;
14253 : case 6: {
14254 0 : if (tag == 48) {
14255 : parse_uptime_msec:
14256 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
14257 : ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
14258 : input, &uptime_msec_)));
14259 0 : set_has_uptime_msec();
14260 : } else {
14261 0 : goto handle_unusual;
14262 : }
14263 0 : if (input->ExpectTag(56)) goto parse_metrics_consent;
14264 0 : break;
14265 : }
14266 :
14267 : // optional bool metrics_consent = 7;
14268 : case 7: {
14269 0 : if (tag == 56) {
14270 : parse_metrics_consent:
14271 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
14272 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
14273 : input, &metrics_consent_)));
14274 0 : set_has_metrics_consent();
14275 : } else {
14276 0 : goto handle_unusual;
14277 : }
14278 0 : if (input->ExpectTag(64)) goto parse_extended_consent;
14279 0 : break;
14280 : }
14281 :
14282 : // optional bool extended_consent = 8;
14283 : case 8: {
14284 0 : if (tag == 64) {
14285 : parse_extended_consent:
14286 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
14287 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
14288 : input, &extended_consent_)));
14289 0 : set_has_extended_consent();
14290 : } else {
14291 0 : goto handle_unusual;
14292 : }
14293 0 : if (input->ExpectTag(74)) goto parse_dll;
14294 0 : break;
14295 : }
14296 :
14297 : // repeated .safe_browsing.ClientIncidentReport.EnvironmentData.Process.Dll dll = 9;
14298 : case 9: {
14299 0 : if (tag == 74) {
14300 : parse_dll:
14301 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
14302 : input, add_dll()));
14303 : } else {
14304 0 : goto handle_unusual;
14305 : }
14306 0 : if (input->ExpectTag(74)) goto parse_dll;
14307 0 : if (input->ExpectTag(82)) goto parse_blacklisted_dll;
14308 0 : break;
14309 : }
14310 :
14311 : // repeated string blacklisted_dll = 10;
14312 : case 10: {
14313 0 : if (tag == 82) {
14314 : parse_blacklisted_dll:
14315 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
14316 : input, this->add_blacklisted_dll()));
14317 : } else {
14318 0 : goto handle_unusual;
14319 : }
14320 0 : if (input->ExpectTag(82)) goto parse_blacklisted_dll;
14321 0 : if (input->ExpectTag(90)) goto parse_module_state;
14322 0 : break;
14323 : }
14324 :
14325 : // repeated .safe_browsing.ClientIncidentReport.EnvironmentData.Process.ModuleState module_state = 11;
14326 : case 11: {
14327 0 : if (tag == 90) {
14328 : parse_module_state:
14329 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
14330 : input, add_module_state()));
14331 : } else {
14332 0 : goto handle_unusual;
14333 : }
14334 0 : if (input->ExpectTag(90)) goto parse_module_state;
14335 0 : if (input->ExpectTag(96)) goto parse_field_trial_participant;
14336 0 : break;
14337 : }
14338 :
14339 : // optional bool field_trial_participant = 12;
14340 : case 12: {
14341 0 : if (tag == 96) {
14342 : parse_field_trial_participant:
14343 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
14344 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
14345 : input, &field_trial_participant_)));
14346 0 : set_has_field_trial_participant();
14347 : } else {
14348 0 : goto handle_unusual;
14349 : }
14350 0 : if (input->ExpectAtEnd()) goto success;
14351 0 : break;
14352 : }
14353 :
14354 : default: {
14355 : handle_unusual:
14356 0 : if (tag == 0 ||
14357 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
14358 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
14359 0 : goto success;
14360 : }
14361 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(
14362 : input, tag, &unknown_fields_stream));
14363 0 : break;
14364 : }
14365 : }
14366 0 : }
14367 : success:
14368 : // @@protoc_insertion_point(parse_success:safe_browsing.ClientIncidentReport.EnvironmentData.Process)
14369 0 : return true;
14370 : failure:
14371 : // @@protoc_insertion_point(parse_failure:safe_browsing.ClientIncidentReport.EnvironmentData.Process)
14372 0 : return false;
14373 : #undef DO_
14374 : }
14375 :
14376 0 : void ClientIncidentReport_EnvironmentData_Process::SerializeWithCachedSizes(
14377 : ::google::protobuf::io::CodedOutputStream* output) const {
14378 : // @@protoc_insertion_point(serialize_start:safe_browsing.ClientIncidentReport.EnvironmentData.Process)
14379 : // optional string version = 1;
14380 0 : if (has_version()) {
14381 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
14382 0 : 1, this->version(), output);
14383 : }
14384 :
14385 : // repeated string OBSOLETE_dlls = 2;
14386 0 : for (int i = 0; i < this->obsolete_dlls_size(); i++) {
14387 0 : ::google::protobuf::internal::WireFormatLite::WriteString(
14388 0 : 2, this->obsolete_dlls(i), output);
14389 : }
14390 :
14391 : // repeated .safe_browsing.ClientIncidentReport.EnvironmentData.Process.Patch patches = 3;
14392 0 : for (int i = 0; i < this->patches_size(); i++) {
14393 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
14394 0 : 3, this->patches(i), output);
14395 : }
14396 :
14397 : // repeated .safe_browsing.ClientIncidentReport.EnvironmentData.Process.NetworkProvider network_providers = 4;
14398 0 : for (int i = 0; i < this->network_providers_size(); i++) {
14399 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
14400 0 : 4, this->network_providers(i), output);
14401 : }
14402 :
14403 : // optional .safe_browsing.ClientIncidentReport.EnvironmentData.Process.Channel chrome_update_channel = 5;
14404 0 : if (has_chrome_update_channel()) {
14405 0 : ::google::protobuf::internal::WireFormatLite::WriteEnum(
14406 0 : 5, this->chrome_update_channel(), output);
14407 : }
14408 :
14409 : // optional int64 uptime_msec = 6;
14410 0 : if (has_uptime_msec()) {
14411 0 : ::google::protobuf::internal::WireFormatLite::WriteInt64(6, this->uptime_msec(), output);
14412 : }
14413 :
14414 : // optional bool metrics_consent = 7;
14415 0 : if (has_metrics_consent()) {
14416 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->metrics_consent(), output);
14417 : }
14418 :
14419 : // optional bool extended_consent = 8;
14420 0 : if (has_extended_consent()) {
14421 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(8, this->extended_consent(), output);
14422 : }
14423 :
14424 : // repeated .safe_browsing.ClientIncidentReport.EnvironmentData.Process.Dll dll = 9;
14425 0 : for (int i = 0; i < this->dll_size(); i++) {
14426 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
14427 0 : 9, this->dll(i), output);
14428 : }
14429 :
14430 : // repeated string blacklisted_dll = 10;
14431 0 : for (int i = 0; i < this->blacklisted_dll_size(); i++) {
14432 0 : ::google::protobuf::internal::WireFormatLite::WriteString(
14433 0 : 10, this->blacklisted_dll(i), output);
14434 : }
14435 :
14436 : // repeated .safe_browsing.ClientIncidentReport.EnvironmentData.Process.ModuleState module_state = 11;
14437 0 : for (int i = 0; i < this->module_state_size(); i++) {
14438 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
14439 0 : 11, this->module_state(i), output);
14440 : }
14441 :
14442 : // optional bool field_trial_participant = 12;
14443 0 : if (has_field_trial_participant()) {
14444 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(12, this->field_trial_participant(), output);
14445 : }
14446 :
14447 0 : output->WriteRaw(unknown_fields().data(),
14448 0 : unknown_fields().size());
14449 : // @@protoc_insertion_point(serialize_end:safe_browsing.ClientIncidentReport.EnvironmentData.Process)
14450 0 : }
14451 :
14452 0 : int ClientIncidentReport_EnvironmentData_Process::ByteSize() const {
14453 0 : int total_size = 0;
14454 :
14455 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
14456 : // optional string version = 1;
14457 0 : if (has_version()) {
14458 0 : total_size += 1 +
14459 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
14460 : this->version());
14461 : }
14462 :
14463 : // optional .safe_browsing.ClientIncidentReport.EnvironmentData.Process.Channel chrome_update_channel = 5;
14464 0 : if (has_chrome_update_channel()) {
14465 0 : total_size += 1 +
14466 0 : ::google::protobuf::internal::WireFormatLite::EnumSize(this->chrome_update_channel());
14467 : }
14468 :
14469 : // optional int64 uptime_msec = 6;
14470 0 : if (has_uptime_msec()) {
14471 0 : total_size += 1 +
14472 0 : ::google::protobuf::internal::WireFormatLite::Int64Size(
14473 : this->uptime_msec());
14474 : }
14475 :
14476 : // optional bool metrics_consent = 7;
14477 0 : if (has_metrics_consent()) {
14478 0 : total_size += 1 + 1;
14479 : }
14480 :
14481 : // optional bool extended_consent = 8;
14482 0 : if (has_extended_consent()) {
14483 0 : total_size += 1 + 1;
14484 : }
14485 :
14486 : }
14487 0 : if (_has_bits_[11 / 32] & (0xffu << (11 % 32))) {
14488 : // optional bool field_trial_participant = 12;
14489 0 : if (has_field_trial_participant()) {
14490 0 : total_size += 1 + 1;
14491 : }
14492 :
14493 : }
14494 : // repeated string OBSOLETE_dlls = 2;
14495 0 : total_size += 1 * this->obsolete_dlls_size();
14496 0 : for (int i = 0; i < this->obsolete_dlls_size(); i++) {
14497 0 : total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
14498 : this->obsolete_dlls(i));
14499 : }
14500 :
14501 : // repeated .safe_browsing.ClientIncidentReport.EnvironmentData.Process.Patch patches = 3;
14502 0 : total_size += 1 * this->patches_size();
14503 0 : for (int i = 0; i < this->patches_size(); i++) {
14504 0 : total_size +=
14505 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
14506 : this->patches(i));
14507 : }
14508 :
14509 : // repeated .safe_browsing.ClientIncidentReport.EnvironmentData.Process.NetworkProvider network_providers = 4;
14510 0 : total_size += 1 * this->network_providers_size();
14511 0 : for (int i = 0; i < this->network_providers_size(); i++) {
14512 0 : total_size +=
14513 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
14514 : this->network_providers(i));
14515 : }
14516 :
14517 : // repeated .safe_browsing.ClientIncidentReport.EnvironmentData.Process.Dll dll = 9;
14518 0 : total_size += 1 * this->dll_size();
14519 0 : for (int i = 0; i < this->dll_size(); i++) {
14520 0 : total_size +=
14521 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
14522 : this->dll(i));
14523 : }
14524 :
14525 : // repeated string blacklisted_dll = 10;
14526 0 : total_size += 1 * this->blacklisted_dll_size();
14527 0 : for (int i = 0; i < this->blacklisted_dll_size(); i++) {
14528 0 : total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
14529 : this->blacklisted_dll(i));
14530 : }
14531 :
14532 : // repeated .safe_browsing.ClientIncidentReport.EnvironmentData.Process.ModuleState module_state = 11;
14533 0 : total_size += 1 * this->module_state_size();
14534 0 : for (int i = 0; i < this->module_state_size(); i++) {
14535 0 : total_size +=
14536 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
14537 : this->module_state(i));
14538 : }
14539 :
14540 0 : total_size += unknown_fields().size();
14541 :
14542 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
14543 0 : _cached_size_ = total_size;
14544 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
14545 0 : return total_size;
14546 : }
14547 :
14548 0 : void ClientIncidentReport_EnvironmentData_Process::CheckTypeAndMergeFrom(
14549 : const ::google::protobuf::MessageLite& from) {
14550 0 : MergeFrom(*::google::protobuf::down_cast<const ClientIncidentReport_EnvironmentData_Process*>(&from));
14551 0 : }
14552 :
14553 0 : void ClientIncidentReport_EnvironmentData_Process::MergeFrom(const ClientIncidentReport_EnvironmentData_Process& from) {
14554 0 : GOOGLE_CHECK_NE(&from, this);
14555 0 : obsolete_dlls_.MergeFrom(from.obsolete_dlls_);
14556 0 : patches_.MergeFrom(from.patches_);
14557 0 : network_providers_.MergeFrom(from.network_providers_);
14558 0 : dll_.MergeFrom(from.dll_);
14559 0 : blacklisted_dll_.MergeFrom(from.blacklisted_dll_);
14560 0 : module_state_.MergeFrom(from.module_state_);
14561 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
14562 0 : if (from.has_version()) {
14563 0 : set_version(from.version());
14564 : }
14565 0 : if (from.has_chrome_update_channel()) {
14566 0 : set_chrome_update_channel(from.chrome_update_channel());
14567 : }
14568 0 : if (from.has_uptime_msec()) {
14569 0 : set_uptime_msec(from.uptime_msec());
14570 : }
14571 0 : if (from.has_metrics_consent()) {
14572 0 : set_metrics_consent(from.metrics_consent());
14573 : }
14574 0 : if (from.has_extended_consent()) {
14575 0 : set_extended_consent(from.extended_consent());
14576 : }
14577 : }
14578 0 : if (from._has_bits_[11 / 32] & (0xffu << (11 % 32))) {
14579 0 : if (from.has_field_trial_participant()) {
14580 0 : set_field_trial_participant(from.field_trial_participant());
14581 : }
14582 : }
14583 0 : mutable_unknown_fields()->append(from.unknown_fields());
14584 0 : }
14585 :
14586 0 : void ClientIncidentReport_EnvironmentData_Process::CopyFrom(const ClientIncidentReport_EnvironmentData_Process& from) {
14587 0 : if (&from == this) return;
14588 0 : Clear();
14589 0 : MergeFrom(from);
14590 : }
14591 :
14592 0 : bool ClientIncidentReport_EnvironmentData_Process::IsInitialized() const {
14593 :
14594 0 : if (!::google::protobuf::internal::AllAreInitialized(this->dll())) return false;
14595 0 : return true;
14596 : }
14597 :
14598 0 : void ClientIncidentReport_EnvironmentData_Process::Swap(ClientIncidentReport_EnvironmentData_Process* other) {
14599 0 : if (other != this) {
14600 0 : std::swap(version_, other->version_);
14601 0 : obsolete_dlls_.Swap(&other->obsolete_dlls_);
14602 0 : patches_.Swap(&other->patches_);
14603 0 : network_providers_.Swap(&other->network_providers_);
14604 0 : std::swap(chrome_update_channel_, other->chrome_update_channel_);
14605 0 : std::swap(uptime_msec_, other->uptime_msec_);
14606 0 : std::swap(metrics_consent_, other->metrics_consent_);
14607 0 : std::swap(extended_consent_, other->extended_consent_);
14608 0 : dll_.Swap(&other->dll_);
14609 0 : blacklisted_dll_.Swap(&other->blacklisted_dll_);
14610 0 : module_state_.Swap(&other->module_state_);
14611 0 : std::swap(field_trial_participant_, other->field_trial_participant_);
14612 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
14613 0 : _unknown_fields_.swap(other->_unknown_fields_);
14614 0 : std::swap(_cached_size_, other->_cached_size_);
14615 : }
14616 0 : }
14617 :
14618 0 : ::std::string ClientIncidentReport_EnvironmentData_Process::GetTypeName() const {
14619 0 : return "safe_browsing.ClientIncidentReport.EnvironmentData.Process";
14620 : }
14621 :
14622 :
14623 : // -------------------------------------------------------------------
14624 :
14625 : #ifndef _MSC_VER
14626 : const int ClientIncidentReport_EnvironmentData::kOsFieldNumber;
14627 : const int ClientIncidentReport_EnvironmentData::kMachineFieldNumber;
14628 : const int ClientIncidentReport_EnvironmentData::kProcessFieldNumber;
14629 : #endif // !_MSC_VER
14630 :
14631 0 : ClientIncidentReport_EnvironmentData::ClientIncidentReport_EnvironmentData()
14632 0 : : ::google::protobuf::MessageLite() {
14633 0 : SharedCtor();
14634 : // @@protoc_insertion_point(constructor:safe_browsing.ClientIncidentReport.EnvironmentData)
14635 0 : }
14636 :
14637 0 : void ClientIncidentReport_EnvironmentData::InitAsDefaultInstance() {
14638 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
14639 0 : os_ = const_cast< ::safe_browsing::ClientIncidentReport_EnvironmentData_OS*>(
14640 0 : ::safe_browsing::ClientIncidentReport_EnvironmentData_OS::internal_default_instance());
14641 : #else
14642 : os_ = const_cast< ::safe_browsing::ClientIncidentReport_EnvironmentData_OS*>(&::safe_browsing::ClientIncidentReport_EnvironmentData_OS::default_instance());
14643 : #endif
14644 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
14645 0 : machine_ = const_cast< ::safe_browsing::ClientIncidentReport_EnvironmentData_Machine*>(
14646 0 : ::safe_browsing::ClientIncidentReport_EnvironmentData_Machine::internal_default_instance());
14647 : #else
14648 : machine_ = const_cast< ::safe_browsing::ClientIncidentReport_EnvironmentData_Machine*>(&::safe_browsing::ClientIncidentReport_EnvironmentData_Machine::default_instance());
14649 : #endif
14650 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
14651 0 : process_ = const_cast< ::safe_browsing::ClientIncidentReport_EnvironmentData_Process*>(
14652 0 : ::safe_browsing::ClientIncidentReport_EnvironmentData_Process::internal_default_instance());
14653 : #else
14654 : process_ = const_cast< ::safe_browsing::ClientIncidentReport_EnvironmentData_Process*>(&::safe_browsing::ClientIncidentReport_EnvironmentData_Process::default_instance());
14655 : #endif
14656 0 : }
14657 :
14658 0 : ClientIncidentReport_EnvironmentData::ClientIncidentReport_EnvironmentData(const ClientIncidentReport_EnvironmentData& from)
14659 0 : : ::google::protobuf::MessageLite() {
14660 0 : SharedCtor();
14661 0 : MergeFrom(from);
14662 : // @@protoc_insertion_point(copy_constructor:safe_browsing.ClientIncidentReport.EnvironmentData)
14663 0 : }
14664 :
14665 0 : void ClientIncidentReport_EnvironmentData::SharedCtor() {
14666 0 : _cached_size_ = 0;
14667 0 : os_ = NULL;
14668 0 : machine_ = NULL;
14669 0 : process_ = NULL;
14670 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
14671 0 : }
14672 :
14673 0 : ClientIncidentReport_EnvironmentData::~ClientIncidentReport_EnvironmentData() {
14674 : // @@protoc_insertion_point(destructor:safe_browsing.ClientIncidentReport.EnvironmentData)
14675 0 : SharedDtor();
14676 0 : }
14677 :
14678 0 : void ClientIncidentReport_EnvironmentData::SharedDtor() {
14679 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
14680 0 : if (this != &default_instance()) {
14681 : #else
14682 : if (this != default_instance_) {
14683 : #endif
14684 0 : delete os_;
14685 0 : delete machine_;
14686 0 : delete process_;
14687 : }
14688 0 : }
14689 :
14690 0 : void ClientIncidentReport_EnvironmentData::SetCachedSize(int size) const {
14691 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
14692 0 : _cached_size_ = size;
14693 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
14694 0 : }
14695 0 : const ClientIncidentReport_EnvironmentData& ClientIncidentReport_EnvironmentData::default_instance() {
14696 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
14697 0 : protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
14698 : #else
14699 : if (default_instance_ == NULL) protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
14700 : #endif
14701 0 : return *default_instance_;
14702 : }
14703 :
14704 : ClientIncidentReport_EnvironmentData* ClientIncidentReport_EnvironmentData::default_instance_ = NULL;
14705 :
14706 0 : ClientIncidentReport_EnvironmentData* ClientIncidentReport_EnvironmentData::New() const {
14707 0 : return new ClientIncidentReport_EnvironmentData;
14708 : }
14709 :
14710 0 : void ClientIncidentReport_EnvironmentData::Clear() {
14711 0 : if (_has_bits_[0 / 32] & 7) {
14712 0 : if (has_os()) {
14713 0 : if (os_ != NULL) os_->::safe_browsing::ClientIncidentReport_EnvironmentData_OS::Clear();
14714 : }
14715 0 : if (has_machine()) {
14716 0 : if (machine_ != NULL) machine_->::safe_browsing::ClientIncidentReport_EnvironmentData_Machine::Clear();
14717 : }
14718 0 : if (has_process()) {
14719 0 : if (process_ != NULL) process_->::safe_browsing::ClientIncidentReport_EnvironmentData_Process::Clear();
14720 : }
14721 : }
14722 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
14723 0 : mutable_unknown_fields()->clear();
14724 0 : }
14725 :
14726 0 : bool ClientIncidentReport_EnvironmentData::MergePartialFromCodedStream(
14727 : ::google::protobuf::io::CodedInputStream* input) {
14728 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
14729 : ::google::protobuf::uint32 tag;
14730 : ::google::protobuf::io::StringOutputStream unknown_fields_string(
14731 0 : mutable_unknown_fields());
14732 : ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
14733 0 : &unknown_fields_string);
14734 : // @@protoc_insertion_point(parse_start:safe_browsing.ClientIncidentReport.EnvironmentData)
14735 : for (;;) {
14736 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
14737 0 : tag = p.first;
14738 0 : if (!p.second) goto handle_unusual;
14739 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
14740 : // optional .safe_browsing.ClientIncidentReport.EnvironmentData.OS os = 1;
14741 : case 1: {
14742 0 : if (tag == 10) {
14743 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
14744 : input, mutable_os()));
14745 : } else {
14746 0 : goto handle_unusual;
14747 : }
14748 0 : if (input->ExpectTag(18)) goto parse_machine;
14749 0 : break;
14750 : }
14751 :
14752 : // optional .safe_browsing.ClientIncidentReport.EnvironmentData.Machine machine = 2;
14753 : case 2: {
14754 0 : if (tag == 18) {
14755 : parse_machine:
14756 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
14757 : input, mutable_machine()));
14758 : } else {
14759 0 : goto handle_unusual;
14760 : }
14761 0 : if (input->ExpectTag(26)) goto parse_process;
14762 0 : break;
14763 : }
14764 :
14765 : // optional .safe_browsing.ClientIncidentReport.EnvironmentData.Process process = 3;
14766 : case 3: {
14767 0 : if (tag == 26) {
14768 : parse_process:
14769 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
14770 : input, mutable_process()));
14771 : } else {
14772 0 : goto handle_unusual;
14773 : }
14774 0 : if (input->ExpectAtEnd()) goto success;
14775 0 : break;
14776 : }
14777 :
14778 : default: {
14779 : handle_unusual:
14780 0 : if (tag == 0 ||
14781 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
14782 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
14783 0 : goto success;
14784 : }
14785 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(
14786 : input, tag, &unknown_fields_stream));
14787 0 : break;
14788 : }
14789 : }
14790 0 : }
14791 : success:
14792 : // @@protoc_insertion_point(parse_success:safe_browsing.ClientIncidentReport.EnvironmentData)
14793 0 : return true;
14794 : failure:
14795 : // @@protoc_insertion_point(parse_failure:safe_browsing.ClientIncidentReport.EnvironmentData)
14796 0 : return false;
14797 : #undef DO_
14798 : }
14799 :
14800 0 : void ClientIncidentReport_EnvironmentData::SerializeWithCachedSizes(
14801 : ::google::protobuf::io::CodedOutputStream* output) const {
14802 : // @@protoc_insertion_point(serialize_start:safe_browsing.ClientIncidentReport.EnvironmentData)
14803 : // optional .safe_browsing.ClientIncidentReport.EnvironmentData.OS os = 1;
14804 0 : if (has_os()) {
14805 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
14806 0 : 1, this->os(), output);
14807 : }
14808 :
14809 : // optional .safe_browsing.ClientIncidentReport.EnvironmentData.Machine machine = 2;
14810 0 : if (has_machine()) {
14811 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
14812 0 : 2, this->machine(), output);
14813 : }
14814 :
14815 : // optional .safe_browsing.ClientIncidentReport.EnvironmentData.Process process = 3;
14816 0 : if (has_process()) {
14817 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
14818 0 : 3, this->process(), output);
14819 : }
14820 :
14821 0 : output->WriteRaw(unknown_fields().data(),
14822 0 : unknown_fields().size());
14823 : // @@protoc_insertion_point(serialize_end:safe_browsing.ClientIncidentReport.EnvironmentData)
14824 0 : }
14825 :
14826 0 : int ClientIncidentReport_EnvironmentData::ByteSize() const {
14827 0 : int total_size = 0;
14828 :
14829 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
14830 : // optional .safe_browsing.ClientIncidentReport.EnvironmentData.OS os = 1;
14831 0 : if (has_os()) {
14832 0 : total_size += 1 +
14833 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
14834 : this->os());
14835 : }
14836 :
14837 : // optional .safe_browsing.ClientIncidentReport.EnvironmentData.Machine machine = 2;
14838 0 : if (has_machine()) {
14839 0 : total_size += 1 +
14840 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
14841 : this->machine());
14842 : }
14843 :
14844 : // optional .safe_browsing.ClientIncidentReport.EnvironmentData.Process process = 3;
14845 0 : if (has_process()) {
14846 0 : total_size += 1 +
14847 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
14848 : this->process());
14849 : }
14850 :
14851 : }
14852 0 : total_size += unknown_fields().size();
14853 :
14854 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
14855 0 : _cached_size_ = total_size;
14856 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
14857 0 : return total_size;
14858 : }
14859 :
14860 0 : void ClientIncidentReport_EnvironmentData::CheckTypeAndMergeFrom(
14861 : const ::google::protobuf::MessageLite& from) {
14862 0 : MergeFrom(*::google::protobuf::down_cast<const ClientIncidentReport_EnvironmentData*>(&from));
14863 0 : }
14864 :
14865 0 : void ClientIncidentReport_EnvironmentData::MergeFrom(const ClientIncidentReport_EnvironmentData& from) {
14866 0 : GOOGLE_CHECK_NE(&from, this);
14867 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
14868 0 : if (from.has_os()) {
14869 0 : mutable_os()->::safe_browsing::ClientIncidentReport_EnvironmentData_OS::MergeFrom(from.os());
14870 : }
14871 0 : if (from.has_machine()) {
14872 0 : mutable_machine()->::safe_browsing::ClientIncidentReport_EnvironmentData_Machine::MergeFrom(from.machine());
14873 : }
14874 0 : if (from.has_process()) {
14875 0 : mutable_process()->::safe_browsing::ClientIncidentReport_EnvironmentData_Process::MergeFrom(from.process());
14876 : }
14877 : }
14878 0 : mutable_unknown_fields()->append(from.unknown_fields());
14879 0 : }
14880 :
14881 0 : void ClientIncidentReport_EnvironmentData::CopyFrom(const ClientIncidentReport_EnvironmentData& from) {
14882 0 : if (&from == this) return;
14883 0 : Clear();
14884 0 : MergeFrom(from);
14885 : }
14886 :
14887 0 : bool ClientIncidentReport_EnvironmentData::IsInitialized() const {
14888 :
14889 0 : if (has_process()) {
14890 0 : if (!this->process().IsInitialized()) return false;
14891 : }
14892 0 : return true;
14893 : }
14894 :
14895 0 : void ClientIncidentReport_EnvironmentData::Swap(ClientIncidentReport_EnvironmentData* other) {
14896 0 : if (other != this) {
14897 0 : std::swap(os_, other->os_);
14898 0 : std::swap(machine_, other->machine_);
14899 0 : std::swap(process_, other->process_);
14900 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
14901 0 : _unknown_fields_.swap(other->_unknown_fields_);
14902 0 : std::swap(_cached_size_, other->_cached_size_);
14903 : }
14904 0 : }
14905 :
14906 0 : ::std::string ClientIncidentReport_EnvironmentData::GetTypeName() const {
14907 0 : return "safe_browsing.ClientIncidentReport.EnvironmentData";
14908 : }
14909 :
14910 :
14911 : // -------------------------------------------------------------------
14912 :
14913 0 : bool ClientIncidentReport_ExtensionData_ExtensionInfo_ExtensionState_IsValid(int value) {
14914 0 : switch(value) {
14915 : case 0:
14916 : case 1:
14917 : case 2:
14918 : case 3:
14919 : case 4:
14920 : case 5:
14921 0 : return true;
14922 : default:
14923 0 : return false;
14924 : }
14925 : }
14926 :
14927 : #ifndef _MSC_VER
14928 : const ClientIncidentReport_ExtensionData_ExtensionInfo_ExtensionState ClientIncidentReport_ExtensionData_ExtensionInfo::STATE_UNKNOWN;
14929 : const ClientIncidentReport_ExtensionData_ExtensionInfo_ExtensionState ClientIncidentReport_ExtensionData_ExtensionInfo::STATE_ENABLED;
14930 : const ClientIncidentReport_ExtensionData_ExtensionInfo_ExtensionState ClientIncidentReport_ExtensionData_ExtensionInfo::STATE_DISABLED;
14931 : const ClientIncidentReport_ExtensionData_ExtensionInfo_ExtensionState ClientIncidentReport_ExtensionData_ExtensionInfo::STATE_BLACKLISTED;
14932 : const ClientIncidentReport_ExtensionData_ExtensionInfo_ExtensionState ClientIncidentReport_ExtensionData_ExtensionInfo::STATE_BLOCKED;
14933 : const ClientIncidentReport_ExtensionData_ExtensionInfo_ExtensionState ClientIncidentReport_ExtensionData_ExtensionInfo::STATE_TERMINATED;
14934 : const ClientIncidentReport_ExtensionData_ExtensionInfo_ExtensionState ClientIncidentReport_ExtensionData_ExtensionInfo::ExtensionState_MIN;
14935 : const ClientIncidentReport_ExtensionData_ExtensionInfo_ExtensionState ClientIncidentReport_ExtensionData_ExtensionInfo::ExtensionState_MAX;
14936 : const int ClientIncidentReport_ExtensionData_ExtensionInfo::ExtensionState_ARRAYSIZE;
14937 : #endif // _MSC_VER
14938 : #ifndef _MSC_VER
14939 : const int ClientIncidentReport_ExtensionData_ExtensionInfo::kIdFieldNumber;
14940 : const int ClientIncidentReport_ExtensionData_ExtensionInfo::kVersionFieldNumber;
14941 : const int ClientIncidentReport_ExtensionData_ExtensionInfo::kNameFieldNumber;
14942 : const int ClientIncidentReport_ExtensionData_ExtensionInfo::kDescriptionFieldNumber;
14943 : const int ClientIncidentReport_ExtensionData_ExtensionInfo::kStateFieldNumber;
14944 : const int ClientIncidentReport_ExtensionData_ExtensionInfo::kTypeFieldNumber;
14945 : const int ClientIncidentReport_ExtensionData_ExtensionInfo::kUpdateUrlFieldNumber;
14946 : const int ClientIncidentReport_ExtensionData_ExtensionInfo::kHasSignatureValidationFieldNumber;
14947 : const int ClientIncidentReport_ExtensionData_ExtensionInfo::kSignatureIsValidFieldNumber;
14948 : const int ClientIncidentReport_ExtensionData_ExtensionInfo::kInstalledByCustodianFieldNumber;
14949 : const int ClientIncidentReport_ExtensionData_ExtensionInfo::kInstalledByDefaultFieldNumber;
14950 : const int ClientIncidentReport_ExtensionData_ExtensionInfo::kInstalledByOemFieldNumber;
14951 : const int ClientIncidentReport_ExtensionData_ExtensionInfo::kFromBookmarkFieldNumber;
14952 : const int ClientIncidentReport_ExtensionData_ExtensionInfo::kFromWebstoreFieldNumber;
14953 : const int ClientIncidentReport_ExtensionData_ExtensionInfo::kConvertedFromUserScriptFieldNumber;
14954 : const int ClientIncidentReport_ExtensionData_ExtensionInfo::kMayBeUntrustedFieldNumber;
14955 : const int ClientIncidentReport_ExtensionData_ExtensionInfo::kInstallTimeMsecFieldNumber;
14956 : const int ClientIncidentReport_ExtensionData_ExtensionInfo::kManifestLocationTypeFieldNumber;
14957 : const int ClientIncidentReport_ExtensionData_ExtensionInfo::kManifestFieldNumber;
14958 : #endif // !_MSC_VER
14959 :
14960 0 : ClientIncidentReport_ExtensionData_ExtensionInfo::ClientIncidentReport_ExtensionData_ExtensionInfo()
14961 0 : : ::google::protobuf::MessageLite() {
14962 0 : SharedCtor();
14963 : // @@protoc_insertion_point(constructor:safe_browsing.ClientIncidentReport.ExtensionData.ExtensionInfo)
14964 0 : }
14965 :
14966 0 : void ClientIncidentReport_ExtensionData_ExtensionInfo::InitAsDefaultInstance() {
14967 0 : }
14968 :
14969 0 : ClientIncidentReport_ExtensionData_ExtensionInfo::ClientIncidentReport_ExtensionData_ExtensionInfo(const ClientIncidentReport_ExtensionData_ExtensionInfo& from)
14970 0 : : ::google::protobuf::MessageLite() {
14971 0 : SharedCtor();
14972 0 : MergeFrom(from);
14973 : // @@protoc_insertion_point(copy_constructor:safe_browsing.ClientIncidentReport.ExtensionData.ExtensionInfo)
14974 0 : }
14975 :
14976 0 : void ClientIncidentReport_ExtensionData_ExtensionInfo::SharedCtor() {
14977 0 : ::google::protobuf::internal::GetEmptyString();
14978 0 : _cached_size_ = 0;
14979 0 : id_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
14980 0 : version_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
14981 0 : name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
14982 0 : description_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
14983 0 : state_ = 0;
14984 0 : type_ = 0;
14985 0 : update_url_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
14986 0 : has_signature_validation_ = false;
14987 0 : signature_is_valid_ = false;
14988 0 : installed_by_custodian_ = false;
14989 0 : installed_by_default_ = false;
14990 0 : installed_by_oem_ = false;
14991 0 : from_bookmark_ = false;
14992 0 : from_webstore_ = false;
14993 0 : converted_from_user_script_ = false;
14994 0 : may_be_untrusted_ = false;
14995 0 : install_time_msec_ = GOOGLE_LONGLONG(0);
14996 0 : manifest_location_type_ = 0;
14997 0 : manifest_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
14998 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
14999 0 : }
15000 :
15001 0 : ClientIncidentReport_ExtensionData_ExtensionInfo::~ClientIncidentReport_ExtensionData_ExtensionInfo() {
15002 : // @@protoc_insertion_point(destructor:safe_browsing.ClientIncidentReport.ExtensionData.ExtensionInfo)
15003 0 : SharedDtor();
15004 0 : }
15005 :
15006 0 : void ClientIncidentReport_ExtensionData_ExtensionInfo::SharedDtor() {
15007 0 : if (id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
15008 0 : delete id_;
15009 : }
15010 0 : if (version_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
15011 0 : delete version_;
15012 : }
15013 0 : if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
15014 0 : delete name_;
15015 : }
15016 0 : if (description_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
15017 0 : delete description_;
15018 : }
15019 0 : if (update_url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
15020 0 : delete update_url_;
15021 : }
15022 0 : if (manifest_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
15023 0 : delete manifest_;
15024 : }
15025 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
15026 0 : if (this != &default_instance()) {
15027 : #else
15028 : if (this != default_instance_) {
15029 : #endif
15030 : }
15031 0 : }
15032 :
15033 0 : void ClientIncidentReport_ExtensionData_ExtensionInfo::SetCachedSize(int size) const {
15034 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
15035 0 : _cached_size_ = size;
15036 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
15037 0 : }
15038 0 : const ClientIncidentReport_ExtensionData_ExtensionInfo& ClientIncidentReport_ExtensionData_ExtensionInfo::default_instance() {
15039 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
15040 0 : protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
15041 : #else
15042 : if (default_instance_ == NULL) protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
15043 : #endif
15044 0 : return *default_instance_;
15045 : }
15046 :
15047 : ClientIncidentReport_ExtensionData_ExtensionInfo* ClientIncidentReport_ExtensionData_ExtensionInfo::default_instance_ = NULL;
15048 :
15049 0 : ClientIncidentReport_ExtensionData_ExtensionInfo* ClientIncidentReport_ExtensionData_ExtensionInfo::New() const {
15050 0 : return new ClientIncidentReport_ExtensionData_ExtensionInfo;
15051 : }
15052 :
15053 0 : void ClientIncidentReport_ExtensionData_ExtensionInfo::Clear() {
15054 : #define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \
15055 : &reinterpret_cast<ClientIncidentReport_ExtensionData_ExtensionInfo*>(16)->f) - \
15056 : reinterpret_cast<char*>(16))
15057 :
15058 : #define ZR_(first, last) do { \
15059 : size_t f = OFFSET_OF_FIELD_(first); \
15060 : size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \
15061 : ::memset(&first, 0, n); \
15062 : } while (0)
15063 :
15064 0 : if (_has_bits_[0 / 32] & 255) {
15065 0 : ZR_(state_, type_);
15066 0 : if (has_id()) {
15067 0 : if (id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
15068 0 : id_->clear();
15069 : }
15070 : }
15071 0 : if (has_version()) {
15072 0 : if (version_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
15073 0 : version_->clear();
15074 : }
15075 : }
15076 0 : if (has_name()) {
15077 0 : if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
15078 0 : name_->clear();
15079 : }
15080 : }
15081 0 : if (has_description()) {
15082 0 : if (description_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
15083 0 : description_->clear();
15084 : }
15085 : }
15086 0 : if (has_update_url()) {
15087 0 : if (update_url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
15088 0 : update_url_->clear();
15089 : }
15090 : }
15091 0 : has_signature_validation_ = false;
15092 : }
15093 0 : if (_has_bits_[8 / 32] & 65280) {
15094 0 : ZR_(signature_is_valid_, converted_from_user_script_);
15095 0 : may_be_untrusted_ = false;
15096 : }
15097 0 : if (_has_bits_[16 / 32] & 458752) {
15098 0 : install_time_msec_ = GOOGLE_LONGLONG(0);
15099 0 : manifest_location_type_ = 0;
15100 0 : if (has_manifest()) {
15101 0 : if (manifest_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
15102 0 : manifest_->clear();
15103 : }
15104 : }
15105 : }
15106 :
15107 : #undef OFFSET_OF_FIELD_
15108 : #undef ZR_
15109 :
15110 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
15111 0 : mutable_unknown_fields()->clear();
15112 0 : }
15113 :
15114 0 : bool ClientIncidentReport_ExtensionData_ExtensionInfo::MergePartialFromCodedStream(
15115 : ::google::protobuf::io::CodedInputStream* input) {
15116 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
15117 : ::google::protobuf::uint32 tag;
15118 : ::google::protobuf::io::StringOutputStream unknown_fields_string(
15119 0 : mutable_unknown_fields());
15120 : ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
15121 0 : &unknown_fields_string);
15122 : // @@protoc_insertion_point(parse_start:safe_browsing.ClientIncidentReport.ExtensionData.ExtensionInfo)
15123 : for (;;) {
15124 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383);
15125 0 : tag = p.first;
15126 0 : if (!p.second) goto handle_unusual;
15127 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
15128 : // optional string id = 1;
15129 : case 1: {
15130 0 : if (tag == 10) {
15131 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
15132 : input, this->mutable_id()));
15133 : } else {
15134 0 : goto handle_unusual;
15135 : }
15136 0 : if (input->ExpectTag(18)) goto parse_version;
15137 0 : break;
15138 : }
15139 :
15140 : // optional string version = 2;
15141 : case 2: {
15142 0 : if (tag == 18) {
15143 : parse_version:
15144 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
15145 : input, this->mutable_version()));
15146 : } else {
15147 0 : goto handle_unusual;
15148 : }
15149 0 : if (input->ExpectTag(26)) goto parse_name;
15150 0 : break;
15151 : }
15152 :
15153 : // optional string name = 3;
15154 : case 3: {
15155 0 : if (tag == 26) {
15156 : parse_name:
15157 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
15158 : input, this->mutable_name()));
15159 : } else {
15160 0 : goto handle_unusual;
15161 : }
15162 0 : if (input->ExpectTag(34)) goto parse_description;
15163 0 : break;
15164 : }
15165 :
15166 : // optional string description = 4;
15167 : case 4: {
15168 0 : if (tag == 34) {
15169 : parse_description:
15170 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
15171 : input, this->mutable_description()));
15172 : } else {
15173 0 : goto handle_unusual;
15174 : }
15175 0 : if (input->ExpectTag(40)) goto parse_state;
15176 0 : break;
15177 : }
15178 :
15179 : // optional .safe_browsing.ClientIncidentReport.ExtensionData.ExtensionInfo.ExtensionState state = 5 [default = STATE_UNKNOWN];
15180 : case 5: {
15181 0 : if (tag == 40) {
15182 : parse_state:
15183 : int value;
15184 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
15185 : int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
15186 : input, &value)));
15187 0 : if (::safe_browsing::ClientIncidentReport_ExtensionData_ExtensionInfo_ExtensionState_IsValid(value)) {
15188 0 : set_state(static_cast< ::safe_browsing::ClientIncidentReport_ExtensionData_ExtensionInfo_ExtensionState >(value));
15189 : } else {
15190 0 : unknown_fields_stream.WriteVarint32(tag);
15191 0 : unknown_fields_stream.WriteVarint32(value);
15192 : }
15193 : } else {
15194 0 : goto handle_unusual;
15195 : }
15196 0 : if (input->ExpectTag(48)) goto parse_type;
15197 0 : break;
15198 : }
15199 :
15200 : // optional int32 type = 6;
15201 : case 6: {
15202 0 : if (tag == 48) {
15203 : parse_type:
15204 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
15205 : ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
15206 : input, &type_)));
15207 0 : set_has_type();
15208 : } else {
15209 0 : goto handle_unusual;
15210 : }
15211 0 : if (input->ExpectTag(58)) goto parse_update_url;
15212 0 : break;
15213 : }
15214 :
15215 : // optional string update_url = 7;
15216 : case 7: {
15217 0 : if (tag == 58) {
15218 : parse_update_url:
15219 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
15220 : input, this->mutable_update_url()));
15221 : } else {
15222 0 : goto handle_unusual;
15223 : }
15224 0 : if (input->ExpectTag(64)) goto parse_has_signature_validation;
15225 0 : break;
15226 : }
15227 :
15228 : // optional bool has_signature_validation = 8;
15229 : case 8: {
15230 0 : if (tag == 64) {
15231 : parse_has_signature_validation:
15232 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
15233 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
15234 : input, &has_signature_validation_)));
15235 0 : set_has_has_signature_validation();
15236 : } else {
15237 0 : goto handle_unusual;
15238 : }
15239 0 : if (input->ExpectTag(72)) goto parse_signature_is_valid;
15240 0 : break;
15241 : }
15242 :
15243 : // optional bool signature_is_valid = 9;
15244 : case 9: {
15245 0 : if (tag == 72) {
15246 : parse_signature_is_valid:
15247 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
15248 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
15249 : input, &signature_is_valid_)));
15250 0 : set_has_signature_is_valid();
15251 : } else {
15252 0 : goto handle_unusual;
15253 : }
15254 0 : if (input->ExpectTag(80)) goto parse_installed_by_custodian;
15255 0 : break;
15256 : }
15257 :
15258 : // optional bool installed_by_custodian = 10;
15259 : case 10: {
15260 0 : if (tag == 80) {
15261 : parse_installed_by_custodian:
15262 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
15263 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
15264 : input, &installed_by_custodian_)));
15265 0 : set_has_installed_by_custodian();
15266 : } else {
15267 0 : goto handle_unusual;
15268 : }
15269 0 : if (input->ExpectTag(88)) goto parse_installed_by_default;
15270 0 : break;
15271 : }
15272 :
15273 : // optional bool installed_by_default = 11;
15274 : case 11: {
15275 0 : if (tag == 88) {
15276 : parse_installed_by_default:
15277 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
15278 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
15279 : input, &installed_by_default_)));
15280 0 : set_has_installed_by_default();
15281 : } else {
15282 0 : goto handle_unusual;
15283 : }
15284 0 : if (input->ExpectTag(96)) goto parse_installed_by_oem;
15285 0 : break;
15286 : }
15287 :
15288 : // optional bool installed_by_oem = 12;
15289 : case 12: {
15290 0 : if (tag == 96) {
15291 : parse_installed_by_oem:
15292 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
15293 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
15294 : input, &installed_by_oem_)));
15295 0 : set_has_installed_by_oem();
15296 : } else {
15297 0 : goto handle_unusual;
15298 : }
15299 0 : if (input->ExpectTag(104)) goto parse_from_bookmark;
15300 0 : break;
15301 : }
15302 :
15303 : // optional bool from_bookmark = 13;
15304 : case 13: {
15305 0 : if (tag == 104) {
15306 : parse_from_bookmark:
15307 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
15308 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
15309 : input, &from_bookmark_)));
15310 0 : set_has_from_bookmark();
15311 : } else {
15312 0 : goto handle_unusual;
15313 : }
15314 0 : if (input->ExpectTag(112)) goto parse_from_webstore;
15315 0 : break;
15316 : }
15317 :
15318 : // optional bool from_webstore = 14;
15319 : case 14: {
15320 0 : if (tag == 112) {
15321 : parse_from_webstore:
15322 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
15323 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
15324 : input, &from_webstore_)));
15325 0 : set_has_from_webstore();
15326 : } else {
15327 0 : goto handle_unusual;
15328 : }
15329 0 : if (input->ExpectTag(120)) goto parse_converted_from_user_script;
15330 0 : break;
15331 : }
15332 :
15333 : // optional bool converted_from_user_script = 15;
15334 : case 15: {
15335 0 : if (tag == 120) {
15336 : parse_converted_from_user_script:
15337 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
15338 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
15339 : input, &converted_from_user_script_)));
15340 0 : set_has_converted_from_user_script();
15341 : } else {
15342 0 : goto handle_unusual;
15343 : }
15344 0 : if (input->ExpectTag(128)) goto parse_may_be_untrusted;
15345 0 : break;
15346 : }
15347 :
15348 : // optional bool may_be_untrusted = 16;
15349 : case 16: {
15350 0 : if (tag == 128) {
15351 : parse_may_be_untrusted:
15352 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
15353 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
15354 : input, &may_be_untrusted_)));
15355 0 : set_has_may_be_untrusted();
15356 : } else {
15357 0 : goto handle_unusual;
15358 : }
15359 0 : if (input->ExpectTag(136)) goto parse_install_time_msec;
15360 0 : break;
15361 : }
15362 :
15363 : // optional int64 install_time_msec = 17;
15364 : case 17: {
15365 0 : if (tag == 136) {
15366 : parse_install_time_msec:
15367 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
15368 : ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
15369 : input, &install_time_msec_)));
15370 0 : set_has_install_time_msec();
15371 : } else {
15372 0 : goto handle_unusual;
15373 : }
15374 0 : if (input->ExpectTag(144)) goto parse_manifest_location_type;
15375 0 : break;
15376 : }
15377 :
15378 : // optional int32 manifest_location_type = 18;
15379 : case 18: {
15380 0 : if (tag == 144) {
15381 : parse_manifest_location_type:
15382 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
15383 : ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
15384 : input, &manifest_location_type_)));
15385 0 : set_has_manifest_location_type();
15386 : } else {
15387 0 : goto handle_unusual;
15388 : }
15389 0 : if (input->ExpectTag(154)) goto parse_manifest;
15390 0 : break;
15391 : }
15392 :
15393 : // optional string manifest = 19;
15394 : case 19: {
15395 0 : if (tag == 154) {
15396 : parse_manifest:
15397 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
15398 : input, this->mutable_manifest()));
15399 : } else {
15400 0 : goto handle_unusual;
15401 : }
15402 0 : if (input->ExpectAtEnd()) goto success;
15403 0 : break;
15404 : }
15405 :
15406 : default: {
15407 : handle_unusual:
15408 0 : if (tag == 0 ||
15409 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
15410 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
15411 0 : goto success;
15412 : }
15413 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(
15414 : input, tag, &unknown_fields_stream));
15415 0 : break;
15416 : }
15417 : }
15418 0 : }
15419 : success:
15420 : // @@protoc_insertion_point(parse_success:safe_browsing.ClientIncidentReport.ExtensionData.ExtensionInfo)
15421 0 : return true;
15422 : failure:
15423 : // @@protoc_insertion_point(parse_failure:safe_browsing.ClientIncidentReport.ExtensionData.ExtensionInfo)
15424 0 : return false;
15425 : #undef DO_
15426 : }
15427 :
15428 0 : void ClientIncidentReport_ExtensionData_ExtensionInfo::SerializeWithCachedSizes(
15429 : ::google::protobuf::io::CodedOutputStream* output) const {
15430 : // @@protoc_insertion_point(serialize_start:safe_browsing.ClientIncidentReport.ExtensionData.ExtensionInfo)
15431 : // optional string id = 1;
15432 0 : if (has_id()) {
15433 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
15434 0 : 1, this->id(), output);
15435 : }
15436 :
15437 : // optional string version = 2;
15438 0 : if (has_version()) {
15439 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
15440 0 : 2, this->version(), output);
15441 : }
15442 :
15443 : // optional string name = 3;
15444 0 : if (has_name()) {
15445 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
15446 0 : 3, this->name(), output);
15447 : }
15448 :
15449 : // optional string description = 4;
15450 0 : if (has_description()) {
15451 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
15452 0 : 4, this->description(), output);
15453 : }
15454 :
15455 : // optional .safe_browsing.ClientIncidentReport.ExtensionData.ExtensionInfo.ExtensionState state = 5 [default = STATE_UNKNOWN];
15456 0 : if (has_state()) {
15457 0 : ::google::protobuf::internal::WireFormatLite::WriteEnum(
15458 0 : 5, this->state(), output);
15459 : }
15460 :
15461 : // optional int32 type = 6;
15462 0 : if (has_type()) {
15463 0 : ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->type(), output);
15464 : }
15465 :
15466 : // optional string update_url = 7;
15467 0 : if (has_update_url()) {
15468 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
15469 0 : 7, this->update_url(), output);
15470 : }
15471 :
15472 : // optional bool has_signature_validation = 8;
15473 0 : if (has_has_signature_validation()) {
15474 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(8, this->has_signature_validation(), output);
15475 : }
15476 :
15477 : // optional bool signature_is_valid = 9;
15478 0 : if (has_signature_is_valid()) {
15479 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(9, this->signature_is_valid(), output);
15480 : }
15481 :
15482 : // optional bool installed_by_custodian = 10;
15483 0 : if (has_installed_by_custodian()) {
15484 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(10, this->installed_by_custodian(), output);
15485 : }
15486 :
15487 : // optional bool installed_by_default = 11;
15488 0 : if (has_installed_by_default()) {
15489 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(11, this->installed_by_default(), output);
15490 : }
15491 :
15492 : // optional bool installed_by_oem = 12;
15493 0 : if (has_installed_by_oem()) {
15494 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(12, this->installed_by_oem(), output);
15495 : }
15496 :
15497 : // optional bool from_bookmark = 13;
15498 0 : if (has_from_bookmark()) {
15499 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(13, this->from_bookmark(), output);
15500 : }
15501 :
15502 : // optional bool from_webstore = 14;
15503 0 : if (has_from_webstore()) {
15504 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(14, this->from_webstore(), output);
15505 : }
15506 :
15507 : // optional bool converted_from_user_script = 15;
15508 0 : if (has_converted_from_user_script()) {
15509 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(15, this->converted_from_user_script(), output);
15510 : }
15511 :
15512 : // optional bool may_be_untrusted = 16;
15513 0 : if (has_may_be_untrusted()) {
15514 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(16, this->may_be_untrusted(), output);
15515 : }
15516 :
15517 : // optional int64 install_time_msec = 17;
15518 0 : if (has_install_time_msec()) {
15519 0 : ::google::protobuf::internal::WireFormatLite::WriteInt64(17, this->install_time_msec(), output);
15520 : }
15521 :
15522 : // optional int32 manifest_location_type = 18;
15523 0 : if (has_manifest_location_type()) {
15524 0 : ::google::protobuf::internal::WireFormatLite::WriteInt32(18, this->manifest_location_type(), output);
15525 : }
15526 :
15527 : // optional string manifest = 19;
15528 0 : if (has_manifest()) {
15529 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
15530 0 : 19, this->manifest(), output);
15531 : }
15532 :
15533 0 : output->WriteRaw(unknown_fields().data(),
15534 0 : unknown_fields().size());
15535 : // @@protoc_insertion_point(serialize_end:safe_browsing.ClientIncidentReport.ExtensionData.ExtensionInfo)
15536 0 : }
15537 :
15538 0 : int ClientIncidentReport_ExtensionData_ExtensionInfo::ByteSize() const {
15539 0 : int total_size = 0;
15540 :
15541 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
15542 : // optional string id = 1;
15543 0 : if (has_id()) {
15544 0 : total_size += 1 +
15545 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
15546 : this->id());
15547 : }
15548 :
15549 : // optional string version = 2;
15550 0 : if (has_version()) {
15551 0 : total_size += 1 +
15552 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
15553 : this->version());
15554 : }
15555 :
15556 : // optional string name = 3;
15557 0 : if (has_name()) {
15558 0 : total_size += 1 +
15559 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
15560 : this->name());
15561 : }
15562 :
15563 : // optional string description = 4;
15564 0 : if (has_description()) {
15565 0 : total_size += 1 +
15566 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
15567 : this->description());
15568 : }
15569 :
15570 : // optional .safe_browsing.ClientIncidentReport.ExtensionData.ExtensionInfo.ExtensionState state = 5 [default = STATE_UNKNOWN];
15571 0 : if (has_state()) {
15572 0 : total_size += 1 +
15573 0 : ::google::protobuf::internal::WireFormatLite::EnumSize(this->state());
15574 : }
15575 :
15576 : // optional int32 type = 6;
15577 0 : if (has_type()) {
15578 0 : total_size += 1 +
15579 0 : ::google::protobuf::internal::WireFormatLite::Int32Size(
15580 : this->type());
15581 : }
15582 :
15583 : // optional string update_url = 7;
15584 0 : if (has_update_url()) {
15585 0 : total_size += 1 +
15586 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
15587 : this->update_url());
15588 : }
15589 :
15590 : // optional bool has_signature_validation = 8;
15591 0 : if (has_has_signature_validation()) {
15592 0 : total_size += 1 + 1;
15593 : }
15594 :
15595 : }
15596 0 : if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
15597 : // optional bool signature_is_valid = 9;
15598 0 : if (has_signature_is_valid()) {
15599 0 : total_size += 1 + 1;
15600 : }
15601 :
15602 : // optional bool installed_by_custodian = 10;
15603 0 : if (has_installed_by_custodian()) {
15604 0 : total_size += 1 + 1;
15605 : }
15606 :
15607 : // optional bool installed_by_default = 11;
15608 0 : if (has_installed_by_default()) {
15609 0 : total_size += 1 + 1;
15610 : }
15611 :
15612 : // optional bool installed_by_oem = 12;
15613 0 : if (has_installed_by_oem()) {
15614 0 : total_size += 1 + 1;
15615 : }
15616 :
15617 : // optional bool from_bookmark = 13;
15618 0 : if (has_from_bookmark()) {
15619 0 : total_size += 1 + 1;
15620 : }
15621 :
15622 : // optional bool from_webstore = 14;
15623 0 : if (has_from_webstore()) {
15624 0 : total_size += 1 + 1;
15625 : }
15626 :
15627 : // optional bool converted_from_user_script = 15;
15628 0 : if (has_converted_from_user_script()) {
15629 0 : total_size += 1 + 1;
15630 : }
15631 :
15632 : // optional bool may_be_untrusted = 16;
15633 0 : if (has_may_be_untrusted()) {
15634 0 : total_size += 2 + 1;
15635 : }
15636 :
15637 : }
15638 0 : if (_has_bits_[16 / 32] & (0xffu << (16 % 32))) {
15639 : // optional int64 install_time_msec = 17;
15640 0 : if (has_install_time_msec()) {
15641 0 : total_size += 2 +
15642 0 : ::google::protobuf::internal::WireFormatLite::Int64Size(
15643 : this->install_time_msec());
15644 : }
15645 :
15646 : // optional int32 manifest_location_type = 18;
15647 0 : if (has_manifest_location_type()) {
15648 0 : total_size += 2 +
15649 0 : ::google::protobuf::internal::WireFormatLite::Int32Size(
15650 : this->manifest_location_type());
15651 : }
15652 :
15653 : // optional string manifest = 19;
15654 0 : if (has_manifest()) {
15655 0 : total_size += 2 +
15656 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
15657 : this->manifest());
15658 : }
15659 :
15660 : }
15661 0 : total_size += unknown_fields().size();
15662 :
15663 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
15664 0 : _cached_size_ = total_size;
15665 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
15666 0 : return total_size;
15667 : }
15668 :
15669 0 : void ClientIncidentReport_ExtensionData_ExtensionInfo::CheckTypeAndMergeFrom(
15670 : const ::google::protobuf::MessageLite& from) {
15671 0 : MergeFrom(*::google::protobuf::down_cast<const ClientIncidentReport_ExtensionData_ExtensionInfo*>(&from));
15672 0 : }
15673 :
15674 0 : void ClientIncidentReport_ExtensionData_ExtensionInfo::MergeFrom(const ClientIncidentReport_ExtensionData_ExtensionInfo& from) {
15675 0 : GOOGLE_CHECK_NE(&from, this);
15676 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
15677 0 : if (from.has_id()) {
15678 0 : set_id(from.id());
15679 : }
15680 0 : if (from.has_version()) {
15681 0 : set_version(from.version());
15682 : }
15683 0 : if (from.has_name()) {
15684 0 : set_name(from.name());
15685 : }
15686 0 : if (from.has_description()) {
15687 0 : set_description(from.description());
15688 : }
15689 0 : if (from.has_state()) {
15690 0 : set_state(from.state());
15691 : }
15692 0 : if (from.has_type()) {
15693 0 : set_type(from.type());
15694 : }
15695 0 : if (from.has_update_url()) {
15696 0 : set_update_url(from.update_url());
15697 : }
15698 0 : if (from.has_has_signature_validation()) {
15699 0 : set_has_signature_validation(from.has_signature_validation());
15700 : }
15701 : }
15702 0 : if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
15703 0 : if (from.has_signature_is_valid()) {
15704 0 : set_signature_is_valid(from.signature_is_valid());
15705 : }
15706 0 : if (from.has_installed_by_custodian()) {
15707 0 : set_installed_by_custodian(from.installed_by_custodian());
15708 : }
15709 0 : if (from.has_installed_by_default()) {
15710 0 : set_installed_by_default(from.installed_by_default());
15711 : }
15712 0 : if (from.has_installed_by_oem()) {
15713 0 : set_installed_by_oem(from.installed_by_oem());
15714 : }
15715 0 : if (from.has_from_bookmark()) {
15716 0 : set_from_bookmark(from.from_bookmark());
15717 : }
15718 0 : if (from.has_from_webstore()) {
15719 0 : set_from_webstore(from.from_webstore());
15720 : }
15721 0 : if (from.has_converted_from_user_script()) {
15722 0 : set_converted_from_user_script(from.converted_from_user_script());
15723 : }
15724 0 : if (from.has_may_be_untrusted()) {
15725 0 : set_may_be_untrusted(from.may_be_untrusted());
15726 : }
15727 : }
15728 0 : if (from._has_bits_[16 / 32] & (0xffu << (16 % 32))) {
15729 0 : if (from.has_install_time_msec()) {
15730 0 : set_install_time_msec(from.install_time_msec());
15731 : }
15732 0 : if (from.has_manifest_location_type()) {
15733 0 : set_manifest_location_type(from.manifest_location_type());
15734 : }
15735 0 : if (from.has_manifest()) {
15736 0 : set_manifest(from.manifest());
15737 : }
15738 : }
15739 0 : mutable_unknown_fields()->append(from.unknown_fields());
15740 0 : }
15741 :
15742 0 : void ClientIncidentReport_ExtensionData_ExtensionInfo::CopyFrom(const ClientIncidentReport_ExtensionData_ExtensionInfo& from) {
15743 0 : if (&from == this) return;
15744 0 : Clear();
15745 0 : MergeFrom(from);
15746 : }
15747 :
15748 0 : bool ClientIncidentReport_ExtensionData_ExtensionInfo::IsInitialized() const {
15749 :
15750 0 : return true;
15751 : }
15752 :
15753 0 : void ClientIncidentReport_ExtensionData_ExtensionInfo::Swap(ClientIncidentReport_ExtensionData_ExtensionInfo* other) {
15754 0 : if (other != this) {
15755 0 : std::swap(id_, other->id_);
15756 0 : std::swap(version_, other->version_);
15757 0 : std::swap(name_, other->name_);
15758 0 : std::swap(description_, other->description_);
15759 0 : std::swap(state_, other->state_);
15760 0 : std::swap(type_, other->type_);
15761 0 : std::swap(update_url_, other->update_url_);
15762 0 : std::swap(has_signature_validation_, other->has_signature_validation_);
15763 0 : std::swap(signature_is_valid_, other->signature_is_valid_);
15764 0 : std::swap(installed_by_custodian_, other->installed_by_custodian_);
15765 0 : std::swap(installed_by_default_, other->installed_by_default_);
15766 0 : std::swap(installed_by_oem_, other->installed_by_oem_);
15767 0 : std::swap(from_bookmark_, other->from_bookmark_);
15768 0 : std::swap(from_webstore_, other->from_webstore_);
15769 0 : std::swap(converted_from_user_script_, other->converted_from_user_script_);
15770 0 : std::swap(may_be_untrusted_, other->may_be_untrusted_);
15771 0 : std::swap(install_time_msec_, other->install_time_msec_);
15772 0 : std::swap(manifest_location_type_, other->manifest_location_type_);
15773 0 : std::swap(manifest_, other->manifest_);
15774 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
15775 0 : _unknown_fields_.swap(other->_unknown_fields_);
15776 0 : std::swap(_cached_size_, other->_cached_size_);
15777 : }
15778 0 : }
15779 :
15780 0 : ::std::string ClientIncidentReport_ExtensionData_ExtensionInfo::GetTypeName() const {
15781 0 : return "safe_browsing.ClientIncidentReport.ExtensionData.ExtensionInfo";
15782 : }
15783 :
15784 :
15785 : // -------------------------------------------------------------------
15786 :
15787 : #ifndef _MSC_VER
15788 : const int ClientIncidentReport_ExtensionData::kLastInstalledExtensionFieldNumber;
15789 : #endif // !_MSC_VER
15790 :
15791 0 : ClientIncidentReport_ExtensionData::ClientIncidentReport_ExtensionData()
15792 0 : : ::google::protobuf::MessageLite() {
15793 0 : SharedCtor();
15794 : // @@protoc_insertion_point(constructor:safe_browsing.ClientIncidentReport.ExtensionData)
15795 0 : }
15796 :
15797 0 : void ClientIncidentReport_ExtensionData::InitAsDefaultInstance() {
15798 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
15799 0 : last_installed_extension_ = const_cast< ::safe_browsing::ClientIncidentReport_ExtensionData_ExtensionInfo*>(
15800 0 : ::safe_browsing::ClientIncidentReport_ExtensionData_ExtensionInfo::internal_default_instance());
15801 : #else
15802 : last_installed_extension_ = const_cast< ::safe_browsing::ClientIncidentReport_ExtensionData_ExtensionInfo*>(&::safe_browsing::ClientIncidentReport_ExtensionData_ExtensionInfo::default_instance());
15803 : #endif
15804 0 : }
15805 :
15806 0 : ClientIncidentReport_ExtensionData::ClientIncidentReport_ExtensionData(const ClientIncidentReport_ExtensionData& from)
15807 0 : : ::google::protobuf::MessageLite() {
15808 0 : SharedCtor();
15809 0 : MergeFrom(from);
15810 : // @@protoc_insertion_point(copy_constructor:safe_browsing.ClientIncidentReport.ExtensionData)
15811 0 : }
15812 :
15813 0 : void ClientIncidentReport_ExtensionData::SharedCtor() {
15814 0 : _cached_size_ = 0;
15815 0 : last_installed_extension_ = NULL;
15816 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
15817 0 : }
15818 :
15819 0 : ClientIncidentReport_ExtensionData::~ClientIncidentReport_ExtensionData() {
15820 : // @@protoc_insertion_point(destructor:safe_browsing.ClientIncidentReport.ExtensionData)
15821 0 : SharedDtor();
15822 0 : }
15823 :
15824 0 : void ClientIncidentReport_ExtensionData::SharedDtor() {
15825 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
15826 0 : if (this != &default_instance()) {
15827 : #else
15828 : if (this != default_instance_) {
15829 : #endif
15830 0 : delete last_installed_extension_;
15831 : }
15832 0 : }
15833 :
15834 0 : void ClientIncidentReport_ExtensionData::SetCachedSize(int size) const {
15835 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
15836 0 : _cached_size_ = size;
15837 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
15838 0 : }
15839 0 : const ClientIncidentReport_ExtensionData& ClientIncidentReport_ExtensionData::default_instance() {
15840 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
15841 0 : protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
15842 : #else
15843 : if (default_instance_ == NULL) protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
15844 : #endif
15845 0 : return *default_instance_;
15846 : }
15847 :
15848 : ClientIncidentReport_ExtensionData* ClientIncidentReport_ExtensionData::default_instance_ = NULL;
15849 :
15850 0 : ClientIncidentReport_ExtensionData* ClientIncidentReport_ExtensionData::New() const {
15851 0 : return new ClientIncidentReport_ExtensionData;
15852 : }
15853 :
15854 0 : void ClientIncidentReport_ExtensionData::Clear() {
15855 0 : if (has_last_installed_extension()) {
15856 0 : if (last_installed_extension_ != NULL) last_installed_extension_->::safe_browsing::ClientIncidentReport_ExtensionData_ExtensionInfo::Clear();
15857 : }
15858 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
15859 0 : mutable_unknown_fields()->clear();
15860 0 : }
15861 :
15862 0 : bool ClientIncidentReport_ExtensionData::MergePartialFromCodedStream(
15863 : ::google::protobuf::io::CodedInputStream* input) {
15864 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
15865 : ::google::protobuf::uint32 tag;
15866 : ::google::protobuf::io::StringOutputStream unknown_fields_string(
15867 0 : mutable_unknown_fields());
15868 : ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
15869 0 : &unknown_fields_string);
15870 : // @@protoc_insertion_point(parse_start:safe_browsing.ClientIncidentReport.ExtensionData)
15871 : for (;;) {
15872 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
15873 0 : tag = p.first;
15874 0 : if (!p.second) goto handle_unusual;
15875 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
15876 : // optional .safe_browsing.ClientIncidentReport.ExtensionData.ExtensionInfo last_installed_extension = 1;
15877 : case 1: {
15878 0 : if (tag == 10) {
15879 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
15880 : input, mutable_last_installed_extension()));
15881 : } else {
15882 0 : goto handle_unusual;
15883 : }
15884 0 : if (input->ExpectAtEnd()) goto success;
15885 0 : break;
15886 : }
15887 :
15888 : default: {
15889 : handle_unusual:
15890 0 : if (tag == 0 ||
15891 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
15892 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
15893 0 : goto success;
15894 : }
15895 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(
15896 : input, tag, &unknown_fields_stream));
15897 0 : break;
15898 : }
15899 : }
15900 0 : }
15901 : success:
15902 : // @@protoc_insertion_point(parse_success:safe_browsing.ClientIncidentReport.ExtensionData)
15903 0 : return true;
15904 : failure:
15905 : // @@protoc_insertion_point(parse_failure:safe_browsing.ClientIncidentReport.ExtensionData)
15906 0 : return false;
15907 : #undef DO_
15908 : }
15909 :
15910 0 : void ClientIncidentReport_ExtensionData::SerializeWithCachedSizes(
15911 : ::google::protobuf::io::CodedOutputStream* output) const {
15912 : // @@protoc_insertion_point(serialize_start:safe_browsing.ClientIncidentReport.ExtensionData)
15913 : // optional .safe_browsing.ClientIncidentReport.ExtensionData.ExtensionInfo last_installed_extension = 1;
15914 0 : if (has_last_installed_extension()) {
15915 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
15916 0 : 1, this->last_installed_extension(), output);
15917 : }
15918 :
15919 0 : output->WriteRaw(unknown_fields().data(),
15920 0 : unknown_fields().size());
15921 : // @@protoc_insertion_point(serialize_end:safe_browsing.ClientIncidentReport.ExtensionData)
15922 0 : }
15923 :
15924 0 : int ClientIncidentReport_ExtensionData::ByteSize() const {
15925 0 : int total_size = 0;
15926 :
15927 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
15928 : // optional .safe_browsing.ClientIncidentReport.ExtensionData.ExtensionInfo last_installed_extension = 1;
15929 0 : if (has_last_installed_extension()) {
15930 0 : total_size += 1 +
15931 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
15932 : this->last_installed_extension());
15933 : }
15934 :
15935 : }
15936 0 : total_size += unknown_fields().size();
15937 :
15938 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
15939 0 : _cached_size_ = total_size;
15940 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
15941 0 : return total_size;
15942 : }
15943 :
15944 0 : void ClientIncidentReport_ExtensionData::CheckTypeAndMergeFrom(
15945 : const ::google::protobuf::MessageLite& from) {
15946 0 : MergeFrom(*::google::protobuf::down_cast<const ClientIncidentReport_ExtensionData*>(&from));
15947 0 : }
15948 :
15949 0 : void ClientIncidentReport_ExtensionData::MergeFrom(const ClientIncidentReport_ExtensionData& from) {
15950 0 : GOOGLE_CHECK_NE(&from, this);
15951 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
15952 0 : if (from.has_last_installed_extension()) {
15953 0 : mutable_last_installed_extension()->::safe_browsing::ClientIncidentReport_ExtensionData_ExtensionInfo::MergeFrom(from.last_installed_extension());
15954 : }
15955 : }
15956 0 : mutable_unknown_fields()->append(from.unknown_fields());
15957 0 : }
15958 :
15959 0 : void ClientIncidentReport_ExtensionData::CopyFrom(const ClientIncidentReport_ExtensionData& from) {
15960 0 : if (&from == this) return;
15961 0 : Clear();
15962 0 : MergeFrom(from);
15963 : }
15964 :
15965 0 : bool ClientIncidentReport_ExtensionData::IsInitialized() const {
15966 :
15967 0 : return true;
15968 : }
15969 :
15970 0 : void ClientIncidentReport_ExtensionData::Swap(ClientIncidentReport_ExtensionData* other) {
15971 0 : if (other != this) {
15972 0 : std::swap(last_installed_extension_, other->last_installed_extension_);
15973 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
15974 0 : _unknown_fields_.swap(other->_unknown_fields_);
15975 0 : std::swap(_cached_size_, other->_cached_size_);
15976 : }
15977 0 : }
15978 :
15979 0 : ::std::string ClientIncidentReport_ExtensionData::GetTypeName() const {
15980 0 : return "safe_browsing.ClientIncidentReport.ExtensionData";
15981 : }
15982 :
15983 :
15984 : // -------------------------------------------------------------------
15985 :
15986 : #ifndef _MSC_VER
15987 : const int ClientIncidentReport_NonBinaryDownloadDetails::kFileTypeFieldNumber;
15988 : const int ClientIncidentReport_NonBinaryDownloadDetails::kUrlSpecSha256FieldNumber;
15989 : const int ClientIncidentReport_NonBinaryDownloadDetails::kHostFieldNumber;
15990 : const int ClientIncidentReport_NonBinaryDownloadDetails::kLengthFieldNumber;
15991 : #endif // !_MSC_VER
15992 :
15993 0 : ClientIncidentReport_NonBinaryDownloadDetails::ClientIncidentReport_NonBinaryDownloadDetails()
15994 0 : : ::google::protobuf::MessageLite() {
15995 0 : SharedCtor();
15996 : // @@protoc_insertion_point(constructor:safe_browsing.ClientIncidentReport.NonBinaryDownloadDetails)
15997 0 : }
15998 :
15999 0 : void ClientIncidentReport_NonBinaryDownloadDetails::InitAsDefaultInstance() {
16000 0 : }
16001 :
16002 0 : ClientIncidentReport_NonBinaryDownloadDetails::ClientIncidentReport_NonBinaryDownloadDetails(const ClientIncidentReport_NonBinaryDownloadDetails& from)
16003 0 : : ::google::protobuf::MessageLite() {
16004 0 : SharedCtor();
16005 0 : MergeFrom(from);
16006 : // @@protoc_insertion_point(copy_constructor:safe_browsing.ClientIncidentReport.NonBinaryDownloadDetails)
16007 0 : }
16008 :
16009 0 : void ClientIncidentReport_NonBinaryDownloadDetails::SharedCtor() {
16010 0 : ::google::protobuf::internal::GetEmptyString();
16011 0 : _cached_size_ = 0;
16012 0 : file_type_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
16013 0 : url_spec_sha256_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
16014 0 : host_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
16015 0 : length_ = GOOGLE_LONGLONG(0);
16016 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
16017 0 : }
16018 :
16019 0 : ClientIncidentReport_NonBinaryDownloadDetails::~ClientIncidentReport_NonBinaryDownloadDetails() {
16020 : // @@protoc_insertion_point(destructor:safe_browsing.ClientIncidentReport.NonBinaryDownloadDetails)
16021 0 : SharedDtor();
16022 0 : }
16023 :
16024 0 : void ClientIncidentReport_NonBinaryDownloadDetails::SharedDtor() {
16025 0 : if (file_type_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
16026 0 : delete file_type_;
16027 : }
16028 0 : if (url_spec_sha256_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
16029 0 : delete url_spec_sha256_;
16030 : }
16031 0 : if (host_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
16032 0 : delete host_;
16033 : }
16034 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
16035 0 : if (this != &default_instance()) {
16036 : #else
16037 : if (this != default_instance_) {
16038 : #endif
16039 : }
16040 0 : }
16041 :
16042 0 : void ClientIncidentReport_NonBinaryDownloadDetails::SetCachedSize(int size) const {
16043 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
16044 0 : _cached_size_ = size;
16045 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
16046 0 : }
16047 0 : const ClientIncidentReport_NonBinaryDownloadDetails& ClientIncidentReport_NonBinaryDownloadDetails::default_instance() {
16048 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
16049 0 : protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
16050 : #else
16051 : if (default_instance_ == NULL) protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
16052 : #endif
16053 0 : return *default_instance_;
16054 : }
16055 :
16056 : ClientIncidentReport_NonBinaryDownloadDetails* ClientIncidentReport_NonBinaryDownloadDetails::default_instance_ = NULL;
16057 :
16058 0 : ClientIncidentReport_NonBinaryDownloadDetails* ClientIncidentReport_NonBinaryDownloadDetails::New() const {
16059 0 : return new ClientIncidentReport_NonBinaryDownloadDetails;
16060 : }
16061 :
16062 0 : void ClientIncidentReport_NonBinaryDownloadDetails::Clear() {
16063 0 : if (_has_bits_[0 / 32] & 15) {
16064 0 : if (has_file_type()) {
16065 0 : if (file_type_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
16066 0 : file_type_->clear();
16067 : }
16068 : }
16069 0 : if (has_url_spec_sha256()) {
16070 0 : if (url_spec_sha256_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
16071 0 : url_spec_sha256_->clear();
16072 : }
16073 : }
16074 0 : if (has_host()) {
16075 0 : if (host_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
16076 0 : host_->clear();
16077 : }
16078 : }
16079 0 : length_ = GOOGLE_LONGLONG(0);
16080 : }
16081 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
16082 0 : mutable_unknown_fields()->clear();
16083 0 : }
16084 :
16085 0 : bool ClientIncidentReport_NonBinaryDownloadDetails::MergePartialFromCodedStream(
16086 : ::google::protobuf::io::CodedInputStream* input) {
16087 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
16088 : ::google::protobuf::uint32 tag;
16089 : ::google::protobuf::io::StringOutputStream unknown_fields_string(
16090 0 : mutable_unknown_fields());
16091 : ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
16092 0 : &unknown_fields_string);
16093 : // @@protoc_insertion_point(parse_start:safe_browsing.ClientIncidentReport.NonBinaryDownloadDetails)
16094 : for (;;) {
16095 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
16096 0 : tag = p.first;
16097 0 : if (!p.second) goto handle_unusual;
16098 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
16099 : // optional string file_type = 1;
16100 : case 1: {
16101 0 : if (tag == 10) {
16102 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
16103 : input, this->mutable_file_type()));
16104 : } else {
16105 0 : goto handle_unusual;
16106 : }
16107 0 : if (input->ExpectTag(18)) goto parse_url_spec_sha256;
16108 0 : break;
16109 : }
16110 :
16111 : // optional bytes url_spec_sha256 = 2;
16112 : case 2: {
16113 0 : if (tag == 18) {
16114 : parse_url_spec_sha256:
16115 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
16116 : input, this->mutable_url_spec_sha256()));
16117 : } else {
16118 0 : goto handle_unusual;
16119 : }
16120 0 : if (input->ExpectTag(26)) goto parse_host;
16121 0 : break;
16122 : }
16123 :
16124 : // optional string host = 3;
16125 : case 3: {
16126 0 : if (tag == 26) {
16127 : parse_host:
16128 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
16129 : input, this->mutable_host()));
16130 : } else {
16131 0 : goto handle_unusual;
16132 : }
16133 0 : if (input->ExpectTag(32)) goto parse_length;
16134 0 : break;
16135 : }
16136 :
16137 : // optional int64 length = 4;
16138 : case 4: {
16139 0 : if (tag == 32) {
16140 : parse_length:
16141 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
16142 : ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
16143 : input, &length_)));
16144 0 : set_has_length();
16145 : } else {
16146 0 : goto handle_unusual;
16147 : }
16148 0 : if (input->ExpectAtEnd()) goto success;
16149 0 : break;
16150 : }
16151 :
16152 : default: {
16153 : handle_unusual:
16154 0 : if (tag == 0 ||
16155 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
16156 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
16157 0 : goto success;
16158 : }
16159 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(
16160 : input, tag, &unknown_fields_stream));
16161 0 : break;
16162 : }
16163 : }
16164 0 : }
16165 : success:
16166 : // @@protoc_insertion_point(parse_success:safe_browsing.ClientIncidentReport.NonBinaryDownloadDetails)
16167 0 : return true;
16168 : failure:
16169 : // @@protoc_insertion_point(parse_failure:safe_browsing.ClientIncidentReport.NonBinaryDownloadDetails)
16170 0 : return false;
16171 : #undef DO_
16172 : }
16173 :
16174 0 : void ClientIncidentReport_NonBinaryDownloadDetails::SerializeWithCachedSizes(
16175 : ::google::protobuf::io::CodedOutputStream* output) const {
16176 : // @@protoc_insertion_point(serialize_start:safe_browsing.ClientIncidentReport.NonBinaryDownloadDetails)
16177 : // optional string file_type = 1;
16178 0 : if (has_file_type()) {
16179 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
16180 0 : 1, this->file_type(), output);
16181 : }
16182 :
16183 : // optional bytes url_spec_sha256 = 2;
16184 0 : if (has_url_spec_sha256()) {
16185 0 : ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
16186 0 : 2, this->url_spec_sha256(), output);
16187 : }
16188 :
16189 : // optional string host = 3;
16190 0 : if (has_host()) {
16191 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
16192 0 : 3, this->host(), output);
16193 : }
16194 :
16195 : // optional int64 length = 4;
16196 0 : if (has_length()) {
16197 0 : ::google::protobuf::internal::WireFormatLite::WriteInt64(4, this->length(), output);
16198 : }
16199 :
16200 0 : output->WriteRaw(unknown_fields().data(),
16201 0 : unknown_fields().size());
16202 : // @@protoc_insertion_point(serialize_end:safe_browsing.ClientIncidentReport.NonBinaryDownloadDetails)
16203 0 : }
16204 :
16205 0 : int ClientIncidentReport_NonBinaryDownloadDetails::ByteSize() const {
16206 0 : int total_size = 0;
16207 :
16208 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
16209 : // optional string file_type = 1;
16210 0 : if (has_file_type()) {
16211 0 : total_size += 1 +
16212 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
16213 : this->file_type());
16214 : }
16215 :
16216 : // optional bytes url_spec_sha256 = 2;
16217 0 : if (has_url_spec_sha256()) {
16218 0 : total_size += 1 +
16219 0 : ::google::protobuf::internal::WireFormatLite::BytesSize(
16220 : this->url_spec_sha256());
16221 : }
16222 :
16223 : // optional string host = 3;
16224 0 : if (has_host()) {
16225 0 : total_size += 1 +
16226 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
16227 : this->host());
16228 : }
16229 :
16230 : // optional int64 length = 4;
16231 0 : if (has_length()) {
16232 0 : total_size += 1 +
16233 0 : ::google::protobuf::internal::WireFormatLite::Int64Size(
16234 : this->length());
16235 : }
16236 :
16237 : }
16238 0 : total_size += unknown_fields().size();
16239 :
16240 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
16241 0 : _cached_size_ = total_size;
16242 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
16243 0 : return total_size;
16244 : }
16245 :
16246 0 : void ClientIncidentReport_NonBinaryDownloadDetails::CheckTypeAndMergeFrom(
16247 : const ::google::protobuf::MessageLite& from) {
16248 0 : MergeFrom(*::google::protobuf::down_cast<const ClientIncidentReport_NonBinaryDownloadDetails*>(&from));
16249 0 : }
16250 :
16251 0 : void ClientIncidentReport_NonBinaryDownloadDetails::MergeFrom(const ClientIncidentReport_NonBinaryDownloadDetails& from) {
16252 0 : GOOGLE_CHECK_NE(&from, this);
16253 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
16254 0 : if (from.has_file_type()) {
16255 0 : set_file_type(from.file_type());
16256 : }
16257 0 : if (from.has_url_spec_sha256()) {
16258 0 : set_url_spec_sha256(from.url_spec_sha256());
16259 : }
16260 0 : if (from.has_host()) {
16261 0 : set_host(from.host());
16262 : }
16263 0 : if (from.has_length()) {
16264 0 : set_length(from.length());
16265 : }
16266 : }
16267 0 : mutable_unknown_fields()->append(from.unknown_fields());
16268 0 : }
16269 :
16270 0 : void ClientIncidentReport_NonBinaryDownloadDetails::CopyFrom(const ClientIncidentReport_NonBinaryDownloadDetails& from) {
16271 0 : if (&from == this) return;
16272 0 : Clear();
16273 0 : MergeFrom(from);
16274 : }
16275 :
16276 0 : bool ClientIncidentReport_NonBinaryDownloadDetails::IsInitialized() const {
16277 :
16278 0 : return true;
16279 : }
16280 :
16281 0 : void ClientIncidentReport_NonBinaryDownloadDetails::Swap(ClientIncidentReport_NonBinaryDownloadDetails* other) {
16282 0 : if (other != this) {
16283 0 : std::swap(file_type_, other->file_type_);
16284 0 : std::swap(url_spec_sha256_, other->url_spec_sha256_);
16285 0 : std::swap(host_, other->host_);
16286 0 : std::swap(length_, other->length_);
16287 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
16288 0 : _unknown_fields_.swap(other->_unknown_fields_);
16289 0 : std::swap(_cached_size_, other->_cached_size_);
16290 : }
16291 0 : }
16292 :
16293 0 : ::std::string ClientIncidentReport_NonBinaryDownloadDetails::GetTypeName() const {
16294 0 : return "safe_browsing.ClientIncidentReport.NonBinaryDownloadDetails";
16295 : }
16296 :
16297 :
16298 : // -------------------------------------------------------------------
16299 :
16300 : #ifndef _MSC_VER
16301 : const int ClientIncidentReport::kIncidentFieldNumber;
16302 : const int ClientIncidentReport::kDownloadFieldNumber;
16303 : const int ClientIncidentReport::kEnvironmentFieldNumber;
16304 : const int ClientIncidentReport::kPopulationFieldNumber;
16305 : const int ClientIncidentReport::kExtensionDataFieldNumber;
16306 : const int ClientIncidentReport::kNonBinaryDownloadFieldNumber;
16307 : #endif // !_MSC_VER
16308 :
16309 0 : ClientIncidentReport::ClientIncidentReport()
16310 0 : : ::google::protobuf::MessageLite() {
16311 0 : SharedCtor();
16312 : // @@protoc_insertion_point(constructor:safe_browsing.ClientIncidentReport)
16313 0 : }
16314 :
16315 0 : void ClientIncidentReport::InitAsDefaultInstance() {
16316 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
16317 0 : download_ = const_cast< ::safe_browsing::ClientIncidentReport_DownloadDetails*>(
16318 0 : ::safe_browsing::ClientIncidentReport_DownloadDetails::internal_default_instance());
16319 : #else
16320 : download_ = const_cast< ::safe_browsing::ClientIncidentReport_DownloadDetails*>(&::safe_browsing::ClientIncidentReport_DownloadDetails::default_instance());
16321 : #endif
16322 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
16323 0 : environment_ = const_cast< ::safe_browsing::ClientIncidentReport_EnvironmentData*>(
16324 0 : ::safe_browsing::ClientIncidentReport_EnvironmentData::internal_default_instance());
16325 : #else
16326 : environment_ = const_cast< ::safe_browsing::ClientIncidentReport_EnvironmentData*>(&::safe_browsing::ClientIncidentReport_EnvironmentData::default_instance());
16327 : #endif
16328 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
16329 0 : population_ = const_cast< ::safe_browsing::ChromeUserPopulation*>(
16330 0 : ::safe_browsing::ChromeUserPopulation::internal_default_instance());
16331 : #else
16332 : population_ = const_cast< ::safe_browsing::ChromeUserPopulation*>(&::safe_browsing::ChromeUserPopulation::default_instance());
16333 : #endif
16334 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
16335 0 : extension_data_ = const_cast< ::safe_browsing::ClientIncidentReport_ExtensionData*>(
16336 0 : ::safe_browsing::ClientIncidentReport_ExtensionData::internal_default_instance());
16337 : #else
16338 : extension_data_ = const_cast< ::safe_browsing::ClientIncidentReport_ExtensionData*>(&::safe_browsing::ClientIncidentReport_ExtensionData::default_instance());
16339 : #endif
16340 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
16341 0 : non_binary_download_ = const_cast< ::safe_browsing::ClientIncidentReport_NonBinaryDownloadDetails*>(
16342 0 : ::safe_browsing::ClientIncidentReport_NonBinaryDownloadDetails::internal_default_instance());
16343 : #else
16344 : non_binary_download_ = const_cast< ::safe_browsing::ClientIncidentReport_NonBinaryDownloadDetails*>(&::safe_browsing::ClientIncidentReport_NonBinaryDownloadDetails::default_instance());
16345 : #endif
16346 0 : }
16347 :
16348 0 : ClientIncidentReport::ClientIncidentReport(const ClientIncidentReport& from)
16349 0 : : ::google::protobuf::MessageLite() {
16350 0 : SharedCtor();
16351 0 : MergeFrom(from);
16352 : // @@protoc_insertion_point(copy_constructor:safe_browsing.ClientIncidentReport)
16353 0 : }
16354 :
16355 0 : void ClientIncidentReport::SharedCtor() {
16356 0 : _cached_size_ = 0;
16357 0 : download_ = NULL;
16358 0 : environment_ = NULL;
16359 0 : population_ = NULL;
16360 0 : extension_data_ = NULL;
16361 0 : non_binary_download_ = NULL;
16362 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
16363 0 : }
16364 :
16365 0 : ClientIncidentReport::~ClientIncidentReport() {
16366 : // @@protoc_insertion_point(destructor:safe_browsing.ClientIncidentReport)
16367 0 : SharedDtor();
16368 0 : }
16369 :
16370 0 : void ClientIncidentReport::SharedDtor() {
16371 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
16372 0 : if (this != &default_instance()) {
16373 : #else
16374 : if (this != default_instance_) {
16375 : #endif
16376 0 : delete download_;
16377 0 : delete environment_;
16378 0 : delete population_;
16379 0 : delete extension_data_;
16380 0 : delete non_binary_download_;
16381 : }
16382 0 : }
16383 :
16384 0 : void ClientIncidentReport::SetCachedSize(int size) const {
16385 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
16386 0 : _cached_size_ = size;
16387 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
16388 0 : }
16389 0 : const ClientIncidentReport& ClientIncidentReport::default_instance() {
16390 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
16391 0 : protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
16392 : #else
16393 : if (default_instance_ == NULL) protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
16394 : #endif
16395 0 : return *default_instance_;
16396 : }
16397 :
16398 : ClientIncidentReport* ClientIncidentReport::default_instance_ = NULL;
16399 :
16400 0 : ClientIncidentReport* ClientIncidentReport::New() const {
16401 0 : return new ClientIncidentReport;
16402 : }
16403 :
16404 0 : void ClientIncidentReport::Clear() {
16405 0 : if (_has_bits_[0 / 32] & 62) {
16406 0 : if (has_download()) {
16407 0 : if (download_ != NULL) download_->::safe_browsing::ClientIncidentReport_DownloadDetails::Clear();
16408 : }
16409 0 : if (has_environment()) {
16410 0 : if (environment_ != NULL) environment_->::safe_browsing::ClientIncidentReport_EnvironmentData::Clear();
16411 : }
16412 0 : if (has_population()) {
16413 0 : if (population_ != NULL) population_->::safe_browsing::ChromeUserPopulation::Clear();
16414 : }
16415 0 : if (has_extension_data()) {
16416 0 : if (extension_data_ != NULL) extension_data_->::safe_browsing::ClientIncidentReport_ExtensionData::Clear();
16417 : }
16418 0 : if (has_non_binary_download()) {
16419 0 : if (non_binary_download_ != NULL) non_binary_download_->::safe_browsing::ClientIncidentReport_NonBinaryDownloadDetails::Clear();
16420 : }
16421 : }
16422 0 : incident_.Clear();
16423 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
16424 0 : mutable_unknown_fields()->clear();
16425 0 : }
16426 :
16427 0 : bool ClientIncidentReport::MergePartialFromCodedStream(
16428 : ::google::protobuf::io::CodedInputStream* input) {
16429 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
16430 : ::google::protobuf::uint32 tag;
16431 : ::google::protobuf::io::StringOutputStream unknown_fields_string(
16432 0 : mutable_unknown_fields());
16433 : ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
16434 0 : &unknown_fields_string);
16435 : // @@protoc_insertion_point(parse_start:safe_browsing.ClientIncidentReport)
16436 : for (;;) {
16437 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
16438 0 : tag = p.first;
16439 0 : if (!p.second) goto handle_unusual;
16440 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
16441 : // repeated .safe_browsing.ClientIncidentReport.IncidentData incident = 1;
16442 : case 1: {
16443 0 : if (tag == 10) {
16444 : parse_incident:
16445 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
16446 : input, add_incident()));
16447 : } else {
16448 0 : goto handle_unusual;
16449 : }
16450 0 : if (input->ExpectTag(10)) goto parse_incident;
16451 0 : if (input->ExpectTag(18)) goto parse_download;
16452 0 : break;
16453 : }
16454 :
16455 : // optional .safe_browsing.ClientIncidentReport.DownloadDetails download = 2;
16456 : case 2: {
16457 0 : if (tag == 18) {
16458 : parse_download:
16459 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
16460 : input, mutable_download()));
16461 : } else {
16462 0 : goto handle_unusual;
16463 : }
16464 0 : if (input->ExpectTag(26)) goto parse_environment;
16465 0 : break;
16466 : }
16467 :
16468 : // optional .safe_browsing.ClientIncidentReport.EnvironmentData environment = 3;
16469 : case 3: {
16470 0 : if (tag == 26) {
16471 : parse_environment:
16472 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
16473 : input, mutable_environment()));
16474 : } else {
16475 0 : goto handle_unusual;
16476 : }
16477 0 : if (input->ExpectTag(58)) goto parse_population;
16478 0 : break;
16479 : }
16480 :
16481 : // optional .safe_browsing.ChromeUserPopulation population = 7;
16482 : case 7: {
16483 0 : if (tag == 58) {
16484 : parse_population:
16485 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
16486 : input, mutable_population()));
16487 : } else {
16488 0 : goto handle_unusual;
16489 : }
16490 0 : if (input->ExpectTag(66)) goto parse_extension_data;
16491 0 : break;
16492 : }
16493 :
16494 : // optional .safe_browsing.ClientIncidentReport.ExtensionData extension_data = 8;
16495 : case 8: {
16496 0 : if (tag == 66) {
16497 : parse_extension_data:
16498 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
16499 : input, mutable_extension_data()));
16500 : } else {
16501 0 : goto handle_unusual;
16502 : }
16503 0 : if (input->ExpectTag(74)) goto parse_non_binary_download;
16504 0 : break;
16505 : }
16506 :
16507 : // optional .safe_browsing.ClientIncidentReport.NonBinaryDownloadDetails non_binary_download = 9;
16508 : case 9: {
16509 0 : if (tag == 74) {
16510 : parse_non_binary_download:
16511 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
16512 : input, mutable_non_binary_download()));
16513 : } else {
16514 0 : goto handle_unusual;
16515 : }
16516 0 : if (input->ExpectAtEnd()) goto success;
16517 0 : break;
16518 : }
16519 :
16520 : default: {
16521 : handle_unusual:
16522 0 : if (tag == 0 ||
16523 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
16524 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
16525 0 : goto success;
16526 : }
16527 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(
16528 : input, tag, &unknown_fields_stream));
16529 0 : break;
16530 : }
16531 : }
16532 0 : }
16533 : success:
16534 : // @@protoc_insertion_point(parse_success:safe_browsing.ClientIncidentReport)
16535 0 : return true;
16536 : failure:
16537 : // @@protoc_insertion_point(parse_failure:safe_browsing.ClientIncidentReport)
16538 0 : return false;
16539 : #undef DO_
16540 : }
16541 :
16542 0 : void ClientIncidentReport::SerializeWithCachedSizes(
16543 : ::google::protobuf::io::CodedOutputStream* output) const {
16544 : // @@protoc_insertion_point(serialize_start:safe_browsing.ClientIncidentReport)
16545 : // repeated .safe_browsing.ClientIncidentReport.IncidentData incident = 1;
16546 0 : for (int i = 0; i < this->incident_size(); i++) {
16547 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
16548 0 : 1, this->incident(i), output);
16549 : }
16550 :
16551 : // optional .safe_browsing.ClientIncidentReport.DownloadDetails download = 2;
16552 0 : if (has_download()) {
16553 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
16554 0 : 2, this->download(), output);
16555 : }
16556 :
16557 : // optional .safe_browsing.ClientIncidentReport.EnvironmentData environment = 3;
16558 0 : if (has_environment()) {
16559 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
16560 0 : 3, this->environment(), output);
16561 : }
16562 :
16563 : // optional .safe_browsing.ChromeUserPopulation population = 7;
16564 0 : if (has_population()) {
16565 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
16566 0 : 7, this->population(), output);
16567 : }
16568 :
16569 : // optional .safe_browsing.ClientIncidentReport.ExtensionData extension_data = 8;
16570 0 : if (has_extension_data()) {
16571 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
16572 0 : 8, this->extension_data(), output);
16573 : }
16574 :
16575 : // optional .safe_browsing.ClientIncidentReport.NonBinaryDownloadDetails non_binary_download = 9;
16576 0 : if (has_non_binary_download()) {
16577 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
16578 0 : 9, this->non_binary_download(), output);
16579 : }
16580 :
16581 0 : output->WriteRaw(unknown_fields().data(),
16582 0 : unknown_fields().size());
16583 : // @@protoc_insertion_point(serialize_end:safe_browsing.ClientIncidentReport)
16584 0 : }
16585 :
16586 0 : int ClientIncidentReport::ByteSize() const {
16587 0 : int total_size = 0;
16588 :
16589 0 : if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) {
16590 : // optional .safe_browsing.ClientIncidentReport.DownloadDetails download = 2;
16591 0 : if (has_download()) {
16592 0 : total_size += 1 +
16593 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
16594 : this->download());
16595 : }
16596 :
16597 : // optional .safe_browsing.ClientIncidentReport.EnvironmentData environment = 3;
16598 0 : if (has_environment()) {
16599 0 : total_size += 1 +
16600 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
16601 : this->environment());
16602 : }
16603 :
16604 : // optional .safe_browsing.ChromeUserPopulation population = 7;
16605 0 : if (has_population()) {
16606 0 : total_size += 1 +
16607 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
16608 : this->population());
16609 : }
16610 :
16611 : // optional .safe_browsing.ClientIncidentReport.ExtensionData extension_data = 8;
16612 0 : if (has_extension_data()) {
16613 0 : total_size += 1 +
16614 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
16615 : this->extension_data());
16616 : }
16617 :
16618 : // optional .safe_browsing.ClientIncidentReport.NonBinaryDownloadDetails non_binary_download = 9;
16619 0 : if (has_non_binary_download()) {
16620 0 : total_size += 1 +
16621 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
16622 : this->non_binary_download());
16623 : }
16624 :
16625 : }
16626 : // repeated .safe_browsing.ClientIncidentReport.IncidentData incident = 1;
16627 0 : total_size += 1 * this->incident_size();
16628 0 : for (int i = 0; i < this->incident_size(); i++) {
16629 0 : total_size +=
16630 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
16631 : this->incident(i));
16632 : }
16633 :
16634 0 : total_size += unknown_fields().size();
16635 :
16636 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
16637 0 : _cached_size_ = total_size;
16638 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
16639 0 : return total_size;
16640 : }
16641 :
16642 0 : void ClientIncidentReport::CheckTypeAndMergeFrom(
16643 : const ::google::protobuf::MessageLite& from) {
16644 0 : MergeFrom(*::google::protobuf::down_cast<const ClientIncidentReport*>(&from));
16645 0 : }
16646 :
16647 0 : void ClientIncidentReport::MergeFrom(const ClientIncidentReport& from) {
16648 0 : GOOGLE_CHECK_NE(&from, this);
16649 0 : incident_.MergeFrom(from.incident_);
16650 0 : if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) {
16651 0 : if (from.has_download()) {
16652 0 : mutable_download()->::safe_browsing::ClientIncidentReport_DownloadDetails::MergeFrom(from.download());
16653 : }
16654 0 : if (from.has_environment()) {
16655 0 : mutable_environment()->::safe_browsing::ClientIncidentReport_EnvironmentData::MergeFrom(from.environment());
16656 : }
16657 0 : if (from.has_population()) {
16658 0 : mutable_population()->::safe_browsing::ChromeUserPopulation::MergeFrom(from.population());
16659 : }
16660 0 : if (from.has_extension_data()) {
16661 0 : mutable_extension_data()->::safe_browsing::ClientIncidentReport_ExtensionData::MergeFrom(from.extension_data());
16662 : }
16663 0 : if (from.has_non_binary_download()) {
16664 0 : mutable_non_binary_download()->::safe_browsing::ClientIncidentReport_NonBinaryDownloadDetails::MergeFrom(from.non_binary_download());
16665 : }
16666 : }
16667 0 : mutable_unknown_fields()->append(from.unknown_fields());
16668 0 : }
16669 :
16670 0 : void ClientIncidentReport::CopyFrom(const ClientIncidentReport& from) {
16671 0 : if (&from == this) return;
16672 0 : Clear();
16673 0 : MergeFrom(from);
16674 : }
16675 :
16676 0 : bool ClientIncidentReport::IsInitialized() const {
16677 :
16678 0 : if (!::google::protobuf::internal::AllAreInitialized(this->incident())) return false;
16679 0 : if (has_download()) {
16680 0 : if (!this->download().IsInitialized()) return false;
16681 : }
16682 0 : if (has_environment()) {
16683 0 : if (!this->environment().IsInitialized()) return false;
16684 : }
16685 0 : return true;
16686 : }
16687 :
16688 0 : void ClientIncidentReport::Swap(ClientIncidentReport* other) {
16689 0 : if (other != this) {
16690 0 : incident_.Swap(&other->incident_);
16691 0 : std::swap(download_, other->download_);
16692 0 : std::swap(environment_, other->environment_);
16693 0 : std::swap(population_, other->population_);
16694 0 : std::swap(extension_data_, other->extension_data_);
16695 0 : std::swap(non_binary_download_, other->non_binary_download_);
16696 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
16697 0 : _unknown_fields_.swap(other->_unknown_fields_);
16698 0 : std::swap(_cached_size_, other->_cached_size_);
16699 : }
16700 0 : }
16701 :
16702 0 : ::std::string ClientIncidentReport::GetTypeName() const {
16703 0 : return "safe_browsing.ClientIncidentReport";
16704 : }
16705 :
16706 :
16707 : // ===================================================================
16708 :
16709 : #ifndef _MSC_VER
16710 : const int ClientIncidentResponse_EnvironmentRequest::kDllIndexFieldNumber;
16711 : #endif // !_MSC_VER
16712 :
16713 0 : ClientIncidentResponse_EnvironmentRequest::ClientIncidentResponse_EnvironmentRequest()
16714 0 : : ::google::protobuf::MessageLite() {
16715 0 : SharedCtor();
16716 : // @@protoc_insertion_point(constructor:safe_browsing.ClientIncidentResponse.EnvironmentRequest)
16717 0 : }
16718 :
16719 0 : void ClientIncidentResponse_EnvironmentRequest::InitAsDefaultInstance() {
16720 0 : }
16721 :
16722 0 : ClientIncidentResponse_EnvironmentRequest::ClientIncidentResponse_EnvironmentRequest(const ClientIncidentResponse_EnvironmentRequest& from)
16723 0 : : ::google::protobuf::MessageLite() {
16724 0 : SharedCtor();
16725 0 : MergeFrom(from);
16726 : // @@protoc_insertion_point(copy_constructor:safe_browsing.ClientIncidentResponse.EnvironmentRequest)
16727 0 : }
16728 :
16729 0 : void ClientIncidentResponse_EnvironmentRequest::SharedCtor() {
16730 0 : _cached_size_ = 0;
16731 0 : dll_index_ = 0;
16732 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
16733 0 : }
16734 :
16735 0 : ClientIncidentResponse_EnvironmentRequest::~ClientIncidentResponse_EnvironmentRequest() {
16736 : // @@protoc_insertion_point(destructor:safe_browsing.ClientIncidentResponse.EnvironmentRequest)
16737 0 : SharedDtor();
16738 0 : }
16739 :
16740 0 : void ClientIncidentResponse_EnvironmentRequest::SharedDtor() {
16741 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
16742 0 : if (this != &default_instance()) {
16743 : #else
16744 : if (this != default_instance_) {
16745 : #endif
16746 : }
16747 0 : }
16748 :
16749 0 : void ClientIncidentResponse_EnvironmentRequest::SetCachedSize(int size) const {
16750 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
16751 0 : _cached_size_ = size;
16752 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
16753 0 : }
16754 0 : const ClientIncidentResponse_EnvironmentRequest& ClientIncidentResponse_EnvironmentRequest::default_instance() {
16755 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
16756 0 : protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
16757 : #else
16758 : if (default_instance_ == NULL) protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
16759 : #endif
16760 0 : return *default_instance_;
16761 : }
16762 :
16763 : ClientIncidentResponse_EnvironmentRequest* ClientIncidentResponse_EnvironmentRequest::default_instance_ = NULL;
16764 :
16765 0 : ClientIncidentResponse_EnvironmentRequest* ClientIncidentResponse_EnvironmentRequest::New() const {
16766 0 : return new ClientIncidentResponse_EnvironmentRequest;
16767 : }
16768 :
16769 0 : void ClientIncidentResponse_EnvironmentRequest::Clear() {
16770 0 : dll_index_ = 0;
16771 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
16772 0 : mutable_unknown_fields()->clear();
16773 0 : }
16774 :
16775 0 : bool ClientIncidentResponse_EnvironmentRequest::MergePartialFromCodedStream(
16776 : ::google::protobuf::io::CodedInputStream* input) {
16777 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
16778 : ::google::protobuf::uint32 tag;
16779 : ::google::protobuf::io::StringOutputStream unknown_fields_string(
16780 0 : mutable_unknown_fields());
16781 : ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
16782 0 : &unknown_fields_string);
16783 : // @@protoc_insertion_point(parse_start:safe_browsing.ClientIncidentResponse.EnvironmentRequest)
16784 : for (;;) {
16785 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
16786 0 : tag = p.first;
16787 0 : if (!p.second) goto handle_unusual;
16788 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
16789 : // optional int32 dll_index = 1;
16790 : case 1: {
16791 0 : if (tag == 8) {
16792 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
16793 : ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
16794 : input, &dll_index_)));
16795 0 : set_has_dll_index();
16796 : } else {
16797 0 : goto handle_unusual;
16798 : }
16799 0 : if (input->ExpectAtEnd()) goto success;
16800 0 : break;
16801 : }
16802 :
16803 : default: {
16804 : handle_unusual:
16805 0 : if (tag == 0 ||
16806 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
16807 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
16808 0 : goto success;
16809 : }
16810 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(
16811 : input, tag, &unknown_fields_stream));
16812 0 : break;
16813 : }
16814 : }
16815 0 : }
16816 : success:
16817 : // @@protoc_insertion_point(parse_success:safe_browsing.ClientIncidentResponse.EnvironmentRequest)
16818 0 : return true;
16819 : failure:
16820 : // @@protoc_insertion_point(parse_failure:safe_browsing.ClientIncidentResponse.EnvironmentRequest)
16821 0 : return false;
16822 : #undef DO_
16823 : }
16824 :
16825 0 : void ClientIncidentResponse_EnvironmentRequest::SerializeWithCachedSizes(
16826 : ::google::protobuf::io::CodedOutputStream* output) const {
16827 : // @@protoc_insertion_point(serialize_start:safe_browsing.ClientIncidentResponse.EnvironmentRequest)
16828 : // optional int32 dll_index = 1;
16829 0 : if (has_dll_index()) {
16830 0 : ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->dll_index(), output);
16831 : }
16832 :
16833 0 : output->WriteRaw(unknown_fields().data(),
16834 0 : unknown_fields().size());
16835 : // @@protoc_insertion_point(serialize_end:safe_browsing.ClientIncidentResponse.EnvironmentRequest)
16836 0 : }
16837 :
16838 0 : int ClientIncidentResponse_EnvironmentRequest::ByteSize() const {
16839 0 : int total_size = 0;
16840 :
16841 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
16842 : // optional int32 dll_index = 1;
16843 0 : if (has_dll_index()) {
16844 0 : total_size += 1 +
16845 0 : ::google::protobuf::internal::WireFormatLite::Int32Size(
16846 : this->dll_index());
16847 : }
16848 :
16849 : }
16850 0 : total_size += unknown_fields().size();
16851 :
16852 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
16853 0 : _cached_size_ = total_size;
16854 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
16855 0 : return total_size;
16856 : }
16857 :
16858 0 : void ClientIncidentResponse_EnvironmentRequest::CheckTypeAndMergeFrom(
16859 : const ::google::protobuf::MessageLite& from) {
16860 0 : MergeFrom(*::google::protobuf::down_cast<const ClientIncidentResponse_EnvironmentRequest*>(&from));
16861 0 : }
16862 :
16863 0 : void ClientIncidentResponse_EnvironmentRequest::MergeFrom(const ClientIncidentResponse_EnvironmentRequest& from) {
16864 0 : GOOGLE_CHECK_NE(&from, this);
16865 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
16866 0 : if (from.has_dll_index()) {
16867 0 : set_dll_index(from.dll_index());
16868 : }
16869 : }
16870 0 : mutable_unknown_fields()->append(from.unknown_fields());
16871 0 : }
16872 :
16873 0 : void ClientIncidentResponse_EnvironmentRequest::CopyFrom(const ClientIncidentResponse_EnvironmentRequest& from) {
16874 0 : if (&from == this) return;
16875 0 : Clear();
16876 0 : MergeFrom(from);
16877 : }
16878 :
16879 0 : bool ClientIncidentResponse_EnvironmentRequest::IsInitialized() const {
16880 :
16881 0 : return true;
16882 : }
16883 :
16884 0 : void ClientIncidentResponse_EnvironmentRequest::Swap(ClientIncidentResponse_EnvironmentRequest* other) {
16885 0 : if (other != this) {
16886 0 : std::swap(dll_index_, other->dll_index_);
16887 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
16888 0 : _unknown_fields_.swap(other->_unknown_fields_);
16889 0 : std::swap(_cached_size_, other->_cached_size_);
16890 : }
16891 0 : }
16892 :
16893 0 : ::std::string ClientIncidentResponse_EnvironmentRequest::GetTypeName() const {
16894 0 : return "safe_browsing.ClientIncidentResponse.EnvironmentRequest";
16895 : }
16896 :
16897 :
16898 : // -------------------------------------------------------------------
16899 :
16900 : #ifndef _MSC_VER
16901 : const int ClientIncidentResponse::kTokenFieldNumber;
16902 : const int ClientIncidentResponse::kDownloadRequestedFieldNumber;
16903 : const int ClientIncidentResponse::kEnvironmentRequestsFieldNumber;
16904 : #endif // !_MSC_VER
16905 :
16906 0 : ClientIncidentResponse::ClientIncidentResponse()
16907 0 : : ::google::protobuf::MessageLite() {
16908 0 : SharedCtor();
16909 : // @@protoc_insertion_point(constructor:safe_browsing.ClientIncidentResponse)
16910 0 : }
16911 :
16912 0 : void ClientIncidentResponse::InitAsDefaultInstance() {
16913 0 : }
16914 :
16915 0 : ClientIncidentResponse::ClientIncidentResponse(const ClientIncidentResponse& from)
16916 0 : : ::google::protobuf::MessageLite() {
16917 0 : SharedCtor();
16918 0 : MergeFrom(from);
16919 : // @@protoc_insertion_point(copy_constructor:safe_browsing.ClientIncidentResponse)
16920 0 : }
16921 :
16922 0 : void ClientIncidentResponse::SharedCtor() {
16923 0 : ::google::protobuf::internal::GetEmptyString();
16924 0 : _cached_size_ = 0;
16925 0 : token_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
16926 0 : download_requested_ = false;
16927 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
16928 0 : }
16929 :
16930 0 : ClientIncidentResponse::~ClientIncidentResponse() {
16931 : // @@protoc_insertion_point(destructor:safe_browsing.ClientIncidentResponse)
16932 0 : SharedDtor();
16933 0 : }
16934 :
16935 0 : void ClientIncidentResponse::SharedDtor() {
16936 0 : if (token_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
16937 0 : delete token_;
16938 : }
16939 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
16940 0 : if (this != &default_instance()) {
16941 : #else
16942 : if (this != default_instance_) {
16943 : #endif
16944 : }
16945 0 : }
16946 :
16947 0 : void ClientIncidentResponse::SetCachedSize(int size) const {
16948 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
16949 0 : _cached_size_ = size;
16950 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
16951 0 : }
16952 0 : const ClientIncidentResponse& ClientIncidentResponse::default_instance() {
16953 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
16954 0 : protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
16955 : #else
16956 : if (default_instance_ == NULL) protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
16957 : #endif
16958 0 : return *default_instance_;
16959 : }
16960 :
16961 : ClientIncidentResponse* ClientIncidentResponse::default_instance_ = NULL;
16962 :
16963 0 : ClientIncidentResponse* ClientIncidentResponse::New() const {
16964 0 : return new ClientIncidentResponse;
16965 : }
16966 :
16967 0 : void ClientIncidentResponse::Clear() {
16968 0 : if (_has_bits_[0 / 32] & 3) {
16969 0 : if (has_token()) {
16970 0 : if (token_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
16971 0 : token_->clear();
16972 : }
16973 : }
16974 0 : download_requested_ = false;
16975 : }
16976 0 : environment_requests_.Clear();
16977 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
16978 0 : mutable_unknown_fields()->clear();
16979 0 : }
16980 :
16981 0 : bool ClientIncidentResponse::MergePartialFromCodedStream(
16982 : ::google::protobuf::io::CodedInputStream* input) {
16983 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
16984 : ::google::protobuf::uint32 tag;
16985 : ::google::protobuf::io::StringOutputStream unknown_fields_string(
16986 0 : mutable_unknown_fields());
16987 : ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
16988 0 : &unknown_fields_string);
16989 : // @@protoc_insertion_point(parse_start:safe_browsing.ClientIncidentResponse)
16990 : for (;;) {
16991 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
16992 0 : tag = p.first;
16993 0 : if (!p.second) goto handle_unusual;
16994 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
16995 : // optional bytes token = 1;
16996 : case 1: {
16997 0 : if (tag == 10) {
16998 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
16999 : input, this->mutable_token()));
17000 : } else {
17001 0 : goto handle_unusual;
17002 : }
17003 0 : if (input->ExpectTag(16)) goto parse_download_requested;
17004 0 : break;
17005 : }
17006 :
17007 : // optional bool download_requested = 2;
17008 : case 2: {
17009 0 : if (tag == 16) {
17010 : parse_download_requested:
17011 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
17012 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
17013 : input, &download_requested_)));
17014 0 : set_has_download_requested();
17015 : } else {
17016 0 : goto handle_unusual;
17017 : }
17018 0 : if (input->ExpectTag(26)) goto parse_environment_requests;
17019 0 : break;
17020 : }
17021 :
17022 : // repeated .safe_browsing.ClientIncidentResponse.EnvironmentRequest environment_requests = 3;
17023 : case 3: {
17024 0 : if (tag == 26) {
17025 : parse_environment_requests:
17026 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
17027 : input, add_environment_requests()));
17028 : } else {
17029 0 : goto handle_unusual;
17030 : }
17031 0 : if (input->ExpectTag(26)) goto parse_environment_requests;
17032 0 : if (input->ExpectAtEnd()) goto success;
17033 0 : break;
17034 : }
17035 :
17036 : default: {
17037 : handle_unusual:
17038 0 : if (tag == 0 ||
17039 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
17040 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
17041 0 : goto success;
17042 : }
17043 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(
17044 : input, tag, &unknown_fields_stream));
17045 0 : break;
17046 : }
17047 : }
17048 0 : }
17049 : success:
17050 : // @@protoc_insertion_point(parse_success:safe_browsing.ClientIncidentResponse)
17051 0 : return true;
17052 : failure:
17053 : // @@protoc_insertion_point(parse_failure:safe_browsing.ClientIncidentResponse)
17054 0 : return false;
17055 : #undef DO_
17056 : }
17057 :
17058 0 : void ClientIncidentResponse::SerializeWithCachedSizes(
17059 : ::google::protobuf::io::CodedOutputStream* output) const {
17060 : // @@protoc_insertion_point(serialize_start:safe_browsing.ClientIncidentResponse)
17061 : // optional bytes token = 1;
17062 0 : if (has_token()) {
17063 0 : ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
17064 0 : 1, this->token(), output);
17065 : }
17066 :
17067 : // optional bool download_requested = 2;
17068 0 : if (has_download_requested()) {
17069 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->download_requested(), output);
17070 : }
17071 :
17072 : // repeated .safe_browsing.ClientIncidentResponse.EnvironmentRequest environment_requests = 3;
17073 0 : for (int i = 0; i < this->environment_requests_size(); i++) {
17074 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
17075 0 : 3, this->environment_requests(i), output);
17076 : }
17077 :
17078 0 : output->WriteRaw(unknown_fields().data(),
17079 0 : unknown_fields().size());
17080 : // @@protoc_insertion_point(serialize_end:safe_browsing.ClientIncidentResponse)
17081 0 : }
17082 :
17083 0 : int ClientIncidentResponse::ByteSize() const {
17084 0 : int total_size = 0;
17085 :
17086 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
17087 : // optional bytes token = 1;
17088 0 : if (has_token()) {
17089 0 : total_size += 1 +
17090 0 : ::google::protobuf::internal::WireFormatLite::BytesSize(
17091 : this->token());
17092 : }
17093 :
17094 : // optional bool download_requested = 2;
17095 0 : if (has_download_requested()) {
17096 0 : total_size += 1 + 1;
17097 : }
17098 :
17099 : }
17100 : // repeated .safe_browsing.ClientIncidentResponse.EnvironmentRequest environment_requests = 3;
17101 0 : total_size += 1 * this->environment_requests_size();
17102 0 : for (int i = 0; i < this->environment_requests_size(); i++) {
17103 0 : total_size +=
17104 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
17105 : this->environment_requests(i));
17106 : }
17107 :
17108 0 : total_size += unknown_fields().size();
17109 :
17110 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
17111 0 : _cached_size_ = total_size;
17112 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
17113 0 : return total_size;
17114 : }
17115 :
17116 0 : void ClientIncidentResponse::CheckTypeAndMergeFrom(
17117 : const ::google::protobuf::MessageLite& from) {
17118 0 : MergeFrom(*::google::protobuf::down_cast<const ClientIncidentResponse*>(&from));
17119 0 : }
17120 :
17121 0 : void ClientIncidentResponse::MergeFrom(const ClientIncidentResponse& from) {
17122 0 : GOOGLE_CHECK_NE(&from, this);
17123 0 : environment_requests_.MergeFrom(from.environment_requests_);
17124 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
17125 0 : if (from.has_token()) {
17126 0 : set_token(from.token());
17127 : }
17128 0 : if (from.has_download_requested()) {
17129 0 : set_download_requested(from.download_requested());
17130 : }
17131 : }
17132 0 : mutable_unknown_fields()->append(from.unknown_fields());
17133 0 : }
17134 :
17135 0 : void ClientIncidentResponse::CopyFrom(const ClientIncidentResponse& from) {
17136 0 : if (&from == this) return;
17137 0 : Clear();
17138 0 : MergeFrom(from);
17139 : }
17140 :
17141 0 : bool ClientIncidentResponse::IsInitialized() const {
17142 :
17143 0 : return true;
17144 : }
17145 :
17146 0 : void ClientIncidentResponse::Swap(ClientIncidentResponse* other) {
17147 0 : if (other != this) {
17148 0 : std::swap(token_, other->token_);
17149 0 : std::swap(download_requested_, other->download_requested_);
17150 0 : environment_requests_.Swap(&other->environment_requests_);
17151 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
17152 0 : _unknown_fields_.swap(other->_unknown_fields_);
17153 0 : std::swap(_cached_size_, other->_cached_size_);
17154 : }
17155 0 : }
17156 :
17157 0 : ::std::string ClientIncidentResponse::GetTypeName() const {
17158 0 : return "safe_browsing.ClientIncidentResponse";
17159 : }
17160 :
17161 :
17162 : // ===================================================================
17163 :
17164 : #ifndef _MSC_VER
17165 : const int DownloadMetadata::kDownloadIdFieldNumber;
17166 : const int DownloadMetadata::kDownloadFieldNumber;
17167 : #endif // !_MSC_VER
17168 :
17169 0 : DownloadMetadata::DownloadMetadata()
17170 0 : : ::google::protobuf::MessageLite() {
17171 0 : SharedCtor();
17172 : // @@protoc_insertion_point(constructor:safe_browsing.DownloadMetadata)
17173 0 : }
17174 :
17175 0 : void DownloadMetadata::InitAsDefaultInstance() {
17176 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
17177 0 : download_ = const_cast< ::safe_browsing::ClientIncidentReport_DownloadDetails*>(
17178 0 : ::safe_browsing::ClientIncidentReport_DownloadDetails::internal_default_instance());
17179 : #else
17180 : download_ = const_cast< ::safe_browsing::ClientIncidentReport_DownloadDetails*>(&::safe_browsing::ClientIncidentReport_DownloadDetails::default_instance());
17181 : #endif
17182 0 : }
17183 :
17184 0 : DownloadMetadata::DownloadMetadata(const DownloadMetadata& from)
17185 0 : : ::google::protobuf::MessageLite() {
17186 0 : SharedCtor();
17187 0 : MergeFrom(from);
17188 : // @@protoc_insertion_point(copy_constructor:safe_browsing.DownloadMetadata)
17189 0 : }
17190 :
17191 0 : void DownloadMetadata::SharedCtor() {
17192 0 : _cached_size_ = 0;
17193 0 : download_id_ = 0u;
17194 0 : download_ = NULL;
17195 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
17196 0 : }
17197 :
17198 0 : DownloadMetadata::~DownloadMetadata() {
17199 : // @@protoc_insertion_point(destructor:safe_browsing.DownloadMetadata)
17200 0 : SharedDtor();
17201 0 : }
17202 :
17203 0 : void DownloadMetadata::SharedDtor() {
17204 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
17205 0 : if (this != &default_instance()) {
17206 : #else
17207 : if (this != default_instance_) {
17208 : #endif
17209 0 : delete download_;
17210 : }
17211 0 : }
17212 :
17213 0 : void DownloadMetadata::SetCachedSize(int size) const {
17214 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
17215 0 : _cached_size_ = size;
17216 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
17217 0 : }
17218 0 : const DownloadMetadata& DownloadMetadata::default_instance() {
17219 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
17220 0 : protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
17221 : #else
17222 : if (default_instance_ == NULL) protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
17223 : #endif
17224 0 : return *default_instance_;
17225 : }
17226 :
17227 : DownloadMetadata* DownloadMetadata::default_instance_ = NULL;
17228 :
17229 0 : DownloadMetadata* DownloadMetadata::New() const {
17230 0 : return new DownloadMetadata;
17231 : }
17232 :
17233 0 : void DownloadMetadata::Clear() {
17234 0 : if (_has_bits_[0 / 32] & 3) {
17235 0 : download_id_ = 0u;
17236 0 : if (has_download()) {
17237 0 : if (download_ != NULL) download_->::safe_browsing::ClientIncidentReport_DownloadDetails::Clear();
17238 : }
17239 : }
17240 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
17241 0 : mutable_unknown_fields()->clear();
17242 0 : }
17243 :
17244 0 : bool DownloadMetadata::MergePartialFromCodedStream(
17245 : ::google::protobuf::io::CodedInputStream* input) {
17246 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
17247 : ::google::protobuf::uint32 tag;
17248 : ::google::protobuf::io::StringOutputStream unknown_fields_string(
17249 0 : mutable_unknown_fields());
17250 : ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
17251 0 : &unknown_fields_string);
17252 : // @@protoc_insertion_point(parse_start:safe_browsing.DownloadMetadata)
17253 : for (;;) {
17254 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
17255 0 : tag = p.first;
17256 0 : if (!p.second) goto handle_unusual;
17257 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
17258 : // optional uint32 download_id = 1;
17259 : case 1: {
17260 0 : if (tag == 8) {
17261 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
17262 : ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
17263 : input, &download_id_)));
17264 0 : set_has_download_id();
17265 : } else {
17266 0 : goto handle_unusual;
17267 : }
17268 0 : if (input->ExpectTag(18)) goto parse_download;
17269 0 : break;
17270 : }
17271 :
17272 : // optional .safe_browsing.ClientIncidentReport.DownloadDetails download = 2;
17273 : case 2: {
17274 0 : if (tag == 18) {
17275 : parse_download:
17276 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
17277 : input, mutable_download()));
17278 : } else {
17279 0 : goto handle_unusual;
17280 : }
17281 0 : if (input->ExpectAtEnd()) goto success;
17282 0 : break;
17283 : }
17284 :
17285 : default: {
17286 : handle_unusual:
17287 0 : if (tag == 0 ||
17288 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
17289 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
17290 0 : goto success;
17291 : }
17292 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(
17293 : input, tag, &unknown_fields_stream));
17294 0 : break;
17295 : }
17296 : }
17297 0 : }
17298 : success:
17299 : // @@protoc_insertion_point(parse_success:safe_browsing.DownloadMetadata)
17300 0 : return true;
17301 : failure:
17302 : // @@protoc_insertion_point(parse_failure:safe_browsing.DownloadMetadata)
17303 0 : return false;
17304 : #undef DO_
17305 : }
17306 :
17307 0 : void DownloadMetadata::SerializeWithCachedSizes(
17308 : ::google::protobuf::io::CodedOutputStream* output) const {
17309 : // @@protoc_insertion_point(serialize_start:safe_browsing.DownloadMetadata)
17310 : // optional uint32 download_id = 1;
17311 0 : if (has_download_id()) {
17312 0 : ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->download_id(), output);
17313 : }
17314 :
17315 : // optional .safe_browsing.ClientIncidentReport.DownloadDetails download = 2;
17316 0 : if (has_download()) {
17317 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
17318 0 : 2, this->download(), output);
17319 : }
17320 :
17321 0 : output->WriteRaw(unknown_fields().data(),
17322 0 : unknown_fields().size());
17323 : // @@protoc_insertion_point(serialize_end:safe_browsing.DownloadMetadata)
17324 0 : }
17325 :
17326 0 : int DownloadMetadata::ByteSize() const {
17327 0 : int total_size = 0;
17328 :
17329 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
17330 : // optional uint32 download_id = 1;
17331 0 : if (has_download_id()) {
17332 0 : total_size += 1 +
17333 0 : ::google::protobuf::internal::WireFormatLite::UInt32Size(
17334 : this->download_id());
17335 : }
17336 :
17337 : // optional .safe_browsing.ClientIncidentReport.DownloadDetails download = 2;
17338 0 : if (has_download()) {
17339 0 : total_size += 1 +
17340 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
17341 : this->download());
17342 : }
17343 :
17344 : }
17345 0 : total_size += unknown_fields().size();
17346 :
17347 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
17348 0 : _cached_size_ = total_size;
17349 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
17350 0 : return total_size;
17351 : }
17352 :
17353 0 : void DownloadMetadata::CheckTypeAndMergeFrom(
17354 : const ::google::protobuf::MessageLite& from) {
17355 0 : MergeFrom(*::google::protobuf::down_cast<const DownloadMetadata*>(&from));
17356 0 : }
17357 :
17358 0 : void DownloadMetadata::MergeFrom(const DownloadMetadata& from) {
17359 0 : GOOGLE_CHECK_NE(&from, this);
17360 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
17361 0 : if (from.has_download_id()) {
17362 0 : set_download_id(from.download_id());
17363 : }
17364 0 : if (from.has_download()) {
17365 0 : mutable_download()->::safe_browsing::ClientIncidentReport_DownloadDetails::MergeFrom(from.download());
17366 : }
17367 : }
17368 0 : mutable_unknown_fields()->append(from.unknown_fields());
17369 0 : }
17370 :
17371 0 : void DownloadMetadata::CopyFrom(const DownloadMetadata& from) {
17372 0 : if (&from == this) return;
17373 0 : Clear();
17374 0 : MergeFrom(from);
17375 : }
17376 :
17377 0 : bool DownloadMetadata::IsInitialized() const {
17378 :
17379 0 : if (has_download()) {
17380 0 : if (!this->download().IsInitialized()) return false;
17381 : }
17382 0 : return true;
17383 : }
17384 :
17385 0 : void DownloadMetadata::Swap(DownloadMetadata* other) {
17386 0 : if (other != this) {
17387 0 : std::swap(download_id_, other->download_id_);
17388 0 : std::swap(download_, other->download_);
17389 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
17390 0 : _unknown_fields_.swap(other->_unknown_fields_);
17391 0 : std::swap(_cached_size_, other->_cached_size_);
17392 : }
17393 0 : }
17394 :
17395 0 : ::std::string DownloadMetadata::GetTypeName() const {
17396 0 : return "safe_browsing.DownloadMetadata";
17397 : }
17398 :
17399 :
17400 : // ===================================================================
17401 :
17402 0 : bool ClientSafeBrowsingReportRequest_ReportType_IsValid(int value) {
17403 0 : switch(value) {
17404 : case 0:
17405 : case 1:
17406 : case 2:
17407 : case 3:
17408 : case 4:
17409 : case 5:
17410 : case 6:
17411 : case 7:
17412 : case 10:
17413 0 : return true;
17414 : default:
17415 0 : return false;
17416 : }
17417 : }
17418 :
17419 : #ifndef _MSC_VER
17420 : const ClientSafeBrowsingReportRequest_ReportType ClientSafeBrowsingReportRequest::UNKNOWN;
17421 : const ClientSafeBrowsingReportRequest_ReportType ClientSafeBrowsingReportRequest::URL_PHISHING;
17422 : const ClientSafeBrowsingReportRequest_ReportType ClientSafeBrowsingReportRequest::URL_MALWARE;
17423 : const ClientSafeBrowsingReportRequest_ReportType ClientSafeBrowsingReportRequest::URL_UNWANTED;
17424 : const ClientSafeBrowsingReportRequest_ReportType ClientSafeBrowsingReportRequest::CLIENT_SIDE_PHISHING_URL;
17425 : const ClientSafeBrowsingReportRequest_ReportType ClientSafeBrowsingReportRequest::CLIENT_SIDE_MALWARE_URL;
17426 : const ClientSafeBrowsingReportRequest_ReportType ClientSafeBrowsingReportRequest::DANGEROUS_DOWNLOAD_RECOVERY;
17427 : const ClientSafeBrowsingReportRequest_ReportType ClientSafeBrowsingReportRequest::DANGEROUS_DOWNLOAD_WARNING;
17428 : const ClientSafeBrowsingReportRequest_ReportType ClientSafeBrowsingReportRequest::DANGEROUS_DOWNLOAD_BY_API;
17429 : const ClientSafeBrowsingReportRequest_ReportType ClientSafeBrowsingReportRequest::ReportType_MIN;
17430 : const ClientSafeBrowsingReportRequest_ReportType ClientSafeBrowsingReportRequest::ReportType_MAX;
17431 : const int ClientSafeBrowsingReportRequest::ReportType_ARRAYSIZE;
17432 : #endif // _MSC_VER
17433 : #ifndef _MSC_VER
17434 : const int ClientSafeBrowsingReportRequest_HTTPHeader::kNameFieldNumber;
17435 : const int ClientSafeBrowsingReportRequest_HTTPHeader::kValueFieldNumber;
17436 : #endif // !_MSC_VER
17437 :
17438 0 : ClientSafeBrowsingReportRequest_HTTPHeader::ClientSafeBrowsingReportRequest_HTTPHeader()
17439 0 : : ::google::protobuf::MessageLite() {
17440 0 : SharedCtor();
17441 : // @@protoc_insertion_point(constructor:safe_browsing.ClientSafeBrowsingReportRequest.HTTPHeader)
17442 0 : }
17443 :
17444 0 : void ClientSafeBrowsingReportRequest_HTTPHeader::InitAsDefaultInstance() {
17445 0 : }
17446 :
17447 0 : ClientSafeBrowsingReportRequest_HTTPHeader::ClientSafeBrowsingReportRequest_HTTPHeader(const ClientSafeBrowsingReportRequest_HTTPHeader& from)
17448 0 : : ::google::protobuf::MessageLite() {
17449 0 : SharedCtor();
17450 0 : MergeFrom(from);
17451 : // @@protoc_insertion_point(copy_constructor:safe_browsing.ClientSafeBrowsingReportRequest.HTTPHeader)
17452 0 : }
17453 :
17454 0 : void ClientSafeBrowsingReportRequest_HTTPHeader::SharedCtor() {
17455 0 : ::google::protobuf::internal::GetEmptyString();
17456 0 : _cached_size_ = 0;
17457 0 : name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
17458 0 : value_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
17459 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
17460 0 : }
17461 :
17462 0 : ClientSafeBrowsingReportRequest_HTTPHeader::~ClientSafeBrowsingReportRequest_HTTPHeader() {
17463 : // @@protoc_insertion_point(destructor:safe_browsing.ClientSafeBrowsingReportRequest.HTTPHeader)
17464 0 : SharedDtor();
17465 0 : }
17466 :
17467 0 : void ClientSafeBrowsingReportRequest_HTTPHeader::SharedDtor() {
17468 0 : if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
17469 0 : delete name_;
17470 : }
17471 0 : if (value_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
17472 0 : delete value_;
17473 : }
17474 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
17475 0 : if (this != &default_instance()) {
17476 : #else
17477 : if (this != default_instance_) {
17478 : #endif
17479 : }
17480 0 : }
17481 :
17482 0 : void ClientSafeBrowsingReportRequest_HTTPHeader::SetCachedSize(int size) const {
17483 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
17484 0 : _cached_size_ = size;
17485 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
17486 0 : }
17487 0 : const ClientSafeBrowsingReportRequest_HTTPHeader& ClientSafeBrowsingReportRequest_HTTPHeader::default_instance() {
17488 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
17489 0 : protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
17490 : #else
17491 : if (default_instance_ == NULL) protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
17492 : #endif
17493 0 : return *default_instance_;
17494 : }
17495 :
17496 : ClientSafeBrowsingReportRequest_HTTPHeader* ClientSafeBrowsingReportRequest_HTTPHeader::default_instance_ = NULL;
17497 :
17498 0 : ClientSafeBrowsingReportRequest_HTTPHeader* ClientSafeBrowsingReportRequest_HTTPHeader::New() const {
17499 0 : return new ClientSafeBrowsingReportRequest_HTTPHeader;
17500 : }
17501 :
17502 0 : void ClientSafeBrowsingReportRequest_HTTPHeader::Clear() {
17503 0 : if (_has_bits_[0 / 32] & 3) {
17504 0 : if (has_name()) {
17505 0 : if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
17506 0 : name_->clear();
17507 : }
17508 : }
17509 0 : if (has_value()) {
17510 0 : if (value_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
17511 0 : value_->clear();
17512 : }
17513 : }
17514 : }
17515 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
17516 0 : mutable_unknown_fields()->clear();
17517 0 : }
17518 :
17519 0 : bool ClientSafeBrowsingReportRequest_HTTPHeader::MergePartialFromCodedStream(
17520 : ::google::protobuf::io::CodedInputStream* input) {
17521 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
17522 : ::google::protobuf::uint32 tag;
17523 : ::google::protobuf::io::StringOutputStream unknown_fields_string(
17524 0 : mutable_unknown_fields());
17525 : ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
17526 0 : &unknown_fields_string);
17527 : // @@protoc_insertion_point(parse_start:safe_browsing.ClientSafeBrowsingReportRequest.HTTPHeader)
17528 : for (;;) {
17529 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
17530 0 : tag = p.first;
17531 0 : if (!p.second) goto handle_unusual;
17532 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
17533 : // required bytes name = 1;
17534 : case 1: {
17535 0 : if (tag == 10) {
17536 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
17537 : input, this->mutable_name()));
17538 : } else {
17539 0 : goto handle_unusual;
17540 : }
17541 0 : if (input->ExpectTag(18)) goto parse_value;
17542 0 : break;
17543 : }
17544 :
17545 : // optional bytes value = 2;
17546 : case 2: {
17547 0 : if (tag == 18) {
17548 : parse_value:
17549 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
17550 : input, this->mutable_value()));
17551 : } else {
17552 0 : goto handle_unusual;
17553 : }
17554 0 : if (input->ExpectAtEnd()) goto success;
17555 0 : break;
17556 : }
17557 :
17558 : default: {
17559 : handle_unusual:
17560 0 : if (tag == 0 ||
17561 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
17562 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
17563 0 : goto success;
17564 : }
17565 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(
17566 : input, tag, &unknown_fields_stream));
17567 0 : break;
17568 : }
17569 : }
17570 0 : }
17571 : success:
17572 : // @@protoc_insertion_point(parse_success:safe_browsing.ClientSafeBrowsingReportRequest.HTTPHeader)
17573 0 : return true;
17574 : failure:
17575 : // @@protoc_insertion_point(parse_failure:safe_browsing.ClientSafeBrowsingReportRequest.HTTPHeader)
17576 0 : return false;
17577 : #undef DO_
17578 : }
17579 :
17580 0 : void ClientSafeBrowsingReportRequest_HTTPHeader::SerializeWithCachedSizes(
17581 : ::google::protobuf::io::CodedOutputStream* output) const {
17582 : // @@protoc_insertion_point(serialize_start:safe_browsing.ClientSafeBrowsingReportRequest.HTTPHeader)
17583 : // required bytes name = 1;
17584 0 : if (has_name()) {
17585 0 : ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
17586 0 : 1, this->name(), output);
17587 : }
17588 :
17589 : // optional bytes value = 2;
17590 0 : if (has_value()) {
17591 0 : ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
17592 0 : 2, this->value(), output);
17593 : }
17594 :
17595 0 : output->WriteRaw(unknown_fields().data(),
17596 0 : unknown_fields().size());
17597 : // @@protoc_insertion_point(serialize_end:safe_browsing.ClientSafeBrowsingReportRequest.HTTPHeader)
17598 0 : }
17599 :
17600 0 : int ClientSafeBrowsingReportRequest_HTTPHeader::ByteSize() const {
17601 0 : int total_size = 0;
17602 :
17603 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
17604 : // required bytes name = 1;
17605 0 : if (has_name()) {
17606 0 : total_size += 1 +
17607 0 : ::google::protobuf::internal::WireFormatLite::BytesSize(
17608 : this->name());
17609 : }
17610 :
17611 : // optional bytes value = 2;
17612 0 : if (has_value()) {
17613 0 : total_size += 1 +
17614 0 : ::google::protobuf::internal::WireFormatLite::BytesSize(
17615 : this->value());
17616 : }
17617 :
17618 : }
17619 0 : total_size += unknown_fields().size();
17620 :
17621 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
17622 0 : _cached_size_ = total_size;
17623 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
17624 0 : return total_size;
17625 : }
17626 :
17627 0 : void ClientSafeBrowsingReportRequest_HTTPHeader::CheckTypeAndMergeFrom(
17628 : const ::google::protobuf::MessageLite& from) {
17629 0 : MergeFrom(*::google::protobuf::down_cast<const ClientSafeBrowsingReportRequest_HTTPHeader*>(&from));
17630 0 : }
17631 :
17632 0 : void ClientSafeBrowsingReportRequest_HTTPHeader::MergeFrom(const ClientSafeBrowsingReportRequest_HTTPHeader& from) {
17633 0 : GOOGLE_CHECK_NE(&from, this);
17634 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
17635 0 : if (from.has_name()) {
17636 0 : set_name(from.name());
17637 : }
17638 0 : if (from.has_value()) {
17639 0 : set_value(from.value());
17640 : }
17641 : }
17642 0 : mutable_unknown_fields()->append(from.unknown_fields());
17643 0 : }
17644 :
17645 0 : void ClientSafeBrowsingReportRequest_HTTPHeader::CopyFrom(const ClientSafeBrowsingReportRequest_HTTPHeader& from) {
17646 0 : if (&from == this) return;
17647 0 : Clear();
17648 0 : MergeFrom(from);
17649 : }
17650 :
17651 0 : bool ClientSafeBrowsingReportRequest_HTTPHeader::IsInitialized() const {
17652 0 : if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
17653 :
17654 0 : return true;
17655 : }
17656 :
17657 0 : void ClientSafeBrowsingReportRequest_HTTPHeader::Swap(ClientSafeBrowsingReportRequest_HTTPHeader* other) {
17658 0 : if (other != this) {
17659 0 : std::swap(name_, other->name_);
17660 0 : std::swap(value_, other->value_);
17661 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
17662 0 : _unknown_fields_.swap(other->_unknown_fields_);
17663 0 : std::swap(_cached_size_, other->_cached_size_);
17664 : }
17665 0 : }
17666 :
17667 0 : ::std::string ClientSafeBrowsingReportRequest_HTTPHeader::GetTypeName() const {
17668 0 : return "safe_browsing.ClientSafeBrowsingReportRequest.HTTPHeader";
17669 : }
17670 :
17671 :
17672 : // -------------------------------------------------------------------
17673 :
17674 : #ifndef _MSC_VER
17675 : const int ClientSafeBrowsingReportRequest_HTTPRequest_FirstLine::kVerbFieldNumber;
17676 : const int ClientSafeBrowsingReportRequest_HTTPRequest_FirstLine::kUriFieldNumber;
17677 : const int ClientSafeBrowsingReportRequest_HTTPRequest_FirstLine::kVersionFieldNumber;
17678 : #endif // !_MSC_VER
17679 :
17680 0 : ClientSafeBrowsingReportRequest_HTTPRequest_FirstLine::ClientSafeBrowsingReportRequest_HTTPRequest_FirstLine()
17681 0 : : ::google::protobuf::MessageLite() {
17682 0 : SharedCtor();
17683 : // @@protoc_insertion_point(constructor:safe_browsing.ClientSafeBrowsingReportRequest.HTTPRequest.FirstLine)
17684 0 : }
17685 :
17686 0 : void ClientSafeBrowsingReportRequest_HTTPRequest_FirstLine::InitAsDefaultInstance() {
17687 0 : }
17688 :
17689 0 : ClientSafeBrowsingReportRequest_HTTPRequest_FirstLine::ClientSafeBrowsingReportRequest_HTTPRequest_FirstLine(const ClientSafeBrowsingReportRequest_HTTPRequest_FirstLine& from)
17690 0 : : ::google::protobuf::MessageLite() {
17691 0 : SharedCtor();
17692 0 : MergeFrom(from);
17693 : // @@protoc_insertion_point(copy_constructor:safe_browsing.ClientSafeBrowsingReportRequest.HTTPRequest.FirstLine)
17694 0 : }
17695 :
17696 0 : void ClientSafeBrowsingReportRequest_HTTPRequest_FirstLine::SharedCtor() {
17697 0 : ::google::protobuf::internal::GetEmptyString();
17698 0 : _cached_size_ = 0;
17699 0 : verb_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
17700 0 : uri_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
17701 0 : version_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
17702 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
17703 0 : }
17704 :
17705 0 : ClientSafeBrowsingReportRequest_HTTPRequest_FirstLine::~ClientSafeBrowsingReportRequest_HTTPRequest_FirstLine() {
17706 : // @@protoc_insertion_point(destructor:safe_browsing.ClientSafeBrowsingReportRequest.HTTPRequest.FirstLine)
17707 0 : SharedDtor();
17708 0 : }
17709 :
17710 0 : void ClientSafeBrowsingReportRequest_HTTPRequest_FirstLine::SharedDtor() {
17711 0 : if (verb_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
17712 0 : delete verb_;
17713 : }
17714 0 : if (uri_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
17715 0 : delete uri_;
17716 : }
17717 0 : if (version_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
17718 0 : delete version_;
17719 : }
17720 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
17721 0 : if (this != &default_instance()) {
17722 : #else
17723 : if (this != default_instance_) {
17724 : #endif
17725 : }
17726 0 : }
17727 :
17728 0 : void ClientSafeBrowsingReportRequest_HTTPRequest_FirstLine::SetCachedSize(int size) const {
17729 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
17730 0 : _cached_size_ = size;
17731 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
17732 0 : }
17733 0 : const ClientSafeBrowsingReportRequest_HTTPRequest_FirstLine& ClientSafeBrowsingReportRequest_HTTPRequest_FirstLine::default_instance() {
17734 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
17735 0 : protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
17736 : #else
17737 : if (default_instance_ == NULL) protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
17738 : #endif
17739 0 : return *default_instance_;
17740 : }
17741 :
17742 : ClientSafeBrowsingReportRequest_HTTPRequest_FirstLine* ClientSafeBrowsingReportRequest_HTTPRequest_FirstLine::default_instance_ = NULL;
17743 :
17744 0 : ClientSafeBrowsingReportRequest_HTTPRequest_FirstLine* ClientSafeBrowsingReportRequest_HTTPRequest_FirstLine::New() const {
17745 0 : return new ClientSafeBrowsingReportRequest_HTTPRequest_FirstLine;
17746 : }
17747 :
17748 0 : void ClientSafeBrowsingReportRequest_HTTPRequest_FirstLine::Clear() {
17749 0 : if (_has_bits_[0 / 32] & 7) {
17750 0 : if (has_verb()) {
17751 0 : if (verb_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
17752 0 : verb_->clear();
17753 : }
17754 : }
17755 0 : if (has_uri()) {
17756 0 : if (uri_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
17757 0 : uri_->clear();
17758 : }
17759 : }
17760 0 : if (has_version()) {
17761 0 : if (version_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
17762 0 : version_->clear();
17763 : }
17764 : }
17765 : }
17766 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
17767 0 : mutable_unknown_fields()->clear();
17768 0 : }
17769 :
17770 0 : bool ClientSafeBrowsingReportRequest_HTTPRequest_FirstLine::MergePartialFromCodedStream(
17771 : ::google::protobuf::io::CodedInputStream* input) {
17772 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
17773 : ::google::protobuf::uint32 tag;
17774 : ::google::protobuf::io::StringOutputStream unknown_fields_string(
17775 0 : mutable_unknown_fields());
17776 : ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
17777 0 : &unknown_fields_string);
17778 : // @@protoc_insertion_point(parse_start:safe_browsing.ClientSafeBrowsingReportRequest.HTTPRequest.FirstLine)
17779 : for (;;) {
17780 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
17781 0 : tag = p.first;
17782 0 : if (!p.second) goto handle_unusual;
17783 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
17784 : // optional bytes verb = 1;
17785 : case 1: {
17786 0 : if (tag == 10) {
17787 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
17788 : input, this->mutable_verb()));
17789 : } else {
17790 0 : goto handle_unusual;
17791 : }
17792 0 : if (input->ExpectTag(18)) goto parse_uri;
17793 0 : break;
17794 : }
17795 :
17796 : // optional bytes uri = 2;
17797 : case 2: {
17798 0 : if (tag == 18) {
17799 : parse_uri:
17800 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
17801 : input, this->mutable_uri()));
17802 : } else {
17803 0 : goto handle_unusual;
17804 : }
17805 0 : if (input->ExpectTag(26)) goto parse_version;
17806 0 : break;
17807 : }
17808 :
17809 : // optional bytes version = 3;
17810 : case 3: {
17811 0 : if (tag == 26) {
17812 : parse_version:
17813 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
17814 : input, this->mutable_version()));
17815 : } else {
17816 0 : goto handle_unusual;
17817 : }
17818 0 : if (input->ExpectAtEnd()) goto success;
17819 0 : break;
17820 : }
17821 :
17822 : default: {
17823 : handle_unusual:
17824 0 : if (tag == 0 ||
17825 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
17826 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
17827 0 : goto success;
17828 : }
17829 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(
17830 : input, tag, &unknown_fields_stream));
17831 0 : break;
17832 : }
17833 : }
17834 0 : }
17835 : success:
17836 : // @@protoc_insertion_point(parse_success:safe_browsing.ClientSafeBrowsingReportRequest.HTTPRequest.FirstLine)
17837 0 : return true;
17838 : failure:
17839 : // @@protoc_insertion_point(parse_failure:safe_browsing.ClientSafeBrowsingReportRequest.HTTPRequest.FirstLine)
17840 0 : return false;
17841 : #undef DO_
17842 : }
17843 :
17844 0 : void ClientSafeBrowsingReportRequest_HTTPRequest_FirstLine::SerializeWithCachedSizes(
17845 : ::google::protobuf::io::CodedOutputStream* output) const {
17846 : // @@protoc_insertion_point(serialize_start:safe_browsing.ClientSafeBrowsingReportRequest.HTTPRequest.FirstLine)
17847 : // optional bytes verb = 1;
17848 0 : if (has_verb()) {
17849 0 : ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
17850 0 : 1, this->verb(), output);
17851 : }
17852 :
17853 : // optional bytes uri = 2;
17854 0 : if (has_uri()) {
17855 0 : ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
17856 0 : 2, this->uri(), output);
17857 : }
17858 :
17859 : // optional bytes version = 3;
17860 0 : if (has_version()) {
17861 0 : ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
17862 0 : 3, this->version(), output);
17863 : }
17864 :
17865 0 : output->WriteRaw(unknown_fields().data(),
17866 0 : unknown_fields().size());
17867 : // @@protoc_insertion_point(serialize_end:safe_browsing.ClientSafeBrowsingReportRequest.HTTPRequest.FirstLine)
17868 0 : }
17869 :
17870 0 : int ClientSafeBrowsingReportRequest_HTTPRequest_FirstLine::ByteSize() const {
17871 0 : int total_size = 0;
17872 :
17873 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
17874 : // optional bytes verb = 1;
17875 0 : if (has_verb()) {
17876 0 : total_size += 1 +
17877 0 : ::google::protobuf::internal::WireFormatLite::BytesSize(
17878 : this->verb());
17879 : }
17880 :
17881 : // optional bytes uri = 2;
17882 0 : if (has_uri()) {
17883 0 : total_size += 1 +
17884 0 : ::google::protobuf::internal::WireFormatLite::BytesSize(
17885 : this->uri());
17886 : }
17887 :
17888 : // optional bytes version = 3;
17889 0 : if (has_version()) {
17890 0 : total_size += 1 +
17891 0 : ::google::protobuf::internal::WireFormatLite::BytesSize(
17892 : this->version());
17893 : }
17894 :
17895 : }
17896 0 : total_size += unknown_fields().size();
17897 :
17898 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
17899 0 : _cached_size_ = total_size;
17900 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
17901 0 : return total_size;
17902 : }
17903 :
17904 0 : void ClientSafeBrowsingReportRequest_HTTPRequest_FirstLine::CheckTypeAndMergeFrom(
17905 : const ::google::protobuf::MessageLite& from) {
17906 0 : MergeFrom(*::google::protobuf::down_cast<const ClientSafeBrowsingReportRequest_HTTPRequest_FirstLine*>(&from));
17907 0 : }
17908 :
17909 0 : void ClientSafeBrowsingReportRequest_HTTPRequest_FirstLine::MergeFrom(const ClientSafeBrowsingReportRequest_HTTPRequest_FirstLine& from) {
17910 0 : GOOGLE_CHECK_NE(&from, this);
17911 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
17912 0 : if (from.has_verb()) {
17913 0 : set_verb(from.verb());
17914 : }
17915 0 : if (from.has_uri()) {
17916 0 : set_uri(from.uri());
17917 : }
17918 0 : if (from.has_version()) {
17919 0 : set_version(from.version());
17920 : }
17921 : }
17922 0 : mutable_unknown_fields()->append(from.unknown_fields());
17923 0 : }
17924 :
17925 0 : void ClientSafeBrowsingReportRequest_HTTPRequest_FirstLine::CopyFrom(const ClientSafeBrowsingReportRequest_HTTPRequest_FirstLine& from) {
17926 0 : if (&from == this) return;
17927 0 : Clear();
17928 0 : MergeFrom(from);
17929 : }
17930 :
17931 0 : bool ClientSafeBrowsingReportRequest_HTTPRequest_FirstLine::IsInitialized() const {
17932 :
17933 0 : return true;
17934 : }
17935 :
17936 0 : void ClientSafeBrowsingReportRequest_HTTPRequest_FirstLine::Swap(ClientSafeBrowsingReportRequest_HTTPRequest_FirstLine* other) {
17937 0 : if (other != this) {
17938 0 : std::swap(verb_, other->verb_);
17939 0 : std::swap(uri_, other->uri_);
17940 0 : std::swap(version_, other->version_);
17941 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
17942 0 : _unknown_fields_.swap(other->_unknown_fields_);
17943 0 : std::swap(_cached_size_, other->_cached_size_);
17944 : }
17945 0 : }
17946 :
17947 0 : ::std::string ClientSafeBrowsingReportRequest_HTTPRequest_FirstLine::GetTypeName() const {
17948 0 : return "safe_browsing.ClientSafeBrowsingReportRequest.HTTPRequest.FirstLine";
17949 : }
17950 :
17951 :
17952 : // -------------------------------------------------------------------
17953 :
17954 : #ifndef _MSC_VER
17955 : const int ClientSafeBrowsingReportRequest_HTTPRequest::kFirstlineFieldNumber;
17956 : const int ClientSafeBrowsingReportRequest_HTTPRequest::kHeadersFieldNumber;
17957 : const int ClientSafeBrowsingReportRequest_HTTPRequest::kBodyFieldNumber;
17958 : const int ClientSafeBrowsingReportRequest_HTTPRequest::kBodydigestFieldNumber;
17959 : const int ClientSafeBrowsingReportRequest_HTTPRequest::kBodylengthFieldNumber;
17960 : #endif // !_MSC_VER
17961 :
17962 0 : ClientSafeBrowsingReportRequest_HTTPRequest::ClientSafeBrowsingReportRequest_HTTPRequest()
17963 0 : : ::google::protobuf::MessageLite() {
17964 0 : SharedCtor();
17965 : // @@protoc_insertion_point(constructor:safe_browsing.ClientSafeBrowsingReportRequest.HTTPRequest)
17966 0 : }
17967 :
17968 0 : void ClientSafeBrowsingReportRequest_HTTPRequest::InitAsDefaultInstance() {
17969 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
17970 0 : firstline_ = const_cast< ::safe_browsing::ClientSafeBrowsingReportRequest_HTTPRequest_FirstLine*>(
17971 0 : ::safe_browsing::ClientSafeBrowsingReportRequest_HTTPRequest_FirstLine::internal_default_instance());
17972 : #else
17973 : firstline_ = const_cast< ::safe_browsing::ClientSafeBrowsingReportRequest_HTTPRequest_FirstLine*>(&::safe_browsing::ClientSafeBrowsingReportRequest_HTTPRequest_FirstLine::default_instance());
17974 : #endif
17975 0 : }
17976 :
17977 0 : ClientSafeBrowsingReportRequest_HTTPRequest::ClientSafeBrowsingReportRequest_HTTPRequest(const ClientSafeBrowsingReportRequest_HTTPRequest& from)
17978 0 : : ::google::protobuf::MessageLite() {
17979 0 : SharedCtor();
17980 0 : MergeFrom(from);
17981 : // @@protoc_insertion_point(copy_constructor:safe_browsing.ClientSafeBrowsingReportRequest.HTTPRequest)
17982 0 : }
17983 :
17984 0 : void ClientSafeBrowsingReportRequest_HTTPRequest::SharedCtor() {
17985 0 : ::google::protobuf::internal::GetEmptyString();
17986 0 : _cached_size_ = 0;
17987 0 : firstline_ = NULL;
17988 0 : body_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
17989 0 : bodydigest_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
17990 0 : bodylength_ = 0;
17991 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
17992 0 : }
17993 :
17994 0 : ClientSafeBrowsingReportRequest_HTTPRequest::~ClientSafeBrowsingReportRequest_HTTPRequest() {
17995 : // @@protoc_insertion_point(destructor:safe_browsing.ClientSafeBrowsingReportRequest.HTTPRequest)
17996 0 : SharedDtor();
17997 0 : }
17998 :
17999 0 : void ClientSafeBrowsingReportRequest_HTTPRequest::SharedDtor() {
18000 0 : if (body_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
18001 0 : delete body_;
18002 : }
18003 0 : if (bodydigest_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
18004 0 : delete bodydigest_;
18005 : }
18006 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
18007 0 : if (this != &default_instance()) {
18008 : #else
18009 : if (this != default_instance_) {
18010 : #endif
18011 0 : delete firstline_;
18012 : }
18013 0 : }
18014 :
18015 0 : void ClientSafeBrowsingReportRequest_HTTPRequest::SetCachedSize(int size) const {
18016 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
18017 0 : _cached_size_ = size;
18018 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
18019 0 : }
18020 0 : const ClientSafeBrowsingReportRequest_HTTPRequest& ClientSafeBrowsingReportRequest_HTTPRequest::default_instance() {
18021 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
18022 0 : protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
18023 : #else
18024 : if (default_instance_ == NULL) protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
18025 : #endif
18026 0 : return *default_instance_;
18027 : }
18028 :
18029 : ClientSafeBrowsingReportRequest_HTTPRequest* ClientSafeBrowsingReportRequest_HTTPRequest::default_instance_ = NULL;
18030 :
18031 0 : ClientSafeBrowsingReportRequest_HTTPRequest* ClientSafeBrowsingReportRequest_HTTPRequest::New() const {
18032 0 : return new ClientSafeBrowsingReportRequest_HTTPRequest;
18033 : }
18034 :
18035 0 : void ClientSafeBrowsingReportRequest_HTTPRequest::Clear() {
18036 0 : if (_has_bits_[0 / 32] & 29) {
18037 0 : if (has_firstline()) {
18038 0 : if (firstline_ != NULL) firstline_->::safe_browsing::ClientSafeBrowsingReportRequest_HTTPRequest_FirstLine::Clear();
18039 : }
18040 0 : if (has_body()) {
18041 0 : if (body_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
18042 0 : body_->clear();
18043 : }
18044 : }
18045 0 : if (has_bodydigest()) {
18046 0 : if (bodydigest_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
18047 0 : bodydigest_->clear();
18048 : }
18049 : }
18050 0 : bodylength_ = 0;
18051 : }
18052 0 : headers_.Clear();
18053 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
18054 0 : mutable_unknown_fields()->clear();
18055 0 : }
18056 :
18057 0 : bool ClientSafeBrowsingReportRequest_HTTPRequest::MergePartialFromCodedStream(
18058 : ::google::protobuf::io::CodedInputStream* input) {
18059 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
18060 : ::google::protobuf::uint32 tag;
18061 : ::google::protobuf::io::StringOutputStream unknown_fields_string(
18062 0 : mutable_unknown_fields());
18063 : ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
18064 0 : &unknown_fields_string);
18065 : // @@protoc_insertion_point(parse_start:safe_browsing.ClientSafeBrowsingReportRequest.HTTPRequest)
18066 : for (;;) {
18067 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
18068 0 : tag = p.first;
18069 0 : if (!p.second) goto handle_unusual;
18070 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
18071 : // optional .safe_browsing.ClientSafeBrowsingReportRequest.HTTPRequest.FirstLine firstline = 1;
18072 : case 1: {
18073 0 : if (tag == 10) {
18074 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
18075 : input, mutable_firstline()));
18076 : } else {
18077 0 : goto handle_unusual;
18078 : }
18079 0 : if (input->ExpectTag(18)) goto parse_headers;
18080 0 : break;
18081 : }
18082 :
18083 : // repeated .safe_browsing.ClientSafeBrowsingReportRequest.HTTPHeader headers = 2;
18084 : case 2: {
18085 0 : if (tag == 18) {
18086 : parse_headers:
18087 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
18088 : input, add_headers()));
18089 : } else {
18090 0 : goto handle_unusual;
18091 : }
18092 0 : if (input->ExpectTag(18)) goto parse_headers;
18093 0 : if (input->ExpectTag(26)) goto parse_body;
18094 0 : break;
18095 : }
18096 :
18097 : // optional bytes body = 3;
18098 : case 3: {
18099 0 : if (tag == 26) {
18100 : parse_body:
18101 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
18102 : input, this->mutable_body()));
18103 : } else {
18104 0 : goto handle_unusual;
18105 : }
18106 0 : if (input->ExpectTag(34)) goto parse_bodydigest;
18107 0 : break;
18108 : }
18109 :
18110 : // optional bytes bodydigest = 4;
18111 : case 4: {
18112 0 : if (tag == 34) {
18113 : parse_bodydigest:
18114 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
18115 : input, this->mutable_bodydigest()));
18116 : } else {
18117 0 : goto handle_unusual;
18118 : }
18119 0 : if (input->ExpectTag(40)) goto parse_bodylength;
18120 0 : break;
18121 : }
18122 :
18123 : // optional int32 bodylength = 5;
18124 : case 5: {
18125 0 : if (tag == 40) {
18126 : parse_bodylength:
18127 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
18128 : ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
18129 : input, &bodylength_)));
18130 0 : set_has_bodylength();
18131 : } else {
18132 0 : goto handle_unusual;
18133 : }
18134 0 : if (input->ExpectAtEnd()) goto success;
18135 0 : break;
18136 : }
18137 :
18138 : default: {
18139 : handle_unusual:
18140 0 : if (tag == 0 ||
18141 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
18142 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
18143 0 : goto success;
18144 : }
18145 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(
18146 : input, tag, &unknown_fields_stream));
18147 0 : break;
18148 : }
18149 : }
18150 0 : }
18151 : success:
18152 : // @@protoc_insertion_point(parse_success:safe_browsing.ClientSafeBrowsingReportRequest.HTTPRequest)
18153 0 : return true;
18154 : failure:
18155 : // @@protoc_insertion_point(parse_failure:safe_browsing.ClientSafeBrowsingReportRequest.HTTPRequest)
18156 0 : return false;
18157 : #undef DO_
18158 : }
18159 :
18160 0 : void ClientSafeBrowsingReportRequest_HTTPRequest::SerializeWithCachedSizes(
18161 : ::google::protobuf::io::CodedOutputStream* output) const {
18162 : // @@protoc_insertion_point(serialize_start:safe_browsing.ClientSafeBrowsingReportRequest.HTTPRequest)
18163 : // optional .safe_browsing.ClientSafeBrowsingReportRequest.HTTPRequest.FirstLine firstline = 1;
18164 0 : if (has_firstline()) {
18165 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
18166 0 : 1, this->firstline(), output);
18167 : }
18168 :
18169 : // repeated .safe_browsing.ClientSafeBrowsingReportRequest.HTTPHeader headers = 2;
18170 0 : for (int i = 0; i < this->headers_size(); i++) {
18171 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
18172 0 : 2, this->headers(i), output);
18173 : }
18174 :
18175 : // optional bytes body = 3;
18176 0 : if (has_body()) {
18177 0 : ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
18178 0 : 3, this->body(), output);
18179 : }
18180 :
18181 : // optional bytes bodydigest = 4;
18182 0 : if (has_bodydigest()) {
18183 0 : ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
18184 0 : 4, this->bodydigest(), output);
18185 : }
18186 :
18187 : // optional int32 bodylength = 5;
18188 0 : if (has_bodylength()) {
18189 0 : ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->bodylength(), output);
18190 : }
18191 :
18192 0 : output->WriteRaw(unknown_fields().data(),
18193 0 : unknown_fields().size());
18194 : // @@protoc_insertion_point(serialize_end:safe_browsing.ClientSafeBrowsingReportRequest.HTTPRequest)
18195 0 : }
18196 :
18197 0 : int ClientSafeBrowsingReportRequest_HTTPRequest::ByteSize() const {
18198 0 : int total_size = 0;
18199 :
18200 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
18201 : // optional .safe_browsing.ClientSafeBrowsingReportRequest.HTTPRequest.FirstLine firstline = 1;
18202 0 : if (has_firstline()) {
18203 0 : total_size += 1 +
18204 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
18205 : this->firstline());
18206 : }
18207 :
18208 : // optional bytes body = 3;
18209 0 : if (has_body()) {
18210 0 : total_size += 1 +
18211 0 : ::google::protobuf::internal::WireFormatLite::BytesSize(
18212 : this->body());
18213 : }
18214 :
18215 : // optional bytes bodydigest = 4;
18216 0 : if (has_bodydigest()) {
18217 0 : total_size += 1 +
18218 0 : ::google::protobuf::internal::WireFormatLite::BytesSize(
18219 : this->bodydigest());
18220 : }
18221 :
18222 : // optional int32 bodylength = 5;
18223 0 : if (has_bodylength()) {
18224 0 : total_size += 1 +
18225 0 : ::google::protobuf::internal::WireFormatLite::Int32Size(
18226 : this->bodylength());
18227 : }
18228 :
18229 : }
18230 : // repeated .safe_browsing.ClientSafeBrowsingReportRequest.HTTPHeader headers = 2;
18231 0 : total_size += 1 * this->headers_size();
18232 0 : for (int i = 0; i < this->headers_size(); i++) {
18233 0 : total_size +=
18234 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
18235 : this->headers(i));
18236 : }
18237 :
18238 0 : total_size += unknown_fields().size();
18239 :
18240 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
18241 0 : _cached_size_ = total_size;
18242 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
18243 0 : return total_size;
18244 : }
18245 :
18246 0 : void ClientSafeBrowsingReportRequest_HTTPRequest::CheckTypeAndMergeFrom(
18247 : const ::google::protobuf::MessageLite& from) {
18248 0 : MergeFrom(*::google::protobuf::down_cast<const ClientSafeBrowsingReportRequest_HTTPRequest*>(&from));
18249 0 : }
18250 :
18251 0 : void ClientSafeBrowsingReportRequest_HTTPRequest::MergeFrom(const ClientSafeBrowsingReportRequest_HTTPRequest& from) {
18252 0 : GOOGLE_CHECK_NE(&from, this);
18253 0 : headers_.MergeFrom(from.headers_);
18254 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
18255 0 : if (from.has_firstline()) {
18256 0 : mutable_firstline()->::safe_browsing::ClientSafeBrowsingReportRequest_HTTPRequest_FirstLine::MergeFrom(from.firstline());
18257 : }
18258 0 : if (from.has_body()) {
18259 0 : set_body(from.body());
18260 : }
18261 0 : if (from.has_bodydigest()) {
18262 0 : set_bodydigest(from.bodydigest());
18263 : }
18264 0 : if (from.has_bodylength()) {
18265 0 : set_bodylength(from.bodylength());
18266 : }
18267 : }
18268 0 : mutable_unknown_fields()->append(from.unknown_fields());
18269 0 : }
18270 :
18271 0 : void ClientSafeBrowsingReportRequest_HTTPRequest::CopyFrom(const ClientSafeBrowsingReportRequest_HTTPRequest& from) {
18272 0 : if (&from == this) return;
18273 0 : Clear();
18274 0 : MergeFrom(from);
18275 : }
18276 :
18277 0 : bool ClientSafeBrowsingReportRequest_HTTPRequest::IsInitialized() const {
18278 :
18279 0 : if (!::google::protobuf::internal::AllAreInitialized(this->headers())) return false;
18280 0 : return true;
18281 : }
18282 :
18283 0 : void ClientSafeBrowsingReportRequest_HTTPRequest::Swap(ClientSafeBrowsingReportRequest_HTTPRequest* other) {
18284 0 : if (other != this) {
18285 0 : std::swap(firstline_, other->firstline_);
18286 0 : headers_.Swap(&other->headers_);
18287 0 : std::swap(body_, other->body_);
18288 0 : std::swap(bodydigest_, other->bodydigest_);
18289 0 : std::swap(bodylength_, other->bodylength_);
18290 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
18291 0 : _unknown_fields_.swap(other->_unknown_fields_);
18292 0 : std::swap(_cached_size_, other->_cached_size_);
18293 : }
18294 0 : }
18295 :
18296 0 : ::std::string ClientSafeBrowsingReportRequest_HTTPRequest::GetTypeName() const {
18297 0 : return "safe_browsing.ClientSafeBrowsingReportRequest.HTTPRequest";
18298 : }
18299 :
18300 :
18301 : // -------------------------------------------------------------------
18302 :
18303 : #ifndef _MSC_VER
18304 : const int ClientSafeBrowsingReportRequest_HTTPResponse_FirstLine::kCodeFieldNumber;
18305 : const int ClientSafeBrowsingReportRequest_HTTPResponse_FirstLine::kReasonFieldNumber;
18306 : const int ClientSafeBrowsingReportRequest_HTTPResponse_FirstLine::kVersionFieldNumber;
18307 : #endif // !_MSC_VER
18308 :
18309 0 : ClientSafeBrowsingReportRequest_HTTPResponse_FirstLine::ClientSafeBrowsingReportRequest_HTTPResponse_FirstLine()
18310 0 : : ::google::protobuf::MessageLite() {
18311 0 : SharedCtor();
18312 : // @@protoc_insertion_point(constructor:safe_browsing.ClientSafeBrowsingReportRequest.HTTPResponse.FirstLine)
18313 0 : }
18314 :
18315 0 : void ClientSafeBrowsingReportRequest_HTTPResponse_FirstLine::InitAsDefaultInstance() {
18316 0 : }
18317 :
18318 0 : ClientSafeBrowsingReportRequest_HTTPResponse_FirstLine::ClientSafeBrowsingReportRequest_HTTPResponse_FirstLine(const ClientSafeBrowsingReportRequest_HTTPResponse_FirstLine& from)
18319 0 : : ::google::protobuf::MessageLite() {
18320 0 : SharedCtor();
18321 0 : MergeFrom(from);
18322 : // @@protoc_insertion_point(copy_constructor:safe_browsing.ClientSafeBrowsingReportRequest.HTTPResponse.FirstLine)
18323 0 : }
18324 :
18325 0 : void ClientSafeBrowsingReportRequest_HTTPResponse_FirstLine::SharedCtor() {
18326 0 : ::google::protobuf::internal::GetEmptyString();
18327 0 : _cached_size_ = 0;
18328 0 : code_ = 0;
18329 0 : reason_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
18330 0 : version_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
18331 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
18332 0 : }
18333 :
18334 0 : ClientSafeBrowsingReportRequest_HTTPResponse_FirstLine::~ClientSafeBrowsingReportRequest_HTTPResponse_FirstLine() {
18335 : // @@protoc_insertion_point(destructor:safe_browsing.ClientSafeBrowsingReportRequest.HTTPResponse.FirstLine)
18336 0 : SharedDtor();
18337 0 : }
18338 :
18339 0 : void ClientSafeBrowsingReportRequest_HTTPResponse_FirstLine::SharedDtor() {
18340 0 : if (reason_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
18341 0 : delete reason_;
18342 : }
18343 0 : if (version_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
18344 0 : delete version_;
18345 : }
18346 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
18347 0 : if (this != &default_instance()) {
18348 : #else
18349 : if (this != default_instance_) {
18350 : #endif
18351 : }
18352 0 : }
18353 :
18354 0 : void ClientSafeBrowsingReportRequest_HTTPResponse_FirstLine::SetCachedSize(int size) const {
18355 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
18356 0 : _cached_size_ = size;
18357 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
18358 0 : }
18359 0 : const ClientSafeBrowsingReportRequest_HTTPResponse_FirstLine& ClientSafeBrowsingReportRequest_HTTPResponse_FirstLine::default_instance() {
18360 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
18361 0 : protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
18362 : #else
18363 : if (default_instance_ == NULL) protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
18364 : #endif
18365 0 : return *default_instance_;
18366 : }
18367 :
18368 : ClientSafeBrowsingReportRequest_HTTPResponse_FirstLine* ClientSafeBrowsingReportRequest_HTTPResponse_FirstLine::default_instance_ = NULL;
18369 :
18370 0 : ClientSafeBrowsingReportRequest_HTTPResponse_FirstLine* ClientSafeBrowsingReportRequest_HTTPResponse_FirstLine::New() const {
18371 0 : return new ClientSafeBrowsingReportRequest_HTTPResponse_FirstLine;
18372 : }
18373 :
18374 0 : void ClientSafeBrowsingReportRequest_HTTPResponse_FirstLine::Clear() {
18375 0 : if (_has_bits_[0 / 32] & 7) {
18376 0 : code_ = 0;
18377 0 : if (has_reason()) {
18378 0 : if (reason_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
18379 0 : reason_->clear();
18380 : }
18381 : }
18382 0 : if (has_version()) {
18383 0 : if (version_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
18384 0 : version_->clear();
18385 : }
18386 : }
18387 : }
18388 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
18389 0 : mutable_unknown_fields()->clear();
18390 0 : }
18391 :
18392 0 : bool ClientSafeBrowsingReportRequest_HTTPResponse_FirstLine::MergePartialFromCodedStream(
18393 : ::google::protobuf::io::CodedInputStream* input) {
18394 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
18395 : ::google::protobuf::uint32 tag;
18396 : ::google::protobuf::io::StringOutputStream unknown_fields_string(
18397 0 : mutable_unknown_fields());
18398 : ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
18399 0 : &unknown_fields_string);
18400 : // @@protoc_insertion_point(parse_start:safe_browsing.ClientSafeBrowsingReportRequest.HTTPResponse.FirstLine)
18401 : for (;;) {
18402 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
18403 0 : tag = p.first;
18404 0 : if (!p.second) goto handle_unusual;
18405 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
18406 : // optional int32 code = 1;
18407 : case 1: {
18408 0 : if (tag == 8) {
18409 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
18410 : ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
18411 : input, &code_)));
18412 0 : set_has_code();
18413 : } else {
18414 0 : goto handle_unusual;
18415 : }
18416 0 : if (input->ExpectTag(18)) goto parse_reason;
18417 0 : break;
18418 : }
18419 :
18420 : // optional bytes reason = 2;
18421 : case 2: {
18422 0 : if (tag == 18) {
18423 : parse_reason:
18424 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
18425 : input, this->mutable_reason()));
18426 : } else {
18427 0 : goto handle_unusual;
18428 : }
18429 0 : if (input->ExpectTag(26)) goto parse_version;
18430 0 : break;
18431 : }
18432 :
18433 : // optional bytes version = 3;
18434 : case 3: {
18435 0 : if (tag == 26) {
18436 : parse_version:
18437 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
18438 : input, this->mutable_version()));
18439 : } else {
18440 0 : goto handle_unusual;
18441 : }
18442 0 : if (input->ExpectAtEnd()) goto success;
18443 0 : break;
18444 : }
18445 :
18446 : default: {
18447 : handle_unusual:
18448 0 : if (tag == 0 ||
18449 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
18450 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
18451 0 : goto success;
18452 : }
18453 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(
18454 : input, tag, &unknown_fields_stream));
18455 0 : break;
18456 : }
18457 : }
18458 0 : }
18459 : success:
18460 : // @@protoc_insertion_point(parse_success:safe_browsing.ClientSafeBrowsingReportRequest.HTTPResponse.FirstLine)
18461 0 : return true;
18462 : failure:
18463 : // @@protoc_insertion_point(parse_failure:safe_browsing.ClientSafeBrowsingReportRequest.HTTPResponse.FirstLine)
18464 0 : return false;
18465 : #undef DO_
18466 : }
18467 :
18468 0 : void ClientSafeBrowsingReportRequest_HTTPResponse_FirstLine::SerializeWithCachedSizes(
18469 : ::google::protobuf::io::CodedOutputStream* output) const {
18470 : // @@protoc_insertion_point(serialize_start:safe_browsing.ClientSafeBrowsingReportRequest.HTTPResponse.FirstLine)
18471 : // optional int32 code = 1;
18472 0 : if (has_code()) {
18473 0 : ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->code(), output);
18474 : }
18475 :
18476 : // optional bytes reason = 2;
18477 0 : if (has_reason()) {
18478 0 : ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
18479 0 : 2, this->reason(), output);
18480 : }
18481 :
18482 : // optional bytes version = 3;
18483 0 : if (has_version()) {
18484 0 : ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
18485 0 : 3, this->version(), output);
18486 : }
18487 :
18488 0 : output->WriteRaw(unknown_fields().data(),
18489 0 : unknown_fields().size());
18490 : // @@protoc_insertion_point(serialize_end:safe_browsing.ClientSafeBrowsingReportRequest.HTTPResponse.FirstLine)
18491 0 : }
18492 :
18493 0 : int ClientSafeBrowsingReportRequest_HTTPResponse_FirstLine::ByteSize() const {
18494 0 : int total_size = 0;
18495 :
18496 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
18497 : // optional int32 code = 1;
18498 0 : if (has_code()) {
18499 0 : total_size += 1 +
18500 0 : ::google::protobuf::internal::WireFormatLite::Int32Size(
18501 : this->code());
18502 : }
18503 :
18504 : // optional bytes reason = 2;
18505 0 : if (has_reason()) {
18506 0 : total_size += 1 +
18507 0 : ::google::protobuf::internal::WireFormatLite::BytesSize(
18508 : this->reason());
18509 : }
18510 :
18511 : // optional bytes version = 3;
18512 0 : if (has_version()) {
18513 0 : total_size += 1 +
18514 0 : ::google::protobuf::internal::WireFormatLite::BytesSize(
18515 : this->version());
18516 : }
18517 :
18518 : }
18519 0 : total_size += unknown_fields().size();
18520 :
18521 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
18522 0 : _cached_size_ = total_size;
18523 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
18524 0 : return total_size;
18525 : }
18526 :
18527 0 : void ClientSafeBrowsingReportRequest_HTTPResponse_FirstLine::CheckTypeAndMergeFrom(
18528 : const ::google::protobuf::MessageLite& from) {
18529 0 : MergeFrom(*::google::protobuf::down_cast<const ClientSafeBrowsingReportRequest_HTTPResponse_FirstLine*>(&from));
18530 0 : }
18531 :
18532 0 : void ClientSafeBrowsingReportRequest_HTTPResponse_FirstLine::MergeFrom(const ClientSafeBrowsingReportRequest_HTTPResponse_FirstLine& from) {
18533 0 : GOOGLE_CHECK_NE(&from, this);
18534 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
18535 0 : if (from.has_code()) {
18536 0 : set_code(from.code());
18537 : }
18538 0 : if (from.has_reason()) {
18539 0 : set_reason(from.reason());
18540 : }
18541 0 : if (from.has_version()) {
18542 0 : set_version(from.version());
18543 : }
18544 : }
18545 0 : mutable_unknown_fields()->append(from.unknown_fields());
18546 0 : }
18547 :
18548 0 : void ClientSafeBrowsingReportRequest_HTTPResponse_FirstLine::CopyFrom(const ClientSafeBrowsingReportRequest_HTTPResponse_FirstLine& from) {
18549 0 : if (&from == this) return;
18550 0 : Clear();
18551 0 : MergeFrom(from);
18552 : }
18553 :
18554 0 : bool ClientSafeBrowsingReportRequest_HTTPResponse_FirstLine::IsInitialized() const {
18555 :
18556 0 : return true;
18557 : }
18558 :
18559 0 : void ClientSafeBrowsingReportRequest_HTTPResponse_FirstLine::Swap(ClientSafeBrowsingReportRequest_HTTPResponse_FirstLine* other) {
18560 0 : if (other != this) {
18561 0 : std::swap(code_, other->code_);
18562 0 : std::swap(reason_, other->reason_);
18563 0 : std::swap(version_, other->version_);
18564 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
18565 0 : _unknown_fields_.swap(other->_unknown_fields_);
18566 0 : std::swap(_cached_size_, other->_cached_size_);
18567 : }
18568 0 : }
18569 :
18570 0 : ::std::string ClientSafeBrowsingReportRequest_HTTPResponse_FirstLine::GetTypeName() const {
18571 0 : return "safe_browsing.ClientSafeBrowsingReportRequest.HTTPResponse.FirstLine";
18572 : }
18573 :
18574 :
18575 : // -------------------------------------------------------------------
18576 :
18577 : #ifndef _MSC_VER
18578 : const int ClientSafeBrowsingReportRequest_HTTPResponse::kFirstlineFieldNumber;
18579 : const int ClientSafeBrowsingReportRequest_HTTPResponse::kHeadersFieldNumber;
18580 : const int ClientSafeBrowsingReportRequest_HTTPResponse::kBodyFieldNumber;
18581 : const int ClientSafeBrowsingReportRequest_HTTPResponse::kBodydigestFieldNumber;
18582 : const int ClientSafeBrowsingReportRequest_HTTPResponse::kBodylengthFieldNumber;
18583 : const int ClientSafeBrowsingReportRequest_HTTPResponse::kRemoteIpFieldNumber;
18584 : #endif // !_MSC_VER
18585 :
18586 0 : ClientSafeBrowsingReportRequest_HTTPResponse::ClientSafeBrowsingReportRequest_HTTPResponse()
18587 0 : : ::google::protobuf::MessageLite() {
18588 0 : SharedCtor();
18589 : // @@protoc_insertion_point(constructor:safe_browsing.ClientSafeBrowsingReportRequest.HTTPResponse)
18590 0 : }
18591 :
18592 0 : void ClientSafeBrowsingReportRequest_HTTPResponse::InitAsDefaultInstance() {
18593 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
18594 0 : firstline_ = const_cast< ::safe_browsing::ClientSafeBrowsingReportRequest_HTTPResponse_FirstLine*>(
18595 0 : ::safe_browsing::ClientSafeBrowsingReportRequest_HTTPResponse_FirstLine::internal_default_instance());
18596 : #else
18597 : firstline_ = const_cast< ::safe_browsing::ClientSafeBrowsingReportRequest_HTTPResponse_FirstLine*>(&::safe_browsing::ClientSafeBrowsingReportRequest_HTTPResponse_FirstLine::default_instance());
18598 : #endif
18599 0 : }
18600 :
18601 0 : ClientSafeBrowsingReportRequest_HTTPResponse::ClientSafeBrowsingReportRequest_HTTPResponse(const ClientSafeBrowsingReportRequest_HTTPResponse& from)
18602 0 : : ::google::protobuf::MessageLite() {
18603 0 : SharedCtor();
18604 0 : MergeFrom(from);
18605 : // @@protoc_insertion_point(copy_constructor:safe_browsing.ClientSafeBrowsingReportRequest.HTTPResponse)
18606 0 : }
18607 :
18608 0 : void ClientSafeBrowsingReportRequest_HTTPResponse::SharedCtor() {
18609 0 : ::google::protobuf::internal::GetEmptyString();
18610 0 : _cached_size_ = 0;
18611 0 : firstline_ = NULL;
18612 0 : body_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
18613 0 : bodydigest_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
18614 0 : bodylength_ = 0;
18615 0 : remote_ip_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
18616 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
18617 0 : }
18618 :
18619 0 : ClientSafeBrowsingReportRequest_HTTPResponse::~ClientSafeBrowsingReportRequest_HTTPResponse() {
18620 : // @@protoc_insertion_point(destructor:safe_browsing.ClientSafeBrowsingReportRequest.HTTPResponse)
18621 0 : SharedDtor();
18622 0 : }
18623 :
18624 0 : void ClientSafeBrowsingReportRequest_HTTPResponse::SharedDtor() {
18625 0 : if (body_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
18626 0 : delete body_;
18627 : }
18628 0 : if (bodydigest_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
18629 0 : delete bodydigest_;
18630 : }
18631 0 : if (remote_ip_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
18632 0 : delete remote_ip_;
18633 : }
18634 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
18635 0 : if (this != &default_instance()) {
18636 : #else
18637 : if (this != default_instance_) {
18638 : #endif
18639 0 : delete firstline_;
18640 : }
18641 0 : }
18642 :
18643 0 : void ClientSafeBrowsingReportRequest_HTTPResponse::SetCachedSize(int size) const {
18644 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
18645 0 : _cached_size_ = size;
18646 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
18647 0 : }
18648 0 : const ClientSafeBrowsingReportRequest_HTTPResponse& ClientSafeBrowsingReportRequest_HTTPResponse::default_instance() {
18649 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
18650 0 : protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
18651 : #else
18652 : if (default_instance_ == NULL) protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
18653 : #endif
18654 0 : return *default_instance_;
18655 : }
18656 :
18657 : ClientSafeBrowsingReportRequest_HTTPResponse* ClientSafeBrowsingReportRequest_HTTPResponse::default_instance_ = NULL;
18658 :
18659 0 : ClientSafeBrowsingReportRequest_HTTPResponse* ClientSafeBrowsingReportRequest_HTTPResponse::New() const {
18660 0 : return new ClientSafeBrowsingReportRequest_HTTPResponse;
18661 : }
18662 :
18663 0 : void ClientSafeBrowsingReportRequest_HTTPResponse::Clear() {
18664 0 : if (_has_bits_[0 / 32] & 61) {
18665 0 : if (has_firstline()) {
18666 0 : if (firstline_ != NULL) firstline_->::safe_browsing::ClientSafeBrowsingReportRequest_HTTPResponse_FirstLine::Clear();
18667 : }
18668 0 : if (has_body()) {
18669 0 : if (body_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
18670 0 : body_->clear();
18671 : }
18672 : }
18673 0 : if (has_bodydigest()) {
18674 0 : if (bodydigest_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
18675 0 : bodydigest_->clear();
18676 : }
18677 : }
18678 0 : bodylength_ = 0;
18679 0 : if (has_remote_ip()) {
18680 0 : if (remote_ip_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
18681 0 : remote_ip_->clear();
18682 : }
18683 : }
18684 : }
18685 0 : headers_.Clear();
18686 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
18687 0 : mutable_unknown_fields()->clear();
18688 0 : }
18689 :
18690 0 : bool ClientSafeBrowsingReportRequest_HTTPResponse::MergePartialFromCodedStream(
18691 : ::google::protobuf::io::CodedInputStream* input) {
18692 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
18693 : ::google::protobuf::uint32 tag;
18694 : ::google::protobuf::io::StringOutputStream unknown_fields_string(
18695 0 : mutable_unknown_fields());
18696 : ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
18697 0 : &unknown_fields_string);
18698 : // @@protoc_insertion_point(parse_start:safe_browsing.ClientSafeBrowsingReportRequest.HTTPResponse)
18699 : for (;;) {
18700 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
18701 0 : tag = p.first;
18702 0 : if (!p.second) goto handle_unusual;
18703 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
18704 : // optional .safe_browsing.ClientSafeBrowsingReportRequest.HTTPResponse.FirstLine firstline = 1;
18705 : case 1: {
18706 0 : if (tag == 10) {
18707 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
18708 : input, mutable_firstline()));
18709 : } else {
18710 0 : goto handle_unusual;
18711 : }
18712 0 : if (input->ExpectTag(18)) goto parse_headers;
18713 0 : break;
18714 : }
18715 :
18716 : // repeated .safe_browsing.ClientSafeBrowsingReportRequest.HTTPHeader headers = 2;
18717 : case 2: {
18718 0 : if (tag == 18) {
18719 : parse_headers:
18720 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
18721 : input, add_headers()));
18722 : } else {
18723 0 : goto handle_unusual;
18724 : }
18725 0 : if (input->ExpectTag(18)) goto parse_headers;
18726 0 : if (input->ExpectTag(26)) goto parse_body;
18727 0 : break;
18728 : }
18729 :
18730 : // optional bytes body = 3;
18731 : case 3: {
18732 0 : if (tag == 26) {
18733 : parse_body:
18734 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
18735 : input, this->mutable_body()));
18736 : } else {
18737 0 : goto handle_unusual;
18738 : }
18739 0 : if (input->ExpectTag(34)) goto parse_bodydigest;
18740 0 : break;
18741 : }
18742 :
18743 : // optional bytes bodydigest = 4;
18744 : case 4: {
18745 0 : if (tag == 34) {
18746 : parse_bodydigest:
18747 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
18748 : input, this->mutable_bodydigest()));
18749 : } else {
18750 0 : goto handle_unusual;
18751 : }
18752 0 : if (input->ExpectTag(40)) goto parse_bodylength;
18753 0 : break;
18754 : }
18755 :
18756 : // optional int32 bodylength = 5;
18757 : case 5: {
18758 0 : if (tag == 40) {
18759 : parse_bodylength:
18760 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
18761 : ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
18762 : input, &bodylength_)));
18763 0 : set_has_bodylength();
18764 : } else {
18765 0 : goto handle_unusual;
18766 : }
18767 0 : if (input->ExpectTag(50)) goto parse_remote_ip;
18768 0 : break;
18769 : }
18770 :
18771 : // optional bytes remote_ip = 6;
18772 : case 6: {
18773 0 : if (tag == 50) {
18774 : parse_remote_ip:
18775 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
18776 : input, this->mutable_remote_ip()));
18777 : } else {
18778 0 : goto handle_unusual;
18779 : }
18780 0 : if (input->ExpectAtEnd()) goto success;
18781 0 : break;
18782 : }
18783 :
18784 : default: {
18785 : handle_unusual:
18786 0 : if (tag == 0 ||
18787 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
18788 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
18789 0 : goto success;
18790 : }
18791 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(
18792 : input, tag, &unknown_fields_stream));
18793 0 : break;
18794 : }
18795 : }
18796 0 : }
18797 : success:
18798 : // @@protoc_insertion_point(parse_success:safe_browsing.ClientSafeBrowsingReportRequest.HTTPResponse)
18799 0 : return true;
18800 : failure:
18801 : // @@protoc_insertion_point(parse_failure:safe_browsing.ClientSafeBrowsingReportRequest.HTTPResponse)
18802 0 : return false;
18803 : #undef DO_
18804 : }
18805 :
18806 0 : void ClientSafeBrowsingReportRequest_HTTPResponse::SerializeWithCachedSizes(
18807 : ::google::protobuf::io::CodedOutputStream* output) const {
18808 : // @@protoc_insertion_point(serialize_start:safe_browsing.ClientSafeBrowsingReportRequest.HTTPResponse)
18809 : // optional .safe_browsing.ClientSafeBrowsingReportRequest.HTTPResponse.FirstLine firstline = 1;
18810 0 : if (has_firstline()) {
18811 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
18812 0 : 1, this->firstline(), output);
18813 : }
18814 :
18815 : // repeated .safe_browsing.ClientSafeBrowsingReportRequest.HTTPHeader headers = 2;
18816 0 : for (int i = 0; i < this->headers_size(); i++) {
18817 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
18818 0 : 2, this->headers(i), output);
18819 : }
18820 :
18821 : // optional bytes body = 3;
18822 0 : if (has_body()) {
18823 0 : ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
18824 0 : 3, this->body(), output);
18825 : }
18826 :
18827 : // optional bytes bodydigest = 4;
18828 0 : if (has_bodydigest()) {
18829 0 : ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
18830 0 : 4, this->bodydigest(), output);
18831 : }
18832 :
18833 : // optional int32 bodylength = 5;
18834 0 : if (has_bodylength()) {
18835 0 : ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->bodylength(), output);
18836 : }
18837 :
18838 : // optional bytes remote_ip = 6;
18839 0 : if (has_remote_ip()) {
18840 0 : ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
18841 0 : 6, this->remote_ip(), output);
18842 : }
18843 :
18844 0 : output->WriteRaw(unknown_fields().data(),
18845 0 : unknown_fields().size());
18846 : // @@protoc_insertion_point(serialize_end:safe_browsing.ClientSafeBrowsingReportRequest.HTTPResponse)
18847 0 : }
18848 :
18849 0 : int ClientSafeBrowsingReportRequest_HTTPResponse::ByteSize() const {
18850 0 : int total_size = 0;
18851 :
18852 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
18853 : // optional .safe_browsing.ClientSafeBrowsingReportRequest.HTTPResponse.FirstLine firstline = 1;
18854 0 : if (has_firstline()) {
18855 0 : total_size += 1 +
18856 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
18857 : this->firstline());
18858 : }
18859 :
18860 : // optional bytes body = 3;
18861 0 : if (has_body()) {
18862 0 : total_size += 1 +
18863 0 : ::google::protobuf::internal::WireFormatLite::BytesSize(
18864 : this->body());
18865 : }
18866 :
18867 : // optional bytes bodydigest = 4;
18868 0 : if (has_bodydigest()) {
18869 0 : total_size += 1 +
18870 0 : ::google::protobuf::internal::WireFormatLite::BytesSize(
18871 : this->bodydigest());
18872 : }
18873 :
18874 : // optional int32 bodylength = 5;
18875 0 : if (has_bodylength()) {
18876 0 : total_size += 1 +
18877 0 : ::google::protobuf::internal::WireFormatLite::Int32Size(
18878 : this->bodylength());
18879 : }
18880 :
18881 : // optional bytes remote_ip = 6;
18882 0 : if (has_remote_ip()) {
18883 0 : total_size += 1 +
18884 0 : ::google::protobuf::internal::WireFormatLite::BytesSize(
18885 : this->remote_ip());
18886 : }
18887 :
18888 : }
18889 : // repeated .safe_browsing.ClientSafeBrowsingReportRequest.HTTPHeader headers = 2;
18890 0 : total_size += 1 * this->headers_size();
18891 0 : for (int i = 0; i < this->headers_size(); i++) {
18892 0 : total_size +=
18893 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
18894 : this->headers(i));
18895 : }
18896 :
18897 0 : total_size += unknown_fields().size();
18898 :
18899 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
18900 0 : _cached_size_ = total_size;
18901 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
18902 0 : return total_size;
18903 : }
18904 :
18905 0 : void ClientSafeBrowsingReportRequest_HTTPResponse::CheckTypeAndMergeFrom(
18906 : const ::google::protobuf::MessageLite& from) {
18907 0 : MergeFrom(*::google::protobuf::down_cast<const ClientSafeBrowsingReportRequest_HTTPResponse*>(&from));
18908 0 : }
18909 :
18910 0 : void ClientSafeBrowsingReportRequest_HTTPResponse::MergeFrom(const ClientSafeBrowsingReportRequest_HTTPResponse& from) {
18911 0 : GOOGLE_CHECK_NE(&from, this);
18912 0 : headers_.MergeFrom(from.headers_);
18913 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
18914 0 : if (from.has_firstline()) {
18915 0 : mutable_firstline()->::safe_browsing::ClientSafeBrowsingReportRequest_HTTPResponse_FirstLine::MergeFrom(from.firstline());
18916 : }
18917 0 : if (from.has_body()) {
18918 0 : set_body(from.body());
18919 : }
18920 0 : if (from.has_bodydigest()) {
18921 0 : set_bodydigest(from.bodydigest());
18922 : }
18923 0 : if (from.has_bodylength()) {
18924 0 : set_bodylength(from.bodylength());
18925 : }
18926 0 : if (from.has_remote_ip()) {
18927 0 : set_remote_ip(from.remote_ip());
18928 : }
18929 : }
18930 0 : mutable_unknown_fields()->append(from.unknown_fields());
18931 0 : }
18932 :
18933 0 : void ClientSafeBrowsingReportRequest_HTTPResponse::CopyFrom(const ClientSafeBrowsingReportRequest_HTTPResponse& from) {
18934 0 : if (&from == this) return;
18935 0 : Clear();
18936 0 : MergeFrom(from);
18937 : }
18938 :
18939 0 : bool ClientSafeBrowsingReportRequest_HTTPResponse::IsInitialized() const {
18940 :
18941 0 : if (!::google::protobuf::internal::AllAreInitialized(this->headers())) return false;
18942 0 : return true;
18943 : }
18944 :
18945 0 : void ClientSafeBrowsingReportRequest_HTTPResponse::Swap(ClientSafeBrowsingReportRequest_HTTPResponse* other) {
18946 0 : if (other != this) {
18947 0 : std::swap(firstline_, other->firstline_);
18948 0 : headers_.Swap(&other->headers_);
18949 0 : std::swap(body_, other->body_);
18950 0 : std::swap(bodydigest_, other->bodydigest_);
18951 0 : std::swap(bodylength_, other->bodylength_);
18952 0 : std::swap(remote_ip_, other->remote_ip_);
18953 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
18954 0 : _unknown_fields_.swap(other->_unknown_fields_);
18955 0 : std::swap(_cached_size_, other->_cached_size_);
18956 : }
18957 0 : }
18958 :
18959 0 : ::std::string ClientSafeBrowsingReportRequest_HTTPResponse::GetTypeName() const {
18960 0 : return "safe_browsing.ClientSafeBrowsingReportRequest.HTTPResponse";
18961 : }
18962 :
18963 :
18964 : // -------------------------------------------------------------------
18965 :
18966 : #ifndef _MSC_VER
18967 : const int ClientSafeBrowsingReportRequest_Resource::kIdFieldNumber;
18968 : const int ClientSafeBrowsingReportRequest_Resource::kUrlFieldNumber;
18969 : const int ClientSafeBrowsingReportRequest_Resource::kRequestFieldNumber;
18970 : const int ClientSafeBrowsingReportRequest_Resource::kResponseFieldNumber;
18971 : const int ClientSafeBrowsingReportRequest_Resource::kParentIdFieldNumber;
18972 : const int ClientSafeBrowsingReportRequest_Resource::kChildIdsFieldNumber;
18973 : const int ClientSafeBrowsingReportRequest_Resource::kTagNameFieldNumber;
18974 : #endif // !_MSC_VER
18975 :
18976 0 : ClientSafeBrowsingReportRequest_Resource::ClientSafeBrowsingReportRequest_Resource()
18977 0 : : ::google::protobuf::MessageLite() {
18978 0 : SharedCtor();
18979 : // @@protoc_insertion_point(constructor:safe_browsing.ClientSafeBrowsingReportRequest.Resource)
18980 0 : }
18981 :
18982 0 : void ClientSafeBrowsingReportRequest_Resource::InitAsDefaultInstance() {
18983 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
18984 0 : request_ = const_cast< ::safe_browsing::ClientSafeBrowsingReportRequest_HTTPRequest*>(
18985 0 : ::safe_browsing::ClientSafeBrowsingReportRequest_HTTPRequest::internal_default_instance());
18986 : #else
18987 : request_ = const_cast< ::safe_browsing::ClientSafeBrowsingReportRequest_HTTPRequest*>(&::safe_browsing::ClientSafeBrowsingReportRequest_HTTPRequest::default_instance());
18988 : #endif
18989 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
18990 0 : response_ = const_cast< ::safe_browsing::ClientSafeBrowsingReportRequest_HTTPResponse*>(
18991 0 : ::safe_browsing::ClientSafeBrowsingReportRequest_HTTPResponse::internal_default_instance());
18992 : #else
18993 : response_ = const_cast< ::safe_browsing::ClientSafeBrowsingReportRequest_HTTPResponse*>(&::safe_browsing::ClientSafeBrowsingReportRequest_HTTPResponse::default_instance());
18994 : #endif
18995 0 : }
18996 :
18997 0 : ClientSafeBrowsingReportRequest_Resource::ClientSafeBrowsingReportRequest_Resource(const ClientSafeBrowsingReportRequest_Resource& from)
18998 0 : : ::google::protobuf::MessageLite() {
18999 0 : SharedCtor();
19000 0 : MergeFrom(from);
19001 : // @@protoc_insertion_point(copy_constructor:safe_browsing.ClientSafeBrowsingReportRequest.Resource)
19002 0 : }
19003 :
19004 0 : void ClientSafeBrowsingReportRequest_Resource::SharedCtor() {
19005 0 : ::google::protobuf::internal::GetEmptyString();
19006 0 : _cached_size_ = 0;
19007 0 : id_ = 0;
19008 0 : url_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
19009 0 : request_ = NULL;
19010 0 : response_ = NULL;
19011 0 : parent_id_ = 0;
19012 0 : tag_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
19013 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
19014 0 : }
19015 :
19016 0 : ClientSafeBrowsingReportRequest_Resource::~ClientSafeBrowsingReportRequest_Resource() {
19017 : // @@protoc_insertion_point(destructor:safe_browsing.ClientSafeBrowsingReportRequest.Resource)
19018 0 : SharedDtor();
19019 0 : }
19020 :
19021 0 : void ClientSafeBrowsingReportRequest_Resource::SharedDtor() {
19022 0 : if (url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
19023 0 : delete url_;
19024 : }
19025 0 : if (tag_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
19026 0 : delete tag_name_;
19027 : }
19028 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
19029 0 : if (this != &default_instance()) {
19030 : #else
19031 : if (this != default_instance_) {
19032 : #endif
19033 0 : delete request_;
19034 0 : delete response_;
19035 : }
19036 0 : }
19037 :
19038 0 : void ClientSafeBrowsingReportRequest_Resource::SetCachedSize(int size) const {
19039 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
19040 0 : _cached_size_ = size;
19041 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
19042 0 : }
19043 0 : const ClientSafeBrowsingReportRequest_Resource& ClientSafeBrowsingReportRequest_Resource::default_instance() {
19044 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
19045 0 : protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
19046 : #else
19047 : if (default_instance_ == NULL) protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
19048 : #endif
19049 0 : return *default_instance_;
19050 : }
19051 :
19052 : ClientSafeBrowsingReportRequest_Resource* ClientSafeBrowsingReportRequest_Resource::default_instance_ = NULL;
19053 :
19054 0 : ClientSafeBrowsingReportRequest_Resource* ClientSafeBrowsingReportRequest_Resource::New() const {
19055 0 : return new ClientSafeBrowsingReportRequest_Resource;
19056 : }
19057 :
19058 0 : void ClientSafeBrowsingReportRequest_Resource::Clear() {
19059 : #define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \
19060 : &reinterpret_cast<ClientSafeBrowsingReportRequest_Resource*>(16)->f) - \
19061 : reinterpret_cast<char*>(16))
19062 :
19063 : #define ZR_(first, last) do { \
19064 : size_t f = OFFSET_OF_FIELD_(first); \
19065 : size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \
19066 : ::memset(&first, 0, n); \
19067 : } while (0)
19068 :
19069 0 : if (_has_bits_[0 / 32] & 95) {
19070 0 : ZR_(id_, parent_id_);
19071 0 : if (has_url()) {
19072 0 : if (url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
19073 0 : url_->clear();
19074 : }
19075 : }
19076 0 : if (has_request()) {
19077 0 : if (request_ != NULL) request_->::safe_browsing::ClientSafeBrowsingReportRequest_HTTPRequest::Clear();
19078 : }
19079 0 : if (has_response()) {
19080 0 : if (response_ != NULL) response_->::safe_browsing::ClientSafeBrowsingReportRequest_HTTPResponse::Clear();
19081 : }
19082 0 : if (has_tag_name()) {
19083 0 : if (tag_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
19084 0 : tag_name_->clear();
19085 : }
19086 : }
19087 : }
19088 :
19089 : #undef OFFSET_OF_FIELD_
19090 : #undef ZR_
19091 :
19092 0 : child_ids_.Clear();
19093 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
19094 0 : mutable_unknown_fields()->clear();
19095 0 : }
19096 :
19097 0 : bool ClientSafeBrowsingReportRequest_Resource::MergePartialFromCodedStream(
19098 : ::google::protobuf::io::CodedInputStream* input) {
19099 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
19100 : ::google::protobuf::uint32 tag;
19101 : ::google::protobuf::io::StringOutputStream unknown_fields_string(
19102 0 : mutable_unknown_fields());
19103 : ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
19104 0 : &unknown_fields_string);
19105 : // @@protoc_insertion_point(parse_start:safe_browsing.ClientSafeBrowsingReportRequest.Resource)
19106 : for (;;) {
19107 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
19108 0 : tag = p.first;
19109 0 : if (!p.second) goto handle_unusual;
19110 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
19111 : // required int32 id = 1;
19112 : case 1: {
19113 0 : if (tag == 8) {
19114 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
19115 : ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
19116 : input, &id_)));
19117 0 : set_has_id();
19118 : } else {
19119 0 : goto handle_unusual;
19120 : }
19121 0 : if (input->ExpectTag(18)) goto parse_url;
19122 0 : break;
19123 : }
19124 :
19125 : // optional string url = 2;
19126 : case 2: {
19127 0 : if (tag == 18) {
19128 : parse_url:
19129 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
19130 : input, this->mutable_url()));
19131 : } else {
19132 0 : goto handle_unusual;
19133 : }
19134 0 : if (input->ExpectTag(26)) goto parse_request;
19135 0 : break;
19136 : }
19137 :
19138 : // optional .safe_browsing.ClientSafeBrowsingReportRequest.HTTPRequest request = 3;
19139 : case 3: {
19140 0 : if (tag == 26) {
19141 : parse_request:
19142 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
19143 : input, mutable_request()));
19144 : } else {
19145 0 : goto handle_unusual;
19146 : }
19147 0 : if (input->ExpectTag(34)) goto parse_response;
19148 0 : break;
19149 : }
19150 :
19151 : // optional .safe_browsing.ClientSafeBrowsingReportRequest.HTTPResponse response = 4;
19152 : case 4: {
19153 0 : if (tag == 34) {
19154 : parse_response:
19155 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
19156 : input, mutable_response()));
19157 : } else {
19158 0 : goto handle_unusual;
19159 : }
19160 0 : if (input->ExpectTag(40)) goto parse_parent_id;
19161 0 : break;
19162 : }
19163 :
19164 : // optional int32 parent_id = 5;
19165 : case 5: {
19166 0 : if (tag == 40) {
19167 : parse_parent_id:
19168 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
19169 : ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
19170 : input, &parent_id_)));
19171 0 : set_has_parent_id();
19172 : } else {
19173 0 : goto handle_unusual;
19174 : }
19175 0 : if (input->ExpectTag(48)) goto parse_child_ids;
19176 0 : break;
19177 : }
19178 :
19179 : // repeated int32 child_ids = 6;
19180 : case 6: {
19181 0 : if (tag == 48) {
19182 : parse_child_ids:
19183 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
19184 : ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
19185 : 1, 48, input, this->mutable_child_ids())));
19186 0 : } else if (tag == 50) {
19187 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
19188 : ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
19189 : input, this->mutable_child_ids())));
19190 : } else {
19191 0 : goto handle_unusual;
19192 : }
19193 0 : if (input->ExpectTag(48)) goto parse_child_ids;
19194 0 : if (input->ExpectTag(58)) goto parse_tag_name;
19195 0 : break;
19196 : }
19197 :
19198 : // optional string tag_name = 7;
19199 : case 7: {
19200 0 : if (tag == 58) {
19201 : parse_tag_name:
19202 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
19203 : input, this->mutable_tag_name()));
19204 : } else {
19205 0 : goto handle_unusual;
19206 : }
19207 0 : if (input->ExpectAtEnd()) goto success;
19208 0 : break;
19209 : }
19210 :
19211 : default: {
19212 : handle_unusual:
19213 0 : if (tag == 0 ||
19214 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
19215 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
19216 0 : goto success;
19217 : }
19218 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(
19219 : input, tag, &unknown_fields_stream));
19220 0 : break;
19221 : }
19222 : }
19223 0 : }
19224 : success:
19225 : // @@protoc_insertion_point(parse_success:safe_browsing.ClientSafeBrowsingReportRequest.Resource)
19226 0 : return true;
19227 : failure:
19228 : // @@protoc_insertion_point(parse_failure:safe_browsing.ClientSafeBrowsingReportRequest.Resource)
19229 0 : return false;
19230 : #undef DO_
19231 : }
19232 :
19233 0 : void ClientSafeBrowsingReportRequest_Resource::SerializeWithCachedSizes(
19234 : ::google::protobuf::io::CodedOutputStream* output) const {
19235 : // @@protoc_insertion_point(serialize_start:safe_browsing.ClientSafeBrowsingReportRequest.Resource)
19236 : // required int32 id = 1;
19237 0 : if (has_id()) {
19238 0 : ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->id(), output);
19239 : }
19240 :
19241 : // optional string url = 2;
19242 0 : if (has_url()) {
19243 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
19244 0 : 2, this->url(), output);
19245 : }
19246 :
19247 : // optional .safe_browsing.ClientSafeBrowsingReportRequest.HTTPRequest request = 3;
19248 0 : if (has_request()) {
19249 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
19250 0 : 3, this->request(), output);
19251 : }
19252 :
19253 : // optional .safe_browsing.ClientSafeBrowsingReportRequest.HTTPResponse response = 4;
19254 0 : if (has_response()) {
19255 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
19256 0 : 4, this->response(), output);
19257 : }
19258 :
19259 : // optional int32 parent_id = 5;
19260 0 : if (has_parent_id()) {
19261 0 : ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->parent_id(), output);
19262 : }
19263 :
19264 : // repeated int32 child_ids = 6;
19265 0 : for (int i = 0; i < this->child_ids_size(); i++) {
19266 0 : ::google::protobuf::internal::WireFormatLite::WriteInt32(
19267 0 : 6, this->child_ids(i), output);
19268 : }
19269 :
19270 : // optional string tag_name = 7;
19271 0 : if (has_tag_name()) {
19272 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
19273 0 : 7, this->tag_name(), output);
19274 : }
19275 :
19276 0 : output->WriteRaw(unknown_fields().data(),
19277 0 : unknown_fields().size());
19278 : // @@protoc_insertion_point(serialize_end:safe_browsing.ClientSafeBrowsingReportRequest.Resource)
19279 0 : }
19280 :
19281 0 : int ClientSafeBrowsingReportRequest_Resource::ByteSize() const {
19282 0 : int total_size = 0;
19283 :
19284 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
19285 : // required int32 id = 1;
19286 0 : if (has_id()) {
19287 0 : total_size += 1 +
19288 0 : ::google::protobuf::internal::WireFormatLite::Int32Size(
19289 : this->id());
19290 : }
19291 :
19292 : // optional string url = 2;
19293 0 : if (has_url()) {
19294 0 : total_size += 1 +
19295 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
19296 : this->url());
19297 : }
19298 :
19299 : // optional .safe_browsing.ClientSafeBrowsingReportRequest.HTTPRequest request = 3;
19300 0 : if (has_request()) {
19301 0 : total_size += 1 +
19302 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
19303 : this->request());
19304 : }
19305 :
19306 : // optional .safe_browsing.ClientSafeBrowsingReportRequest.HTTPResponse response = 4;
19307 0 : if (has_response()) {
19308 0 : total_size += 1 +
19309 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
19310 : this->response());
19311 : }
19312 :
19313 : // optional int32 parent_id = 5;
19314 0 : if (has_parent_id()) {
19315 0 : total_size += 1 +
19316 0 : ::google::protobuf::internal::WireFormatLite::Int32Size(
19317 : this->parent_id());
19318 : }
19319 :
19320 : // optional string tag_name = 7;
19321 0 : if (has_tag_name()) {
19322 0 : total_size += 1 +
19323 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
19324 : this->tag_name());
19325 : }
19326 :
19327 : }
19328 : // repeated int32 child_ids = 6;
19329 : {
19330 0 : int data_size = 0;
19331 0 : for (int i = 0; i < this->child_ids_size(); i++) {
19332 0 : data_size += ::google::protobuf::internal::WireFormatLite::
19333 0 : Int32Size(this->child_ids(i));
19334 : }
19335 0 : total_size += 1 * this->child_ids_size() + data_size;
19336 : }
19337 :
19338 0 : total_size += unknown_fields().size();
19339 :
19340 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
19341 0 : _cached_size_ = total_size;
19342 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
19343 0 : return total_size;
19344 : }
19345 :
19346 0 : void ClientSafeBrowsingReportRequest_Resource::CheckTypeAndMergeFrom(
19347 : const ::google::protobuf::MessageLite& from) {
19348 0 : MergeFrom(*::google::protobuf::down_cast<const ClientSafeBrowsingReportRequest_Resource*>(&from));
19349 0 : }
19350 :
19351 0 : void ClientSafeBrowsingReportRequest_Resource::MergeFrom(const ClientSafeBrowsingReportRequest_Resource& from) {
19352 0 : GOOGLE_CHECK_NE(&from, this);
19353 0 : child_ids_.MergeFrom(from.child_ids_);
19354 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
19355 0 : if (from.has_id()) {
19356 0 : set_id(from.id());
19357 : }
19358 0 : if (from.has_url()) {
19359 0 : set_url(from.url());
19360 : }
19361 0 : if (from.has_request()) {
19362 0 : mutable_request()->::safe_browsing::ClientSafeBrowsingReportRequest_HTTPRequest::MergeFrom(from.request());
19363 : }
19364 0 : if (from.has_response()) {
19365 0 : mutable_response()->::safe_browsing::ClientSafeBrowsingReportRequest_HTTPResponse::MergeFrom(from.response());
19366 : }
19367 0 : if (from.has_parent_id()) {
19368 0 : set_parent_id(from.parent_id());
19369 : }
19370 0 : if (from.has_tag_name()) {
19371 0 : set_tag_name(from.tag_name());
19372 : }
19373 : }
19374 0 : mutable_unknown_fields()->append(from.unknown_fields());
19375 0 : }
19376 :
19377 0 : void ClientSafeBrowsingReportRequest_Resource::CopyFrom(const ClientSafeBrowsingReportRequest_Resource& from) {
19378 0 : if (&from == this) return;
19379 0 : Clear();
19380 0 : MergeFrom(from);
19381 : }
19382 :
19383 0 : bool ClientSafeBrowsingReportRequest_Resource::IsInitialized() const {
19384 0 : if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
19385 :
19386 0 : if (has_request()) {
19387 0 : if (!this->request().IsInitialized()) return false;
19388 : }
19389 0 : if (has_response()) {
19390 0 : if (!this->response().IsInitialized()) return false;
19391 : }
19392 0 : return true;
19393 : }
19394 :
19395 0 : void ClientSafeBrowsingReportRequest_Resource::Swap(ClientSafeBrowsingReportRequest_Resource* other) {
19396 0 : if (other != this) {
19397 0 : std::swap(id_, other->id_);
19398 0 : std::swap(url_, other->url_);
19399 0 : std::swap(request_, other->request_);
19400 0 : std::swap(response_, other->response_);
19401 0 : std::swap(parent_id_, other->parent_id_);
19402 0 : child_ids_.Swap(&other->child_ids_);
19403 0 : std::swap(tag_name_, other->tag_name_);
19404 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
19405 0 : _unknown_fields_.swap(other->_unknown_fields_);
19406 0 : std::swap(_cached_size_, other->_cached_size_);
19407 : }
19408 0 : }
19409 :
19410 0 : ::std::string ClientSafeBrowsingReportRequest_Resource::GetTypeName() const {
19411 0 : return "safe_browsing.ClientSafeBrowsingReportRequest.Resource";
19412 : }
19413 :
19414 :
19415 : // -------------------------------------------------------------------
19416 :
19417 : #ifndef _MSC_VER
19418 : const int ClientSafeBrowsingReportRequest::kTypeFieldNumber;
19419 : const int ClientSafeBrowsingReportRequest::kDownloadVerdictFieldNumber;
19420 : const int ClientSafeBrowsingReportRequest::kUrlFieldNumber;
19421 : const int ClientSafeBrowsingReportRequest::kPageUrlFieldNumber;
19422 : const int ClientSafeBrowsingReportRequest::kReferrerUrlFieldNumber;
19423 : const int ClientSafeBrowsingReportRequest::kResourcesFieldNumber;
19424 : const int ClientSafeBrowsingReportRequest::kCompleteFieldNumber;
19425 : const int ClientSafeBrowsingReportRequest::kClientAsnFieldNumber;
19426 : const int ClientSafeBrowsingReportRequest::kClientCountryFieldNumber;
19427 : const int ClientSafeBrowsingReportRequest::kDidProceedFieldNumber;
19428 : const int ClientSafeBrowsingReportRequest::kRepeatVisitFieldNumber;
19429 : const int ClientSafeBrowsingReportRequest::kTokenFieldNumber;
19430 : #endif // !_MSC_VER
19431 :
19432 0 : ClientSafeBrowsingReportRequest::ClientSafeBrowsingReportRequest()
19433 0 : : ::google::protobuf::MessageLite() {
19434 0 : SharedCtor();
19435 : // @@protoc_insertion_point(constructor:safe_browsing.ClientSafeBrowsingReportRequest)
19436 0 : }
19437 :
19438 0 : void ClientSafeBrowsingReportRequest::InitAsDefaultInstance() {
19439 0 : }
19440 :
19441 0 : ClientSafeBrowsingReportRequest::ClientSafeBrowsingReportRequest(const ClientSafeBrowsingReportRequest& from)
19442 0 : : ::google::protobuf::MessageLite() {
19443 0 : SharedCtor();
19444 0 : MergeFrom(from);
19445 : // @@protoc_insertion_point(copy_constructor:safe_browsing.ClientSafeBrowsingReportRequest)
19446 0 : }
19447 :
19448 0 : void ClientSafeBrowsingReportRequest::SharedCtor() {
19449 0 : ::google::protobuf::internal::GetEmptyString();
19450 0 : _cached_size_ = 0;
19451 0 : type_ = 0;
19452 0 : download_verdict_ = 0;
19453 0 : url_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
19454 0 : page_url_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
19455 0 : referrer_url_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
19456 0 : complete_ = false;
19457 0 : client_country_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
19458 0 : did_proceed_ = false;
19459 0 : repeat_visit_ = false;
19460 0 : token_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
19461 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
19462 0 : }
19463 :
19464 0 : ClientSafeBrowsingReportRequest::~ClientSafeBrowsingReportRequest() {
19465 : // @@protoc_insertion_point(destructor:safe_browsing.ClientSafeBrowsingReportRequest)
19466 0 : SharedDtor();
19467 0 : }
19468 :
19469 0 : void ClientSafeBrowsingReportRequest::SharedDtor() {
19470 0 : if (url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
19471 0 : delete url_;
19472 : }
19473 0 : if (page_url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
19474 0 : delete page_url_;
19475 : }
19476 0 : if (referrer_url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
19477 0 : delete referrer_url_;
19478 : }
19479 0 : if (client_country_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
19480 0 : delete client_country_;
19481 : }
19482 0 : if (token_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
19483 0 : delete token_;
19484 : }
19485 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
19486 0 : if (this != &default_instance()) {
19487 : #else
19488 : if (this != default_instance_) {
19489 : #endif
19490 : }
19491 0 : }
19492 :
19493 0 : void ClientSafeBrowsingReportRequest::SetCachedSize(int size) const {
19494 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
19495 0 : _cached_size_ = size;
19496 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
19497 0 : }
19498 0 : const ClientSafeBrowsingReportRequest& ClientSafeBrowsingReportRequest::default_instance() {
19499 : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
19500 0 : protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
19501 : #else
19502 : if (default_instance_ == NULL) protobuf_AddDesc_chromium_2fchrome_2fcommon_2fsafe_5fbrowsing_2fcsd_2eproto();
19503 : #endif
19504 0 : return *default_instance_;
19505 : }
19506 :
19507 : ClientSafeBrowsingReportRequest* ClientSafeBrowsingReportRequest::default_instance_ = NULL;
19508 :
19509 0 : ClientSafeBrowsingReportRequest* ClientSafeBrowsingReportRequest::New() const {
19510 0 : return new ClientSafeBrowsingReportRequest;
19511 : }
19512 :
19513 0 : void ClientSafeBrowsingReportRequest::Clear() {
19514 : #define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \
19515 : &reinterpret_cast<ClientSafeBrowsingReportRequest*>(16)->f) - \
19516 : reinterpret_cast<char*>(16))
19517 :
19518 : #define ZR_(first, last) do { \
19519 : size_t f = OFFSET_OF_FIELD_(first); \
19520 : size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \
19521 : ::memset(&first, 0, n); \
19522 : } while (0)
19523 :
19524 0 : if (_has_bits_[0 / 32] & 95) {
19525 0 : ZR_(type_, download_verdict_);
19526 0 : if (has_url()) {
19527 0 : if (url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
19528 0 : url_->clear();
19529 : }
19530 : }
19531 0 : if (has_page_url()) {
19532 0 : if (page_url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
19533 0 : page_url_->clear();
19534 : }
19535 : }
19536 0 : if (has_referrer_url()) {
19537 0 : if (referrer_url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
19538 0 : referrer_url_->clear();
19539 : }
19540 : }
19541 0 : complete_ = false;
19542 : }
19543 0 : if (_has_bits_[8 / 32] & 3840) {
19544 0 : ZR_(did_proceed_, repeat_visit_);
19545 0 : if (has_client_country()) {
19546 0 : if (client_country_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
19547 0 : client_country_->clear();
19548 : }
19549 : }
19550 0 : if (has_token()) {
19551 0 : if (token_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
19552 0 : token_->clear();
19553 : }
19554 : }
19555 : }
19556 :
19557 : #undef OFFSET_OF_FIELD_
19558 : #undef ZR_
19559 :
19560 0 : resources_.Clear();
19561 0 : client_asn_.Clear();
19562 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
19563 0 : mutable_unknown_fields()->clear();
19564 0 : }
19565 :
19566 0 : bool ClientSafeBrowsingReportRequest::MergePartialFromCodedStream(
19567 : ::google::protobuf::io::CodedInputStream* input) {
19568 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
19569 : ::google::protobuf::uint32 tag;
19570 : ::google::protobuf::io::StringOutputStream unknown_fields_string(
19571 0 : mutable_unknown_fields());
19572 : ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
19573 0 : &unknown_fields_string);
19574 : // @@protoc_insertion_point(parse_start:safe_browsing.ClientSafeBrowsingReportRequest)
19575 : for (;;) {
19576 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
19577 0 : tag = p.first;
19578 0 : if (!p.second) goto handle_unusual;
19579 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
19580 : // optional string url = 1;
19581 : case 1: {
19582 0 : if (tag == 10) {
19583 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
19584 : input, this->mutable_url()));
19585 : } else {
19586 0 : goto handle_unusual;
19587 : }
19588 0 : if (input->ExpectTag(18)) goto parse_page_url;
19589 0 : break;
19590 : }
19591 :
19592 : // optional string page_url = 2;
19593 : case 2: {
19594 0 : if (tag == 18) {
19595 : parse_page_url:
19596 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
19597 : input, this->mutable_page_url()));
19598 : } else {
19599 0 : goto handle_unusual;
19600 : }
19601 0 : if (input->ExpectTag(26)) goto parse_referrer_url;
19602 0 : break;
19603 : }
19604 :
19605 : // optional string referrer_url = 3;
19606 : case 3: {
19607 0 : if (tag == 26) {
19608 : parse_referrer_url:
19609 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
19610 : input, this->mutable_referrer_url()));
19611 : } else {
19612 0 : goto handle_unusual;
19613 : }
19614 0 : if (input->ExpectTag(34)) goto parse_resources;
19615 0 : break;
19616 : }
19617 :
19618 : // repeated .safe_browsing.ClientSafeBrowsingReportRequest.Resource resources = 4;
19619 : case 4: {
19620 0 : if (tag == 34) {
19621 : parse_resources:
19622 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
19623 : input, add_resources()));
19624 : } else {
19625 0 : goto handle_unusual;
19626 : }
19627 0 : if (input->ExpectTag(34)) goto parse_resources;
19628 0 : if (input->ExpectTag(40)) goto parse_complete;
19629 0 : break;
19630 : }
19631 :
19632 : // optional bool complete = 5;
19633 : case 5: {
19634 0 : if (tag == 40) {
19635 : parse_complete:
19636 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
19637 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
19638 : input, &complete_)));
19639 0 : set_has_complete();
19640 : } else {
19641 0 : goto handle_unusual;
19642 : }
19643 0 : if (input->ExpectTag(50)) goto parse_client_asn;
19644 0 : break;
19645 : }
19646 :
19647 : // repeated string client_asn = 6;
19648 : case 6: {
19649 0 : if (tag == 50) {
19650 : parse_client_asn:
19651 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
19652 : input, this->add_client_asn()));
19653 : } else {
19654 0 : goto handle_unusual;
19655 : }
19656 0 : if (input->ExpectTag(50)) goto parse_client_asn;
19657 0 : if (input->ExpectTag(58)) goto parse_client_country;
19658 0 : break;
19659 : }
19660 :
19661 : // optional string client_country = 7;
19662 : case 7: {
19663 0 : if (tag == 58) {
19664 : parse_client_country:
19665 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
19666 : input, this->mutable_client_country()));
19667 : } else {
19668 0 : goto handle_unusual;
19669 : }
19670 0 : if (input->ExpectTag(64)) goto parse_did_proceed;
19671 0 : break;
19672 : }
19673 :
19674 : // optional bool did_proceed = 8;
19675 : case 8: {
19676 0 : if (tag == 64) {
19677 : parse_did_proceed:
19678 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
19679 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
19680 : input, &did_proceed_)));
19681 0 : set_has_did_proceed();
19682 : } else {
19683 0 : goto handle_unusual;
19684 : }
19685 0 : if (input->ExpectTag(72)) goto parse_repeat_visit;
19686 0 : break;
19687 : }
19688 :
19689 : // optional bool repeat_visit = 9;
19690 : case 9: {
19691 0 : if (tag == 72) {
19692 : parse_repeat_visit:
19693 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
19694 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
19695 : input, &repeat_visit_)));
19696 0 : set_has_repeat_visit();
19697 : } else {
19698 0 : goto handle_unusual;
19699 : }
19700 0 : if (input->ExpectTag(80)) goto parse_type;
19701 0 : break;
19702 : }
19703 :
19704 : // optional .safe_browsing.ClientSafeBrowsingReportRequest.ReportType type = 10;
19705 : case 10: {
19706 0 : if (tag == 80) {
19707 : parse_type:
19708 : int value;
19709 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
19710 : int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
19711 : input, &value)));
19712 0 : if (::safe_browsing::ClientSafeBrowsingReportRequest_ReportType_IsValid(value)) {
19713 0 : set_type(static_cast< ::safe_browsing::ClientSafeBrowsingReportRequest_ReportType >(value));
19714 : } else {
19715 0 : unknown_fields_stream.WriteVarint32(tag);
19716 0 : unknown_fields_stream.WriteVarint32(value);
19717 : }
19718 : } else {
19719 0 : goto handle_unusual;
19720 : }
19721 0 : if (input->ExpectTag(88)) goto parse_download_verdict;
19722 0 : break;
19723 : }
19724 :
19725 : // optional .safe_browsing.ClientDownloadResponse.Verdict download_verdict = 11;
19726 : case 11: {
19727 0 : if (tag == 88) {
19728 : parse_download_verdict:
19729 : int value;
19730 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
19731 : int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
19732 : input, &value)));
19733 0 : if (::safe_browsing::ClientDownloadResponse_Verdict_IsValid(value)) {
19734 0 : set_download_verdict(static_cast< ::safe_browsing::ClientDownloadResponse_Verdict >(value));
19735 : } else {
19736 0 : unknown_fields_stream.WriteVarint32(tag);
19737 0 : unknown_fields_stream.WriteVarint32(value);
19738 : }
19739 : } else {
19740 0 : goto handle_unusual;
19741 : }
19742 0 : if (input->ExpectTag(122)) goto parse_token;
19743 0 : break;
19744 : }
19745 :
19746 : // optional bytes token = 15;
19747 : case 15: {
19748 0 : if (tag == 122) {
19749 : parse_token:
19750 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
19751 : input, this->mutable_token()));
19752 : } else {
19753 0 : goto handle_unusual;
19754 : }
19755 0 : if (input->ExpectAtEnd()) goto success;
19756 0 : break;
19757 : }
19758 :
19759 : default: {
19760 : handle_unusual:
19761 0 : if (tag == 0 ||
19762 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
19763 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
19764 0 : goto success;
19765 : }
19766 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(
19767 : input, tag, &unknown_fields_stream));
19768 0 : break;
19769 : }
19770 : }
19771 0 : }
19772 : success:
19773 : // @@protoc_insertion_point(parse_success:safe_browsing.ClientSafeBrowsingReportRequest)
19774 0 : return true;
19775 : failure:
19776 : // @@protoc_insertion_point(parse_failure:safe_browsing.ClientSafeBrowsingReportRequest)
19777 0 : return false;
19778 : #undef DO_
19779 : }
19780 :
19781 0 : void ClientSafeBrowsingReportRequest::SerializeWithCachedSizes(
19782 : ::google::protobuf::io::CodedOutputStream* output) const {
19783 : // @@protoc_insertion_point(serialize_start:safe_browsing.ClientSafeBrowsingReportRequest)
19784 : // optional string url = 1;
19785 0 : if (has_url()) {
19786 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
19787 0 : 1, this->url(), output);
19788 : }
19789 :
19790 : // optional string page_url = 2;
19791 0 : if (has_page_url()) {
19792 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
19793 0 : 2, this->page_url(), output);
19794 : }
19795 :
19796 : // optional string referrer_url = 3;
19797 0 : if (has_referrer_url()) {
19798 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
19799 0 : 3, this->referrer_url(), output);
19800 : }
19801 :
19802 : // repeated .safe_browsing.ClientSafeBrowsingReportRequest.Resource resources = 4;
19803 0 : for (int i = 0; i < this->resources_size(); i++) {
19804 0 : ::google::protobuf::internal::WireFormatLite::WriteMessage(
19805 0 : 4, this->resources(i), output);
19806 : }
19807 :
19808 : // optional bool complete = 5;
19809 0 : if (has_complete()) {
19810 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->complete(), output);
19811 : }
19812 :
19813 : // repeated string client_asn = 6;
19814 0 : for (int i = 0; i < this->client_asn_size(); i++) {
19815 0 : ::google::protobuf::internal::WireFormatLite::WriteString(
19816 0 : 6, this->client_asn(i), output);
19817 : }
19818 :
19819 : // optional string client_country = 7;
19820 0 : if (has_client_country()) {
19821 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
19822 0 : 7, this->client_country(), output);
19823 : }
19824 :
19825 : // optional bool did_proceed = 8;
19826 0 : if (has_did_proceed()) {
19827 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(8, this->did_proceed(), output);
19828 : }
19829 :
19830 : // optional bool repeat_visit = 9;
19831 0 : if (has_repeat_visit()) {
19832 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(9, this->repeat_visit(), output);
19833 : }
19834 :
19835 : // optional .safe_browsing.ClientSafeBrowsingReportRequest.ReportType type = 10;
19836 0 : if (has_type()) {
19837 0 : ::google::protobuf::internal::WireFormatLite::WriteEnum(
19838 0 : 10, this->type(), output);
19839 : }
19840 :
19841 : // optional .safe_browsing.ClientDownloadResponse.Verdict download_verdict = 11;
19842 0 : if (has_download_verdict()) {
19843 0 : ::google::protobuf::internal::WireFormatLite::WriteEnum(
19844 0 : 11, this->download_verdict(), output);
19845 : }
19846 :
19847 : // optional bytes token = 15;
19848 0 : if (has_token()) {
19849 0 : ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
19850 0 : 15, this->token(), output);
19851 : }
19852 :
19853 0 : output->WriteRaw(unknown_fields().data(),
19854 0 : unknown_fields().size());
19855 : // @@protoc_insertion_point(serialize_end:safe_browsing.ClientSafeBrowsingReportRequest)
19856 0 : }
19857 :
19858 0 : int ClientSafeBrowsingReportRequest::ByteSize() const {
19859 0 : int total_size = 0;
19860 :
19861 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
19862 : // optional .safe_browsing.ClientSafeBrowsingReportRequest.ReportType type = 10;
19863 0 : if (has_type()) {
19864 0 : total_size += 1 +
19865 0 : ::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
19866 : }
19867 :
19868 : // optional .safe_browsing.ClientDownloadResponse.Verdict download_verdict = 11;
19869 0 : if (has_download_verdict()) {
19870 0 : total_size += 1 +
19871 0 : ::google::protobuf::internal::WireFormatLite::EnumSize(this->download_verdict());
19872 : }
19873 :
19874 : // optional string url = 1;
19875 0 : if (has_url()) {
19876 0 : total_size += 1 +
19877 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
19878 : this->url());
19879 : }
19880 :
19881 : // optional string page_url = 2;
19882 0 : if (has_page_url()) {
19883 0 : total_size += 1 +
19884 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
19885 : this->page_url());
19886 : }
19887 :
19888 : // optional string referrer_url = 3;
19889 0 : if (has_referrer_url()) {
19890 0 : total_size += 1 +
19891 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
19892 : this->referrer_url());
19893 : }
19894 :
19895 : // optional bool complete = 5;
19896 0 : if (has_complete()) {
19897 0 : total_size += 1 + 1;
19898 : }
19899 :
19900 : }
19901 0 : if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
19902 : // optional string client_country = 7;
19903 0 : if (has_client_country()) {
19904 0 : total_size += 1 +
19905 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
19906 : this->client_country());
19907 : }
19908 :
19909 : // optional bool did_proceed = 8;
19910 0 : if (has_did_proceed()) {
19911 0 : total_size += 1 + 1;
19912 : }
19913 :
19914 : // optional bool repeat_visit = 9;
19915 0 : if (has_repeat_visit()) {
19916 0 : total_size += 1 + 1;
19917 : }
19918 :
19919 : // optional bytes token = 15;
19920 0 : if (has_token()) {
19921 0 : total_size += 1 +
19922 0 : ::google::protobuf::internal::WireFormatLite::BytesSize(
19923 : this->token());
19924 : }
19925 :
19926 : }
19927 : // repeated .safe_browsing.ClientSafeBrowsingReportRequest.Resource resources = 4;
19928 0 : total_size += 1 * this->resources_size();
19929 0 : for (int i = 0; i < this->resources_size(); i++) {
19930 0 : total_size +=
19931 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
19932 : this->resources(i));
19933 : }
19934 :
19935 : // repeated string client_asn = 6;
19936 0 : total_size += 1 * this->client_asn_size();
19937 0 : for (int i = 0; i < this->client_asn_size(); i++) {
19938 0 : total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
19939 : this->client_asn(i));
19940 : }
19941 :
19942 0 : total_size += unknown_fields().size();
19943 :
19944 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
19945 0 : _cached_size_ = total_size;
19946 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
19947 0 : return total_size;
19948 : }
19949 :
19950 0 : void ClientSafeBrowsingReportRequest::CheckTypeAndMergeFrom(
19951 : const ::google::protobuf::MessageLite& from) {
19952 0 : MergeFrom(*::google::protobuf::down_cast<const ClientSafeBrowsingReportRequest*>(&from));
19953 0 : }
19954 :
19955 0 : void ClientSafeBrowsingReportRequest::MergeFrom(const ClientSafeBrowsingReportRequest& from) {
19956 0 : GOOGLE_CHECK_NE(&from, this);
19957 0 : resources_.MergeFrom(from.resources_);
19958 0 : client_asn_.MergeFrom(from.client_asn_);
19959 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
19960 0 : if (from.has_type()) {
19961 0 : set_type(from.type());
19962 : }
19963 0 : if (from.has_download_verdict()) {
19964 0 : set_download_verdict(from.download_verdict());
19965 : }
19966 0 : if (from.has_url()) {
19967 0 : set_url(from.url());
19968 : }
19969 0 : if (from.has_page_url()) {
19970 0 : set_page_url(from.page_url());
19971 : }
19972 0 : if (from.has_referrer_url()) {
19973 0 : set_referrer_url(from.referrer_url());
19974 : }
19975 0 : if (from.has_complete()) {
19976 0 : set_complete(from.complete());
19977 : }
19978 : }
19979 0 : if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
19980 0 : if (from.has_client_country()) {
19981 0 : set_client_country(from.client_country());
19982 : }
19983 0 : if (from.has_did_proceed()) {
19984 0 : set_did_proceed(from.did_proceed());
19985 : }
19986 0 : if (from.has_repeat_visit()) {
19987 0 : set_repeat_visit(from.repeat_visit());
19988 : }
19989 0 : if (from.has_token()) {
19990 0 : set_token(from.token());
19991 : }
19992 : }
19993 0 : mutable_unknown_fields()->append(from.unknown_fields());
19994 0 : }
19995 :
19996 0 : void ClientSafeBrowsingReportRequest::CopyFrom(const ClientSafeBrowsingReportRequest& from) {
19997 0 : if (&from == this) return;
19998 0 : Clear();
19999 0 : MergeFrom(from);
20000 : }
20001 :
20002 0 : bool ClientSafeBrowsingReportRequest::IsInitialized() const {
20003 :
20004 0 : if (!::google::protobuf::internal::AllAreInitialized(this->resources())) return false;
20005 0 : return true;
20006 : }
20007 :
20008 0 : void ClientSafeBrowsingReportRequest::Swap(ClientSafeBrowsingReportRequest* other) {
20009 0 : if (other != this) {
20010 0 : std::swap(type_, other->type_);
20011 0 : std::swap(download_verdict_, other->download_verdict_);
20012 0 : std::swap(url_, other->url_);
20013 0 : std::swap(page_url_, other->page_url_);
20014 0 : std::swap(referrer_url_, other->referrer_url_);
20015 0 : resources_.Swap(&other->resources_);
20016 0 : std::swap(complete_, other->complete_);
20017 0 : client_asn_.Swap(&other->client_asn_);
20018 0 : std::swap(client_country_, other->client_country_);
20019 0 : std::swap(did_proceed_, other->did_proceed_);
20020 0 : std::swap(repeat_visit_, other->repeat_visit_);
20021 0 : std::swap(token_, other->token_);
20022 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
20023 0 : _unknown_fields_.swap(other->_unknown_fields_);
20024 0 : std::swap(_cached_size_, other->_cached_size_);
20025 : }
20026 0 : }
20027 :
20028 0 : ::std::string ClientSafeBrowsingReportRequest::GetTypeName() const {
20029 0 : return "safe_browsing.ClientSafeBrowsingReportRequest";
20030 : }
20031 :
20032 :
20033 : // @@protoc_insertion_point(namespace_scope)
20034 :
20035 : } // namespace safe_browsing
20036 :
20037 : // @@protoc_insertion_point(global_scope)
|