Coverage Report

Created: 2018-09-25 14:53

/src/mozilla-central/toolkit/components/url-classifier/chromium/safebrowsing.pb.cc
Line
Count
Source (jump to first uncovered line)
1
// Generated by the protocol buffer compiler.  DO NOT EDIT!
2
// source: safebrowsing.proto
3
4
#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
5
#include "safebrowsing.pb.h"
6
7
#include <algorithm>
8
9
#include <google/protobuf/stubs/common.h>
10
#include <google/protobuf/stubs/port.h>
11
#include <google/protobuf/stubs/once.h>
12
#include <google/protobuf/io/coded_stream.h>
13
#include <google/protobuf/wire_format_lite_inl.h>
14
#include <google/protobuf/io/zero_copy_stream_impl_lite.h>
15
// @@protoc_insertion_point(includes)
16
17
namespace mozilla {
18
namespace safebrowsing {
19
class ThreatInfoDefaultTypeInternal {
20
public:
21
 ::google::protobuf::internal::ExplicitlyConstructed<ThreatInfo>
22
     _instance;
23
} _ThreatInfo_default_instance_;
24
class ThreatMatchDefaultTypeInternal {
25
public:
26
 ::google::protobuf::internal::ExplicitlyConstructed<ThreatMatch>
27
     _instance;
28
} _ThreatMatch_default_instance_;
29
class FindThreatMatchesRequestDefaultTypeInternal {
30
public:
31
 ::google::protobuf::internal::ExplicitlyConstructed<FindThreatMatchesRequest>
32
     _instance;
33
} _FindThreatMatchesRequest_default_instance_;
34
class FindThreatMatchesResponseDefaultTypeInternal {
35
public:
36
 ::google::protobuf::internal::ExplicitlyConstructed<FindThreatMatchesResponse>
37
     _instance;
38
} _FindThreatMatchesResponse_default_instance_;
39
class FetchThreatListUpdatesRequest_ListUpdateRequest_ConstraintsDefaultTypeInternal {
40
public:
41
 ::google::protobuf::internal::ExplicitlyConstructed<FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints>
42
     _instance;
43
} _FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints_default_instance_;
44
class FetchThreatListUpdatesRequest_ListUpdateRequestDefaultTypeInternal {
45
public:
46
 ::google::protobuf::internal::ExplicitlyConstructed<FetchThreatListUpdatesRequest_ListUpdateRequest>
47
     _instance;
48
} _FetchThreatListUpdatesRequest_ListUpdateRequest_default_instance_;
49
class FetchThreatListUpdatesRequestDefaultTypeInternal {
50
public:
51
 ::google::protobuf::internal::ExplicitlyConstructed<FetchThreatListUpdatesRequest>
52
     _instance;
53
} _FetchThreatListUpdatesRequest_default_instance_;
54
class FetchThreatListUpdatesResponse_ListUpdateResponseDefaultTypeInternal {
55
public:
56
 ::google::protobuf::internal::ExplicitlyConstructed<FetchThreatListUpdatesResponse_ListUpdateResponse>
57
     _instance;
58
} _FetchThreatListUpdatesResponse_ListUpdateResponse_default_instance_;
59
class FetchThreatListUpdatesResponseDefaultTypeInternal {
60
public:
61
 ::google::protobuf::internal::ExplicitlyConstructed<FetchThreatListUpdatesResponse>
62
     _instance;
63
} _FetchThreatListUpdatesResponse_default_instance_;
64
class FindFullHashesRequestDefaultTypeInternal {
65
public:
66
 ::google::protobuf::internal::ExplicitlyConstructed<FindFullHashesRequest>
67
     _instance;
68
} _FindFullHashesRequest_default_instance_;
69
class FindFullHashesResponseDefaultTypeInternal {
70
public:
71
 ::google::protobuf::internal::ExplicitlyConstructed<FindFullHashesResponse>
72
     _instance;
73
} _FindFullHashesResponse_default_instance_;
74
class ThreatHit_ThreatSourceDefaultTypeInternal {
75
public:
76
 ::google::protobuf::internal::ExplicitlyConstructed<ThreatHit_ThreatSource>
77
     _instance;
78
} _ThreatHit_ThreatSource_default_instance_;
79
class ThreatHit_UserInfoDefaultTypeInternal {
80
public:
81
 ::google::protobuf::internal::ExplicitlyConstructed<ThreatHit_UserInfo>
82
     _instance;
83
} _ThreatHit_UserInfo_default_instance_;
84
class ThreatHitDefaultTypeInternal {
85
public:
86
 ::google::protobuf::internal::ExplicitlyConstructed<ThreatHit>
87
     _instance;
88
} _ThreatHit_default_instance_;
89
class ClientInfoDefaultTypeInternal {
90
public:
91
 ::google::protobuf::internal::ExplicitlyConstructed<ClientInfo>
92
     _instance;
93
} _ClientInfo_default_instance_;
94
class ChromeClientInfoDefaultTypeInternal {
95
public:
96
 ::google::protobuf::internal::ExplicitlyConstructed<ChromeClientInfo>
97
     _instance;
98
} _ChromeClientInfo_default_instance_;
99
class ChecksumDefaultTypeInternal {
100
public:
101
 ::google::protobuf::internal::ExplicitlyConstructed<Checksum>
102
     _instance;
103
} _Checksum_default_instance_;
104
class ThreatEntryDefaultTypeInternal {
105
public:
106
 ::google::protobuf::internal::ExplicitlyConstructed<ThreatEntry>
107
     _instance;
108
} _ThreatEntry_default_instance_;
109
class ThreatEntrySetDefaultTypeInternal {
110
public:
111
 ::google::protobuf::internal::ExplicitlyConstructed<ThreatEntrySet>
112
     _instance;
113
} _ThreatEntrySet_default_instance_;
114
class RawIndicesDefaultTypeInternal {
115
public:
116
 ::google::protobuf::internal::ExplicitlyConstructed<RawIndices>
117
     _instance;
118
} _RawIndices_default_instance_;
119
class RawHashesDefaultTypeInternal {
120
public:
121
 ::google::protobuf::internal::ExplicitlyConstructed<RawHashes>
122
     _instance;
123
} _RawHashes_default_instance_;
124
class RiceDeltaEncodingDefaultTypeInternal {
125
public:
126
 ::google::protobuf::internal::ExplicitlyConstructed<RiceDeltaEncoding>
127
     _instance;
128
} _RiceDeltaEncoding_default_instance_;
129
class ThreatEntryMetadata_MetadataEntryDefaultTypeInternal {
130
public:
131
 ::google::protobuf::internal::ExplicitlyConstructed<ThreatEntryMetadata_MetadataEntry>
132
     _instance;
133
} _ThreatEntryMetadata_MetadataEntry_default_instance_;
134
class ThreatEntryMetadataDefaultTypeInternal {
135
public:
136
 ::google::protobuf::internal::ExplicitlyConstructed<ThreatEntryMetadata>
137
     _instance;
138
} _ThreatEntryMetadata_default_instance_;
139
class ThreatListDescriptorDefaultTypeInternal {
140
public:
141
 ::google::protobuf::internal::ExplicitlyConstructed<ThreatListDescriptor>
142
     _instance;
143
} _ThreatListDescriptor_default_instance_;
144
class ListThreatListsResponseDefaultTypeInternal {
145
public:
146
 ::google::protobuf::internal::ExplicitlyConstructed<ListThreatListsResponse>
147
     _instance;
148
} _ListThreatListsResponse_default_instance_;
149
class DurationDefaultTypeInternal {
150
public:
151
 ::google::protobuf::internal::ExplicitlyConstructed<Duration>
152
     _instance;
153
} _Duration_default_instance_;
154
155
namespace protobuf_safebrowsing_2eproto {
156
157
PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::ParseTableField
158
    const TableStruct::entries[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
159
  {0, 0, 0, ::google::protobuf::internal::kInvalidMask, 0, 0},
160
};
161
162
PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::AuxillaryParseTableField
163
    const TableStruct::aux[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
164
  ::google::protobuf::internal::AuxillaryParseTableField(),
165
};
166
PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::ParseTable const
167
    TableStruct::schema[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
168
  { NULL, NULL, 0, -1, -1, -1, -1, NULL, false },
169
  { NULL, NULL, 0, -1, -1, -1, -1, NULL, false },
170
  { NULL, NULL, 0, -1, -1, -1, -1, NULL, false },
171
  { NULL, NULL, 0, -1, -1, -1, -1, NULL, false },
172
  { NULL, NULL, 0, -1, -1, -1, -1, NULL, false },
173
  { NULL, NULL, 0, -1, -1, -1, -1, NULL, false },
174
  { NULL, NULL, 0, -1, -1, -1, -1, NULL, false },
175
  { NULL, NULL, 0, -1, -1, -1, -1, NULL, false },
176
  { NULL, NULL, 0, -1, -1, -1, -1, NULL, false },
177
  { NULL, NULL, 0, -1, -1, -1, -1, NULL, false },
178
  { NULL, NULL, 0, -1, -1, -1, -1, NULL, false },
179
  { NULL, NULL, 0, -1, -1, -1, -1, NULL, false },
180
  { NULL, NULL, 0, -1, -1, -1, -1, NULL, false },
181
  { NULL, NULL, 0, -1, -1, -1, -1, NULL, false },
182
  { NULL, NULL, 0, -1, -1, -1, -1, NULL, false },
183
  { NULL, NULL, 0, -1, -1, -1, -1, NULL, false },
184
  { NULL, NULL, 0, -1, -1, -1, -1, NULL, false },
185
  { NULL, NULL, 0, -1, -1, -1, -1, NULL, false },
186
  { NULL, NULL, 0, -1, -1, -1, -1, NULL, false },
187
  { NULL, NULL, 0, -1, -1, -1, -1, NULL, false },
188
  { NULL, NULL, 0, -1, -1, -1, -1, NULL, false },
189
  { NULL, NULL, 0, -1, -1, -1, -1, NULL, false },
190
  { NULL, NULL, 0, -1, -1, -1, -1, NULL, false },
191
  { NULL, NULL, 0, -1, -1, -1, -1, NULL, false },
192
  { NULL, NULL, 0, -1, -1, -1, -1, NULL, false },
193
  { NULL, NULL, 0, -1, -1, -1, -1, NULL, false },
194
  { NULL, NULL, 0, -1, -1, -1, -1, NULL, false },
195
};
196
197
0
void TableStruct::InitDefaultsImpl() {
198
0
  GOOGLE_PROTOBUF_VERIFY_VERSION;
199
0
200
0
  ::google::protobuf::internal::InitProtobufDefaults();
201
0
  _ThreatInfo_default_instance_._instance.DefaultConstruct();
202
0
  ::google::protobuf::internal::OnShutdownDestroyMessage(
203
0
      &_ThreatInfo_default_instance_);_ThreatMatch_default_instance_._instance.DefaultConstruct();
204
0
  ::google::protobuf::internal::OnShutdownDestroyMessage(
205
0
      &_ThreatMatch_default_instance_);_FindThreatMatchesRequest_default_instance_._instance.DefaultConstruct();
206
0
  ::google::protobuf::internal::OnShutdownDestroyMessage(
207
0
      &_FindThreatMatchesRequest_default_instance_);_FindThreatMatchesResponse_default_instance_._instance.DefaultConstruct();
208
0
  ::google::protobuf::internal::OnShutdownDestroyMessage(
209
0
      &_FindThreatMatchesResponse_default_instance_);_FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints_default_instance_._instance.DefaultConstruct();
210
0
  ::google::protobuf::internal::OnShutdownDestroyMessage(
211
0
      &_FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints_default_instance_);_FetchThreatListUpdatesRequest_ListUpdateRequest_default_instance_._instance.DefaultConstruct();
212
0
  ::google::protobuf::internal::OnShutdownDestroyMessage(
213
0
      &_FetchThreatListUpdatesRequest_ListUpdateRequest_default_instance_);_FetchThreatListUpdatesRequest_default_instance_._instance.DefaultConstruct();
214
0
  ::google::protobuf::internal::OnShutdownDestroyMessage(
215
0
      &_FetchThreatListUpdatesRequest_default_instance_);_FetchThreatListUpdatesResponse_ListUpdateResponse_default_instance_._instance.DefaultConstruct();
216
0
  ::google::protobuf::internal::OnShutdownDestroyMessage(
217
0
      &_FetchThreatListUpdatesResponse_ListUpdateResponse_default_instance_);_FetchThreatListUpdatesResponse_default_instance_._instance.DefaultConstruct();
218
0
  ::google::protobuf::internal::OnShutdownDestroyMessage(
219
0
      &_FetchThreatListUpdatesResponse_default_instance_);_FindFullHashesRequest_default_instance_._instance.DefaultConstruct();
220
0
  ::google::protobuf::internal::OnShutdownDestroyMessage(
221
0
      &_FindFullHashesRequest_default_instance_);_FindFullHashesResponse_default_instance_._instance.DefaultConstruct();
222
0
  ::google::protobuf::internal::OnShutdownDestroyMessage(
223
0
      &_FindFullHashesResponse_default_instance_);_ThreatHit_ThreatSource_default_instance_._instance.DefaultConstruct();
224
0
  ::google::protobuf::internal::OnShutdownDestroyMessage(
225
0
      &_ThreatHit_ThreatSource_default_instance_);_ThreatHit_UserInfo_default_instance_._instance.DefaultConstruct();
226
0
  ::google::protobuf::internal::OnShutdownDestroyMessage(
227
0
      &_ThreatHit_UserInfo_default_instance_);_ThreatHit_default_instance_._instance.DefaultConstruct();
228
0
  ::google::protobuf::internal::OnShutdownDestroyMessage(
229
0
      &_ThreatHit_default_instance_);_ClientInfo_default_instance_._instance.DefaultConstruct();
230
0
  ::google::protobuf::internal::OnShutdownDestroyMessage(
231
0
      &_ClientInfo_default_instance_);_ChromeClientInfo_default_instance_._instance.DefaultConstruct();
232
0
  ::google::protobuf::internal::OnShutdownDestroyMessage(
233
0
      &_ChromeClientInfo_default_instance_);_Checksum_default_instance_._instance.DefaultConstruct();
234
0
  ::google::protobuf::internal::OnShutdownDestroyMessage(
235
0
      &_Checksum_default_instance_);_ThreatEntry_default_instance_._instance.DefaultConstruct();
236
0
  ::google::protobuf::internal::OnShutdownDestroyMessage(
237
0
      &_ThreatEntry_default_instance_);_ThreatEntrySet_default_instance_._instance.DefaultConstruct();
238
0
  ::google::protobuf::internal::OnShutdownDestroyMessage(
239
0
      &_ThreatEntrySet_default_instance_);_RawIndices_default_instance_._instance.DefaultConstruct();
240
0
  ::google::protobuf::internal::OnShutdownDestroyMessage(
241
0
      &_RawIndices_default_instance_);_RawHashes_default_instance_._instance.DefaultConstruct();
242
0
  ::google::protobuf::internal::OnShutdownDestroyMessage(
243
0
      &_RawHashes_default_instance_);_RiceDeltaEncoding_default_instance_._instance.DefaultConstruct();
244
0
  ::google::protobuf::internal::OnShutdownDestroyMessage(
245
0
      &_RiceDeltaEncoding_default_instance_);_ThreatEntryMetadata_MetadataEntry_default_instance_._instance.DefaultConstruct();
246
0
  ::google::protobuf::internal::OnShutdownDestroyMessage(
247
0
      &_ThreatEntryMetadata_MetadataEntry_default_instance_);_ThreatEntryMetadata_default_instance_._instance.DefaultConstruct();
248
0
  ::google::protobuf::internal::OnShutdownDestroyMessage(
249
0
      &_ThreatEntryMetadata_default_instance_);_ThreatListDescriptor_default_instance_._instance.DefaultConstruct();
250
0
  ::google::protobuf::internal::OnShutdownDestroyMessage(
251
0
      &_ThreatListDescriptor_default_instance_);_ListThreatListsResponse_default_instance_._instance.DefaultConstruct();
252
0
  ::google::protobuf::internal::OnShutdownDestroyMessage(
253
0
      &_ListThreatListsResponse_default_instance_);_Duration_default_instance_._instance.DefaultConstruct();
254
0
  ::google::protobuf::internal::OnShutdownDestroyMessage(
255
0
      &_Duration_default_instance_);_ThreatMatch_default_instance_._instance.get_mutable()->threat_ = const_cast< ::mozilla::safebrowsing::ThreatEntry*>(
256
0
      ::mozilla::safebrowsing::ThreatEntry::internal_default_instance());
257
0
  _ThreatMatch_default_instance_._instance.get_mutable()->threat_entry_metadata_ = const_cast< ::mozilla::safebrowsing::ThreatEntryMetadata*>(
258
0
      ::mozilla::safebrowsing::ThreatEntryMetadata::internal_default_instance());
259
0
  _ThreatMatch_default_instance_._instance.get_mutable()->cache_duration_ = const_cast< ::mozilla::safebrowsing::Duration*>(
260
0
      ::mozilla::safebrowsing::Duration::internal_default_instance());
261
0
  _FindThreatMatchesRequest_default_instance_._instance.get_mutable()->client_ = const_cast< ::mozilla::safebrowsing::ClientInfo*>(
262
0
      ::mozilla::safebrowsing::ClientInfo::internal_default_instance());
263
0
  _FindThreatMatchesRequest_default_instance_._instance.get_mutable()->threat_info_ = const_cast< ::mozilla::safebrowsing::ThreatInfo*>(
264
0
      ::mozilla::safebrowsing::ThreatInfo::internal_default_instance());
265
0
  _FetchThreatListUpdatesRequest_ListUpdateRequest_default_instance_._instance.get_mutable()->constraints_ = const_cast< ::mozilla::safebrowsing::FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints*>(
266
0
      ::mozilla::safebrowsing::FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::internal_default_instance());
267
0
  _FetchThreatListUpdatesRequest_default_instance_._instance.get_mutable()->client_ = const_cast< ::mozilla::safebrowsing::ClientInfo*>(
268
0
      ::mozilla::safebrowsing::ClientInfo::internal_default_instance());
269
0
  _FetchThreatListUpdatesRequest_default_instance_._instance.get_mutable()->chrome_client_info_ = const_cast< ::mozilla::safebrowsing::ChromeClientInfo*>(
270
0
      ::mozilla::safebrowsing::ChromeClientInfo::internal_default_instance());
271
0
  _FetchThreatListUpdatesResponse_ListUpdateResponse_default_instance_._instance.get_mutable()->checksum_ = const_cast< ::mozilla::safebrowsing::Checksum*>(
272
0
      ::mozilla::safebrowsing::Checksum::internal_default_instance());
273
0
  _FetchThreatListUpdatesResponse_default_instance_._instance.get_mutable()->minimum_wait_duration_ = const_cast< ::mozilla::safebrowsing::Duration*>(
274
0
      ::mozilla::safebrowsing::Duration::internal_default_instance());
275
0
  _FindFullHashesRequest_default_instance_._instance.get_mutable()->client_ = const_cast< ::mozilla::safebrowsing::ClientInfo*>(
276
0
      ::mozilla::safebrowsing::ClientInfo::internal_default_instance());
277
0
  _FindFullHashesRequest_default_instance_._instance.get_mutable()->threat_info_ = const_cast< ::mozilla::safebrowsing::ThreatInfo*>(
278
0
      ::mozilla::safebrowsing::ThreatInfo::internal_default_instance());
279
0
  _FindFullHashesResponse_default_instance_._instance.get_mutable()->minimum_wait_duration_ = const_cast< ::mozilla::safebrowsing::Duration*>(
280
0
      ::mozilla::safebrowsing::Duration::internal_default_instance());
281
0
  _FindFullHashesResponse_default_instance_._instance.get_mutable()->negative_cache_duration_ = const_cast< ::mozilla::safebrowsing::Duration*>(
282
0
      ::mozilla::safebrowsing::Duration::internal_default_instance());
283
0
  _ThreatHit_default_instance_._instance.get_mutable()->entry_ = const_cast< ::mozilla::safebrowsing::ThreatEntry*>(
284
0
      ::mozilla::safebrowsing::ThreatEntry::internal_default_instance());
285
0
  _ThreatHit_default_instance_._instance.get_mutable()->client_info_ = const_cast< ::mozilla::safebrowsing::ClientInfo*>(
286
0
      ::mozilla::safebrowsing::ClientInfo::internal_default_instance());
287
0
  _ThreatHit_default_instance_._instance.get_mutable()->user_info_ = const_cast< ::mozilla::safebrowsing::ThreatHit_UserInfo*>(
288
0
      ::mozilla::safebrowsing::ThreatHit_UserInfo::internal_default_instance());
289
0
  _ThreatEntrySet_default_instance_._instance.get_mutable()->raw_hashes_ = const_cast< ::mozilla::safebrowsing::RawHashes*>(
290
0
      ::mozilla::safebrowsing::RawHashes::internal_default_instance());
291
0
  _ThreatEntrySet_default_instance_._instance.get_mutable()->raw_indices_ = const_cast< ::mozilla::safebrowsing::RawIndices*>(
292
0
      ::mozilla::safebrowsing::RawIndices::internal_default_instance());
293
0
  _ThreatEntrySet_default_instance_._instance.get_mutable()->rice_hashes_ = const_cast< ::mozilla::safebrowsing::RiceDeltaEncoding*>(
294
0
      ::mozilla::safebrowsing::RiceDeltaEncoding::internal_default_instance());
295
0
  _ThreatEntrySet_default_instance_._instance.get_mutable()->rice_indices_ = const_cast< ::mozilla::safebrowsing::RiceDeltaEncoding*>(
296
0
      ::mozilla::safebrowsing::RiceDeltaEncoding::internal_default_instance());
297
0
}
298
299
0
void InitDefaults() {
300
0
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
301
0
  ::google::protobuf::GoogleOnceInit(&once, &TableStruct::InitDefaultsImpl);
302
0
}
303
namespace {
304
0
void AddDescriptorsImpl() {
305
0
  InitDefaults();
306
0
}
307
} // anonymous namespace
308
309
0
void AddDescriptors() {
310
0
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
311
0
  ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
312
0
}
313
314
}  // namespace protobuf_safebrowsing_2eproto
315
316
bool FetchThreatListUpdatesResponse_ListUpdateResponse_ResponseType_IsValid(int value) {
317
  switch (value) {
318
    case 0:
319
    case 1:
320
    case 2:
321
      return true;
322
    default:
323
      return false;
324
  }
325
}
326
327
#if !defined(_MSC_VER) || _MSC_VER >= 1900
328
const FetchThreatListUpdatesResponse_ListUpdateResponse_ResponseType FetchThreatListUpdatesResponse_ListUpdateResponse::RESPONSE_TYPE_UNSPECIFIED;
329
const FetchThreatListUpdatesResponse_ListUpdateResponse_ResponseType FetchThreatListUpdatesResponse_ListUpdateResponse::PARTIAL_UPDATE;
330
const FetchThreatListUpdatesResponse_ListUpdateResponse_ResponseType FetchThreatListUpdatesResponse_ListUpdateResponse::FULL_UPDATE;
331
const FetchThreatListUpdatesResponse_ListUpdateResponse_ResponseType FetchThreatListUpdatesResponse_ListUpdateResponse::ResponseType_MIN;
332
const FetchThreatListUpdatesResponse_ListUpdateResponse_ResponseType FetchThreatListUpdatesResponse_ListUpdateResponse::ResponseType_MAX;
333
const int FetchThreatListUpdatesResponse_ListUpdateResponse::ResponseType_ARRAYSIZE;
334
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
335
bool ThreatHit_ThreatSourceType_IsValid(int value) {
336
  switch (value) {
337
    case 0:
338
    case 1:
339
    case 2:
340
    case 3:
341
    case 4:
342
      return true;
343
    default:
344
      return false;
345
  }
346
}
347
348
#if !defined(_MSC_VER) || _MSC_VER >= 1900
349
const ThreatHit_ThreatSourceType ThreatHit::THREAT_SOURCE_TYPE_UNSPECIFIED;
350
const ThreatHit_ThreatSourceType ThreatHit::MATCHING_URL;
351
const ThreatHit_ThreatSourceType ThreatHit::TAB_URL;
352
const ThreatHit_ThreatSourceType ThreatHit::TAB_REDIRECT;
353
const ThreatHit_ThreatSourceType ThreatHit::TAB_RESOURCE;
354
const ThreatHit_ThreatSourceType ThreatHit::ThreatSourceType_MIN;
355
const ThreatHit_ThreatSourceType ThreatHit::ThreatSourceType_MAX;
356
const int ThreatHit::ThreatSourceType_ARRAYSIZE;
357
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
358
bool ChromeClientInfo_SafeBrowsingReportingPopulation_IsValid(int value) {
359
  switch (value) {
360
    case 0:
361
    case 1:
362
    case 2:
363
    case 3:
364
      return true;
365
    default:
366
      return false;
367
  }
368
}
369
370
#if !defined(_MSC_VER) || _MSC_VER >= 1900
371
const ChromeClientInfo_SafeBrowsingReportingPopulation ChromeClientInfo::UNSPECIFIED;
372
const ChromeClientInfo_SafeBrowsingReportingPopulation ChromeClientInfo::OPT_OUT;
373
const ChromeClientInfo_SafeBrowsingReportingPopulation ChromeClientInfo::EXTENDED;
374
const ChromeClientInfo_SafeBrowsingReportingPopulation ChromeClientInfo::SCOUT;
375
const ChromeClientInfo_SafeBrowsingReportingPopulation ChromeClientInfo::SafeBrowsingReportingPopulation_MIN;
376
const ChromeClientInfo_SafeBrowsingReportingPopulation ChromeClientInfo::SafeBrowsingReportingPopulation_MAX;
377
const int ChromeClientInfo::SafeBrowsingReportingPopulation_ARRAYSIZE;
378
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
379
bool ThreatType_IsValid(int value) {
380
  switch (value) {
381
    case 0:
382
    case 1:
383
    case 2:
384
    case 3:
385
    case 4:
386
    case 5:
387
    case 6:
388
    case 7:
389
    case 8:
390
    case 9:
391
    case 10:
392
    case 13:
393
      return true;
394
    default:
395
      return false;
396
  }
397
}
398
399
bool PlatformType_IsValid(int value) {
400
  switch (value) {
401
    case 0:
402
    case 1:
403
    case 2:
404
    case 3:
405
    case 4:
406
    case 5:
407
    case 6:
408
    case 7:
409
    case 8:
410
      return true;
411
    default:
412
      return false;
413
  }
414
}
415
416
bool CompressionType_IsValid(int value) {
417
  switch (value) {
418
    case 0:
419
    case 1:
420
    case 2:
421
      return true;
422
    default:
423
      return false;
424
  }
425
}
426
427
bool ThreatEntryType_IsValid(int value) {
428
  switch (value) {
429
    case 0:
430
    case 1:
431
    case 2:
432
    case 3:
433
    case 4:
434
    case 5:
435
    case 6:
436
      return true;
437
    default:
438
      return false;
439
  }
440
}
441
442
443
// ===================================================================
444
445
#if !defined(_MSC_VER) || _MSC_VER >= 1900
446
const int ThreatInfo::kThreatTypesFieldNumber;
447
const int ThreatInfo::kPlatformTypesFieldNumber;
448
const int ThreatInfo::kThreatEntryTypesFieldNumber;
449
const int ThreatInfo::kThreatEntriesFieldNumber;
450
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
451
452
ThreatInfo::ThreatInfo()
453
0
  : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) {
454
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
455
0
    protobuf_safebrowsing_2eproto::InitDefaults();
456
0
  }
457
0
  SharedCtor();
458
0
  // @@protoc_insertion_point(constructor:mozilla.safebrowsing.ThreatInfo)
459
0
}
460
ThreatInfo::ThreatInfo(const ThreatInfo& from)
461
  : ::google::protobuf::MessageLite(),
462
      _internal_metadata_(NULL),
463
      _has_bits_(from._has_bits_),
464
      _cached_size_(0),
465
      threat_types_(from.threat_types_),
466
      platform_types_(from.platform_types_),
467
      threat_entries_(from.threat_entries_),
468
0
      threat_entry_types_(from.threat_entry_types_) {
469
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
470
0
  // @@protoc_insertion_point(copy_constructor:mozilla.safebrowsing.ThreatInfo)
471
0
}
472
473
0
void ThreatInfo::SharedCtor() {
474
0
  _cached_size_ = 0;
475
0
}
476
477
0
ThreatInfo::~ThreatInfo() {
478
0
  // @@protoc_insertion_point(destructor:mozilla.safebrowsing.ThreatInfo)
479
0
  SharedDtor();
480
0
}
481
482
0
void ThreatInfo::SharedDtor() {
483
0
}
484
485
0
void ThreatInfo::SetCachedSize(int size) const {
486
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
487
0
  _cached_size_ = size;
488
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
489
0
}
490
0
const ThreatInfo& ThreatInfo::default_instance() {
491
0
  protobuf_safebrowsing_2eproto::InitDefaults();
492
0
  return *internal_default_instance();
493
0
}
494
495
0
ThreatInfo* ThreatInfo::New(::google::protobuf::Arena* arena) const {
496
0
  ThreatInfo* n = new ThreatInfo;
497
0
  if (arena != NULL) {
498
0
    arena->Own(n);
499
0
  }
500
0
  return n;
501
0
}
502
503
0
void ThreatInfo::Clear() {
504
0
// @@protoc_insertion_point(message_clear_start:mozilla.safebrowsing.ThreatInfo)
505
0
  ::google::protobuf::uint32 cached_has_bits = 0;
506
0
  // Prevent compiler warnings about cached_has_bits being unused
507
0
  (void) cached_has_bits;
508
0
509
0
  threat_types_.Clear();
510
0
  platform_types_.Clear();
511
0
  threat_entries_.Clear();
512
0
  threat_entry_types_.Clear();
513
0
  _has_bits_.Clear();
514
0
  _internal_metadata_.Clear();
515
0
}
516
517
bool ThreatInfo::MergePartialFromCodedStream(
518
0
    ::google::protobuf::io::CodedInputStream* input) {
519
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
520
0
  ::google::protobuf::uint32 tag;
521
0
  ::google::protobuf::io::LazyStringOutputStream unknown_fields_string(
522
0
      ::google::protobuf::NewPermanentCallback(&_internal_metadata_,
523
0
          &::google::protobuf::internal::InternalMetadataWithArenaLite::
524
0
              mutable_unknown_fields));
525
0
  ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
526
0
      &unknown_fields_string, false);
527
0
  // @@protoc_insertion_point(parse_start:mozilla.safebrowsing.ThreatInfo)
528
0
  for (;;) {
529
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
530
0
    tag = p.first;
531
0
    if (!p.second) goto handle_unusual;
532
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
533
0
      // repeated .mozilla.safebrowsing.ThreatType threat_types = 1;
534
0
      case 1: {
535
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
536
0
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
537
0
          int value;
538
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
539
0
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
540
0
                 input, &value)));
541
0
          if (::mozilla::safebrowsing::ThreatType_IsValid(value)) {
542
0
            add_threat_types(static_cast< ::mozilla::safebrowsing::ThreatType >(value));
543
0
          } else {
544
0
            unknown_fields_stream.WriteVarint32(tag);
545
0
            unknown_fields_stream.WriteVarint32(
546
0
                static_cast< ::google::protobuf::uint32>(value));
547
0
          }
548
0
        } else if (
549
0
            static_cast< ::google::protobuf::uint8>(tag) ==
550
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
551
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPackedEnumPreserveUnknowns(
552
0
                 input,
553
0
                 1,
554
0
                 ::mozilla::safebrowsing::ThreatType_IsValid,
555
0
                 &unknown_fields_stream,
556
0
                 this->mutable_threat_types())));
557
0
        } else {
558
0
          goto handle_unusual;
559
0
        }
560
0
        break;
561
0
      }
562
0
563
0
      // repeated .mozilla.safebrowsing.PlatformType platform_types = 2;
564
0
      case 2: {
565
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
566
0
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
567
0
          int value;
568
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
569
0
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
570
0
                 input, &value)));
571
0
          if (::mozilla::safebrowsing::PlatformType_IsValid(value)) {
572
0
            add_platform_types(static_cast< ::mozilla::safebrowsing::PlatformType >(value));
573
0
          } else {
574
0
            unknown_fields_stream.WriteVarint32(tag);
575
0
            unknown_fields_stream.WriteVarint32(
576
0
                static_cast< ::google::protobuf::uint32>(value));
577
0
          }
578
0
        } else if (
579
0
            static_cast< ::google::protobuf::uint8>(tag) ==
580
0
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
581
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPackedEnumPreserveUnknowns(
582
0
                 input,
583
0
                 2,
584
0
                 ::mozilla::safebrowsing::PlatformType_IsValid,
585
0
                 &unknown_fields_stream,
586
0
                 this->mutable_platform_types())));
587
0
        } else {
588
0
          goto handle_unusual;
589
0
        }
590
0
        break;
591
0
      }
592
0
593
0
      // repeated .mozilla.safebrowsing.ThreatEntry threat_entries = 3;
594
0
      case 3: {
595
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
596
0
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
597
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
598
0
                input, add_threat_entries()));
599
0
        } else {
600
0
          goto handle_unusual;
601
0
        }
602
0
        break;
603
0
      }
604
0
605
0
      // repeated .mozilla.safebrowsing.ThreatEntryType threat_entry_types = 4;
606
0
      case 4: {
607
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
608
0
            static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
609
0
          int value;
610
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
611
0
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
612
0
                 input, &value)));
613
0
          if (::mozilla::safebrowsing::ThreatEntryType_IsValid(value)) {
614
0
            add_threat_entry_types(static_cast< ::mozilla::safebrowsing::ThreatEntryType >(value));
615
0
          } else {
616
0
            unknown_fields_stream.WriteVarint32(tag);
617
0
            unknown_fields_stream.WriteVarint32(
618
0
                static_cast< ::google::protobuf::uint32>(value));
619
0
          }
620
0
        } else if (
621
0
            static_cast< ::google::protobuf::uint8>(tag) ==
622
0
            static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
623
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPackedEnumPreserveUnknowns(
624
0
                 input,
625
0
                 4,
626
0
                 ::mozilla::safebrowsing::ThreatEntryType_IsValid,
627
0
                 &unknown_fields_stream,
628
0
                 this->mutable_threat_entry_types())));
629
0
        } else {
630
0
          goto handle_unusual;
631
0
        }
632
0
        break;
633
0
      }
634
0
635
0
      default: {
636
0
      handle_unusual:
637
0
        if (tag == 0) {
638
0
          goto success;
639
0
        }
640
0
        DO_(::google::protobuf::internal::WireFormatLite::SkipField(
641
0
            input, tag, &unknown_fields_stream));
642
0
        break;
643
0
      }
644
0
    }
645
0
  }
646
0
success:
647
0
  // @@protoc_insertion_point(parse_success:mozilla.safebrowsing.ThreatInfo)
648
0
  return true;
649
0
failure:
650
0
  // @@protoc_insertion_point(parse_failure:mozilla.safebrowsing.ThreatInfo)
651
0
  return false;
652
0
#undef DO_
653
0
}
654
655
void ThreatInfo::SerializeWithCachedSizes(
656
0
    ::google::protobuf::io::CodedOutputStream* output) const {
657
0
  // @@protoc_insertion_point(serialize_start:mozilla.safebrowsing.ThreatInfo)
658
0
  ::google::protobuf::uint32 cached_has_bits = 0;
659
0
  (void) cached_has_bits;
660
0
661
0
  // repeated .mozilla.safebrowsing.ThreatType threat_types = 1;
662
0
  for (int i = 0, n = this->threat_types_size(); i < n; i++) {
663
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
664
0
      1, this->threat_types(i), output);
665
0
  }
666
0
667
0
  // repeated .mozilla.safebrowsing.PlatformType platform_types = 2;
668
0
  for (int i = 0, n = this->platform_types_size(); i < n; i++) {
669
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
670
0
      2, this->platform_types(i), output);
671
0
  }
672
0
673
0
  // repeated .mozilla.safebrowsing.ThreatEntry threat_entries = 3;
674
0
  for (unsigned int i = 0,
675
0
      n = static_cast<unsigned int>(this->threat_entries_size()); i < n; i++) {
676
0
    ::google::protobuf::internal::WireFormatLite::WriteMessage(
677
0
      3, this->threat_entries(static_cast<int>(i)), output);
678
0
  }
679
0
680
0
  // repeated .mozilla.safebrowsing.ThreatEntryType threat_entry_types = 4;
681
0
  for (int i = 0, n = this->threat_entry_types_size(); i < n; i++) {
682
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
683
0
      4, this->threat_entry_types(i), output);
684
0
  }
685
0
686
0
  output->WriteRaw(_internal_metadata_.unknown_fields().data(),
687
0
                   static_cast<int>(_internal_metadata_.unknown_fields().size()));
688
0
  // @@protoc_insertion_point(serialize_end:mozilla.safebrowsing.ThreatInfo)
689
0
}
690
691
0
size_t ThreatInfo::ByteSizeLong() const {
692
0
// @@protoc_insertion_point(message_byte_size_start:mozilla.safebrowsing.ThreatInfo)
693
0
  size_t total_size = 0;
694
0
695
0
  total_size += _internal_metadata_.unknown_fields().size();
696
0
697
0
  // repeated .mozilla.safebrowsing.ThreatType threat_types = 1;
698
0
  {
699
0
    size_t data_size = 0;
700
0
    unsigned int count = static_cast<unsigned int>(this->threat_types_size());for (unsigned int i = 0; i < count; i++) {
701
0
      data_size += ::google::protobuf::internal::WireFormatLite::EnumSize(
702
0
        this->threat_types(static_cast<int>(i)));
703
0
    }
704
0
    total_size += (1UL * count) + data_size;
705
0
  }
706
0
707
0
  // repeated .mozilla.safebrowsing.PlatformType platform_types = 2;
708
0
  {
709
0
    size_t data_size = 0;
710
0
    unsigned int count = static_cast<unsigned int>(this->platform_types_size());for (unsigned int i = 0; i < count; i++) {
711
0
      data_size += ::google::protobuf::internal::WireFormatLite::EnumSize(
712
0
        this->platform_types(static_cast<int>(i)));
713
0
    }
714
0
    total_size += (1UL * count) + data_size;
715
0
  }
716
0
717
0
  // repeated .mozilla.safebrowsing.ThreatEntry threat_entries = 3;
718
0
  {
719
0
    unsigned int count = static_cast<unsigned int>(this->threat_entries_size());
720
0
    total_size += 1UL * count;
721
0
    for (unsigned int i = 0; i < count; i++) {
722
0
      total_size +=
723
0
        ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
724
0
          this->threat_entries(static_cast<int>(i)));
725
0
    }
726
0
  }
727
0
728
0
  // repeated .mozilla.safebrowsing.ThreatEntryType threat_entry_types = 4;
729
0
  {
730
0
    size_t data_size = 0;
731
0
    unsigned int count = static_cast<unsigned int>(this->threat_entry_types_size());for (unsigned int i = 0; i < count; i++) {
732
0
      data_size += ::google::protobuf::internal::WireFormatLite::EnumSize(
733
0
        this->threat_entry_types(static_cast<int>(i)));
734
0
    }
735
0
    total_size += (1UL * count) + data_size;
736
0
  }
737
0
738
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
739
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
740
0
  _cached_size_ = cached_size;
741
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
742
0
  return total_size;
743
0
}
744
745
void ThreatInfo::CheckTypeAndMergeFrom(
746
0
    const ::google::protobuf::MessageLite& from) {
747
0
  MergeFrom(*::google::protobuf::down_cast<const ThreatInfo*>(&from));
748
0
}
749
750
0
void ThreatInfo::MergeFrom(const ThreatInfo& from) {
751
0
// @@protoc_insertion_point(class_specific_merge_from_start:mozilla.safebrowsing.ThreatInfo)
752
0
  GOOGLE_DCHECK_NE(&from, this);
753
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
754
0
  ::google::protobuf::uint32 cached_has_bits = 0;
755
0
  (void) cached_has_bits;
756
0
757
0
  threat_types_.MergeFrom(from.threat_types_);
758
0
  platform_types_.MergeFrom(from.platform_types_);
759
0
  threat_entries_.MergeFrom(from.threat_entries_);
760
0
  threat_entry_types_.MergeFrom(from.threat_entry_types_);
761
0
}
762
763
0
void ThreatInfo::CopyFrom(const ThreatInfo& from) {
764
0
// @@protoc_insertion_point(class_specific_copy_from_start:mozilla.safebrowsing.ThreatInfo)
765
0
  if (&from == this) return;
766
0
  Clear();
767
0
  MergeFrom(from);
768
0
}
769
770
0
bool ThreatInfo::IsInitialized() const {
771
0
  return true;
772
0
}
773
774
0
void ThreatInfo::Swap(ThreatInfo* other) {
775
0
  if (other == this) return;
776
0
  InternalSwap(other);
777
0
}
778
0
void ThreatInfo::InternalSwap(ThreatInfo* other) {
779
0
  using std::swap;
780
0
  threat_types_.InternalSwap(&other->threat_types_);
781
0
  platform_types_.InternalSwap(&other->platform_types_);
782
0
  threat_entries_.InternalSwap(&other->threat_entries_);
783
0
  threat_entry_types_.InternalSwap(&other->threat_entry_types_);
784
0
  swap(_has_bits_[0], other->_has_bits_[0]);
785
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
786
0
  swap(_cached_size_, other->_cached_size_);
787
0
}
788
789
0
::std::string ThreatInfo::GetTypeName() const {
790
0
  return "mozilla.safebrowsing.ThreatInfo";
791
0
}
792
793
#if PROTOBUF_INLINE_NOT_IN_HEADERS
794
// ThreatInfo
795
796
// repeated .mozilla.safebrowsing.ThreatType threat_types = 1;
797
int ThreatInfo::threat_types_size() const {
798
  return threat_types_.size();
799
}
800
void ThreatInfo::clear_threat_types() {
801
  threat_types_.Clear();
802
}
803
::mozilla::safebrowsing::ThreatType ThreatInfo::threat_types(int index) const {
804
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatInfo.threat_types)
805
  return static_cast< ::mozilla::safebrowsing::ThreatType >(threat_types_.Get(index));
806
}
807
void ThreatInfo::set_threat_types(int index, ::mozilla::safebrowsing::ThreatType value) {
808
  assert(::mozilla::safebrowsing::ThreatType_IsValid(value));
809
  threat_types_.Set(index, value);
810
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatInfo.threat_types)
811
}
812
void ThreatInfo::add_threat_types(::mozilla::safebrowsing::ThreatType value) {
813
  assert(::mozilla::safebrowsing::ThreatType_IsValid(value));
814
  threat_types_.Add(value);
815
  // @@protoc_insertion_point(field_add:mozilla.safebrowsing.ThreatInfo.threat_types)
816
}
817
const ::google::protobuf::RepeatedField<int>&
818
ThreatInfo::threat_types() const {
819
  // @@protoc_insertion_point(field_list:mozilla.safebrowsing.ThreatInfo.threat_types)
820
  return threat_types_;
821
}
822
::google::protobuf::RepeatedField<int>*
823
ThreatInfo::mutable_threat_types() {
824
  // @@protoc_insertion_point(field_mutable_list:mozilla.safebrowsing.ThreatInfo.threat_types)
825
  return &threat_types_;
826
}
827
828
// repeated .mozilla.safebrowsing.PlatformType platform_types = 2;
829
int ThreatInfo::platform_types_size() const {
830
  return platform_types_.size();
831
}
832
void ThreatInfo::clear_platform_types() {
833
  platform_types_.Clear();
834
}
835
::mozilla::safebrowsing::PlatformType ThreatInfo::platform_types(int index) const {
836
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatInfo.platform_types)
837
  return static_cast< ::mozilla::safebrowsing::PlatformType >(platform_types_.Get(index));
838
}
839
void ThreatInfo::set_platform_types(int index, ::mozilla::safebrowsing::PlatformType value) {
840
  assert(::mozilla::safebrowsing::PlatformType_IsValid(value));
841
  platform_types_.Set(index, value);
842
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatInfo.platform_types)
843
}
844
void ThreatInfo::add_platform_types(::mozilla::safebrowsing::PlatformType value) {
845
  assert(::mozilla::safebrowsing::PlatformType_IsValid(value));
846
  platform_types_.Add(value);
847
  // @@protoc_insertion_point(field_add:mozilla.safebrowsing.ThreatInfo.platform_types)
848
}
849
const ::google::protobuf::RepeatedField<int>&
850
ThreatInfo::platform_types() const {
851
  // @@protoc_insertion_point(field_list:mozilla.safebrowsing.ThreatInfo.platform_types)
852
  return platform_types_;
853
}
854
::google::protobuf::RepeatedField<int>*
855
ThreatInfo::mutable_platform_types() {
856
  // @@protoc_insertion_point(field_mutable_list:mozilla.safebrowsing.ThreatInfo.platform_types)
857
  return &platform_types_;
858
}
859
860
// repeated .mozilla.safebrowsing.ThreatEntryType threat_entry_types = 4;
861
int ThreatInfo::threat_entry_types_size() const {
862
  return threat_entry_types_.size();
863
}
864
void ThreatInfo::clear_threat_entry_types() {
865
  threat_entry_types_.Clear();
866
}
867
::mozilla::safebrowsing::ThreatEntryType ThreatInfo::threat_entry_types(int index) const {
868
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatInfo.threat_entry_types)
869
  return static_cast< ::mozilla::safebrowsing::ThreatEntryType >(threat_entry_types_.Get(index));
870
}
871
void ThreatInfo::set_threat_entry_types(int index, ::mozilla::safebrowsing::ThreatEntryType value) {
872
  assert(::mozilla::safebrowsing::ThreatEntryType_IsValid(value));
873
  threat_entry_types_.Set(index, value);
874
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatInfo.threat_entry_types)
875
}
876
void ThreatInfo::add_threat_entry_types(::mozilla::safebrowsing::ThreatEntryType value) {
877
  assert(::mozilla::safebrowsing::ThreatEntryType_IsValid(value));
878
  threat_entry_types_.Add(value);
879
  // @@protoc_insertion_point(field_add:mozilla.safebrowsing.ThreatInfo.threat_entry_types)
880
}
881
const ::google::protobuf::RepeatedField<int>&
882
ThreatInfo::threat_entry_types() const {
883
  // @@protoc_insertion_point(field_list:mozilla.safebrowsing.ThreatInfo.threat_entry_types)
884
  return threat_entry_types_;
885
}
886
::google::protobuf::RepeatedField<int>*
887
ThreatInfo::mutable_threat_entry_types() {
888
  // @@protoc_insertion_point(field_mutable_list:mozilla.safebrowsing.ThreatInfo.threat_entry_types)
889
  return &threat_entry_types_;
890
}
891
892
// repeated .mozilla.safebrowsing.ThreatEntry threat_entries = 3;
893
int ThreatInfo::threat_entries_size() const {
894
  return threat_entries_.size();
895
}
896
void ThreatInfo::clear_threat_entries() {
897
  threat_entries_.Clear();
898
}
899
const ::mozilla::safebrowsing::ThreatEntry& ThreatInfo::threat_entries(int index) const {
900
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatInfo.threat_entries)
901
  return threat_entries_.Get(index);
902
}
903
::mozilla::safebrowsing::ThreatEntry* ThreatInfo::mutable_threat_entries(int index) {
904
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatInfo.threat_entries)
905
  return threat_entries_.Mutable(index);
906
}
907
::mozilla::safebrowsing::ThreatEntry* ThreatInfo::add_threat_entries() {
908
  // @@protoc_insertion_point(field_add:mozilla.safebrowsing.ThreatInfo.threat_entries)
909
  return threat_entries_.Add();
910
}
911
::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatEntry >*
912
ThreatInfo::mutable_threat_entries() {
913
  // @@protoc_insertion_point(field_mutable_list:mozilla.safebrowsing.ThreatInfo.threat_entries)
914
  return &threat_entries_;
915
}
916
const ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatEntry >&
917
ThreatInfo::threat_entries() const {
918
  // @@protoc_insertion_point(field_list:mozilla.safebrowsing.ThreatInfo.threat_entries)
919
  return threat_entries_;
920
}
921
922
#endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
923
924
// ===================================================================
925
926
#if !defined(_MSC_VER) || _MSC_VER >= 1900
927
const int ThreatMatch::kThreatTypeFieldNumber;
928
const int ThreatMatch::kPlatformTypeFieldNumber;
929
const int ThreatMatch::kThreatEntryTypeFieldNumber;
930
const int ThreatMatch::kThreatFieldNumber;
931
const int ThreatMatch::kThreatEntryMetadataFieldNumber;
932
const int ThreatMatch::kCacheDurationFieldNumber;
933
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
934
935
ThreatMatch::ThreatMatch()
936
0
  : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) {
937
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
938
0
    protobuf_safebrowsing_2eproto::InitDefaults();
939
0
  }
940
0
  SharedCtor();
941
0
  // @@protoc_insertion_point(constructor:mozilla.safebrowsing.ThreatMatch)
942
0
}
943
ThreatMatch::ThreatMatch(const ThreatMatch& from)
944
  : ::google::protobuf::MessageLite(),
945
      _internal_metadata_(NULL),
946
      _has_bits_(from._has_bits_),
947
0
      _cached_size_(0) {
948
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
949
0
  if (from.has_threat()) {
950
0
    threat_ = new ::mozilla::safebrowsing::ThreatEntry(*from.threat_);
951
0
  } else {
952
0
    threat_ = NULL;
953
0
  }
954
0
  if (from.has_threat_entry_metadata()) {
955
0
    threat_entry_metadata_ = new ::mozilla::safebrowsing::ThreatEntryMetadata(*from.threat_entry_metadata_);
956
0
  } else {
957
0
    threat_entry_metadata_ = NULL;
958
0
  }
959
0
  if (from.has_cache_duration()) {
960
0
    cache_duration_ = new ::mozilla::safebrowsing::Duration(*from.cache_duration_);
961
0
  } else {
962
0
    cache_duration_ = NULL;
963
0
  }
964
0
  ::memcpy(&threat_type_, &from.threat_type_,
965
0
    static_cast<size_t>(reinterpret_cast<char*>(&threat_entry_type_) -
966
0
    reinterpret_cast<char*>(&threat_type_)) + sizeof(threat_entry_type_));
967
0
  // @@protoc_insertion_point(copy_constructor:mozilla.safebrowsing.ThreatMatch)
968
0
}
969
970
0
void ThreatMatch::SharedCtor() {
971
0
  _cached_size_ = 0;
972
0
  ::memset(&threat_, 0, static_cast<size_t>(
973
0
      reinterpret_cast<char*>(&threat_entry_type_) -
974
0
      reinterpret_cast<char*>(&threat_)) + sizeof(threat_entry_type_));
975
0
}
976
977
0
ThreatMatch::~ThreatMatch() {
978
0
  // @@protoc_insertion_point(destructor:mozilla.safebrowsing.ThreatMatch)
979
0
  SharedDtor();
980
0
}
981
982
0
void ThreatMatch::SharedDtor() {
983
0
  if (this != internal_default_instance()) delete threat_;
984
0
  if (this != internal_default_instance()) delete threat_entry_metadata_;
985
0
  if (this != internal_default_instance()) delete cache_duration_;
986
0
}
987
988
0
void ThreatMatch::SetCachedSize(int size) const {
989
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
990
0
  _cached_size_ = size;
991
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
992
0
}
993
0
const ThreatMatch& ThreatMatch::default_instance() {
994
0
  protobuf_safebrowsing_2eproto::InitDefaults();
995
0
  return *internal_default_instance();
996
0
}
997
998
0
ThreatMatch* ThreatMatch::New(::google::protobuf::Arena* arena) const {
999
0
  ThreatMatch* n = new ThreatMatch;
1000
0
  if (arena != NULL) {
1001
0
    arena->Own(n);
1002
0
  }
1003
0
  return n;
1004
0
}
1005
1006
0
void ThreatMatch::Clear() {
1007
0
// @@protoc_insertion_point(message_clear_start:mozilla.safebrowsing.ThreatMatch)
1008
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1009
0
  // Prevent compiler warnings about cached_has_bits being unused
1010
0
  (void) cached_has_bits;
1011
0
1012
0
  cached_has_bits = _has_bits_[0];
1013
0
  if (cached_has_bits & 7u) {
1014
0
    if (cached_has_bits & 0x00000001u) {
1015
0
      GOOGLE_DCHECK(threat_ != NULL);
1016
0
      threat_->::mozilla::safebrowsing::ThreatEntry::Clear();
1017
0
    }
1018
0
    if (cached_has_bits & 0x00000002u) {
1019
0
      GOOGLE_DCHECK(threat_entry_metadata_ != NULL);
1020
0
      threat_entry_metadata_->::mozilla::safebrowsing::ThreatEntryMetadata::Clear();
1021
0
    }
1022
0
    if (cached_has_bits & 0x00000004u) {
1023
0
      GOOGLE_DCHECK(cache_duration_ != NULL);
1024
0
      cache_duration_->::mozilla::safebrowsing::Duration::Clear();
1025
0
    }
1026
0
  }
1027
0
  if (cached_has_bits & 56u) {
1028
0
    ::memset(&threat_type_, 0, static_cast<size_t>(
1029
0
        reinterpret_cast<char*>(&threat_entry_type_) -
1030
0
        reinterpret_cast<char*>(&threat_type_)) + sizeof(threat_entry_type_));
1031
0
  }
1032
0
  _has_bits_.Clear();
1033
0
  _internal_metadata_.Clear();
1034
0
}
1035
1036
bool ThreatMatch::MergePartialFromCodedStream(
1037
0
    ::google::protobuf::io::CodedInputStream* input) {
1038
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
1039
0
  ::google::protobuf::uint32 tag;
1040
0
  ::google::protobuf::io::LazyStringOutputStream unknown_fields_string(
1041
0
      ::google::protobuf::NewPermanentCallback(&_internal_metadata_,
1042
0
          &::google::protobuf::internal::InternalMetadataWithArenaLite::
1043
0
              mutable_unknown_fields));
1044
0
  ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
1045
0
      &unknown_fields_string, false);
1046
0
  // @@protoc_insertion_point(parse_start:mozilla.safebrowsing.ThreatMatch)
1047
0
  for (;;) {
1048
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1049
0
    tag = p.first;
1050
0
    if (!p.second) goto handle_unusual;
1051
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1052
0
      // optional .mozilla.safebrowsing.ThreatType threat_type = 1;
1053
0
      case 1: {
1054
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1055
0
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
1056
0
          int value;
1057
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1058
0
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
1059
0
                 input, &value)));
1060
0
          if (::mozilla::safebrowsing::ThreatType_IsValid(value)) {
1061
0
            set_threat_type(static_cast< ::mozilla::safebrowsing::ThreatType >(value));
1062
0
          } else {
1063
0
            unknown_fields_stream.WriteVarint32(8u);
1064
0
            unknown_fields_stream.WriteVarint32(
1065
0
                static_cast< ::google::protobuf::uint32>(value));
1066
0
          }
1067
0
        } else {
1068
0
          goto handle_unusual;
1069
0
        }
1070
0
        break;
1071
0
      }
1072
0
1073
0
      // optional .mozilla.safebrowsing.PlatformType platform_type = 2;
1074
0
      case 2: {
1075
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1076
0
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
1077
0
          int value;
1078
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1079
0
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
1080
0
                 input, &value)));
1081
0
          if (::mozilla::safebrowsing::PlatformType_IsValid(value)) {
1082
0
            set_platform_type(static_cast< ::mozilla::safebrowsing::PlatformType >(value));
1083
0
          } else {
1084
0
            unknown_fields_stream.WriteVarint32(16u);
1085
0
            unknown_fields_stream.WriteVarint32(
1086
0
                static_cast< ::google::protobuf::uint32>(value));
1087
0
          }
1088
0
        } else {
1089
0
          goto handle_unusual;
1090
0
        }
1091
0
        break;
1092
0
      }
1093
0
1094
0
      // optional .mozilla.safebrowsing.ThreatEntry threat = 3;
1095
0
      case 3: {
1096
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1097
0
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
1098
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1099
0
               input, mutable_threat()));
1100
0
        } else {
1101
0
          goto handle_unusual;
1102
0
        }
1103
0
        break;
1104
0
      }
1105
0
1106
0
      // optional .mozilla.safebrowsing.ThreatEntryMetadata threat_entry_metadata = 4;
1107
0
      case 4: {
1108
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1109
0
            static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
1110
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1111
0
               input, mutable_threat_entry_metadata()));
1112
0
        } else {
1113
0
          goto handle_unusual;
1114
0
        }
1115
0
        break;
1116
0
      }
1117
0
1118
0
      // optional .mozilla.safebrowsing.Duration cache_duration = 5;
1119
0
      case 5: {
1120
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1121
0
            static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
1122
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1123
0
               input, mutable_cache_duration()));
1124
0
        } else {
1125
0
          goto handle_unusual;
1126
0
        }
1127
0
        break;
1128
0
      }
1129
0
1130
0
      // optional .mozilla.safebrowsing.ThreatEntryType threat_entry_type = 6;
1131
0
      case 6: {
1132
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1133
0
            static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
1134
0
          int value;
1135
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1136
0
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
1137
0
                 input, &value)));
1138
0
          if (::mozilla::safebrowsing::ThreatEntryType_IsValid(value)) {
1139
0
            set_threat_entry_type(static_cast< ::mozilla::safebrowsing::ThreatEntryType >(value));
1140
0
          } else {
1141
0
            unknown_fields_stream.WriteVarint32(48u);
1142
0
            unknown_fields_stream.WriteVarint32(
1143
0
                static_cast< ::google::protobuf::uint32>(value));
1144
0
          }
1145
0
        } else {
1146
0
          goto handle_unusual;
1147
0
        }
1148
0
        break;
1149
0
      }
1150
0
1151
0
      default: {
1152
0
      handle_unusual:
1153
0
        if (tag == 0) {
1154
0
          goto success;
1155
0
        }
1156
0
        DO_(::google::protobuf::internal::WireFormatLite::SkipField(
1157
0
            input, tag, &unknown_fields_stream));
1158
0
        break;
1159
0
      }
1160
0
    }
1161
0
  }
1162
0
success:
1163
0
  // @@protoc_insertion_point(parse_success:mozilla.safebrowsing.ThreatMatch)
1164
0
  return true;
1165
0
failure:
1166
0
  // @@protoc_insertion_point(parse_failure:mozilla.safebrowsing.ThreatMatch)
1167
0
  return false;
1168
0
#undef DO_
1169
0
}
1170
1171
void ThreatMatch::SerializeWithCachedSizes(
1172
0
    ::google::protobuf::io::CodedOutputStream* output) const {
1173
0
  // @@protoc_insertion_point(serialize_start:mozilla.safebrowsing.ThreatMatch)
1174
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1175
0
  (void) cached_has_bits;
1176
0
1177
0
  cached_has_bits = _has_bits_[0];
1178
0
  // optional .mozilla.safebrowsing.ThreatType threat_type = 1;
1179
0
  if (cached_has_bits & 0x00000008u) {
1180
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
1181
0
      1, this->threat_type(), output);
1182
0
  }
1183
0
1184
0
  // optional .mozilla.safebrowsing.PlatformType platform_type = 2;
1185
0
  if (cached_has_bits & 0x00000010u) {
1186
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
1187
0
      2, this->platform_type(), output);
1188
0
  }
1189
0
1190
0
  // optional .mozilla.safebrowsing.ThreatEntry threat = 3;
1191
0
  if (cached_has_bits & 0x00000001u) {
1192
0
    ::google::protobuf::internal::WireFormatLite::WriteMessage(
1193
0
      3, *this->threat_, output);
1194
0
  }
1195
0
1196
0
  // optional .mozilla.safebrowsing.ThreatEntryMetadata threat_entry_metadata = 4;
1197
0
  if (cached_has_bits & 0x00000002u) {
1198
0
    ::google::protobuf::internal::WireFormatLite::WriteMessage(
1199
0
      4, *this->threat_entry_metadata_, output);
1200
0
  }
1201
0
1202
0
  // optional .mozilla.safebrowsing.Duration cache_duration = 5;
1203
0
  if (cached_has_bits & 0x00000004u) {
1204
0
    ::google::protobuf::internal::WireFormatLite::WriteMessage(
1205
0
      5, *this->cache_duration_, output);
1206
0
  }
1207
0
1208
0
  // optional .mozilla.safebrowsing.ThreatEntryType threat_entry_type = 6;
1209
0
  if (cached_has_bits & 0x00000020u) {
1210
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
1211
0
      6, this->threat_entry_type(), output);
1212
0
  }
1213
0
1214
0
  output->WriteRaw(_internal_metadata_.unknown_fields().data(),
1215
0
                   static_cast<int>(_internal_metadata_.unknown_fields().size()));
1216
0
  // @@protoc_insertion_point(serialize_end:mozilla.safebrowsing.ThreatMatch)
1217
0
}
1218
1219
0
size_t ThreatMatch::ByteSizeLong() const {
1220
0
// @@protoc_insertion_point(message_byte_size_start:mozilla.safebrowsing.ThreatMatch)
1221
0
  size_t total_size = 0;
1222
0
1223
0
  total_size += _internal_metadata_.unknown_fields().size();
1224
0
1225
0
  if (_has_bits_[0 / 32] & 63u) {
1226
0
    // optional .mozilla.safebrowsing.ThreatEntry threat = 3;
1227
0
    if (has_threat()) {
1228
0
      total_size += 1 +
1229
0
        ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1230
0
          *this->threat_);
1231
0
    }
1232
0
1233
0
    // optional .mozilla.safebrowsing.ThreatEntryMetadata threat_entry_metadata = 4;
1234
0
    if (has_threat_entry_metadata()) {
1235
0
      total_size += 1 +
1236
0
        ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1237
0
          *this->threat_entry_metadata_);
1238
0
    }
1239
0
1240
0
    // optional .mozilla.safebrowsing.Duration cache_duration = 5;
1241
0
    if (has_cache_duration()) {
1242
0
      total_size += 1 +
1243
0
        ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1244
0
          *this->cache_duration_);
1245
0
    }
1246
0
1247
0
    // optional .mozilla.safebrowsing.ThreatType threat_type = 1;
1248
0
    if (has_threat_type()) {
1249
0
      total_size += 1 +
1250
0
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->threat_type());
1251
0
    }
1252
0
1253
0
    // optional .mozilla.safebrowsing.PlatformType platform_type = 2;
1254
0
    if (has_platform_type()) {
1255
0
      total_size += 1 +
1256
0
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->platform_type());
1257
0
    }
1258
0
1259
0
    // optional .mozilla.safebrowsing.ThreatEntryType threat_entry_type = 6;
1260
0
    if (has_threat_entry_type()) {
1261
0
      total_size += 1 +
1262
0
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->threat_entry_type());
1263
0
    }
1264
0
1265
0
  }
1266
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1267
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1268
0
  _cached_size_ = cached_size;
1269
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1270
0
  return total_size;
1271
0
}
1272
1273
void ThreatMatch::CheckTypeAndMergeFrom(
1274
0
    const ::google::protobuf::MessageLite& from) {
1275
0
  MergeFrom(*::google::protobuf::down_cast<const ThreatMatch*>(&from));
1276
0
}
1277
1278
0
void ThreatMatch::MergeFrom(const ThreatMatch& from) {
1279
0
// @@protoc_insertion_point(class_specific_merge_from_start:mozilla.safebrowsing.ThreatMatch)
1280
0
  GOOGLE_DCHECK_NE(&from, this);
1281
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1282
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1283
0
  (void) cached_has_bits;
1284
0
1285
0
  cached_has_bits = from._has_bits_[0];
1286
0
  if (cached_has_bits & 63u) {
1287
0
    if (cached_has_bits & 0x00000001u) {
1288
0
      mutable_threat()->::mozilla::safebrowsing::ThreatEntry::MergeFrom(from.threat());
1289
0
    }
1290
0
    if (cached_has_bits & 0x00000002u) {
1291
0
      mutable_threat_entry_metadata()->::mozilla::safebrowsing::ThreatEntryMetadata::MergeFrom(from.threat_entry_metadata());
1292
0
    }
1293
0
    if (cached_has_bits & 0x00000004u) {
1294
0
      mutable_cache_duration()->::mozilla::safebrowsing::Duration::MergeFrom(from.cache_duration());
1295
0
    }
1296
0
    if (cached_has_bits & 0x00000008u) {
1297
0
      threat_type_ = from.threat_type_;
1298
0
    }
1299
0
    if (cached_has_bits & 0x00000010u) {
1300
0
      platform_type_ = from.platform_type_;
1301
0
    }
1302
0
    if (cached_has_bits & 0x00000020u) {
1303
0
      threat_entry_type_ = from.threat_entry_type_;
1304
0
    }
1305
0
    _has_bits_[0] |= cached_has_bits;
1306
0
  }
1307
0
}
1308
1309
0
void ThreatMatch::CopyFrom(const ThreatMatch& from) {
1310
0
// @@protoc_insertion_point(class_specific_copy_from_start:mozilla.safebrowsing.ThreatMatch)
1311
0
  if (&from == this) return;
1312
0
  Clear();
1313
0
  MergeFrom(from);
1314
0
}
1315
1316
0
bool ThreatMatch::IsInitialized() const {
1317
0
  return true;
1318
0
}
1319
1320
0
void ThreatMatch::Swap(ThreatMatch* other) {
1321
0
  if (other == this) return;
1322
0
  InternalSwap(other);
1323
0
}
1324
0
void ThreatMatch::InternalSwap(ThreatMatch* other) {
1325
0
  using std::swap;
1326
0
  swap(threat_, other->threat_);
1327
0
  swap(threat_entry_metadata_, other->threat_entry_metadata_);
1328
0
  swap(cache_duration_, other->cache_duration_);
1329
0
  swap(threat_type_, other->threat_type_);
1330
0
  swap(platform_type_, other->platform_type_);
1331
0
  swap(threat_entry_type_, other->threat_entry_type_);
1332
0
  swap(_has_bits_[0], other->_has_bits_[0]);
1333
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
1334
0
  swap(_cached_size_, other->_cached_size_);
1335
0
}
1336
1337
0
::std::string ThreatMatch::GetTypeName() const {
1338
0
  return "mozilla.safebrowsing.ThreatMatch";
1339
0
}
1340
1341
#if PROTOBUF_INLINE_NOT_IN_HEADERS
1342
// ThreatMatch
1343
1344
// optional .mozilla.safebrowsing.ThreatType threat_type = 1;
1345
bool ThreatMatch::has_threat_type() const {
1346
  return (_has_bits_[0] & 0x00000008u) != 0;
1347
}
1348
void ThreatMatch::set_has_threat_type() {
1349
  _has_bits_[0] |= 0x00000008u;
1350
}
1351
void ThreatMatch::clear_has_threat_type() {
1352
  _has_bits_[0] &= ~0x00000008u;
1353
}
1354
void ThreatMatch::clear_threat_type() {
1355
  threat_type_ = 0;
1356
  clear_has_threat_type();
1357
}
1358
::mozilla::safebrowsing::ThreatType ThreatMatch::threat_type() const {
1359
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatMatch.threat_type)
1360
  return static_cast< ::mozilla::safebrowsing::ThreatType >(threat_type_);
1361
}
1362
void ThreatMatch::set_threat_type(::mozilla::safebrowsing::ThreatType value) {
1363
  assert(::mozilla::safebrowsing::ThreatType_IsValid(value));
1364
  set_has_threat_type();
1365
  threat_type_ = value;
1366
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatMatch.threat_type)
1367
}
1368
1369
// optional .mozilla.safebrowsing.PlatformType platform_type = 2;
1370
bool ThreatMatch::has_platform_type() const {
1371
  return (_has_bits_[0] & 0x00000010u) != 0;
1372
}
1373
void ThreatMatch::set_has_platform_type() {
1374
  _has_bits_[0] |= 0x00000010u;
1375
}
1376
void ThreatMatch::clear_has_platform_type() {
1377
  _has_bits_[0] &= ~0x00000010u;
1378
}
1379
void ThreatMatch::clear_platform_type() {
1380
  platform_type_ = 0;
1381
  clear_has_platform_type();
1382
}
1383
::mozilla::safebrowsing::PlatformType ThreatMatch::platform_type() const {
1384
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatMatch.platform_type)
1385
  return static_cast< ::mozilla::safebrowsing::PlatformType >(platform_type_);
1386
}
1387
void ThreatMatch::set_platform_type(::mozilla::safebrowsing::PlatformType value) {
1388
  assert(::mozilla::safebrowsing::PlatformType_IsValid(value));
1389
  set_has_platform_type();
1390
  platform_type_ = value;
1391
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatMatch.platform_type)
1392
}
1393
1394
// optional .mozilla.safebrowsing.ThreatEntryType threat_entry_type = 6;
1395
bool ThreatMatch::has_threat_entry_type() const {
1396
  return (_has_bits_[0] & 0x00000020u) != 0;
1397
}
1398
void ThreatMatch::set_has_threat_entry_type() {
1399
  _has_bits_[0] |= 0x00000020u;
1400
}
1401
void ThreatMatch::clear_has_threat_entry_type() {
1402
  _has_bits_[0] &= ~0x00000020u;
1403
}
1404
void ThreatMatch::clear_threat_entry_type() {
1405
  threat_entry_type_ = 0;
1406
  clear_has_threat_entry_type();
1407
}
1408
::mozilla::safebrowsing::ThreatEntryType ThreatMatch::threat_entry_type() const {
1409
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatMatch.threat_entry_type)
1410
  return static_cast< ::mozilla::safebrowsing::ThreatEntryType >(threat_entry_type_);
1411
}
1412
void ThreatMatch::set_threat_entry_type(::mozilla::safebrowsing::ThreatEntryType value) {
1413
  assert(::mozilla::safebrowsing::ThreatEntryType_IsValid(value));
1414
  set_has_threat_entry_type();
1415
  threat_entry_type_ = value;
1416
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatMatch.threat_entry_type)
1417
}
1418
1419
// optional .mozilla.safebrowsing.ThreatEntry threat = 3;
1420
bool ThreatMatch::has_threat() const {
1421
  return (_has_bits_[0] & 0x00000001u) != 0;
1422
}
1423
void ThreatMatch::set_has_threat() {
1424
  _has_bits_[0] |= 0x00000001u;
1425
}
1426
void ThreatMatch::clear_has_threat() {
1427
  _has_bits_[0] &= ~0x00000001u;
1428
}
1429
void ThreatMatch::clear_threat() {
1430
  if (threat_ != NULL) threat_->::mozilla::safebrowsing::ThreatEntry::Clear();
1431
  clear_has_threat();
1432
}
1433
const ::mozilla::safebrowsing::ThreatEntry& ThreatMatch::threat() const {
1434
  const ::mozilla::safebrowsing::ThreatEntry* p = threat_;
1435
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatMatch.threat)
1436
  return p != NULL ? *p : *reinterpret_cast<const ::mozilla::safebrowsing::ThreatEntry*>(
1437
      &::mozilla::safebrowsing::_ThreatEntry_default_instance_);
1438
}
1439
::mozilla::safebrowsing::ThreatEntry* ThreatMatch::mutable_threat() {
1440
  set_has_threat();
1441
  if (threat_ == NULL) {
1442
    threat_ = new ::mozilla::safebrowsing::ThreatEntry;
1443
  }
1444
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatMatch.threat)
1445
  return threat_;
1446
}
1447
::mozilla::safebrowsing::ThreatEntry* ThreatMatch::release_threat() {
1448
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.ThreatMatch.threat)
1449
  clear_has_threat();
1450
  ::mozilla::safebrowsing::ThreatEntry* temp = threat_;
1451
  threat_ = NULL;
1452
  return temp;
1453
}
1454
void ThreatMatch::set_allocated_threat(::mozilla::safebrowsing::ThreatEntry* threat) {
1455
  delete threat_;
1456
  threat_ = threat;
1457
  if (threat) {
1458
    set_has_threat();
1459
  } else {
1460
    clear_has_threat();
1461
  }
1462
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.ThreatMatch.threat)
1463
}
1464
1465
// optional .mozilla.safebrowsing.ThreatEntryMetadata threat_entry_metadata = 4;
1466
bool ThreatMatch::has_threat_entry_metadata() const {
1467
  return (_has_bits_[0] & 0x00000002u) != 0;
1468
}
1469
void ThreatMatch::set_has_threat_entry_metadata() {
1470
  _has_bits_[0] |= 0x00000002u;
1471
}
1472
void ThreatMatch::clear_has_threat_entry_metadata() {
1473
  _has_bits_[0] &= ~0x00000002u;
1474
}
1475
void ThreatMatch::clear_threat_entry_metadata() {
1476
  if (threat_entry_metadata_ != NULL) threat_entry_metadata_->::mozilla::safebrowsing::ThreatEntryMetadata::Clear();
1477
  clear_has_threat_entry_metadata();
1478
}
1479
const ::mozilla::safebrowsing::ThreatEntryMetadata& ThreatMatch::threat_entry_metadata() const {
1480
  const ::mozilla::safebrowsing::ThreatEntryMetadata* p = threat_entry_metadata_;
1481
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatMatch.threat_entry_metadata)
1482
  return p != NULL ? *p : *reinterpret_cast<const ::mozilla::safebrowsing::ThreatEntryMetadata*>(
1483
      &::mozilla::safebrowsing::_ThreatEntryMetadata_default_instance_);
1484
}
1485
::mozilla::safebrowsing::ThreatEntryMetadata* ThreatMatch::mutable_threat_entry_metadata() {
1486
  set_has_threat_entry_metadata();
1487
  if (threat_entry_metadata_ == NULL) {
1488
    threat_entry_metadata_ = new ::mozilla::safebrowsing::ThreatEntryMetadata;
1489
  }
1490
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatMatch.threat_entry_metadata)
1491
  return threat_entry_metadata_;
1492
}
1493
::mozilla::safebrowsing::ThreatEntryMetadata* ThreatMatch::release_threat_entry_metadata() {
1494
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.ThreatMatch.threat_entry_metadata)
1495
  clear_has_threat_entry_metadata();
1496
  ::mozilla::safebrowsing::ThreatEntryMetadata* temp = threat_entry_metadata_;
1497
  threat_entry_metadata_ = NULL;
1498
  return temp;
1499
}
1500
void ThreatMatch::set_allocated_threat_entry_metadata(::mozilla::safebrowsing::ThreatEntryMetadata* threat_entry_metadata) {
1501
  delete threat_entry_metadata_;
1502
  threat_entry_metadata_ = threat_entry_metadata;
1503
  if (threat_entry_metadata) {
1504
    set_has_threat_entry_metadata();
1505
  } else {
1506
    clear_has_threat_entry_metadata();
1507
  }
1508
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.ThreatMatch.threat_entry_metadata)
1509
}
1510
1511
// optional .mozilla.safebrowsing.Duration cache_duration = 5;
1512
bool ThreatMatch::has_cache_duration() const {
1513
  return (_has_bits_[0] & 0x00000004u) != 0;
1514
}
1515
void ThreatMatch::set_has_cache_duration() {
1516
  _has_bits_[0] |= 0x00000004u;
1517
}
1518
void ThreatMatch::clear_has_cache_duration() {
1519
  _has_bits_[0] &= ~0x00000004u;
1520
}
1521
void ThreatMatch::clear_cache_duration() {
1522
  if (cache_duration_ != NULL) cache_duration_->::mozilla::safebrowsing::Duration::Clear();
1523
  clear_has_cache_duration();
1524
}
1525
const ::mozilla::safebrowsing::Duration& ThreatMatch::cache_duration() const {
1526
  const ::mozilla::safebrowsing::Duration* p = cache_duration_;
1527
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatMatch.cache_duration)
1528
  return p != NULL ? *p : *reinterpret_cast<const ::mozilla::safebrowsing::Duration*>(
1529
      &::mozilla::safebrowsing::_Duration_default_instance_);
1530
}
1531
::mozilla::safebrowsing::Duration* ThreatMatch::mutable_cache_duration() {
1532
  set_has_cache_duration();
1533
  if (cache_duration_ == NULL) {
1534
    cache_duration_ = new ::mozilla::safebrowsing::Duration;
1535
  }
1536
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatMatch.cache_duration)
1537
  return cache_duration_;
1538
}
1539
::mozilla::safebrowsing::Duration* ThreatMatch::release_cache_duration() {
1540
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.ThreatMatch.cache_duration)
1541
  clear_has_cache_duration();
1542
  ::mozilla::safebrowsing::Duration* temp = cache_duration_;
1543
  cache_duration_ = NULL;
1544
  return temp;
1545
}
1546
void ThreatMatch::set_allocated_cache_duration(::mozilla::safebrowsing::Duration* cache_duration) {
1547
  delete cache_duration_;
1548
  cache_duration_ = cache_duration;
1549
  if (cache_duration) {
1550
    set_has_cache_duration();
1551
  } else {
1552
    clear_has_cache_duration();
1553
  }
1554
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.ThreatMatch.cache_duration)
1555
}
1556
1557
#endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
1558
1559
// ===================================================================
1560
1561
#if !defined(_MSC_VER) || _MSC_VER >= 1900
1562
const int FindThreatMatchesRequest::kClientFieldNumber;
1563
const int FindThreatMatchesRequest::kThreatInfoFieldNumber;
1564
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
1565
1566
FindThreatMatchesRequest::FindThreatMatchesRequest()
1567
0
  : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) {
1568
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
1569
0
    protobuf_safebrowsing_2eproto::InitDefaults();
1570
0
  }
1571
0
  SharedCtor();
1572
0
  // @@protoc_insertion_point(constructor:mozilla.safebrowsing.FindThreatMatchesRequest)
1573
0
}
1574
FindThreatMatchesRequest::FindThreatMatchesRequest(const FindThreatMatchesRequest& from)
1575
  : ::google::protobuf::MessageLite(),
1576
      _internal_metadata_(NULL),
1577
      _has_bits_(from._has_bits_),
1578
0
      _cached_size_(0) {
1579
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1580
0
  if (from.has_client()) {
1581
0
    client_ = new ::mozilla::safebrowsing::ClientInfo(*from.client_);
1582
0
  } else {
1583
0
    client_ = NULL;
1584
0
  }
1585
0
  if (from.has_threat_info()) {
1586
0
    threat_info_ = new ::mozilla::safebrowsing::ThreatInfo(*from.threat_info_);
1587
0
  } else {
1588
0
    threat_info_ = NULL;
1589
0
  }
1590
0
  // @@protoc_insertion_point(copy_constructor:mozilla.safebrowsing.FindThreatMatchesRequest)
1591
0
}
1592
1593
0
void FindThreatMatchesRequest::SharedCtor() {
1594
0
  _cached_size_ = 0;
1595
0
  ::memset(&client_, 0, static_cast<size_t>(
1596
0
      reinterpret_cast<char*>(&threat_info_) -
1597
0
      reinterpret_cast<char*>(&client_)) + sizeof(threat_info_));
1598
0
}
1599
1600
0
FindThreatMatchesRequest::~FindThreatMatchesRequest() {
1601
0
  // @@protoc_insertion_point(destructor:mozilla.safebrowsing.FindThreatMatchesRequest)
1602
0
  SharedDtor();
1603
0
}
1604
1605
0
void FindThreatMatchesRequest::SharedDtor() {
1606
0
  if (this != internal_default_instance()) delete client_;
1607
0
  if (this != internal_default_instance()) delete threat_info_;
1608
0
}
1609
1610
0
void FindThreatMatchesRequest::SetCachedSize(int size) const {
1611
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1612
0
  _cached_size_ = size;
1613
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1614
0
}
1615
0
const FindThreatMatchesRequest& FindThreatMatchesRequest::default_instance() {
1616
0
  protobuf_safebrowsing_2eproto::InitDefaults();
1617
0
  return *internal_default_instance();
1618
0
}
1619
1620
0
FindThreatMatchesRequest* FindThreatMatchesRequest::New(::google::protobuf::Arena* arena) const {
1621
0
  FindThreatMatchesRequest* n = new FindThreatMatchesRequest;
1622
0
  if (arena != NULL) {
1623
0
    arena->Own(n);
1624
0
  }
1625
0
  return n;
1626
0
}
1627
1628
0
void FindThreatMatchesRequest::Clear() {
1629
0
// @@protoc_insertion_point(message_clear_start:mozilla.safebrowsing.FindThreatMatchesRequest)
1630
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1631
0
  // Prevent compiler warnings about cached_has_bits being unused
1632
0
  (void) cached_has_bits;
1633
0
1634
0
  cached_has_bits = _has_bits_[0];
1635
0
  if (cached_has_bits & 3u) {
1636
0
    if (cached_has_bits & 0x00000001u) {
1637
0
      GOOGLE_DCHECK(client_ != NULL);
1638
0
      client_->::mozilla::safebrowsing::ClientInfo::Clear();
1639
0
    }
1640
0
    if (cached_has_bits & 0x00000002u) {
1641
0
      GOOGLE_DCHECK(threat_info_ != NULL);
1642
0
      threat_info_->::mozilla::safebrowsing::ThreatInfo::Clear();
1643
0
    }
1644
0
  }
1645
0
  _has_bits_.Clear();
1646
0
  _internal_metadata_.Clear();
1647
0
}
1648
1649
bool FindThreatMatchesRequest::MergePartialFromCodedStream(
1650
0
    ::google::protobuf::io::CodedInputStream* input) {
1651
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
1652
0
  ::google::protobuf::uint32 tag;
1653
0
  ::google::protobuf::io::LazyStringOutputStream unknown_fields_string(
1654
0
      ::google::protobuf::NewPermanentCallback(&_internal_metadata_,
1655
0
          &::google::protobuf::internal::InternalMetadataWithArenaLite::
1656
0
              mutable_unknown_fields));
1657
0
  ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
1658
0
      &unknown_fields_string, false);
1659
0
  // @@protoc_insertion_point(parse_start:mozilla.safebrowsing.FindThreatMatchesRequest)
1660
0
  for (;;) {
1661
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1662
0
    tag = p.first;
1663
0
    if (!p.second) goto handle_unusual;
1664
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1665
0
      // optional .mozilla.safebrowsing.ClientInfo client = 1;
1666
0
      case 1: {
1667
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1668
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
1669
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1670
0
               input, mutable_client()));
1671
0
        } else {
1672
0
          goto handle_unusual;
1673
0
        }
1674
0
        break;
1675
0
      }
1676
0
1677
0
      // optional .mozilla.safebrowsing.ThreatInfo threat_info = 2;
1678
0
      case 2: {
1679
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1680
0
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
1681
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1682
0
               input, mutable_threat_info()));
1683
0
        } else {
1684
0
          goto handle_unusual;
1685
0
        }
1686
0
        break;
1687
0
      }
1688
0
1689
0
      default: {
1690
0
      handle_unusual:
1691
0
        if (tag == 0) {
1692
0
          goto success;
1693
0
        }
1694
0
        DO_(::google::protobuf::internal::WireFormatLite::SkipField(
1695
0
            input, tag, &unknown_fields_stream));
1696
0
        break;
1697
0
      }
1698
0
    }
1699
0
  }
1700
0
success:
1701
0
  // @@protoc_insertion_point(parse_success:mozilla.safebrowsing.FindThreatMatchesRequest)
1702
0
  return true;
1703
0
failure:
1704
0
  // @@protoc_insertion_point(parse_failure:mozilla.safebrowsing.FindThreatMatchesRequest)
1705
0
  return false;
1706
0
#undef DO_
1707
0
}
1708
1709
void FindThreatMatchesRequest::SerializeWithCachedSizes(
1710
0
    ::google::protobuf::io::CodedOutputStream* output) const {
1711
0
  // @@protoc_insertion_point(serialize_start:mozilla.safebrowsing.FindThreatMatchesRequest)
1712
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1713
0
  (void) cached_has_bits;
1714
0
1715
0
  cached_has_bits = _has_bits_[0];
1716
0
  // optional .mozilla.safebrowsing.ClientInfo client = 1;
1717
0
  if (cached_has_bits & 0x00000001u) {
1718
0
    ::google::protobuf::internal::WireFormatLite::WriteMessage(
1719
0
      1, *this->client_, output);
1720
0
  }
1721
0
1722
0
  // optional .mozilla.safebrowsing.ThreatInfo threat_info = 2;
1723
0
  if (cached_has_bits & 0x00000002u) {
1724
0
    ::google::protobuf::internal::WireFormatLite::WriteMessage(
1725
0
      2, *this->threat_info_, output);
1726
0
  }
1727
0
1728
0
  output->WriteRaw(_internal_metadata_.unknown_fields().data(),
1729
0
                   static_cast<int>(_internal_metadata_.unknown_fields().size()));
1730
0
  // @@protoc_insertion_point(serialize_end:mozilla.safebrowsing.FindThreatMatchesRequest)
1731
0
}
1732
1733
0
size_t FindThreatMatchesRequest::ByteSizeLong() const {
1734
0
// @@protoc_insertion_point(message_byte_size_start:mozilla.safebrowsing.FindThreatMatchesRequest)
1735
0
  size_t total_size = 0;
1736
0
1737
0
  total_size += _internal_metadata_.unknown_fields().size();
1738
0
1739
0
  if (_has_bits_[0 / 32] & 3u) {
1740
0
    // optional .mozilla.safebrowsing.ClientInfo client = 1;
1741
0
    if (has_client()) {
1742
0
      total_size += 1 +
1743
0
        ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1744
0
          *this->client_);
1745
0
    }
1746
0
1747
0
    // optional .mozilla.safebrowsing.ThreatInfo threat_info = 2;
1748
0
    if (has_threat_info()) {
1749
0
      total_size += 1 +
1750
0
        ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1751
0
          *this->threat_info_);
1752
0
    }
1753
0
1754
0
  }
1755
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1756
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1757
0
  _cached_size_ = cached_size;
1758
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1759
0
  return total_size;
1760
0
}
1761
1762
void FindThreatMatchesRequest::CheckTypeAndMergeFrom(
1763
0
    const ::google::protobuf::MessageLite& from) {
1764
0
  MergeFrom(*::google::protobuf::down_cast<const FindThreatMatchesRequest*>(&from));
1765
0
}
1766
1767
0
void FindThreatMatchesRequest::MergeFrom(const FindThreatMatchesRequest& from) {
1768
0
// @@protoc_insertion_point(class_specific_merge_from_start:mozilla.safebrowsing.FindThreatMatchesRequest)
1769
0
  GOOGLE_DCHECK_NE(&from, this);
1770
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1771
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1772
0
  (void) cached_has_bits;
1773
0
1774
0
  cached_has_bits = from._has_bits_[0];
1775
0
  if (cached_has_bits & 3u) {
1776
0
    if (cached_has_bits & 0x00000001u) {
1777
0
      mutable_client()->::mozilla::safebrowsing::ClientInfo::MergeFrom(from.client());
1778
0
    }
1779
0
    if (cached_has_bits & 0x00000002u) {
1780
0
      mutable_threat_info()->::mozilla::safebrowsing::ThreatInfo::MergeFrom(from.threat_info());
1781
0
    }
1782
0
  }
1783
0
}
1784
1785
0
void FindThreatMatchesRequest::CopyFrom(const FindThreatMatchesRequest& from) {
1786
0
// @@protoc_insertion_point(class_specific_copy_from_start:mozilla.safebrowsing.FindThreatMatchesRequest)
1787
0
  if (&from == this) return;
1788
0
  Clear();
1789
0
  MergeFrom(from);
1790
0
}
1791
1792
0
bool FindThreatMatchesRequest::IsInitialized() const {
1793
0
  return true;
1794
0
}
1795
1796
0
void FindThreatMatchesRequest::Swap(FindThreatMatchesRequest* other) {
1797
0
  if (other == this) return;
1798
0
  InternalSwap(other);
1799
0
}
1800
0
void FindThreatMatchesRequest::InternalSwap(FindThreatMatchesRequest* other) {
1801
0
  using std::swap;
1802
0
  swap(client_, other->client_);
1803
0
  swap(threat_info_, other->threat_info_);
1804
0
  swap(_has_bits_[0], other->_has_bits_[0]);
1805
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
1806
0
  swap(_cached_size_, other->_cached_size_);
1807
0
}
1808
1809
0
::std::string FindThreatMatchesRequest::GetTypeName() const {
1810
0
  return "mozilla.safebrowsing.FindThreatMatchesRequest";
1811
0
}
1812
1813
#if PROTOBUF_INLINE_NOT_IN_HEADERS
1814
// FindThreatMatchesRequest
1815
1816
// optional .mozilla.safebrowsing.ClientInfo client = 1;
1817
bool FindThreatMatchesRequest::has_client() const {
1818
  return (_has_bits_[0] & 0x00000001u) != 0;
1819
}
1820
void FindThreatMatchesRequest::set_has_client() {
1821
  _has_bits_[0] |= 0x00000001u;
1822
}
1823
void FindThreatMatchesRequest::clear_has_client() {
1824
  _has_bits_[0] &= ~0x00000001u;
1825
}
1826
void FindThreatMatchesRequest::clear_client() {
1827
  if (client_ != NULL) client_->::mozilla::safebrowsing::ClientInfo::Clear();
1828
  clear_has_client();
1829
}
1830
const ::mozilla::safebrowsing::ClientInfo& FindThreatMatchesRequest::client() const {
1831
  const ::mozilla::safebrowsing::ClientInfo* p = client_;
1832
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FindThreatMatchesRequest.client)
1833
  return p != NULL ? *p : *reinterpret_cast<const ::mozilla::safebrowsing::ClientInfo*>(
1834
      &::mozilla::safebrowsing::_ClientInfo_default_instance_);
1835
}
1836
::mozilla::safebrowsing::ClientInfo* FindThreatMatchesRequest::mutable_client() {
1837
  set_has_client();
1838
  if (client_ == NULL) {
1839
    client_ = new ::mozilla::safebrowsing::ClientInfo;
1840
  }
1841
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.FindThreatMatchesRequest.client)
1842
  return client_;
1843
}
1844
::mozilla::safebrowsing::ClientInfo* FindThreatMatchesRequest::release_client() {
1845
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.FindThreatMatchesRequest.client)
1846
  clear_has_client();
1847
  ::mozilla::safebrowsing::ClientInfo* temp = client_;
1848
  client_ = NULL;
1849
  return temp;
1850
}
1851
void FindThreatMatchesRequest::set_allocated_client(::mozilla::safebrowsing::ClientInfo* client) {
1852
  delete client_;
1853
  client_ = client;
1854
  if (client) {
1855
    set_has_client();
1856
  } else {
1857
    clear_has_client();
1858
  }
1859
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.FindThreatMatchesRequest.client)
1860
}
1861
1862
// optional .mozilla.safebrowsing.ThreatInfo threat_info = 2;
1863
bool FindThreatMatchesRequest::has_threat_info() const {
1864
  return (_has_bits_[0] & 0x00000002u) != 0;
1865
}
1866
void FindThreatMatchesRequest::set_has_threat_info() {
1867
  _has_bits_[0] |= 0x00000002u;
1868
}
1869
void FindThreatMatchesRequest::clear_has_threat_info() {
1870
  _has_bits_[0] &= ~0x00000002u;
1871
}
1872
void FindThreatMatchesRequest::clear_threat_info() {
1873
  if (threat_info_ != NULL) threat_info_->::mozilla::safebrowsing::ThreatInfo::Clear();
1874
  clear_has_threat_info();
1875
}
1876
const ::mozilla::safebrowsing::ThreatInfo& FindThreatMatchesRequest::threat_info() const {
1877
  const ::mozilla::safebrowsing::ThreatInfo* p = threat_info_;
1878
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FindThreatMatchesRequest.threat_info)
1879
  return p != NULL ? *p : *reinterpret_cast<const ::mozilla::safebrowsing::ThreatInfo*>(
1880
      &::mozilla::safebrowsing::_ThreatInfo_default_instance_);
1881
}
1882
::mozilla::safebrowsing::ThreatInfo* FindThreatMatchesRequest::mutable_threat_info() {
1883
  set_has_threat_info();
1884
  if (threat_info_ == NULL) {
1885
    threat_info_ = new ::mozilla::safebrowsing::ThreatInfo;
1886
  }
1887
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.FindThreatMatchesRequest.threat_info)
1888
  return threat_info_;
1889
}
1890
::mozilla::safebrowsing::ThreatInfo* FindThreatMatchesRequest::release_threat_info() {
1891
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.FindThreatMatchesRequest.threat_info)
1892
  clear_has_threat_info();
1893
  ::mozilla::safebrowsing::ThreatInfo* temp = threat_info_;
1894
  threat_info_ = NULL;
1895
  return temp;
1896
}
1897
void FindThreatMatchesRequest::set_allocated_threat_info(::mozilla::safebrowsing::ThreatInfo* threat_info) {
1898
  delete threat_info_;
1899
  threat_info_ = threat_info;
1900
  if (threat_info) {
1901
    set_has_threat_info();
1902
  } else {
1903
    clear_has_threat_info();
1904
  }
1905
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.FindThreatMatchesRequest.threat_info)
1906
}
1907
1908
#endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
1909
1910
// ===================================================================
1911
1912
#if !defined(_MSC_VER) || _MSC_VER >= 1900
1913
const int FindThreatMatchesResponse::kMatchesFieldNumber;
1914
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
1915
1916
FindThreatMatchesResponse::FindThreatMatchesResponse()
1917
0
  : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) {
1918
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
1919
0
    protobuf_safebrowsing_2eproto::InitDefaults();
1920
0
  }
1921
0
  SharedCtor();
1922
0
  // @@protoc_insertion_point(constructor:mozilla.safebrowsing.FindThreatMatchesResponse)
1923
0
}
1924
FindThreatMatchesResponse::FindThreatMatchesResponse(const FindThreatMatchesResponse& from)
1925
  : ::google::protobuf::MessageLite(),
1926
      _internal_metadata_(NULL),
1927
      _has_bits_(from._has_bits_),
1928
      _cached_size_(0),
1929
0
      matches_(from.matches_) {
1930
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1931
0
  // @@protoc_insertion_point(copy_constructor:mozilla.safebrowsing.FindThreatMatchesResponse)
1932
0
}
1933
1934
0
void FindThreatMatchesResponse::SharedCtor() {
1935
0
  _cached_size_ = 0;
1936
0
}
1937
1938
0
FindThreatMatchesResponse::~FindThreatMatchesResponse() {
1939
0
  // @@protoc_insertion_point(destructor:mozilla.safebrowsing.FindThreatMatchesResponse)
1940
0
  SharedDtor();
1941
0
}
1942
1943
0
void FindThreatMatchesResponse::SharedDtor() {
1944
0
}
1945
1946
0
void FindThreatMatchesResponse::SetCachedSize(int size) const {
1947
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1948
0
  _cached_size_ = size;
1949
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1950
0
}
1951
0
const FindThreatMatchesResponse& FindThreatMatchesResponse::default_instance() {
1952
0
  protobuf_safebrowsing_2eproto::InitDefaults();
1953
0
  return *internal_default_instance();
1954
0
}
1955
1956
0
FindThreatMatchesResponse* FindThreatMatchesResponse::New(::google::protobuf::Arena* arena) const {
1957
0
  FindThreatMatchesResponse* n = new FindThreatMatchesResponse;
1958
0
  if (arena != NULL) {
1959
0
    arena->Own(n);
1960
0
  }
1961
0
  return n;
1962
0
}
1963
1964
0
void FindThreatMatchesResponse::Clear() {
1965
0
// @@protoc_insertion_point(message_clear_start:mozilla.safebrowsing.FindThreatMatchesResponse)
1966
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1967
0
  // Prevent compiler warnings about cached_has_bits being unused
1968
0
  (void) cached_has_bits;
1969
0
1970
0
  matches_.Clear();
1971
0
  _has_bits_.Clear();
1972
0
  _internal_metadata_.Clear();
1973
0
}
1974
1975
bool FindThreatMatchesResponse::MergePartialFromCodedStream(
1976
0
    ::google::protobuf::io::CodedInputStream* input) {
1977
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
1978
0
  ::google::protobuf::uint32 tag;
1979
0
  ::google::protobuf::io::LazyStringOutputStream unknown_fields_string(
1980
0
      ::google::protobuf::NewPermanentCallback(&_internal_metadata_,
1981
0
          &::google::protobuf::internal::InternalMetadataWithArenaLite::
1982
0
              mutable_unknown_fields));
1983
0
  ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
1984
0
      &unknown_fields_string, false);
1985
0
  // @@protoc_insertion_point(parse_start:mozilla.safebrowsing.FindThreatMatchesResponse)
1986
0
  for (;;) {
1987
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1988
0
    tag = p.first;
1989
0
    if (!p.second) goto handle_unusual;
1990
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1991
0
      // repeated .mozilla.safebrowsing.ThreatMatch matches = 1;
1992
0
      case 1: {
1993
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1994
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
1995
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1996
0
                input, add_matches()));
1997
0
        } else {
1998
0
          goto handle_unusual;
1999
0
        }
2000
0
        break;
2001
0
      }
2002
0
2003
0
      default: {
2004
0
      handle_unusual:
2005
0
        if (tag == 0) {
2006
0
          goto success;
2007
0
        }
2008
0
        DO_(::google::protobuf::internal::WireFormatLite::SkipField(
2009
0
            input, tag, &unknown_fields_stream));
2010
0
        break;
2011
0
      }
2012
0
    }
2013
0
  }
2014
0
success:
2015
0
  // @@protoc_insertion_point(parse_success:mozilla.safebrowsing.FindThreatMatchesResponse)
2016
0
  return true;
2017
0
failure:
2018
0
  // @@protoc_insertion_point(parse_failure:mozilla.safebrowsing.FindThreatMatchesResponse)
2019
0
  return false;
2020
0
#undef DO_
2021
0
}
2022
2023
void FindThreatMatchesResponse::SerializeWithCachedSizes(
2024
0
    ::google::protobuf::io::CodedOutputStream* output) const {
2025
0
  // @@protoc_insertion_point(serialize_start:mozilla.safebrowsing.FindThreatMatchesResponse)
2026
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2027
0
  (void) cached_has_bits;
2028
0
2029
0
  // repeated .mozilla.safebrowsing.ThreatMatch matches = 1;
2030
0
  for (unsigned int i = 0,
2031
0
      n = static_cast<unsigned int>(this->matches_size()); i < n; i++) {
2032
0
    ::google::protobuf::internal::WireFormatLite::WriteMessage(
2033
0
      1, this->matches(static_cast<int>(i)), output);
2034
0
  }
2035
0
2036
0
  output->WriteRaw(_internal_metadata_.unknown_fields().data(),
2037
0
                   static_cast<int>(_internal_metadata_.unknown_fields().size()));
2038
0
  // @@protoc_insertion_point(serialize_end:mozilla.safebrowsing.FindThreatMatchesResponse)
2039
0
}
2040
2041
0
size_t FindThreatMatchesResponse::ByteSizeLong() const {
2042
0
// @@protoc_insertion_point(message_byte_size_start:mozilla.safebrowsing.FindThreatMatchesResponse)
2043
0
  size_t total_size = 0;
2044
0
2045
0
  total_size += _internal_metadata_.unknown_fields().size();
2046
0
2047
0
  // repeated .mozilla.safebrowsing.ThreatMatch matches = 1;
2048
0
  {
2049
0
    unsigned int count = static_cast<unsigned int>(this->matches_size());
2050
0
    total_size += 1UL * count;
2051
0
    for (unsigned int i = 0; i < count; i++) {
2052
0
      total_size +=
2053
0
        ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2054
0
          this->matches(static_cast<int>(i)));
2055
0
    }
2056
0
  }
2057
0
2058
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2059
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2060
0
  _cached_size_ = cached_size;
2061
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2062
0
  return total_size;
2063
0
}
2064
2065
void FindThreatMatchesResponse::CheckTypeAndMergeFrom(
2066
0
    const ::google::protobuf::MessageLite& from) {
2067
0
  MergeFrom(*::google::protobuf::down_cast<const FindThreatMatchesResponse*>(&from));
2068
0
}
2069
2070
0
void FindThreatMatchesResponse::MergeFrom(const FindThreatMatchesResponse& from) {
2071
0
// @@protoc_insertion_point(class_specific_merge_from_start:mozilla.safebrowsing.FindThreatMatchesResponse)
2072
0
  GOOGLE_DCHECK_NE(&from, this);
2073
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2074
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2075
0
  (void) cached_has_bits;
2076
0
2077
0
  matches_.MergeFrom(from.matches_);
2078
0
}
2079
2080
0
void FindThreatMatchesResponse::CopyFrom(const FindThreatMatchesResponse& from) {
2081
0
// @@protoc_insertion_point(class_specific_copy_from_start:mozilla.safebrowsing.FindThreatMatchesResponse)
2082
0
  if (&from == this) return;
2083
0
  Clear();
2084
0
  MergeFrom(from);
2085
0
}
2086
2087
0
bool FindThreatMatchesResponse::IsInitialized() const {
2088
0
  return true;
2089
0
}
2090
2091
0
void FindThreatMatchesResponse::Swap(FindThreatMatchesResponse* other) {
2092
0
  if (other == this) return;
2093
0
  InternalSwap(other);
2094
0
}
2095
0
void FindThreatMatchesResponse::InternalSwap(FindThreatMatchesResponse* other) {
2096
0
  using std::swap;
2097
0
  matches_.InternalSwap(&other->matches_);
2098
0
  swap(_has_bits_[0], other->_has_bits_[0]);
2099
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
2100
0
  swap(_cached_size_, other->_cached_size_);
2101
0
}
2102
2103
0
::std::string FindThreatMatchesResponse::GetTypeName() const {
2104
0
  return "mozilla.safebrowsing.FindThreatMatchesResponse";
2105
0
}
2106
2107
#if PROTOBUF_INLINE_NOT_IN_HEADERS
2108
// FindThreatMatchesResponse
2109
2110
// repeated .mozilla.safebrowsing.ThreatMatch matches = 1;
2111
int FindThreatMatchesResponse::matches_size() const {
2112
  return matches_.size();
2113
}
2114
void FindThreatMatchesResponse::clear_matches() {
2115
  matches_.Clear();
2116
}
2117
const ::mozilla::safebrowsing::ThreatMatch& FindThreatMatchesResponse::matches(int index) const {
2118
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FindThreatMatchesResponse.matches)
2119
  return matches_.Get(index);
2120
}
2121
::mozilla::safebrowsing::ThreatMatch* FindThreatMatchesResponse::mutable_matches(int index) {
2122
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.FindThreatMatchesResponse.matches)
2123
  return matches_.Mutable(index);
2124
}
2125
::mozilla::safebrowsing::ThreatMatch* FindThreatMatchesResponse::add_matches() {
2126
  // @@protoc_insertion_point(field_add:mozilla.safebrowsing.FindThreatMatchesResponse.matches)
2127
  return matches_.Add();
2128
}
2129
::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatMatch >*
2130
FindThreatMatchesResponse::mutable_matches() {
2131
  // @@protoc_insertion_point(field_mutable_list:mozilla.safebrowsing.FindThreatMatchesResponse.matches)
2132
  return &matches_;
2133
}
2134
const ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatMatch >&
2135
FindThreatMatchesResponse::matches() const {
2136
  // @@protoc_insertion_point(field_list:mozilla.safebrowsing.FindThreatMatchesResponse.matches)
2137
  return matches_;
2138
}
2139
2140
#endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
2141
2142
// ===================================================================
2143
2144
#if !defined(_MSC_VER) || _MSC_VER >= 1900
2145
const int FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::kMaxUpdateEntriesFieldNumber;
2146
const int FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::kMaxDatabaseEntriesFieldNumber;
2147
const int FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::kRegionFieldNumber;
2148
const int FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::kSupportedCompressionsFieldNumber;
2149
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
2150
2151
FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints()
2152
0
  : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) {
2153
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
2154
0
    protobuf_safebrowsing_2eproto::InitDefaults();
2155
0
  }
2156
0
  SharedCtor();
2157
0
  // @@protoc_insertion_point(constructor:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints)
2158
0
}
2159
FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints(const FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints& from)
2160
  : ::google::protobuf::MessageLite(),
2161
      _internal_metadata_(NULL),
2162
      _has_bits_(from._has_bits_),
2163
      _cached_size_(0),
2164
0
      supported_compressions_(from.supported_compressions_) {
2165
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2166
0
  region_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2167
0
  if (from.has_region()) {
2168
0
    region_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.region_);
2169
0
  }
2170
0
  ::memcpy(&max_update_entries_, &from.max_update_entries_,
2171
0
    static_cast<size_t>(reinterpret_cast<char*>(&max_database_entries_) -
2172
0
    reinterpret_cast<char*>(&max_update_entries_)) + sizeof(max_database_entries_));
2173
0
  // @@protoc_insertion_point(copy_constructor:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints)
2174
0
}
2175
2176
0
void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::SharedCtor() {
2177
0
  _cached_size_ = 0;
2178
0
  region_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2179
0
  ::memset(&max_update_entries_, 0, static_cast<size_t>(
2180
0
      reinterpret_cast<char*>(&max_database_entries_) -
2181
0
      reinterpret_cast<char*>(&max_update_entries_)) + sizeof(max_database_entries_));
2182
0
}
2183
2184
0
FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::~FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints() {
2185
0
  // @@protoc_insertion_point(destructor:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints)
2186
0
  SharedDtor();
2187
0
}
2188
2189
0
void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::SharedDtor() {
2190
0
  region_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2191
0
}
2192
2193
0
void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::SetCachedSize(int size) const {
2194
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2195
0
  _cached_size_ = size;
2196
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2197
0
}
2198
0
const FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints& FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::default_instance() {
2199
0
  protobuf_safebrowsing_2eproto::InitDefaults();
2200
0
  return *internal_default_instance();
2201
0
}
2202
2203
0
FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints* FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::New(::google::protobuf::Arena* arena) const {
2204
0
  FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints* n = new FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints;
2205
0
  if (arena != NULL) {
2206
0
    arena->Own(n);
2207
0
  }
2208
0
  return n;
2209
0
}
2210
2211
0
void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::Clear() {
2212
0
// @@protoc_insertion_point(message_clear_start:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints)
2213
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2214
0
  // Prevent compiler warnings about cached_has_bits being unused
2215
0
  (void) cached_has_bits;
2216
0
2217
0
  supported_compressions_.Clear();
2218
0
  if (has_region()) {
2219
0
    GOOGLE_DCHECK(!region_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
2220
0
    (*region_.UnsafeRawStringPointer())->clear();
2221
0
  }
2222
0
  cached_has_bits = _has_bits_[0];
2223
0
  if (cached_has_bits & 6u) {
2224
0
    ::memset(&max_update_entries_, 0, static_cast<size_t>(
2225
0
        reinterpret_cast<char*>(&max_database_entries_) -
2226
0
        reinterpret_cast<char*>(&max_update_entries_)) + sizeof(max_database_entries_));
2227
0
  }
2228
0
  _has_bits_.Clear();
2229
0
  _internal_metadata_.Clear();
2230
0
}
2231
2232
bool FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::MergePartialFromCodedStream(
2233
0
    ::google::protobuf::io::CodedInputStream* input) {
2234
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
2235
0
  ::google::protobuf::uint32 tag;
2236
0
  ::google::protobuf::io::LazyStringOutputStream unknown_fields_string(
2237
0
      ::google::protobuf::NewPermanentCallback(&_internal_metadata_,
2238
0
          &::google::protobuf::internal::InternalMetadataWithArenaLite::
2239
0
              mutable_unknown_fields));
2240
0
  ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
2241
0
      &unknown_fields_string, false);
2242
0
  // @@protoc_insertion_point(parse_start:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints)
2243
0
  for (;;) {
2244
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2245
0
    tag = p.first;
2246
0
    if (!p.second) goto handle_unusual;
2247
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2248
0
      // optional int32 max_update_entries = 1;
2249
0
      case 1: {
2250
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2251
0
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
2252
0
          set_has_max_update_entries();
2253
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2254
0
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
2255
0
                 input, &max_update_entries_)));
2256
0
        } else {
2257
0
          goto handle_unusual;
2258
0
        }
2259
0
        break;
2260
0
      }
2261
0
2262
0
      // optional int32 max_database_entries = 2;
2263
0
      case 2: {
2264
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2265
0
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
2266
0
          set_has_max_database_entries();
2267
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2268
0
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
2269
0
                 input, &max_database_entries_)));
2270
0
        } else {
2271
0
          goto handle_unusual;
2272
0
        }
2273
0
        break;
2274
0
      }
2275
0
2276
0
      // optional string region = 3;
2277
0
      case 3: {
2278
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2279
0
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
2280
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2281
0
                input, this->mutable_region()));
2282
0
        } else {
2283
0
          goto handle_unusual;
2284
0
        }
2285
0
        break;
2286
0
      }
2287
0
2288
0
      // repeated .mozilla.safebrowsing.CompressionType supported_compressions = 4;
2289
0
      case 4: {
2290
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2291
0
            static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
2292
0
          int value;
2293
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2294
0
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
2295
0
                 input, &value)));
2296
0
          if (::mozilla::safebrowsing::CompressionType_IsValid(value)) {
2297
0
            add_supported_compressions(static_cast< ::mozilla::safebrowsing::CompressionType >(value));
2298
0
          } else {
2299
0
            unknown_fields_stream.WriteVarint32(tag);
2300
0
            unknown_fields_stream.WriteVarint32(
2301
0
                static_cast< ::google::protobuf::uint32>(value));
2302
0
          }
2303
0
        } else if (
2304
0
            static_cast< ::google::protobuf::uint8>(tag) ==
2305
0
            static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
2306
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPackedEnumPreserveUnknowns(
2307
0
                 input,
2308
0
                 4,
2309
0
                 ::mozilla::safebrowsing::CompressionType_IsValid,
2310
0
                 &unknown_fields_stream,
2311
0
                 this->mutable_supported_compressions())));
2312
0
        } else {
2313
0
          goto handle_unusual;
2314
0
        }
2315
0
        break;
2316
0
      }
2317
0
2318
0
      default: {
2319
0
      handle_unusual:
2320
0
        if (tag == 0) {
2321
0
          goto success;
2322
0
        }
2323
0
        DO_(::google::protobuf::internal::WireFormatLite::SkipField(
2324
0
            input, tag, &unknown_fields_stream));
2325
0
        break;
2326
0
      }
2327
0
    }
2328
0
  }
2329
0
success:
2330
0
  // @@protoc_insertion_point(parse_success:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints)
2331
0
  return true;
2332
0
failure:
2333
0
  // @@protoc_insertion_point(parse_failure:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints)
2334
0
  return false;
2335
0
#undef DO_
2336
0
}
2337
2338
void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::SerializeWithCachedSizes(
2339
0
    ::google::protobuf::io::CodedOutputStream* output) const {
2340
0
  // @@protoc_insertion_point(serialize_start:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints)
2341
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2342
0
  (void) cached_has_bits;
2343
0
2344
0
  cached_has_bits = _has_bits_[0];
2345
0
  // optional int32 max_update_entries = 1;
2346
0
  if (cached_has_bits & 0x00000002u) {
2347
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->max_update_entries(), output);
2348
0
  }
2349
0
2350
0
  // optional int32 max_database_entries = 2;
2351
0
  if (cached_has_bits & 0x00000004u) {
2352
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->max_database_entries(), output);
2353
0
  }
2354
0
2355
0
  // optional string region = 3;
2356
0
  if (cached_has_bits & 0x00000001u) {
2357
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2358
0
      3, this->region(), output);
2359
0
  }
2360
0
2361
0
  // repeated .mozilla.safebrowsing.CompressionType supported_compressions = 4;
2362
0
  for (int i = 0, n = this->supported_compressions_size(); i < n; i++) {
2363
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
2364
0
      4, this->supported_compressions(i), output);
2365
0
  }
2366
0
2367
0
  output->WriteRaw(_internal_metadata_.unknown_fields().data(),
2368
0
                   static_cast<int>(_internal_metadata_.unknown_fields().size()));
2369
0
  // @@protoc_insertion_point(serialize_end:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints)
2370
0
}
2371
2372
0
size_t FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::ByteSizeLong() const {
2373
0
// @@protoc_insertion_point(message_byte_size_start:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints)
2374
0
  size_t total_size = 0;
2375
0
2376
0
  total_size += _internal_metadata_.unknown_fields().size();
2377
0
2378
0
  // repeated .mozilla.safebrowsing.CompressionType supported_compressions = 4;
2379
0
  {
2380
0
    size_t data_size = 0;
2381
0
    unsigned int count = static_cast<unsigned int>(this->supported_compressions_size());for (unsigned int i = 0; i < count; i++) {
2382
0
      data_size += ::google::protobuf::internal::WireFormatLite::EnumSize(
2383
0
        this->supported_compressions(static_cast<int>(i)));
2384
0
    }
2385
0
    total_size += (1UL * count) + data_size;
2386
0
  }
2387
0
2388
0
  if (_has_bits_[0 / 32] & 7u) {
2389
0
    // optional string region = 3;
2390
0
    if (has_region()) {
2391
0
      total_size += 1 +
2392
0
        ::google::protobuf::internal::WireFormatLite::StringSize(
2393
0
          this->region());
2394
0
    }
2395
0
2396
0
    // optional int32 max_update_entries = 1;
2397
0
    if (has_max_update_entries()) {
2398
0
      total_size += 1 +
2399
0
        ::google::protobuf::internal::WireFormatLite::Int32Size(
2400
0
          this->max_update_entries());
2401
0
    }
2402
0
2403
0
    // optional int32 max_database_entries = 2;
2404
0
    if (has_max_database_entries()) {
2405
0
      total_size += 1 +
2406
0
        ::google::protobuf::internal::WireFormatLite::Int32Size(
2407
0
          this->max_database_entries());
2408
0
    }
2409
0
2410
0
  }
2411
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2412
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2413
0
  _cached_size_ = cached_size;
2414
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2415
0
  return total_size;
2416
0
}
2417
2418
void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::CheckTypeAndMergeFrom(
2419
0
    const ::google::protobuf::MessageLite& from) {
2420
0
  MergeFrom(*::google::protobuf::down_cast<const FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints*>(&from));
2421
0
}
2422
2423
0
void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::MergeFrom(const FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints& from) {
2424
0
// @@protoc_insertion_point(class_specific_merge_from_start:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints)
2425
0
  GOOGLE_DCHECK_NE(&from, this);
2426
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2427
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2428
0
  (void) cached_has_bits;
2429
0
2430
0
  supported_compressions_.MergeFrom(from.supported_compressions_);
2431
0
  cached_has_bits = from._has_bits_[0];
2432
0
  if (cached_has_bits & 7u) {
2433
0
    if (cached_has_bits & 0x00000001u) {
2434
0
      set_has_region();
2435
0
      region_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.region_);
2436
0
    }
2437
0
    if (cached_has_bits & 0x00000002u) {
2438
0
      max_update_entries_ = from.max_update_entries_;
2439
0
    }
2440
0
    if (cached_has_bits & 0x00000004u) {
2441
0
      max_database_entries_ = from.max_database_entries_;
2442
0
    }
2443
0
    _has_bits_[0] |= cached_has_bits;
2444
0
  }
2445
0
}
2446
2447
0
void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::CopyFrom(const FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints& from) {
2448
0
// @@protoc_insertion_point(class_specific_copy_from_start:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints)
2449
0
  if (&from == this) return;
2450
0
  Clear();
2451
0
  MergeFrom(from);
2452
0
}
2453
2454
0
bool FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::IsInitialized() const {
2455
0
  return true;
2456
0
}
2457
2458
0
void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::Swap(FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints* other) {
2459
0
  if (other == this) return;
2460
0
  InternalSwap(other);
2461
0
}
2462
0
void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::InternalSwap(FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints* other) {
2463
0
  using std::swap;
2464
0
  supported_compressions_.InternalSwap(&other->supported_compressions_);
2465
0
  region_.Swap(&other->region_);
2466
0
  swap(max_update_entries_, other->max_update_entries_);
2467
0
  swap(max_database_entries_, other->max_database_entries_);
2468
0
  swap(_has_bits_[0], other->_has_bits_[0]);
2469
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
2470
0
  swap(_cached_size_, other->_cached_size_);
2471
0
}
2472
2473
0
::std::string FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::GetTypeName() const {
2474
0
  return "mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints";
2475
0
}
2476
2477
#if PROTOBUF_INLINE_NOT_IN_HEADERS
2478
// FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints
2479
2480
// optional int32 max_update_entries = 1;
2481
bool FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::has_max_update_entries() const {
2482
  return (_has_bits_[0] & 0x00000002u) != 0;
2483
}
2484
void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::set_has_max_update_entries() {
2485
  _has_bits_[0] |= 0x00000002u;
2486
}
2487
void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::clear_has_max_update_entries() {
2488
  _has_bits_[0] &= ~0x00000002u;
2489
}
2490
void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::clear_max_update_entries() {
2491
  max_update_entries_ = 0;
2492
  clear_has_max_update_entries();
2493
}
2494
::google::protobuf::int32 FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::max_update_entries() const {
2495
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints.max_update_entries)
2496
  return max_update_entries_;
2497
}
2498
void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::set_max_update_entries(::google::protobuf::int32 value) {
2499
  set_has_max_update_entries();
2500
  max_update_entries_ = value;
2501
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints.max_update_entries)
2502
}
2503
2504
// optional int32 max_database_entries = 2;
2505
bool FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::has_max_database_entries() const {
2506
  return (_has_bits_[0] & 0x00000004u) != 0;
2507
}
2508
void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::set_has_max_database_entries() {
2509
  _has_bits_[0] |= 0x00000004u;
2510
}
2511
void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::clear_has_max_database_entries() {
2512
  _has_bits_[0] &= ~0x00000004u;
2513
}
2514
void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::clear_max_database_entries() {
2515
  max_database_entries_ = 0;
2516
  clear_has_max_database_entries();
2517
}
2518
::google::protobuf::int32 FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::max_database_entries() const {
2519
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints.max_database_entries)
2520
  return max_database_entries_;
2521
}
2522
void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::set_max_database_entries(::google::protobuf::int32 value) {
2523
  set_has_max_database_entries();
2524
  max_database_entries_ = value;
2525
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints.max_database_entries)
2526
}
2527
2528
// optional string region = 3;
2529
bool FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::has_region() const {
2530
  return (_has_bits_[0] & 0x00000001u) != 0;
2531
}
2532
void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::set_has_region() {
2533
  _has_bits_[0] |= 0x00000001u;
2534
}
2535
void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::clear_has_region() {
2536
  _has_bits_[0] &= ~0x00000001u;
2537
}
2538
void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::clear_region() {
2539
  region_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2540
  clear_has_region();
2541
}
2542
const ::std::string& FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::region() const {
2543
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints.region)
2544
  return region_.GetNoArena();
2545
}
2546
void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::set_region(const ::std::string& value) {
2547
  set_has_region();
2548
  region_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
2549
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints.region)
2550
}
2551
#if LANG_CXX11
2552
void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::set_region(::std::string&& value) {
2553
  set_has_region();
2554
  region_.SetNoArena(
2555
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
2556
  // @@protoc_insertion_point(field_set_rvalue:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints.region)
2557
}
2558
#endif
2559
void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::set_region(const char* value) {
2560
  GOOGLE_DCHECK(value != NULL);
2561
  set_has_region();
2562
  region_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
2563
  // @@protoc_insertion_point(field_set_char:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints.region)
2564
}
2565
void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::set_region(const char* value, size_t size) {
2566
  set_has_region();
2567
  region_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
2568
      ::std::string(reinterpret_cast<const char*>(value), size));
2569
  // @@protoc_insertion_point(field_set_pointer:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints.region)
2570
}
2571
::std::string* FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::mutable_region() {
2572
  set_has_region();
2573
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints.region)
2574
  return region_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2575
}
2576
::std::string* FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::release_region() {
2577
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints.region)
2578
  clear_has_region();
2579
  return region_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2580
}
2581
void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::set_allocated_region(::std::string* region) {
2582
  if (region != NULL) {
2583
    set_has_region();
2584
  } else {
2585
    clear_has_region();
2586
  }
2587
  region_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), region);
2588
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints.region)
2589
}
2590
2591
// repeated .mozilla.safebrowsing.CompressionType supported_compressions = 4;
2592
int FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::supported_compressions_size() const {
2593
  return supported_compressions_.size();
2594
}
2595
void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::clear_supported_compressions() {
2596
  supported_compressions_.Clear();
2597
}
2598
::mozilla::safebrowsing::CompressionType FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::supported_compressions(int index) const {
2599
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints.supported_compressions)
2600
  return static_cast< ::mozilla::safebrowsing::CompressionType >(supported_compressions_.Get(index));
2601
}
2602
void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::set_supported_compressions(int index, ::mozilla::safebrowsing::CompressionType value) {
2603
  assert(::mozilla::safebrowsing::CompressionType_IsValid(value));
2604
  supported_compressions_.Set(index, value);
2605
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints.supported_compressions)
2606
}
2607
void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::add_supported_compressions(::mozilla::safebrowsing::CompressionType value) {
2608
  assert(::mozilla::safebrowsing::CompressionType_IsValid(value));
2609
  supported_compressions_.Add(value);
2610
  // @@protoc_insertion_point(field_add:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints.supported_compressions)
2611
}
2612
const ::google::protobuf::RepeatedField<int>&
2613
FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::supported_compressions() const {
2614
  // @@protoc_insertion_point(field_list:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints.supported_compressions)
2615
  return supported_compressions_;
2616
}
2617
::google::protobuf::RepeatedField<int>*
2618
FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::mutable_supported_compressions() {
2619
  // @@protoc_insertion_point(field_mutable_list:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints.supported_compressions)
2620
  return &supported_compressions_;
2621
}
2622
2623
#endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
2624
2625
// ===================================================================
2626
2627
#if !defined(_MSC_VER) || _MSC_VER >= 1900
2628
const int FetchThreatListUpdatesRequest_ListUpdateRequest::kThreatTypeFieldNumber;
2629
const int FetchThreatListUpdatesRequest_ListUpdateRequest::kPlatformTypeFieldNumber;
2630
const int FetchThreatListUpdatesRequest_ListUpdateRequest::kThreatEntryTypeFieldNumber;
2631
const int FetchThreatListUpdatesRequest_ListUpdateRequest::kStateFieldNumber;
2632
const int FetchThreatListUpdatesRequest_ListUpdateRequest::kConstraintsFieldNumber;
2633
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
2634
2635
FetchThreatListUpdatesRequest_ListUpdateRequest::FetchThreatListUpdatesRequest_ListUpdateRequest()
2636
0
  : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) {
2637
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
2638
0
    protobuf_safebrowsing_2eproto::InitDefaults();
2639
0
  }
2640
0
  SharedCtor();
2641
0
  // @@protoc_insertion_point(constructor:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest)
2642
0
}
2643
FetchThreatListUpdatesRequest_ListUpdateRequest::FetchThreatListUpdatesRequest_ListUpdateRequest(const FetchThreatListUpdatesRequest_ListUpdateRequest& from)
2644
  : ::google::protobuf::MessageLite(),
2645
      _internal_metadata_(NULL),
2646
      _has_bits_(from._has_bits_),
2647
0
      _cached_size_(0) {
2648
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2649
0
  state_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2650
0
  if (from.has_state()) {
2651
0
    state_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.state_);
2652
0
  }
2653
0
  if (from.has_constraints()) {
2654
0
    constraints_ = new ::mozilla::safebrowsing::FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints(*from.constraints_);
2655
0
  } else {
2656
0
    constraints_ = NULL;
2657
0
  }
2658
0
  ::memcpy(&threat_type_, &from.threat_type_,
2659
0
    static_cast<size_t>(reinterpret_cast<char*>(&threat_entry_type_) -
2660
0
    reinterpret_cast<char*>(&threat_type_)) + sizeof(threat_entry_type_));
2661
0
  // @@protoc_insertion_point(copy_constructor:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest)
2662
0
}
2663
2664
0
void FetchThreatListUpdatesRequest_ListUpdateRequest::SharedCtor() {
2665
0
  _cached_size_ = 0;
2666
0
  state_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2667
0
  ::memset(&constraints_, 0, static_cast<size_t>(
2668
0
      reinterpret_cast<char*>(&threat_entry_type_) -
2669
0
      reinterpret_cast<char*>(&constraints_)) + sizeof(threat_entry_type_));
2670
0
}
2671
2672
0
FetchThreatListUpdatesRequest_ListUpdateRequest::~FetchThreatListUpdatesRequest_ListUpdateRequest() {
2673
0
  // @@protoc_insertion_point(destructor:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest)
2674
0
  SharedDtor();
2675
0
}
2676
2677
0
void FetchThreatListUpdatesRequest_ListUpdateRequest::SharedDtor() {
2678
0
  state_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2679
0
  if (this != internal_default_instance()) delete constraints_;
2680
0
}
2681
2682
0
void FetchThreatListUpdatesRequest_ListUpdateRequest::SetCachedSize(int size) const {
2683
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2684
0
  _cached_size_ = size;
2685
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2686
0
}
2687
0
const FetchThreatListUpdatesRequest_ListUpdateRequest& FetchThreatListUpdatesRequest_ListUpdateRequest::default_instance() {
2688
0
  protobuf_safebrowsing_2eproto::InitDefaults();
2689
0
  return *internal_default_instance();
2690
0
}
2691
2692
0
FetchThreatListUpdatesRequest_ListUpdateRequest* FetchThreatListUpdatesRequest_ListUpdateRequest::New(::google::protobuf::Arena* arena) const {
2693
0
  FetchThreatListUpdatesRequest_ListUpdateRequest* n = new FetchThreatListUpdatesRequest_ListUpdateRequest;
2694
0
  if (arena != NULL) {
2695
0
    arena->Own(n);
2696
0
  }
2697
0
  return n;
2698
0
}
2699
2700
0
void FetchThreatListUpdatesRequest_ListUpdateRequest::Clear() {
2701
0
// @@protoc_insertion_point(message_clear_start:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest)
2702
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2703
0
  // Prevent compiler warnings about cached_has_bits being unused
2704
0
  (void) cached_has_bits;
2705
0
2706
0
  cached_has_bits = _has_bits_[0];
2707
0
  if (cached_has_bits & 3u) {
2708
0
    if (cached_has_bits & 0x00000001u) {
2709
0
      GOOGLE_DCHECK(!state_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
2710
0
      (*state_.UnsafeRawStringPointer())->clear();
2711
0
    }
2712
0
    if (cached_has_bits & 0x00000002u) {
2713
0
      GOOGLE_DCHECK(constraints_ != NULL);
2714
0
      constraints_->::mozilla::safebrowsing::FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::Clear();
2715
0
    }
2716
0
  }
2717
0
  if (cached_has_bits & 28u) {
2718
0
    ::memset(&threat_type_, 0, static_cast<size_t>(
2719
0
        reinterpret_cast<char*>(&threat_entry_type_) -
2720
0
        reinterpret_cast<char*>(&threat_type_)) + sizeof(threat_entry_type_));
2721
0
  }
2722
0
  _has_bits_.Clear();
2723
0
  _internal_metadata_.Clear();
2724
0
}
2725
2726
bool FetchThreatListUpdatesRequest_ListUpdateRequest::MergePartialFromCodedStream(
2727
0
    ::google::protobuf::io::CodedInputStream* input) {
2728
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
2729
0
  ::google::protobuf::uint32 tag;
2730
0
  ::google::protobuf::io::LazyStringOutputStream unknown_fields_string(
2731
0
      ::google::protobuf::NewPermanentCallback(&_internal_metadata_,
2732
0
          &::google::protobuf::internal::InternalMetadataWithArenaLite::
2733
0
              mutable_unknown_fields));
2734
0
  ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
2735
0
      &unknown_fields_string, false);
2736
0
  // @@protoc_insertion_point(parse_start:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest)
2737
0
  for (;;) {
2738
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2739
0
    tag = p.first;
2740
0
    if (!p.second) goto handle_unusual;
2741
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2742
0
      // optional .mozilla.safebrowsing.ThreatType threat_type = 1;
2743
0
      case 1: {
2744
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2745
0
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
2746
0
          int value;
2747
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2748
0
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
2749
0
                 input, &value)));
2750
0
          if (::mozilla::safebrowsing::ThreatType_IsValid(value)) {
2751
0
            set_threat_type(static_cast< ::mozilla::safebrowsing::ThreatType >(value));
2752
0
          } else {
2753
0
            unknown_fields_stream.WriteVarint32(8u);
2754
0
            unknown_fields_stream.WriteVarint32(
2755
0
                static_cast< ::google::protobuf::uint32>(value));
2756
0
          }
2757
0
        } else {
2758
0
          goto handle_unusual;
2759
0
        }
2760
0
        break;
2761
0
      }
2762
0
2763
0
      // optional .mozilla.safebrowsing.PlatformType platform_type = 2;
2764
0
      case 2: {
2765
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2766
0
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
2767
0
          int value;
2768
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2769
0
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
2770
0
                 input, &value)));
2771
0
          if (::mozilla::safebrowsing::PlatformType_IsValid(value)) {
2772
0
            set_platform_type(static_cast< ::mozilla::safebrowsing::PlatformType >(value));
2773
0
          } else {
2774
0
            unknown_fields_stream.WriteVarint32(16u);
2775
0
            unknown_fields_stream.WriteVarint32(
2776
0
                static_cast< ::google::protobuf::uint32>(value));
2777
0
          }
2778
0
        } else {
2779
0
          goto handle_unusual;
2780
0
        }
2781
0
        break;
2782
0
      }
2783
0
2784
0
      // optional bytes state = 3;
2785
0
      case 3: {
2786
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2787
0
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
2788
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
2789
0
                input, this->mutable_state()));
2790
0
        } else {
2791
0
          goto handle_unusual;
2792
0
        }
2793
0
        break;
2794
0
      }
2795
0
2796
0
      // optional .mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints constraints = 4;
2797
0
      case 4: {
2798
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2799
0
            static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
2800
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
2801
0
               input, mutable_constraints()));
2802
0
        } else {
2803
0
          goto handle_unusual;
2804
0
        }
2805
0
        break;
2806
0
      }
2807
0
2808
0
      // optional .mozilla.safebrowsing.ThreatEntryType threat_entry_type = 5;
2809
0
      case 5: {
2810
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2811
0
            static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
2812
0
          int value;
2813
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2814
0
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
2815
0
                 input, &value)));
2816
0
          if (::mozilla::safebrowsing::ThreatEntryType_IsValid(value)) {
2817
0
            set_threat_entry_type(static_cast< ::mozilla::safebrowsing::ThreatEntryType >(value));
2818
0
          } else {
2819
0
            unknown_fields_stream.WriteVarint32(40u);
2820
0
            unknown_fields_stream.WriteVarint32(
2821
0
                static_cast< ::google::protobuf::uint32>(value));
2822
0
          }
2823
0
        } else {
2824
0
          goto handle_unusual;
2825
0
        }
2826
0
        break;
2827
0
      }
2828
0
2829
0
      default: {
2830
0
      handle_unusual:
2831
0
        if (tag == 0) {
2832
0
          goto success;
2833
0
        }
2834
0
        DO_(::google::protobuf::internal::WireFormatLite::SkipField(
2835
0
            input, tag, &unknown_fields_stream));
2836
0
        break;
2837
0
      }
2838
0
    }
2839
0
  }
2840
0
success:
2841
0
  // @@protoc_insertion_point(parse_success:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest)
2842
0
  return true;
2843
0
failure:
2844
0
  // @@protoc_insertion_point(parse_failure:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest)
2845
0
  return false;
2846
0
#undef DO_
2847
0
}
2848
2849
void FetchThreatListUpdatesRequest_ListUpdateRequest::SerializeWithCachedSizes(
2850
0
    ::google::protobuf::io::CodedOutputStream* output) const {
2851
0
  // @@protoc_insertion_point(serialize_start:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest)
2852
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2853
0
  (void) cached_has_bits;
2854
0
2855
0
  cached_has_bits = _has_bits_[0];
2856
0
  // optional .mozilla.safebrowsing.ThreatType threat_type = 1;
2857
0
  if (cached_has_bits & 0x00000004u) {
2858
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
2859
0
      1, this->threat_type(), output);
2860
0
  }
2861
0
2862
0
  // optional .mozilla.safebrowsing.PlatformType platform_type = 2;
2863
0
  if (cached_has_bits & 0x00000008u) {
2864
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
2865
0
      2, this->platform_type(), output);
2866
0
  }
2867
0
2868
0
  // optional bytes state = 3;
2869
0
  if (cached_has_bits & 0x00000001u) {
2870
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
2871
0
      3, this->state(), output);
2872
0
  }
2873
0
2874
0
  // optional .mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints constraints = 4;
2875
0
  if (cached_has_bits & 0x00000002u) {
2876
0
    ::google::protobuf::internal::WireFormatLite::WriteMessage(
2877
0
      4, *this->constraints_, output);
2878
0
  }
2879
0
2880
0
  // optional .mozilla.safebrowsing.ThreatEntryType threat_entry_type = 5;
2881
0
  if (cached_has_bits & 0x00000010u) {
2882
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
2883
0
      5, this->threat_entry_type(), output);
2884
0
  }
2885
0
2886
0
  output->WriteRaw(_internal_metadata_.unknown_fields().data(),
2887
0
                   static_cast<int>(_internal_metadata_.unknown_fields().size()));
2888
0
  // @@protoc_insertion_point(serialize_end:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest)
2889
0
}
2890
2891
0
size_t FetchThreatListUpdatesRequest_ListUpdateRequest::ByteSizeLong() const {
2892
0
// @@protoc_insertion_point(message_byte_size_start:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest)
2893
0
  size_t total_size = 0;
2894
0
2895
0
  total_size += _internal_metadata_.unknown_fields().size();
2896
0
2897
0
  if (_has_bits_[0 / 32] & 31u) {
2898
0
    // optional bytes state = 3;
2899
0
    if (has_state()) {
2900
0
      total_size += 1 +
2901
0
        ::google::protobuf::internal::WireFormatLite::BytesSize(
2902
0
          this->state());
2903
0
    }
2904
0
2905
0
    // optional .mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints constraints = 4;
2906
0
    if (has_constraints()) {
2907
0
      total_size += 1 +
2908
0
        ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2909
0
          *this->constraints_);
2910
0
    }
2911
0
2912
0
    // optional .mozilla.safebrowsing.ThreatType threat_type = 1;
2913
0
    if (has_threat_type()) {
2914
0
      total_size += 1 +
2915
0
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->threat_type());
2916
0
    }
2917
0
2918
0
    // optional .mozilla.safebrowsing.PlatformType platform_type = 2;
2919
0
    if (has_platform_type()) {
2920
0
      total_size += 1 +
2921
0
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->platform_type());
2922
0
    }
2923
0
2924
0
    // optional .mozilla.safebrowsing.ThreatEntryType threat_entry_type = 5;
2925
0
    if (has_threat_entry_type()) {
2926
0
      total_size += 1 +
2927
0
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->threat_entry_type());
2928
0
    }
2929
0
2930
0
  }
2931
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2932
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2933
0
  _cached_size_ = cached_size;
2934
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2935
0
  return total_size;
2936
0
}
2937
2938
void FetchThreatListUpdatesRequest_ListUpdateRequest::CheckTypeAndMergeFrom(
2939
0
    const ::google::protobuf::MessageLite& from) {
2940
0
  MergeFrom(*::google::protobuf::down_cast<const FetchThreatListUpdatesRequest_ListUpdateRequest*>(&from));
2941
0
}
2942
2943
0
void FetchThreatListUpdatesRequest_ListUpdateRequest::MergeFrom(const FetchThreatListUpdatesRequest_ListUpdateRequest& from) {
2944
0
// @@protoc_insertion_point(class_specific_merge_from_start:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest)
2945
0
  GOOGLE_DCHECK_NE(&from, this);
2946
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2947
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2948
0
  (void) cached_has_bits;
2949
0
2950
0
  cached_has_bits = from._has_bits_[0];
2951
0
  if (cached_has_bits & 31u) {
2952
0
    if (cached_has_bits & 0x00000001u) {
2953
0
      set_has_state();
2954
0
      state_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.state_);
2955
0
    }
2956
0
    if (cached_has_bits & 0x00000002u) {
2957
0
      mutable_constraints()->::mozilla::safebrowsing::FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::MergeFrom(from.constraints());
2958
0
    }
2959
0
    if (cached_has_bits & 0x00000004u) {
2960
0
      threat_type_ = from.threat_type_;
2961
0
    }
2962
0
    if (cached_has_bits & 0x00000008u) {
2963
0
      platform_type_ = from.platform_type_;
2964
0
    }
2965
0
    if (cached_has_bits & 0x00000010u) {
2966
0
      threat_entry_type_ = from.threat_entry_type_;
2967
0
    }
2968
0
    _has_bits_[0] |= cached_has_bits;
2969
0
  }
2970
0
}
2971
2972
0
void FetchThreatListUpdatesRequest_ListUpdateRequest::CopyFrom(const FetchThreatListUpdatesRequest_ListUpdateRequest& from) {
2973
0
// @@protoc_insertion_point(class_specific_copy_from_start:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest)
2974
0
  if (&from == this) return;
2975
0
  Clear();
2976
0
  MergeFrom(from);
2977
0
}
2978
2979
0
bool FetchThreatListUpdatesRequest_ListUpdateRequest::IsInitialized() const {
2980
0
  return true;
2981
0
}
2982
2983
0
void FetchThreatListUpdatesRequest_ListUpdateRequest::Swap(FetchThreatListUpdatesRequest_ListUpdateRequest* other) {
2984
0
  if (other == this) return;
2985
0
  InternalSwap(other);
2986
0
}
2987
0
void FetchThreatListUpdatesRequest_ListUpdateRequest::InternalSwap(FetchThreatListUpdatesRequest_ListUpdateRequest* other) {
2988
0
  using std::swap;
2989
0
  state_.Swap(&other->state_);
2990
0
  swap(constraints_, other->constraints_);
2991
0
  swap(threat_type_, other->threat_type_);
2992
0
  swap(platform_type_, other->platform_type_);
2993
0
  swap(threat_entry_type_, other->threat_entry_type_);
2994
0
  swap(_has_bits_[0], other->_has_bits_[0]);
2995
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
2996
0
  swap(_cached_size_, other->_cached_size_);
2997
0
}
2998
2999
0
::std::string FetchThreatListUpdatesRequest_ListUpdateRequest::GetTypeName() const {
3000
0
  return "mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest";
3001
0
}
3002
3003
#if PROTOBUF_INLINE_NOT_IN_HEADERS
3004
// FetchThreatListUpdatesRequest_ListUpdateRequest
3005
3006
// optional .mozilla.safebrowsing.ThreatType threat_type = 1;
3007
bool FetchThreatListUpdatesRequest_ListUpdateRequest::has_threat_type() const {
3008
  return (_has_bits_[0] & 0x00000004u) != 0;
3009
}
3010
void FetchThreatListUpdatesRequest_ListUpdateRequest::set_has_threat_type() {
3011
  _has_bits_[0] |= 0x00000004u;
3012
}
3013
void FetchThreatListUpdatesRequest_ListUpdateRequest::clear_has_threat_type() {
3014
  _has_bits_[0] &= ~0x00000004u;
3015
}
3016
void FetchThreatListUpdatesRequest_ListUpdateRequest::clear_threat_type() {
3017
  threat_type_ = 0;
3018
  clear_has_threat_type();
3019
}
3020
::mozilla::safebrowsing::ThreatType FetchThreatListUpdatesRequest_ListUpdateRequest::threat_type() const {
3021
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.threat_type)
3022
  return static_cast< ::mozilla::safebrowsing::ThreatType >(threat_type_);
3023
}
3024
void FetchThreatListUpdatesRequest_ListUpdateRequest::set_threat_type(::mozilla::safebrowsing::ThreatType value) {
3025
  assert(::mozilla::safebrowsing::ThreatType_IsValid(value));
3026
  set_has_threat_type();
3027
  threat_type_ = value;
3028
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.threat_type)
3029
}
3030
3031
// optional .mozilla.safebrowsing.PlatformType platform_type = 2;
3032
bool FetchThreatListUpdatesRequest_ListUpdateRequest::has_platform_type() const {
3033
  return (_has_bits_[0] & 0x00000008u) != 0;
3034
}
3035
void FetchThreatListUpdatesRequest_ListUpdateRequest::set_has_platform_type() {
3036
  _has_bits_[0] |= 0x00000008u;
3037
}
3038
void FetchThreatListUpdatesRequest_ListUpdateRequest::clear_has_platform_type() {
3039
  _has_bits_[0] &= ~0x00000008u;
3040
}
3041
void FetchThreatListUpdatesRequest_ListUpdateRequest::clear_platform_type() {
3042
  platform_type_ = 0;
3043
  clear_has_platform_type();
3044
}
3045
::mozilla::safebrowsing::PlatformType FetchThreatListUpdatesRequest_ListUpdateRequest::platform_type() const {
3046
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.platform_type)
3047
  return static_cast< ::mozilla::safebrowsing::PlatformType >(platform_type_);
3048
}
3049
void FetchThreatListUpdatesRequest_ListUpdateRequest::set_platform_type(::mozilla::safebrowsing::PlatformType value) {
3050
  assert(::mozilla::safebrowsing::PlatformType_IsValid(value));
3051
  set_has_platform_type();
3052
  platform_type_ = value;
3053
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.platform_type)
3054
}
3055
3056
// optional .mozilla.safebrowsing.ThreatEntryType threat_entry_type = 5;
3057
bool FetchThreatListUpdatesRequest_ListUpdateRequest::has_threat_entry_type() const {
3058
  return (_has_bits_[0] & 0x00000010u) != 0;
3059
}
3060
void FetchThreatListUpdatesRequest_ListUpdateRequest::set_has_threat_entry_type() {
3061
  _has_bits_[0] |= 0x00000010u;
3062
}
3063
void FetchThreatListUpdatesRequest_ListUpdateRequest::clear_has_threat_entry_type() {
3064
  _has_bits_[0] &= ~0x00000010u;
3065
}
3066
void FetchThreatListUpdatesRequest_ListUpdateRequest::clear_threat_entry_type() {
3067
  threat_entry_type_ = 0;
3068
  clear_has_threat_entry_type();
3069
}
3070
::mozilla::safebrowsing::ThreatEntryType FetchThreatListUpdatesRequest_ListUpdateRequest::threat_entry_type() const {
3071
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.threat_entry_type)
3072
  return static_cast< ::mozilla::safebrowsing::ThreatEntryType >(threat_entry_type_);
3073
}
3074
void FetchThreatListUpdatesRequest_ListUpdateRequest::set_threat_entry_type(::mozilla::safebrowsing::ThreatEntryType value) {
3075
  assert(::mozilla::safebrowsing::ThreatEntryType_IsValid(value));
3076
  set_has_threat_entry_type();
3077
  threat_entry_type_ = value;
3078
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.threat_entry_type)
3079
}
3080
3081
// optional bytes state = 3;
3082
bool FetchThreatListUpdatesRequest_ListUpdateRequest::has_state() const {
3083
  return (_has_bits_[0] & 0x00000001u) != 0;
3084
}
3085
void FetchThreatListUpdatesRequest_ListUpdateRequest::set_has_state() {
3086
  _has_bits_[0] |= 0x00000001u;
3087
}
3088
void FetchThreatListUpdatesRequest_ListUpdateRequest::clear_has_state() {
3089
  _has_bits_[0] &= ~0x00000001u;
3090
}
3091
void FetchThreatListUpdatesRequest_ListUpdateRequest::clear_state() {
3092
  state_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3093
  clear_has_state();
3094
}
3095
const ::std::string& FetchThreatListUpdatesRequest_ListUpdateRequest::state() const {
3096
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.state)
3097
  return state_.GetNoArena();
3098
}
3099
void FetchThreatListUpdatesRequest_ListUpdateRequest::set_state(const ::std::string& value) {
3100
  set_has_state();
3101
  state_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
3102
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.state)
3103
}
3104
#if LANG_CXX11
3105
void FetchThreatListUpdatesRequest_ListUpdateRequest::set_state(::std::string&& value) {
3106
  set_has_state();
3107
  state_.SetNoArena(
3108
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
3109
  // @@protoc_insertion_point(field_set_rvalue:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.state)
3110
}
3111
#endif
3112
void FetchThreatListUpdatesRequest_ListUpdateRequest::set_state(const char* value) {
3113
  GOOGLE_DCHECK(value != NULL);
3114
  set_has_state();
3115
  state_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
3116
  // @@protoc_insertion_point(field_set_char:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.state)
3117
}
3118
void FetchThreatListUpdatesRequest_ListUpdateRequest::set_state(const void* value, size_t size) {
3119
  set_has_state();
3120
  state_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
3121
      ::std::string(reinterpret_cast<const char*>(value), size));
3122
  // @@protoc_insertion_point(field_set_pointer:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.state)
3123
}
3124
::std::string* FetchThreatListUpdatesRequest_ListUpdateRequest::mutable_state() {
3125
  set_has_state();
3126
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.state)
3127
  return state_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3128
}
3129
::std::string* FetchThreatListUpdatesRequest_ListUpdateRequest::release_state() {
3130
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.state)
3131
  clear_has_state();
3132
  return state_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3133
}
3134
void FetchThreatListUpdatesRequest_ListUpdateRequest::set_allocated_state(::std::string* state) {
3135
  if (state != NULL) {
3136
    set_has_state();
3137
  } else {
3138
    clear_has_state();
3139
  }
3140
  state_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), state);
3141
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.state)
3142
}
3143
3144
// optional .mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints constraints = 4;
3145
bool FetchThreatListUpdatesRequest_ListUpdateRequest::has_constraints() const {
3146
  return (_has_bits_[0] & 0x00000002u) != 0;
3147
}
3148
void FetchThreatListUpdatesRequest_ListUpdateRequest::set_has_constraints() {
3149
  _has_bits_[0] |= 0x00000002u;
3150
}
3151
void FetchThreatListUpdatesRequest_ListUpdateRequest::clear_has_constraints() {
3152
  _has_bits_[0] &= ~0x00000002u;
3153
}
3154
void FetchThreatListUpdatesRequest_ListUpdateRequest::clear_constraints() {
3155
  if (constraints_ != NULL) constraints_->::mozilla::safebrowsing::FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::Clear();
3156
  clear_has_constraints();
3157
}
3158
const ::mozilla::safebrowsing::FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints& FetchThreatListUpdatesRequest_ListUpdateRequest::constraints() const {
3159
  const ::mozilla::safebrowsing::FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints* p = constraints_;
3160
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.constraints)
3161
  return p != NULL ? *p : *reinterpret_cast<const ::mozilla::safebrowsing::FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints*>(
3162
      &::mozilla::safebrowsing::_FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints_default_instance_);
3163
}
3164
::mozilla::safebrowsing::FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints* FetchThreatListUpdatesRequest_ListUpdateRequest::mutable_constraints() {
3165
  set_has_constraints();
3166
  if (constraints_ == NULL) {
3167
    constraints_ = new ::mozilla::safebrowsing::FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints;
3168
  }
3169
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.constraints)
3170
  return constraints_;
3171
}
3172
::mozilla::safebrowsing::FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints* FetchThreatListUpdatesRequest_ListUpdateRequest::release_constraints() {
3173
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.constraints)
3174
  clear_has_constraints();
3175
  ::mozilla::safebrowsing::FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints* temp = constraints_;
3176
  constraints_ = NULL;
3177
  return temp;
3178
}
3179
void FetchThreatListUpdatesRequest_ListUpdateRequest::set_allocated_constraints(::mozilla::safebrowsing::FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints* constraints) {
3180
  delete constraints_;
3181
  constraints_ = constraints;
3182
  if (constraints) {
3183
    set_has_constraints();
3184
  } else {
3185
    clear_has_constraints();
3186
  }
3187
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.constraints)
3188
}
3189
3190
#endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
3191
3192
// ===================================================================
3193
3194
#if !defined(_MSC_VER) || _MSC_VER >= 1900
3195
const int FetchThreatListUpdatesRequest::kClientFieldNumber;
3196
const int FetchThreatListUpdatesRequest::kListUpdateRequestsFieldNumber;
3197
const int FetchThreatListUpdatesRequest::kChromeClientInfoFieldNumber;
3198
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
3199
3200
FetchThreatListUpdatesRequest::FetchThreatListUpdatesRequest()
3201
0
  : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) {
3202
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
3203
0
    protobuf_safebrowsing_2eproto::InitDefaults();
3204
0
  }
3205
0
  SharedCtor();
3206
0
  // @@protoc_insertion_point(constructor:mozilla.safebrowsing.FetchThreatListUpdatesRequest)
3207
0
}
3208
FetchThreatListUpdatesRequest::FetchThreatListUpdatesRequest(const FetchThreatListUpdatesRequest& from)
3209
  : ::google::protobuf::MessageLite(),
3210
      _internal_metadata_(NULL),
3211
      _has_bits_(from._has_bits_),
3212
      _cached_size_(0),
3213
0
      list_update_requests_(from.list_update_requests_) {
3214
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
3215
0
  if (from.has_client()) {
3216
0
    client_ = new ::mozilla::safebrowsing::ClientInfo(*from.client_);
3217
0
  } else {
3218
0
    client_ = NULL;
3219
0
  }
3220
0
  if (from.has_chrome_client_info()) {
3221
0
    chrome_client_info_ = new ::mozilla::safebrowsing::ChromeClientInfo(*from.chrome_client_info_);
3222
0
  } else {
3223
0
    chrome_client_info_ = NULL;
3224
0
  }
3225
0
  // @@protoc_insertion_point(copy_constructor:mozilla.safebrowsing.FetchThreatListUpdatesRequest)
3226
0
}
3227
3228
0
void FetchThreatListUpdatesRequest::SharedCtor() {
3229
0
  _cached_size_ = 0;
3230
0
  ::memset(&client_, 0, static_cast<size_t>(
3231
0
      reinterpret_cast<char*>(&chrome_client_info_) -
3232
0
      reinterpret_cast<char*>(&client_)) + sizeof(chrome_client_info_));
3233
0
}
3234
3235
0
FetchThreatListUpdatesRequest::~FetchThreatListUpdatesRequest() {
3236
0
  // @@protoc_insertion_point(destructor:mozilla.safebrowsing.FetchThreatListUpdatesRequest)
3237
0
  SharedDtor();
3238
0
}
3239
3240
0
void FetchThreatListUpdatesRequest::SharedDtor() {
3241
0
  if (this != internal_default_instance()) delete client_;
3242
0
  if (this != internal_default_instance()) delete chrome_client_info_;
3243
0
}
3244
3245
0
void FetchThreatListUpdatesRequest::SetCachedSize(int size) const {
3246
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3247
0
  _cached_size_ = size;
3248
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3249
0
}
3250
0
const FetchThreatListUpdatesRequest& FetchThreatListUpdatesRequest::default_instance() {
3251
0
  protobuf_safebrowsing_2eproto::InitDefaults();
3252
0
  return *internal_default_instance();
3253
0
}
3254
3255
0
FetchThreatListUpdatesRequest* FetchThreatListUpdatesRequest::New(::google::protobuf::Arena* arena) const {
3256
0
  FetchThreatListUpdatesRequest* n = new FetchThreatListUpdatesRequest;
3257
0
  if (arena != NULL) {
3258
0
    arena->Own(n);
3259
0
  }
3260
0
  return n;
3261
0
}
3262
3263
0
void FetchThreatListUpdatesRequest::Clear() {
3264
0
// @@protoc_insertion_point(message_clear_start:mozilla.safebrowsing.FetchThreatListUpdatesRequest)
3265
0
  ::google::protobuf::uint32 cached_has_bits = 0;
3266
0
  // Prevent compiler warnings about cached_has_bits being unused
3267
0
  (void) cached_has_bits;
3268
0
3269
0
  list_update_requests_.Clear();
3270
0
  cached_has_bits = _has_bits_[0];
3271
0
  if (cached_has_bits & 3u) {
3272
0
    if (cached_has_bits & 0x00000001u) {
3273
0
      GOOGLE_DCHECK(client_ != NULL);
3274
0
      client_->::mozilla::safebrowsing::ClientInfo::Clear();
3275
0
    }
3276
0
    if (cached_has_bits & 0x00000002u) {
3277
0
      GOOGLE_DCHECK(chrome_client_info_ != NULL);
3278
0
      chrome_client_info_->::mozilla::safebrowsing::ChromeClientInfo::Clear();
3279
0
    }
3280
0
  }
3281
0
  _has_bits_.Clear();
3282
0
  _internal_metadata_.Clear();
3283
0
}
3284
3285
bool FetchThreatListUpdatesRequest::MergePartialFromCodedStream(
3286
0
    ::google::protobuf::io::CodedInputStream* input) {
3287
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
3288
0
  ::google::protobuf::uint32 tag;
3289
0
  ::google::protobuf::io::LazyStringOutputStream unknown_fields_string(
3290
0
      ::google::protobuf::NewPermanentCallback(&_internal_metadata_,
3291
0
          &::google::protobuf::internal::InternalMetadataWithArenaLite::
3292
0
              mutable_unknown_fields));
3293
0
  ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
3294
0
      &unknown_fields_string, false);
3295
0
  // @@protoc_insertion_point(parse_start:mozilla.safebrowsing.FetchThreatListUpdatesRequest)
3296
0
  for (;;) {
3297
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
3298
0
    tag = p.first;
3299
0
    if (!p.second) goto handle_unusual;
3300
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3301
0
      // optional .mozilla.safebrowsing.ClientInfo client = 1;
3302
0
      case 1: {
3303
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3304
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
3305
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
3306
0
               input, mutable_client()));
3307
0
        } else {
3308
0
          goto handle_unusual;
3309
0
        }
3310
0
        break;
3311
0
      }
3312
0
3313
0
      // repeated .mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest list_update_requests = 3;
3314
0
      case 3: {
3315
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3316
0
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
3317
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
3318
0
                input, add_list_update_requests()));
3319
0
        } else {
3320
0
          goto handle_unusual;
3321
0
        }
3322
0
        break;
3323
0
      }
3324
0
3325
0
      // optional .mozilla.safebrowsing.ChromeClientInfo chrome_client_info = 4;
3326
0
      case 4: {
3327
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3328
0
            static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
3329
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
3330
0
               input, mutable_chrome_client_info()));
3331
0
        } else {
3332
0
          goto handle_unusual;
3333
0
        }
3334
0
        break;
3335
0
      }
3336
0
3337
0
      default: {
3338
0
      handle_unusual:
3339
0
        if (tag == 0) {
3340
0
          goto success;
3341
0
        }
3342
0
        DO_(::google::protobuf::internal::WireFormatLite::SkipField(
3343
0
            input, tag, &unknown_fields_stream));
3344
0
        break;
3345
0
      }
3346
0
    }
3347
0
  }
3348
0
success:
3349
0
  // @@protoc_insertion_point(parse_success:mozilla.safebrowsing.FetchThreatListUpdatesRequest)
3350
0
  return true;
3351
0
failure:
3352
0
  // @@protoc_insertion_point(parse_failure:mozilla.safebrowsing.FetchThreatListUpdatesRequest)
3353
0
  return false;
3354
0
#undef DO_
3355
0
}
3356
3357
void FetchThreatListUpdatesRequest::SerializeWithCachedSizes(
3358
0
    ::google::protobuf::io::CodedOutputStream* output) const {
3359
0
  // @@protoc_insertion_point(serialize_start:mozilla.safebrowsing.FetchThreatListUpdatesRequest)
3360
0
  ::google::protobuf::uint32 cached_has_bits = 0;
3361
0
  (void) cached_has_bits;
3362
0
3363
0
  cached_has_bits = _has_bits_[0];
3364
0
  // optional .mozilla.safebrowsing.ClientInfo client = 1;
3365
0
  if (cached_has_bits & 0x00000001u) {
3366
0
    ::google::protobuf::internal::WireFormatLite::WriteMessage(
3367
0
      1, *this->client_, output);
3368
0
  }
3369
0
3370
0
  // repeated .mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest list_update_requests = 3;
3371
0
  for (unsigned int i = 0,
3372
0
      n = static_cast<unsigned int>(this->list_update_requests_size()); i < n; i++) {
3373
0
    ::google::protobuf::internal::WireFormatLite::WriteMessage(
3374
0
      3, this->list_update_requests(static_cast<int>(i)), output);
3375
0
  }
3376
0
3377
0
  // optional .mozilla.safebrowsing.ChromeClientInfo chrome_client_info = 4;
3378
0
  if (cached_has_bits & 0x00000002u) {
3379
0
    ::google::protobuf::internal::WireFormatLite::WriteMessage(
3380
0
      4, *this->chrome_client_info_, output);
3381
0
  }
3382
0
3383
0
  output->WriteRaw(_internal_metadata_.unknown_fields().data(),
3384
0
                   static_cast<int>(_internal_metadata_.unknown_fields().size()));
3385
0
  // @@protoc_insertion_point(serialize_end:mozilla.safebrowsing.FetchThreatListUpdatesRequest)
3386
0
}
3387
3388
0
size_t FetchThreatListUpdatesRequest::ByteSizeLong() const {
3389
0
// @@protoc_insertion_point(message_byte_size_start:mozilla.safebrowsing.FetchThreatListUpdatesRequest)
3390
0
  size_t total_size = 0;
3391
0
3392
0
  total_size += _internal_metadata_.unknown_fields().size();
3393
0
3394
0
  // repeated .mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest list_update_requests = 3;
3395
0
  {
3396
0
    unsigned int count = static_cast<unsigned int>(this->list_update_requests_size());
3397
0
    total_size += 1UL * count;
3398
0
    for (unsigned int i = 0; i < count; i++) {
3399
0
      total_size +=
3400
0
        ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3401
0
          this->list_update_requests(static_cast<int>(i)));
3402
0
    }
3403
0
  }
3404
0
3405
0
  if (_has_bits_[0 / 32] & 3u) {
3406
0
    // optional .mozilla.safebrowsing.ClientInfo client = 1;
3407
0
    if (has_client()) {
3408
0
      total_size += 1 +
3409
0
        ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3410
0
          *this->client_);
3411
0
    }
3412
0
3413
0
    // optional .mozilla.safebrowsing.ChromeClientInfo chrome_client_info = 4;
3414
0
    if (has_chrome_client_info()) {
3415
0
      total_size += 1 +
3416
0
        ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3417
0
          *this->chrome_client_info_);
3418
0
    }
3419
0
3420
0
  }
3421
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
3422
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3423
0
  _cached_size_ = cached_size;
3424
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3425
0
  return total_size;
3426
0
}
3427
3428
void FetchThreatListUpdatesRequest::CheckTypeAndMergeFrom(
3429
0
    const ::google::protobuf::MessageLite& from) {
3430
0
  MergeFrom(*::google::protobuf::down_cast<const FetchThreatListUpdatesRequest*>(&from));
3431
0
}
3432
3433
0
void FetchThreatListUpdatesRequest::MergeFrom(const FetchThreatListUpdatesRequest& from) {
3434
0
// @@protoc_insertion_point(class_specific_merge_from_start:mozilla.safebrowsing.FetchThreatListUpdatesRequest)
3435
0
  GOOGLE_DCHECK_NE(&from, this);
3436
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
3437
0
  ::google::protobuf::uint32 cached_has_bits = 0;
3438
0
  (void) cached_has_bits;
3439
0
3440
0
  list_update_requests_.MergeFrom(from.list_update_requests_);
3441
0
  cached_has_bits = from._has_bits_[0];
3442
0
  if (cached_has_bits & 3u) {
3443
0
    if (cached_has_bits & 0x00000001u) {
3444
0
      mutable_client()->::mozilla::safebrowsing::ClientInfo::MergeFrom(from.client());
3445
0
    }
3446
0
    if (cached_has_bits & 0x00000002u) {
3447
0
      mutable_chrome_client_info()->::mozilla::safebrowsing::ChromeClientInfo::MergeFrom(from.chrome_client_info());
3448
0
    }
3449
0
  }
3450
0
}
3451
3452
0
void FetchThreatListUpdatesRequest::CopyFrom(const FetchThreatListUpdatesRequest& from) {
3453
0
// @@protoc_insertion_point(class_specific_copy_from_start:mozilla.safebrowsing.FetchThreatListUpdatesRequest)
3454
0
  if (&from == this) return;
3455
0
  Clear();
3456
0
  MergeFrom(from);
3457
0
}
3458
3459
0
bool FetchThreatListUpdatesRequest::IsInitialized() const {
3460
0
  return true;
3461
0
}
3462
3463
0
void FetchThreatListUpdatesRequest::Swap(FetchThreatListUpdatesRequest* other) {
3464
0
  if (other == this) return;
3465
0
  InternalSwap(other);
3466
0
}
3467
0
void FetchThreatListUpdatesRequest::InternalSwap(FetchThreatListUpdatesRequest* other) {
3468
0
  using std::swap;
3469
0
  list_update_requests_.InternalSwap(&other->list_update_requests_);
3470
0
  swap(client_, other->client_);
3471
0
  swap(chrome_client_info_, other->chrome_client_info_);
3472
0
  swap(_has_bits_[0], other->_has_bits_[0]);
3473
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
3474
0
  swap(_cached_size_, other->_cached_size_);
3475
0
}
3476
3477
0
::std::string FetchThreatListUpdatesRequest::GetTypeName() const {
3478
0
  return "mozilla.safebrowsing.FetchThreatListUpdatesRequest";
3479
0
}
3480
3481
#if PROTOBUF_INLINE_NOT_IN_HEADERS
3482
// FetchThreatListUpdatesRequest
3483
3484
// optional .mozilla.safebrowsing.ClientInfo client = 1;
3485
bool FetchThreatListUpdatesRequest::has_client() const {
3486
  return (_has_bits_[0] & 0x00000001u) != 0;
3487
}
3488
void FetchThreatListUpdatesRequest::set_has_client() {
3489
  _has_bits_[0] |= 0x00000001u;
3490
}
3491
void FetchThreatListUpdatesRequest::clear_has_client() {
3492
  _has_bits_[0] &= ~0x00000001u;
3493
}
3494
void FetchThreatListUpdatesRequest::clear_client() {
3495
  if (client_ != NULL) client_->::mozilla::safebrowsing::ClientInfo::Clear();
3496
  clear_has_client();
3497
}
3498
const ::mozilla::safebrowsing::ClientInfo& FetchThreatListUpdatesRequest::client() const {
3499
  const ::mozilla::safebrowsing::ClientInfo* p = client_;
3500
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesRequest.client)
3501
  return p != NULL ? *p : *reinterpret_cast<const ::mozilla::safebrowsing::ClientInfo*>(
3502
      &::mozilla::safebrowsing::_ClientInfo_default_instance_);
3503
}
3504
::mozilla::safebrowsing::ClientInfo* FetchThreatListUpdatesRequest::mutable_client() {
3505
  set_has_client();
3506
  if (client_ == NULL) {
3507
    client_ = new ::mozilla::safebrowsing::ClientInfo;
3508
  }
3509
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.FetchThreatListUpdatesRequest.client)
3510
  return client_;
3511
}
3512
::mozilla::safebrowsing::ClientInfo* FetchThreatListUpdatesRequest::release_client() {
3513
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.FetchThreatListUpdatesRequest.client)
3514
  clear_has_client();
3515
  ::mozilla::safebrowsing::ClientInfo* temp = client_;
3516
  client_ = NULL;
3517
  return temp;
3518
}
3519
void FetchThreatListUpdatesRequest::set_allocated_client(::mozilla::safebrowsing::ClientInfo* client) {
3520
  delete client_;
3521
  client_ = client;
3522
  if (client) {
3523
    set_has_client();
3524
  } else {
3525
    clear_has_client();
3526
  }
3527
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.FetchThreatListUpdatesRequest.client)
3528
}
3529
3530
// repeated .mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest list_update_requests = 3;
3531
int FetchThreatListUpdatesRequest::list_update_requests_size() const {
3532
  return list_update_requests_.size();
3533
}
3534
void FetchThreatListUpdatesRequest::clear_list_update_requests() {
3535
  list_update_requests_.Clear();
3536
}
3537
const ::mozilla::safebrowsing::FetchThreatListUpdatesRequest_ListUpdateRequest& FetchThreatListUpdatesRequest::list_update_requests(int index) const {
3538
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesRequest.list_update_requests)
3539
  return list_update_requests_.Get(index);
3540
}
3541
::mozilla::safebrowsing::FetchThreatListUpdatesRequest_ListUpdateRequest* FetchThreatListUpdatesRequest::mutable_list_update_requests(int index) {
3542
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.FetchThreatListUpdatesRequest.list_update_requests)
3543
  return list_update_requests_.Mutable(index);
3544
}
3545
::mozilla::safebrowsing::FetchThreatListUpdatesRequest_ListUpdateRequest* FetchThreatListUpdatesRequest::add_list_update_requests() {
3546
  // @@protoc_insertion_point(field_add:mozilla.safebrowsing.FetchThreatListUpdatesRequest.list_update_requests)
3547
  return list_update_requests_.Add();
3548
}
3549
::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::FetchThreatListUpdatesRequest_ListUpdateRequest >*
3550
FetchThreatListUpdatesRequest::mutable_list_update_requests() {
3551
  // @@protoc_insertion_point(field_mutable_list:mozilla.safebrowsing.FetchThreatListUpdatesRequest.list_update_requests)
3552
  return &list_update_requests_;
3553
}
3554
const ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::FetchThreatListUpdatesRequest_ListUpdateRequest >&
3555
FetchThreatListUpdatesRequest::list_update_requests() const {
3556
  // @@protoc_insertion_point(field_list:mozilla.safebrowsing.FetchThreatListUpdatesRequest.list_update_requests)
3557
  return list_update_requests_;
3558
}
3559
3560
// optional .mozilla.safebrowsing.ChromeClientInfo chrome_client_info = 4;
3561
bool FetchThreatListUpdatesRequest::has_chrome_client_info() const {
3562
  return (_has_bits_[0] & 0x00000002u) != 0;
3563
}
3564
void FetchThreatListUpdatesRequest::set_has_chrome_client_info() {
3565
  _has_bits_[0] |= 0x00000002u;
3566
}
3567
void FetchThreatListUpdatesRequest::clear_has_chrome_client_info() {
3568
  _has_bits_[0] &= ~0x00000002u;
3569
}
3570
void FetchThreatListUpdatesRequest::clear_chrome_client_info() {
3571
  if (chrome_client_info_ != NULL) chrome_client_info_->::mozilla::safebrowsing::ChromeClientInfo::Clear();
3572
  clear_has_chrome_client_info();
3573
}
3574
const ::mozilla::safebrowsing::ChromeClientInfo& FetchThreatListUpdatesRequest::chrome_client_info() const {
3575
  const ::mozilla::safebrowsing::ChromeClientInfo* p = chrome_client_info_;
3576
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesRequest.chrome_client_info)
3577
  return p != NULL ? *p : *reinterpret_cast<const ::mozilla::safebrowsing::ChromeClientInfo*>(
3578
      &::mozilla::safebrowsing::_ChromeClientInfo_default_instance_);
3579
}
3580
::mozilla::safebrowsing::ChromeClientInfo* FetchThreatListUpdatesRequest::mutable_chrome_client_info() {
3581
  set_has_chrome_client_info();
3582
  if (chrome_client_info_ == NULL) {
3583
    chrome_client_info_ = new ::mozilla::safebrowsing::ChromeClientInfo;
3584
  }
3585
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.FetchThreatListUpdatesRequest.chrome_client_info)
3586
  return chrome_client_info_;
3587
}
3588
::mozilla::safebrowsing::ChromeClientInfo* FetchThreatListUpdatesRequest::release_chrome_client_info() {
3589
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.FetchThreatListUpdatesRequest.chrome_client_info)
3590
  clear_has_chrome_client_info();
3591
  ::mozilla::safebrowsing::ChromeClientInfo* temp = chrome_client_info_;
3592
  chrome_client_info_ = NULL;
3593
  return temp;
3594
}
3595
void FetchThreatListUpdatesRequest::set_allocated_chrome_client_info(::mozilla::safebrowsing::ChromeClientInfo* chrome_client_info) {
3596
  delete chrome_client_info_;
3597
  chrome_client_info_ = chrome_client_info;
3598
  if (chrome_client_info) {
3599
    set_has_chrome_client_info();
3600
  } else {
3601
    clear_has_chrome_client_info();
3602
  }
3603
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.FetchThreatListUpdatesRequest.chrome_client_info)
3604
}
3605
3606
#endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
3607
3608
// ===================================================================
3609
3610
#if !defined(_MSC_VER) || _MSC_VER >= 1900
3611
const int FetchThreatListUpdatesResponse_ListUpdateResponse::kThreatTypeFieldNumber;
3612
const int FetchThreatListUpdatesResponse_ListUpdateResponse::kThreatEntryTypeFieldNumber;
3613
const int FetchThreatListUpdatesResponse_ListUpdateResponse::kPlatformTypeFieldNumber;
3614
const int FetchThreatListUpdatesResponse_ListUpdateResponse::kResponseTypeFieldNumber;
3615
const int FetchThreatListUpdatesResponse_ListUpdateResponse::kAdditionsFieldNumber;
3616
const int FetchThreatListUpdatesResponse_ListUpdateResponse::kRemovalsFieldNumber;
3617
const int FetchThreatListUpdatesResponse_ListUpdateResponse::kNewClientStateFieldNumber;
3618
const int FetchThreatListUpdatesResponse_ListUpdateResponse::kChecksumFieldNumber;
3619
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
3620
3621
FetchThreatListUpdatesResponse_ListUpdateResponse::FetchThreatListUpdatesResponse_ListUpdateResponse()
3622
0
  : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) {
3623
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
3624
0
    protobuf_safebrowsing_2eproto::InitDefaults();
3625
0
  }
3626
0
  SharedCtor();
3627
0
  // @@protoc_insertion_point(constructor:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse)
3628
0
}
3629
FetchThreatListUpdatesResponse_ListUpdateResponse::FetchThreatListUpdatesResponse_ListUpdateResponse(const FetchThreatListUpdatesResponse_ListUpdateResponse& from)
3630
  : ::google::protobuf::MessageLite(),
3631
      _internal_metadata_(NULL),
3632
      _has_bits_(from._has_bits_),
3633
      _cached_size_(0),
3634
      additions_(from.additions_),
3635
0
      removals_(from.removals_) {
3636
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
3637
0
  new_client_state_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3638
0
  if (from.has_new_client_state()) {
3639
0
    new_client_state_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.new_client_state_);
3640
0
  }
3641
0
  if (from.has_checksum()) {
3642
0
    checksum_ = new ::mozilla::safebrowsing::Checksum(*from.checksum_);
3643
0
  } else {
3644
0
    checksum_ = NULL;
3645
0
  }
3646
0
  ::memcpy(&threat_type_, &from.threat_type_,
3647
0
    static_cast<size_t>(reinterpret_cast<char*>(&response_type_) -
3648
0
    reinterpret_cast<char*>(&threat_type_)) + sizeof(response_type_));
3649
0
  // @@protoc_insertion_point(copy_constructor:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse)
3650
0
}
3651
3652
0
void FetchThreatListUpdatesResponse_ListUpdateResponse::SharedCtor() {
3653
0
  _cached_size_ = 0;
3654
0
  new_client_state_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3655
0
  ::memset(&checksum_, 0, static_cast<size_t>(
3656
0
      reinterpret_cast<char*>(&response_type_) -
3657
0
      reinterpret_cast<char*>(&checksum_)) + sizeof(response_type_));
3658
0
}
3659
3660
0
FetchThreatListUpdatesResponse_ListUpdateResponse::~FetchThreatListUpdatesResponse_ListUpdateResponse() {
3661
0
  // @@protoc_insertion_point(destructor:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse)
3662
0
  SharedDtor();
3663
0
}
3664
3665
0
void FetchThreatListUpdatesResponse_ListUpdateResponse::SharedDtor() {
3666
0
  new_client_state_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3667
0
  if (this != internal_default_instance()) delete checksum_;
3668
0
}
3669
3670
0
void FetchThreatListUpdatesResponse_ListUpdateResponse::SetCachedSize(int size) const {
3671
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3672
0
  _cached_size_ = size;
3673
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3674
0
}
3675
0
const FetchThreatListUpdatesResponse_ListUpdateResponse& FetchThreatListUpdatesResponse_ListUpdateResponse::default_instance() {
3676
0
  protobuf_safebrowsing_2eproto::InitDefaults();
3677
0
  return *internal_default_instance();
3678
0
}
3679
3680
0
FetchThreatListUpdatesResponse_ListUpdateResponse* FetchThreatListUpdatesResponse_ListUpdateResponse::New(::google::protobuf::Arena* arena) const {
3681
0
  FetchThreatListUpdatesResponse_ListUpdateResponse* n = new FetchThreatListUpdatesResponse_ListUpdateResponse;
3682
0
  if (arena != NULL) {
3683
0
    arena->Own(n);
3684
0
  }
3685
0
  return n;
3686
0
}
3687
3688
0
void FetchThreatListUpdatesResponse_ListUpdateResponse::Clear() {
3689
0
// @@protoc_insertion_point(message_clear_start:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse)
3690
0
  ::google::protobuf::uint32 cached_has_bits = 0;
3691
0
  // Prevent compiler warnings about cached_has_bits being unused
3692
0
  (void) cached_has_bits;
3693
0
3694
0
  additions_.Clear();
3695
0
  removals_.Clear();
3696
0
  cached_has_bits = _has_bits_[0];
3697
0
  if (cached_has_bits & 3u) {
3698
0
    if (cached_has_bits & 0x00000001u) {
3699
0
      GOOGLE_DCHECK(!new_client_state_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
3700
0
      (*new_client_state_.UnsafeRawStringPointer())->clear();
3701
0
    }
3702
0
    if (cached_has_bits & 0x00000002u) {
3703
0
      GOOGLE_DCHECK(checksum_ != NULL);
3704
0
      checksum_->::mozilla::safebrowsing::Checksum::Clear();
3705
0
    }
3706
0
  }
3707
0
  if (cached_has_bits & 60u) {
3708
0
    ::memset(&threat_type_, 0, static_cast<size_t>(
3709
0
        reinterpret_cast<char*>(&response_type_) -
3710
0
        reinterpret_cast<char*>(&threat_type_)) + sizeof(response_type_));
3711
0
  }
3712
0
  _has_bits_.Clear();
3713
0
  _internal_metadata_.Clear();
3714
0
}
3715
3716
bool FetchThreatListUpdatesResponse_ListUpdateResponse::MergePartialFromCodedStream(
3717
0
    ::google::protobuf::io::CodedInputStream* input) {
3718
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
3719
0
  ::google::protobuf::uint32 tag;
3720
0
  ::google::protobuf::io::LazyStringOutputStream unknown_fields_string(
3721
0
      ::google::protobuf::NewPermanentCallback(&_internal_metadata_,
3722
0
          &::google::protobuf::internal::InternalMetadataWithArenaLite::
3723
0
              mutable_unknown_fields));
3724
0
  ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
3725
0
      &unknown_fields_string, false);
3726
0
  // @@protoc_insertion_point(parse_start:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse)
3727
0
  for (;;) {
3728
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
3729
0
    tag = p.first;
3730
0
    if (!p.second) goto handle_unusual;
3731
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3732
0
      // optional .mozilla.safebrowsing.ThreatType threat_type = 1;
3733
0
      case 1: {
3734
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3735
0
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
3736
0
          int value;
3737
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3738
0
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
3739
0
                 input, &value)));
3740
0
          if (::mozilla::safebrowsing::ThreatType_IsValid(value)) {
3741
0
            set_threat_type(static_cast< ::mozilla::safebrowsing::ThreatType >(value));
3742
0
          } else {
3743
0
            unknown_fields_stream.WriteVarint32(8u);
3744
0
            unknown_fields_stream.WriteVarint32(
3745
0
                static_cast< ::google::protobuf::uint32>(value));
3746
0
          }
3747
0
        } else {
3748
0
          goto handle_unusual;
3749
0
        }
3750
0
        break;
3751
0
      }
3752
0
3753
0
      // optional .mozilla.safebrowsing.ThreatEntryType threat_entry_type = 2;
3754
0
      case 2: {
3755
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3756
0
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
3757
0
          int value;
3758
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3759
0
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
3760
0
                 input, &value)));
3761
0
          if (::mozilla::safebrowsing::ThreatEntryType_IsValid(value)) {
3762
0
            set_threat_entry_type(static_cast< ::mozilla::safebrowsing::ThreatEntryType >(value));
3763
0
          } else {
3764
0
            unknown_fields_stream.WriteVarint32(16u);
3765
0
            unknown_fields_stream.WriteVarint32(
3766
0
                static_cast< ::google::protobuf::uint32>(value));
3767
0
          }
3768
0
        } else {
3769
0
          goto handle_unusual;
3770
0
        }
3771
0
        break;
3772
0
      }
3773
0
3774
0
      // optional .mozilla.safebrowsing.PlatformType platform_type = 3;
3775
0
      case 3: {
3776
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3777
0
            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
3778
0
          int value;
3779
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3780
0
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
3781
0
                 input, &value)));
3782
0
          if (::mozilla::safebrowsing::PlatformType_IsValid(value)) {
3783
0
            set_platform_type(static_cast< ::mozilla::safebrowsing::PlatformType >(value));
3784
0
          } else {
3785
0
            unknown_fields_stream.WriteVarint32(24u);
3786
0
            unknown_fields_stream.WriteVarint32(
3787
0
                static_cast< ::google::protobuf::uint32>(value));
3788
0
          }
3789
0
        } else {
3790
0
          goto handle_unusual;
3791
0
        }
3792
0
        break;
3793
0
      }
3794
0
3795
0
      // optional .mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.ResponseType response_type = 4;
3796
0
      case 4: {
3797
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3798
0
            static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
3799
0
          int value;
3800
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3801
0
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
3802
0
                 input, &value)));
3803
0
          if (::mozilla::safebrowsing::FetchThreatListUpdatesResponse_ListUpdateResponse_ResponseType_IsValid(value)) {
3804
0
            set_response_type(static_cast< ::mozilla::safebrowsing::FetchThreatListUpdatesResponse_ListUpdateResponse_ResponseType >(value));
3805
0
          } else {
3806
0
            unknown_fields_stream.WriteVarint32(32u);
3807
0
            unknown_fields_stream.WriteVarint32(
3808
0
                static_cast< ::google::protobuf::uint32>(value));
3809
0
          }
3810
0
        } else {
3811
0
          goto handle_unusual;
3812
0
        }
3813
0
        break;
3814
0
      }
3815
0
3816
0
      // repeated .mozilla.safebrowsing.ThreatEntrySet additions = 5;
3817
0
      case 5: {
3818
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3819
0
            static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
3820
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
3821
0
                input, add_additions()));
3822
0
        } else {
3823
0
          goto handle_unusual;
3824
0
        }
3825
0
        break;
3826
0
      }
3827
0
3828
0
      // repeated .mozilla.safebrowsing.ThreatEntrySet removals = 6;
3829
0
      case 6: {
3830
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3831
0
            static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
3832
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
3833
0
                input, add_removals()));
3834
0
        } else {
3835
0
          goto handle_unusual;
3836
0
        }
3837
0
        break;
3838
0
      }
3839
0
3840
0
      // optional bytes new_client_state = 7;
3841
0
      case 7: {
3842
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3843
0
            static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
3844
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
3845
0
                input, this->mutable_new_client_state()));
3846
0
        } else {
3847
0
          goto handle_unusual;
3848
0
        }
3849
0
        break;
3850
0
      }
3851
0
3852
0
      // optional .mozilla.safebrowsing.Checksum checksum = 8;
3853
0
      case 8: {
3854
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3855
0
            static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
3856
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
3857
0
               input, mutable_checksum()));
3858
0
        } else {
3859
0
          goto handle_unusual;
3860
0
        }
3861
0
        break;
3862
0
      }
3863
0
3864
0
      default: {
3865
0
      handle_unusual:
3866
0
        if (tag == 0) {
3867
0
          goto success;
3868
0
        }
3869
0
        DO_(::google::protobuf::internal::WireFormatLite::SkipField(
3870
0
            input, tag, &unknown_fields_stream));
3871
0
        break;
3872
0
      }
3873
0
    }
3874
0
  }
3875
0
success:
3876
0
  // @@protoc_insertion_point(parse_success:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse)
3877
0
  return true;
3878
0
failure:
3879
0
  // @@protoc_insertion_point(parse_failure:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse)
3880
0
  return false;
3881
0
#undef DO_
3882
0
}
3883
3884
void FetchThreatListUpdatesResponse_ListUpdateResponse::SerializeWithCachedSizes(
3885
0
    ::google::protobuf::io::CodedOutputStream* output) const {
3886
0
  // @@protoc_insertion_point(serialize_start:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse)
3887
0
  ::google::protobuf::uint32 cached_has_bits = 0;
3888
0
  (void) cached_has_bits;
3889
0
3890
0
  cached_has_bits = _has_bits_[0];
3891
0
  // optional .mozilla.safebrowsing.ThreatType threat_type = 1;
3892
0
  if (cached_has_bits & 0x00000004u) {
3893
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
3894
0
      1, this->threat_type(), output);
3895
0
  }
3896
0
3897
0
  // optional .mozilla.safebrowsing.ThreatEntryType threat_entry_type = 2;
3898
0
  if (cached_has_bits & 0x00000008u) {
3899
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
3900
0
      2, this->threat_entry_type(), output);
3901
0
  }
3902
0
3903
0
  // optional .mozilla.safebrowsing.PlatformType platform_type = 3;
3904
0
  if (cached_has_bits & 0x00000010u) {
3905
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
3906
0
      3, this->platform_type(), output);
3907
0
  }
3908
0
3909
0
  // optional .mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.ResponseType response_type = 4;
3910
0
  if (cached_has_bits & 0x00000020u) {
3911
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
3912
0
      4, this->response_type(), output);
3913
0
  }
3914
0
3915
0
  // repeated .mozilla.safebrowsing.ThreatEntrySet additions = 5;
3916
0
  for (unsigned int i = 0,
3917
0
      n = static_cast<unsigned int>(this->additions_size()); i < n; i++) {
3918
0
    ::google::protobuf::internal::WireFormatLite::WriteMessage(
3919
0
      5, this->additions(static_cast<int>(i)), output);
3920
0
  }
3921
0
3922
0
  // repeated .mozilla.safebrowsing.ThreatEntrySet removals = 6;
3923
0
  for (unsigned int i = 0,
3924
0
      n = static_cast<unsigned int>(this->removals_size()); i < n; i++) {
3925
0
    ::google::protobuf::internal::WireFormatLite::WriteMessage(
3926
0
      6, this->removals(static_cast<int>(i)), output);
3927
0
  }
3928
0
3929
0
  // optional bytes new_client_state = 7;
3930
0
  if (cached_has_bits & 0x00000001u) {
3931
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
3932
0
      7, this->new_client_state(), output);
3933
0
  }
3934
0
3935
0
  // optional .mozilla.safebrowsing.Checksum checksum = 8;
3936
0
  if (cached_has_bits & 0x00000002u) {
3937
0
    ::google::protobuf::internal::WireFormatLite::WriteMessage(
3938
0
      8, *this->checksum_, output);
3939
0
  }
3940
0
3941
0
  output->WriteRaw(_internal_metadata_.unknown_fields().data(),
3942
0
                   static_cast<int>(_internal_metadata_.unknown_fields().size()));
3943
0
  // @@protoc_insertion_point(serialize_end:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse)
3944
0
}
3945
3946
0
size_t FetchThreatListUpdatesResponse_ListUpdateResponse::ByteSizeLong() const {
3947
0
// @@protoc_insertion_point(message_byte_size_start:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse)
3948
0
  size_t total_size = 0;
3949
0
3950
0
  total_size += _internal_metadata_.unknown_fields().size();
3951
0
3952
0
  // repeated .mozilla.safebrowsing.ThreatEntrySet additions = 5;
3953
0
  {
3954
0
    unsigned int count = static_cast<unsigned int>(this->additions_size());
3955
0
    total_size += 1UL * count;
3956
0
    for (unsigned int i = 0; i < count; i++) {
3957
0
      total_size +=
3958
0
        ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3959
0
          this->additions(static_cast<int>(i)));
3960
0
    }
3961
0
  }
3962
0
3963
0
  // repeated .mozilla.safebrowsing.ThreatEntrySet removals = 6;
3964
0
  {
3965
0
    unsigned int count = static_cast<unsigned int>(this->removals_size());
3966
0
    total_size += 1UL * count;
3967
0
    for (unsigned int i = 0; i < count; i++) {
3968
0
      total_size +=
3969
0
        ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3970
0
          this->removals(static_cast<int>(i)));
3971
0
    }
3972
0
  }
3973
0
3974
0
  if (_has_bits_[0 / 32] & 63u) {
3975
0
    // optional bytes new_client_state = 7;
3976
0
    if (has_new_client_state()) {
3977
0
      total_size += 1 +
3978
0
        ::google::protobuf::internal::WireFormatLite::BytesSize(
3979
0
          this->new_client_state());
3980
0
    }
3981
0
3982
0
    // optional .mozilla.safebrowsing.Checksum checksum = 8;
3983
0
    if (has_checksum()) {
3984
0
      total_size += 1 +
3985
0
        ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3986
0
          *this->checksum_);
3987
0
    }
3988
0
3989
0
    // optional .mozilla.safebrowsing.ThreatType threat_type = 1;
3990
0
    if (has_threat_type()) {
3991
0
      total_size += 1 +
3992
0
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->threat_type());
3993
0
    }
3994
0
3995
0
    // optional .mozilla.safebrowsing.ThreatEntryType threat_entry_type = 2;
3996
0
    if (has_threat_entry_type()) {
3997
0
      total_size += 1 +
3998
0
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->threat_entry_type());
3999
0
    }
4000
0
4001
0
    // optional .mozilla.safebrowsing.PlatformType platform_type = 3;
4002
0
    if (has_platform_type()) {
4003
0
      total_size += 1 +
4004
0
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->platform_type());
4005
0
    }
4006
0
4007
0
    // optional .mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.ResponseType response_type = 4;
4008
0
    if (has_response_type()) {
4009
0
      total_size += 1 +
4010
0
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->response_type());
4011
0
    }
4012
0
4013
0
  }
4014
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
4015
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4016
0
  _cached_size_ = cached_size;
4017
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4018
0
  return total_size;
4019
0
}
4020
4021
void FetchThreatListUpdatesResponse_ListUpdateResponse::CheckTypeAndMergeFrom(
4022
0
    const ::google::protobuf::MessageLite& from) {
4023
0
  MergeFrom(*::google::protobuf::down_cast<const FetchThreatListUpdatesResponse_ListUpdateResponse*>(&from));
4024
0
}
4025
4026
0
void FetchThreatListUpdatesResponse_ListUpdateResponse::MergeFrom(const FetchThreatListUpdatesResponse_ListUpdateResponse& from) {
4027
0
// @@protoc_insertion_point(class_specific_merge_from_start:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse)
4028
0
  GOOGLE_DCHECK_NE(&from, this);
4029
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
4030
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4031
0
  (void) cached_has_bits;
4032
0
4033
0
  additions_.MergeFrom(from.additions_);
4034
0
  removals_.MergeFrom(from.removals_);
4035
0
  cached_has_bits = from._has_bits_[0];
4036
0
  if (cached_has_bits & 63u) {
4037
0
    if (cached_has_bits & 0x00000001u) {
4038
0
      set_has_new_client_state();
4039
0
      new_client_state_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.new_client_state_);
4040
0
    }
4041
0
    if (cached_has_bits & 0x00000002u) {
4042
0
      mutable_checksum()->::mozilla::safebrowsing::Checksum::MergeFrom(from.checksum());
4043
0
    }
4044
0
    if (cached_has_bits & 0x00000004u) {
4045
0
      threat_type_ = from.threat_type_;
4046
0
    }
4047
0
    if (cached_has_bits & 0x00000008u) {
4048
0
      threat_entry_type_ = from.threat_entry_type_;
4049
0
    }
4050
0
    if (cached_has_bits & 0x00000010u) {
4051
0
      platform_type_ = from.platform_type_;
4052
0
    }
4053
0
    if (cached_has_bits & 0x00000020u) {
4054
0
      response_type_ = from.response_type_;
4055
0
    }
4056
0
    _has_bits_[0] |= cached_has_bits;
4057
0
  }
4058
0
}
4059
4060
0
void FetchThreatListUpdatesResponse_ListUpdateResponse::CopyFrom(const FetchThreatListUpdatesResponse_ListUpdateResponse& from) {
4061
0
// @@protoc_insertion_point(class_specific_copy_from_start:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse)
4062
0
  if (&from == this) return;
4063
0
  Clear();
4064
0
  MergeFrom(from);
4065
0
}
4066
4067
0
bool FetchThreatListUpdatesResponse_ListUpdateResponse::IsInitialized() const {
4068
0
  return true;
4069
0
}
4070
4071
0
void FetchThreatListUpdatesResponse_ListUpdateResponse::Swap(FetchThreatListUpdatesResponse_ListUpdateResponse* other) {
4072
0
  if (other == this) return;
4073
0
  InternalSwap(other);
4074
0
}
4075
0
void FetchThreatListUpdatesResponse_ListUpdateResponse::InternalSwap(FetchThreatListUpdatesResponse_ListUpdateResponse* other) {
4076
0
  using std::swap;
4077
0
  additions_.InternalSwap(&other->additions_);
4078
0
  removals_.InternalSwap(&other->removals_);
4079
0
  new_client_state_.Swap(&other->new_client_state_);
4080
0
  swap(checksum_, other->checksum_);
4081
0
  swap(threat_type_, other->threat_type_);
4082
0
  swap(threat_entry_type_, other->threat_entry_type_);
4083
0
  swap(platform_type_, other->platform_type_);
4084
0
  swap(response_type_, other->response_type_);
4085
0
  swap(_has_bits_[0], other->_has_bits_[0]);
4086
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
4087
0
  swap(_cached_size_, other->_cached_size_);
4088
0
}
4089
4090
0
::std::string FetchThreatListUpdatesResponse_ListUpdateResponse::GetTypeName() const {
4091
0
  return "mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse";
4092
0
}
4093
4094
#if PROTOBUF_INLINE_NOT_IN_HEADERS
4095
// FetchThreatListUpdatesResponse_ListUpdateResponse
4096
4097
// optional .mozilla.safebrowsing.ThreatType threat_type = 1;
4098
bool FetchThreatListUpdatesResponse_ListUpdateResponse::has_threat_type() const {
4099
  return (_has_bits_[0] & 0x00000004u) != 0;
4100
}
4101
void FetchThreatListUpdatesResponse_ListUpdateResponse::set_has_threat_type() {
4102
  _has_bits_[0] |= 0x00000004u;
4103
}
4104
void FetchThreatListUpdatesResponse_ListUpdateResponse::clear_has_threat_type() {
4105
  _has_bits_[0] &= ~0x00000004u;
4106
}
4107
void FetchThreatListUpdatesResponse_ListUpdateResponse::clear_threat_type() {
4108
  threat_type_ = 0;
4109
  clear_has_threat_type();
4110
}
4111
::mozilla::safebrowsing::ThreatType FetchThreatListUpdatesResponse_ListUpdateResponse::threat_type() const {
4112
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.threat_type)
4113
  return static_cast< ::mozilla::safebrowsing::ThreatType >(threat_type_);
4114
}
4115
void FetchThreatListUpdatesResponse_ListUpdateResponse::set_threat_type(::mozilla::safebrowsing::ThreatType value) {
4116
  assert(::mozilla::safebrowsing::ThreatType_IsValid(value));
4117
  set_has_threat_type();
4118
  threat_type_ = value;
4119
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.threat_type)
4120
}
4121
4122
// optional .mozilla.safebrowsing.ThreatEntryType threat_entry_type = 2;
4123
bool FetchThreatListUpdatesResponse_ListUpdateResponse::has_threat_entry_type() const {
4124
  return (_has_bits_[0] & 0x00000008u) != 0;
4125
}
4126
void FetchThreatListUpdatesResponse_ListUpdateResponse::set_has_threat_entry_type() {
4127
  _has_bits_[0] |= 0x00000008u;
4128
}
4129
void FetchThreatListUpdatesResponse_ListUpdateResponse::clear_has_threat_entry_type() {
4130
  _has_bits_[0] &= ~0x00000008u;
4131
}
4132
void FetchThreatListUpdatesResponse_ListUpdateResponse::clear_threat_entry_type() {
4133
  threat_entry_type_ = 0;
4134
  clear_has_threat_entry_type();
4135
}
4136
::mozilla::safebrowsing::ThreatEntryType FetchThreatListUpdatesResponse_ListUpdateResponse::threat_entry_type() const {
4137
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.threat_entry_type)
4138
  return static_cast< ::mozilla::safebrowsing::ThreatEntryType >(threat_entry_type_);
4139
}
4140
void FetchThreatListUpdatesResponse_ListUpdateResponse::set_threat_entry_type(::mozilla::safebrowsing::ThreatEntryType value) {
4141
  assert(::mozilla::safebrowsing::ThreatEntryType_IsValid(value));
4142
  set_has_threat_entry_type();
4143
  threat_entry_type_ = value;
4144
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.threat_entry_type)
4145
}
4146
4147
// optional .mozilla.safebrowsing.PlatformType platform_type = 3;
4148
bool FetchThreatListUpdatesResponse_ListUpdateResponse::has_platform_type() const {
4149
  return (_has_bits_[0] & 0x00000010u) != 0;
4150
}
4151
void FetchThreatListUpdatesResponse_ListUpdateResponse::set_has_platform_type() {
4152
  _has_bits_[0] |= 0x00000010u;
4153
}
4154
void FetchThreatListUpdatesResponse_ListUpdateResponse::clear_has_platform_type() {
4155
  _has_bits_[0] &= ~0x00000010u;
4156
}
4157
void FetchThreatListUpdatesResponse_ListUpdateResponse::clear_platform_type() {
4158
  platform_type_ = 0;
4159
  clear_has_platform_type();
4160
}
4161
::mozilla::safebrowsing::PlatformType FetchThreatListUpdatesResponse_ListUpdateResponse::platform_type() const {
4162
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.platform_type)
4163
  return static_cast< ::mozilla::safebrowsing::PlatformType >(platform_type_);
4164
}
4165
void FetchThreatListUpdatesResponse_ListUpdateResponse::set_platform_type(::mozilla::safebrowsing::PlatformType value) {
4166
  assert(::mozilla::safebrowsing::PlatformType_IsValid(value));
4167
  set_has_platform_type();
4168
  platform_type_ = value;
4169
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.platform_type)
4170
}
4171
4172
// optional .mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.ResponseType response_type = 4;
4173
bool FetchThreatListUpdatesResponse_ListUpdateResponse::has_response_type() const {
4174
  return (_has_bits_[0] & 0x00000020u) != 0;
4175
}
4176
void FetchThreatListUpdatesResponse_ListUpdateResponse::set_has_response_type() {
4177
  _has_bits_[0] |= 0x00000020u;
4178
}
4179
void FetchThreatListUpdatesResponse_ListUpdateResponse::clear_has_response_type() {
4180
  _has_bits_[0] &= ~0x00000020u;
4181
}
4182
void FetchThreatListUpdatesResponse_ListUpdateResponse::clear_response_type() {
4183
  response_type_ = 0;
4184
  clear_has_response_type();
4185
}
4186
::mozilla::safebrowsing::FetchThreatListUpdatesResponse_ListUpdateResponse_ResponseType FetchThreatListUpdatesResponse_ListUpdateResponse::response_type() const {
4187
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.response_type)
4188
  return static_cast< ::mozilla::safebrowsing::FetchThreatListUpdatesResponse_ListUpdateResponse_ResponseType >(response_type_);
4189
}
4190
void FetchThreatListUpdatesResponse_ListUpdateResponse::set_response_type(::mozilla::safebrowsing::FetchThreatListUpdatesResponse_ListUpdateResponse_ResponseType value) {
4191
  assert(::mozilla::safebrowsing::FetchThreatListUpdatesResponse_ListUpdateResponse_ResponseType_IsValid(value));
4192
  set_has_response_type();
4193
  response_type_ = value;
4194
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.response_type)
4195
}
4196
4197
// repeated .mozilla.safebrowsing.ThreatEntrySet additions = 5;
4198
int FetchThreatListUpdatesResponse_ListUpdateResponse::additions_size() const {
4199
  return additions_.size();
4200
}
4201
void FetchThreatListUpdatesResponse_ListUpdateResponse::clear_additions() {
4202
  additions_.Clear();
4203
}
4204
const ::mozilla::safebrowsing::ThreatEntrySet& FetchThreatListUpdatesResponse_ListUpdateResponse::additions(int index) const {
4205
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.additions)
4206
  return additions_.Get(index);
4207
}
4208
::mozilla::safebrowsing::ThreatEntrySet* FetchThreatListUpdatesResponse_ListUpdateResponse::mutable_additions(int index) {
4209
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.additions)
4210
  return additions_.Mutable(index);
4211
}
4212
::mozilla::safebrowsing::ThreatEntrySet* FetchThreatListUpdatesResponse_ListUpdateResponse::add_additions() {
4213
  // @@protoc_insertion_point(field_add:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.additions)
4214
  return additions_.Add();
4215
}
4216
::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatEntrySet >*
4217
FetchThreatListUpdatesResponse_ListUpdateResponse::mutable_additions() {
4218
  // @@protoc_insertion_point(field_mutable_list:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.additions)
4219
  return &additions_;
4220
}
4221
const ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatEntrySet >&
4222
FetchThreatListUpdatesResponse_ListUpdateResponse::additions() const {
4223
  // @@protoc_insertion_point(field_list:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.additions)
4224
  return additions_;
4225
}
4226
4227
// repeated .mozilla.safebrowsing.ThreatEntrySet removals = 6;
4228
int FetchThreatListUpdatesResponse_ListUpdateResponse::removals_size() const {
4229
  return removals_.size();
4230
}
4231
void FetchThreatListUpdatesResponse_ListUpdateResponse::clear_removals() {
4232
  removals_.Clear();
4233
}
4234
const ::mozilla::safebrowsing::ThreatEntrySet& FetchThreatListUpdatesResponse_ListUpdateResponse::removals(int index) const {
4235
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.removals)
4236
  return removals_.Get(index);
4237
}
4238
::mozilla::safebrowsing::ThreatEntrySet* FetchThreatListUpdatesResponse_ListUpdateResponse::mutable_removals(int index) {
4239
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.removals)
4240
  return removals_.Mutable(index);
4241
}
4242
::mozilla::safebrowsing::ThreatEntrySet* FetchThreatListUpdatesResponse_ListUpdateResponse::add_removals() {
4243
  // @@protoc_insertion_point(field_add:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.removals)
4244
  return removals_.Add();
4245
}
4246
::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatEntrySet >*
4247
FetchThreatListUpdatesResponse_ListUpdateResponse::mutable_removals() {
4248
  // @@protoc_insertion_point(field_mutable_list:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.removals)
4249
  return &removals_;
4250
}
4251
const ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatEntrySet >&
4252
FetchThreatListUpdatesResponse_ListUpdateResponse::removals() const {
4253
  // @@protoc_insertion_point(field_list:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.removals)
4254
  return removals_;
4255
}
4256
4257
// optional bytes new_client_state = 7;
4258
bool FetchThreatListUpdatesResponse_ListUpdateResponse::has_new_client_state() const {
4259
  return (_has_bits_[0] & 0x00000001u) != 0;
4260
}
4261
void FetchThreatListUpdatesResponse_ListUpdateResponse::set_has_new_client_state() {
4262
  _has_bits_[0] |= 0x00000001u;
4263
}
4264
void FetchThreatListUpdatesResponse_ListUpdateResponse::clear_has_new_client_state() {
4265
  _has_bits_[0] &= ~0x00000001u;
4266
}
4267
void FetchThreatListUpdatesResponse_ListUpdateResponse::clear_new_client_state() {
4268
  new_client_state_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4269
  clear_has_new_client_state();
4270
}
4271
const ::std::string& FetchThreatListUpdatesResponse_ListUpdateResponse::new_client_state() const {
4272
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.new_client_state)
4273
  return new_client_state_.GetNoArena();
4274
}
4275
void FetchThreatListUpdatesResponse_ListUpdateResponse::set_new_client_state(const ::std::string& value) {
4276
  set_has_new_client_state();
4277
  new_client_state_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
4278
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.new_client_state)
4279
}
4280
#if LANG_CXX11
4281
void FetchThreatListUpdatesResponse_ListUpdateResponse::set_new_client_state(::std::string&& value) {
4282
  set_has_new_client_state();
4283
  new_client_state_.SetNoArena(
4284
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
4285
  // @@protoc_insertion_point(field_set_rvalue:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.new_client_state)
4286
}
4287
#endif
4288
void FetchThreatListUpdatesResponse_ListUpdateResponse::set_new_client_state(const char* value) {
4289
  GOOGLE_DCHECK(value != NULL);
4290
  set_has_new_client_state();
4291
  new_client_state_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
4292
  // @@protoc_insertion_point(field_set_char:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.new_client_state)
4293
}
4294
void FetchThreatListUpdatesResponse_ListUpdateResponse::set_new_client_state(const void* value, size_t size) {
4295
  set_has_new_client_state();
4296
  new_client_state_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
4297
      ::std::string(reinterpret_cast<const char*>(value), size));
4298
  // @@protoc_insertion_point(field_set_pointer:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.new_client_state)
4299
}
4300
::std::string* FetchThreatListUpdatesResponse_ListUpdateResponse::mutable_new_client_state() {
4301
  set_has_new_client_state();
4302
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.new_client_state)
4303
  return new_client_state_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4304
}
4305
::std::string* FetchThreatListUpdatesResponse_ListUpdateResponse::release_new_client_state() {
4306
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.new_client_state)
4307
  clear_has_new_client_state();
4308
  return new_client_state_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4309
}
4310
void FetchThreatListUpdatesResponse_ListUpdateResponse::set_allocated_new_client_state(::std::string* new_client_state) {
4311
  if (new_client_state != NULL) {
4312
    set_has_new_client_state();
4313
  } else {
4314
    clear_has_new_client_state();
4315
  }
4316
  new_client_state_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), new_client_state);
4317
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.new_client_state)
4318
}
4319
4320
// optional .mozilla.safebrowsing.Checksum checksum = 8;
4321
bool FetchThreatListUpdatesResponse_ListUpdateResponse::has_checksum() const {
4322
  return (_has_bits_[0] & 0x00000002u) != 0;
4323
}
4324
void FetchThreatListUpdatesResponse_ListUpdateResponse::set_has_checksum() {
4325
  _has_bits_[0] |= 0x00000002u;
4326
}
4327
void FetchThreatListUpdatesResponse_ListUpdateResponse::clear_has_checksum() {
4328
  _has_bits_[0] &= ~0x00000002u;
4329
}
4330
void FetchThreatListUpdatesResponse_ListUpdateResponse::clear_checksum() {
4331
  if (checksum_ != NULL) checksum_->::mozilla::safebrowsing::Checksum::Clear();
4332
  clear_has_checksum();
4333
}
4334
const ::mozilla::safebrowsing::Checksum& FetchThreatListUpdatesResponse_ListUpdateResponse::checksum() const {
4335
  const ::mozilla::safebrowsing::Checksum* p = checksum_;
4336
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.checksum)
4337
  return p != NULL ? *p : *reinterpret_cast<const ::mozilla::safebrowsing::Checksum*>(
4338
      &::mozilla::safebrowsing::_Checksum_default_instance_);
4339
}
4340
::mozilla::safebrowsing::Checksum* FetchThreatListUpdatesResponse_ListUpdateResponse::mutable_checksum() {
4341
  set_has_checksum();
4342
  if (checksum_ == NULL) {
4343
    checksum_ = new ::mozilla::safebrowsing::Checksum;
4344
  }
4345
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.checksum)
4346
  return checksum_;
4347
}
4348
::mozilla::safebrowsing::Checksum* FetchThreatListUpdatesResponse_ListUpdateResponse::release_checksum() {
4349
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.checksum)
4350
  clear_has_checksum();
4351
  ::mozilla::safebrowsing::Checksum* temp = checksum_;
4352
  checksum_ = NULL;
4353
  return temp;
4354
}
4355
void FetchThreatListUpdatesResponse_ListUpdateResponse::set_allocated_checksum(::mozilla::safebrowsing::Checksum* checksum) {
4356
  delete checksum_;
4357
  checksum_ = checksum;
4358
  if (checksum) {
4359
    set_has_checksum();
4360
  } else {
4361
    clear_has_checksum();
4362
  }
4363
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.checksum)
4364
}
4365
4366
#endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
4367
4368
// ===================================================================
4369
4370
#if !defined(_MSC_VER) || _MSC_VER >= 1900
4371
const int FetchThreatListUpdatesResponse::kListUpdateResponsesFieldNumber;
4372
const int FetchThreatListUpdatesResponse::kMinimumWaitDurationFieldNumber;
4373
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
4374
4375
FetchThreatListUpdatesResponse::FetchThreatListUpdatesResponse()
4376
0
  : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) {
4377
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
4378
0
    protobuf_safebrowsing_2eproto::InitDefaults();
4379
0
  }
4380
0
  SharedCtor();
4381
0
  // @@protoc_insertion_point(constructor:mozilla.safebrowsing.FetchThreatListUpdatesResponse)
4382
0
}
4383
FetchThreatListUpdatesResponse::FetchThreatListUpdatesResponse(const FetchThreatListUpdatesResponse& from)
4384
  : ::google::protobuf::MessageLite(),
4385
      _internal_metadata_(NULL),
4386
      _has_bits_(from._has_bits_),
4387
      _cached_size_(0),
4388
0
      list_update_responses_(from.list_update_responses_) {
4389
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
4390
0
  if (from.has_minimum_wait_duration()) {
4391
0
    minimum_wait_duration_ = new ::mozilla::safebrowsing::Duration(*from.minimum_wait_duration_);
4392
0
  } else {
4393
0
    minimum_wait_duration_ = NULL;
4394
0
  }
4395
0
  // @@protoc_insertion_point(copy_constructor:mozilla.safebrowsing.FetchThreatListUpdatesResponse)
4396
0
}
4397
4398
0
void FetchThreatListUpdatesResponse::SharedCtor() {
4399
0
  _cached_size_ = 0;
4400
0
  minimum_wait_duration_ = NULL;
4401
0
}
4402
4403
0
FetchThreatListUpdatesResponse::~FetchThreatListUpdatesResponse() {
4404
0
  // @@protoc_insertion_point(destructor:mozilla.safebrowsing.FetchThreatListUpdatesResponse)
4405
0
  SharedDtor();
4406
0
}
4407
4408
0
void FetchThreatListUpdatesResponse::SharedDtor() {
4409
0
  if (this != internal_default_instance()) delete minimum_wait_duration_;
4410
0
}
4411
4412
0
void FetchThreatListUpdatesResponse::SetCachedSize(int size) const {
4413
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4414
0
  _cached_size_ = size;
4415
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4416
0
}
4417
0
const FetchThreatListUpdatesResponse& FetchThreatListUpdatesResponse::default_instance() {
4418
0
  protobuf_safebrowsing_2eproto::InitDefaults();
4419
0
  return *internal_default_instance();
4420
0
}
4421
4422
0
FetchThreatListUpdatesResponse* FetchThreatListUpdatesResponse::New(::google::protobuf::Arena* arena) const {
4423
0
  FetchThreatListUpdatesResponse* n = new FetchThreatListUpdatesResponse;
4424
0
  if (arena != NULL) {
4425
0
    arena->Own(n);
4426
0
  }
4427
0
  return n;
4428
0
}
4429
4430
0
void FetchThreatListUpdatesResponse::Clear() {
4431
0
// @@protoc_insertion_point(message_clear_start:mozilla.safebrowsing.FetchThreatListUpdatesResponse)
4432
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4433
0
  // Prevent compiler warnings about cached_has_bits being unused
4434
0
  (void) cached_has_bits;
4435
0
4436
0
  list_update_responses_.Clear();
4437
0
  if (has_minimum_wait_duration()) {
4438
0
    GOOGLE_DCHECK(minimum_wait_duration_ != NULL);
4439
0
    minimum_wait_duration_->::mozilla::safebrowsing::Duration::Clear();
4440
0
  }
4441
0
  _has_bits_.Clear();
4442
0
  _internal_metadata_.Clear();
4443
0
}
4444
4445
bool FetchThreatListUpdatesResponse::MergePartialFromCodedStream(
4446
0
    ::google::protobuf::io::CodedInputStream* input) {
4447
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
4448
0
  ::google::protobuf::uint32 tag;
4449
0
  ::google::protobuf::io::LazyStringOutputStream unknown_fields_string(
4450
0
      ::google::protobuf::NewPermanentCallback(&_internal_metadata_,
4451
0
          &::google::protobuf::internal::InternalMetadataWithArenaLite::
4452
0
              mutable_unknown_fields));
4453
0
  ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
4454
0
      &unknown_fields_string, false);
4455
0
  // @@protoc_insertion_point(parse_start:mozilla.safebrowsing.FetchThreatListUpdatesResponse)
4456
0
  for (;;) {
4457
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4458
0
    tag = p.first;
4459
0
    if (!p.second) goto handle_unusual;
4460
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4461
0
      // repeated .mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse list_update_responses = 1;
4462
0
      case 1: {
4463
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4464
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
4465
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
4466
0
                input, add_list_update_responses()));
4467
0
        } else {
4468
0
          goto handle_unusual;
4469
0
        }
4470
0
        break;
4471
0
      }
4472
0
4473
0
      // optional .mozilla.safebrowsing.Duration minimum_wait_duration = 2;
4474
0
      case 2: {
4475
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4476
0
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
4477
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
4478
0
               input, mutable_minimum_wait_duration()));
4479
0
        } else {
4480
0
          goto handle_unusual;
4481
0
        }
4482
0
        break;
4483
0
      }
4484
0
4485
0
      default: {
4486
0
      handle_unusual:
4487
0
        if (tag == 0) {
4488
0
          goto success;
4489
0
        }
4490
0
        DO_(::google::protobuf::internal::WireFormatLite::SkipField(
4491
0
            input, tag, &unknown_fields_stream));
4492
0
        break;
4493
0
      }
4494
0
    }
4495
0
  }
4496
0
success:
4497
0
  // @@protoc_insertion_point(parse_success:mozilla.safebrowsing.FetchThreatListUpdatesResponse)
4498
0
  return true;
4499
0
failure:
4500
0
  // @@protoc_insertion_point(parse_failure:mozilla.safebrowsing.FetchThreatListUpdatesResponse)
4501
0
  return false;
4502
0
#undef DO_
4503
0
}
4504
4505
void FetchThreatListUpdatesResponse::SerializeWithCachedSizes(
4506
0
    ::google::protobuf::io::CodedOutputStream* output) const {
4507
0
  // @@protoc_insertion_point(serialize_start:mozilla.safebrowsing.FetchThreatListUpdatesResponse)
4508
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4509
0
  (void) cached_has_bits;
4510
0
4511
0
  // repeated .mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse list_update_responses = 1;
4512
0
  for (unsigned int i = 0,
4513
0
      n = static_cast<unsigned int>(this->list_update_responses_size()); i < n; i++) {
4514
0
    ::google::protobuf::internal::WireFormatLite::WriteMessage(
4515
0
      1, this->list_update_responses(static_cast<int>(i)), output);
4516
0
  }
4517
0
4518
0
  cached_has_bits = _has_bits_[0];
4519
0
  // optional .mozilla.safebrowsing.Duration minimum_wait_duration = 2;
4520
0
  if (cached_has_bits & 0x00000001u) {
4521
0
    ::google::protobuf::internal::WireFormatLite::WriteMessage(
4522
0
      2, *this->minimum_wait_duration_, output);
4523
0
  }
4524
0
4525
0
  output->WriteRaw(_internal_metadata_.unknown_fields().data(),
4526
0
                   static_cast<int>(_internal_metadata_.unknown_fields().size()));
4527
0
  // @@protoc_insertion_point(serialize_end:mozilla.safebrowsing.FetchThreatListUpdatesResponse)
4528
0
}
4529
4530
0
size_t FetchThreatListUpdatesResponse::ByteSizeLong() const {
4531
0
// @@protoc_insertion_point(message_byte_size_start:mozilla.safebrowsing.FetchThreatListUpdatesResponse)
4532
0
  size_t total_size = 0;
4533
0
4534
0
  total_size += _internal_metadata_.unknown_fields().size();
4535
0
4536
0
  // repeated .mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse list_update_responses = 1;
4537
0
  {
4538
0
    unsigned int count = static_cast<unsigned int>(this->list_update_responses_size());
4539
0
    total_size += 1UL * count;
4540
0
    for (unsigned int i = 0; i < count; i++) {
4541
0
      total_size +=
4542
0
        ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
4543
0
          this->list_update_responses(static_cast<int>(i)));
4544
0
    }
4545
0
  }
4546
0
4547
0
  // optional .mozilla.safebrowsing.Duration minimum_wait_duration = 2;
4548
0
  if (has_minimum_wait_duration()) {
4549
0
    total_size += 1 +
4550
0
      ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
4551
0
        *this->minimum_wait_duration_);
4552
0
  }
4553
0
4554
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
4555
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4556
0
  _cached_size_ = cached_size;
4557
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4558
0
  return total_size;
4559
0
}
4560
4561
void FetchThreatListUpdatesResponse::CheckTypeAndMergeFrom(
4562
0
    const ::google::protobuf::MessageLite& from) {
4563
0
  MergeFrom(*::google::protobuf::down_cast<const FetchThreatListUpdatesResponse*>(&from));
4564
0
}
4565
4566
0
void FetchThreatListUpdatesResponse::MergeFrom(const FetchThreatListUpdatesResponse& from) {
4567
0
// @@protoc_insertion_point(class_specific_merge_from_start:mozilla.safebrowsing.FetchThreatListUpdatesResponse)
4568
0
  GOOGLE_DCHECK_NE(&from, this);
4569
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
4570
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4571
0
  (void) cached_has_bits;
4572
0
4573
0
  list_update_responses_.MergeFrom(from.list_update_responses_);
4574
0
  if (from.has_minimum_wait_duration()) {
4575
0
    mutable_minimum_wait_duration()->::mozilla::safebrowsing::Duration::MergeFrom(from.minimum_wait_duration());
4576
0
  }
4577
0
}
4578
4579
0
void FetchThreatListUpdatesResponse::CopyFrom(const FetchThreatListUpdatesResponse& from) {
4580
0
// @@protoc_insertion_point(class_specific_copy_from_start:mozilla.safebrowsing.FetchThreatListUpdatesResponse)
4581
0
  if (&from == this) return;
4582
0
  Clear();
4583
0
  MergeFrom(from);
4584
0
}
4585
4586
0
bool FetchThreatListUpdatesResponse::IsInitialized() const {
4587
0
  return true;
4588
0
}
4589
4590
0
void FetchThreatListUpdatesResponse::Swap(FetchThreatListUpdatesResponse* other) {
4591
0
  if (other == this) return;
4592
0
  InternalSwap(other);
4593
0
}
4594
0
void FetchThreatListUpdatesResponse::InternalSwap(FetchThreatListUpdatesResponse* other) {
4595
0
  using std::swap;
4596
0
  list_update_responses_.InternalSwap(&other->list_update_responses_);
4597
0
  swap(minimum_wait_duration_, other->minimum_wait_duration_);
4598
0
  swap(_has_bits_[0], other->_has_bits_[0]);
4599
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
4600
0
  swap(_cached_size_, other->_cached_size_);
4601
0
}
4602
4603
0
::std::string FetchThreatListUpdatesResponse::GetTypeName() const {
4604
0
  return "mozilla.safebrowsing.FetchThreatListUpdatesResponse";
4605
0
}
4606
4607
#if PROTOBUF_INLINE_NOT_IN_HEADERS
4608
// FetchThreatListUpdatesResponse
4609
4610
// repeated .mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse list_update_responses = 1;
4611
int FetchThreatListUpdatesResponse::list_update_responses_size() const {
4612
  return list_update_responses_.size();
4613
}
4614
void FetchThreatListUpdatesResponse::clear_list_update_responses() {
4615
  list_update_responses_.Clear();
4616
}
4617
const ::mozilla::safebrowsing::FetchThreatListUpdatesResponse_ListUpdateResponse& FetchThreatListUpdatesResponse::list_update_responses(int index) const {
4618
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesResponse.list_update_responses)
4619
  return list_update_responses_.Get(index);
4620
}
4621
::mozilla::safebrowsing::FetchThreatListUpdatesResponse_ListUpdateResponse* FetchThreatListUpdatesResponse::mutable_list_update_responses(int index) {
4622
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.FetchThreatListUpdatesResponse.list_update_responses)
4623
  return list_update_responses_.Mutable(index);
4624
}
4625
::mozilla::safebrowsing::FetchThreatListUpdatesResponse_ListUpdateResponse* FetchThreatListUpdatesResponse::add_list_update_responses() {
4626
  // @@protoc_insertion_point(field_add:mozilla.safebrowsing.FetchThreatListUpdatesResponse.list_update_responses)
4627
  return list_update_responses_.Add();
4628
}
4629
::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::FetchThreatListUpdatesResponse_ListUpdateResponse >*
4630
FetchThreatListUpdatesResponse::mutable_list_update_responses() {
4631
  // @@protoc_insertion_point(field_mutable_list:mozilla.safebrowsing.FetchThreatListUpdatesResponse.list_update_responses)
4632
  return &list_update_responses_;
4633
}
4634
const ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::FetchThreatListUpdatesResponse_ListUpdateResponse >&
4635
FetchThreatListUpdatesResponse::list_update_responses() const {
4636
  // @@protoc_insertion_point(field_list:mozilla.safebrowsing.FetchThreatListUpdatesResponse.list_update_responses)
4637
  return list_update_responses_;
4638
}
4639
4640
// optional .mozilla.safebrowsing.Duration minimum_wait_duration = 2;
4641
bool FetchThreatListUpdatesResponse::has_minimum_wait_duration() const {
4642
  return (_has_bits_[0] & 0x00000001u) != 0;
4643
}
4644
void FetchThreatListUpdatesResponse::set_has_minimum_wait_duration() {
4645
  _has_bits_[0] |= 0x00000001u;
4646
}
4647
void FetchThreatListUpdatesResponse::clear_has_minimum_wait_duration() {
4648
  _has_bits_[0] &= ~0x00000001u;
4649
}
4650
void FetchThreatListUpdatesResponse::clear_minimum_wait_duration() {
4651
  if (minimum_wait_duration_ != NULL) minimum_wait_duration_->::mozilla::safebrowsing::Duration::Clear();
4652
  clear_has_minimum_wait_duration();
4653
}
4654
const ::mozilla::safebrowsing::Duration& FetchThreatListUpdatesResponse::minimum_wait_duration() const {
4655
  const ::mozilla::safebrowsing::Duration* p = minimum_wait_duration_;
4656
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesResponse.minimum_wait_duration)
4657
  return p != NULL ? *p : *reinterpret_cast<const ::mozilla::safebrowsing::Duration*>(
4658
      &::mozilla::safebrowsing::_Duration_default_instance_);
4659
}
4660
::mozilla::safebrowsing::Duration* FetchThreatListUpdatesResponse::mutable_minimum_wait_duration() {
4661
  set_has_minimum_wait_duration();
4662
  if (minimum_wait_duration_ == NULL) {
4663
    minimum_wait_duration_ = new ::mozilla::safebrowsing::Duration;
4664
  }
4665
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.FetchThreatListUpdatesResponse.minimum_wait_duration)
4666
  return minimum_wait_duration_;
4667
}
4668
::mozilla::safebrowsing::Duration* FetchThreatListUpdatesResponse::release_minimum_wait_duration() {
4669
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.FetchThreatListUpdatesResponse.minimum_wait_duration)
4670
  clear_has_minimum_wait_duration();
4671
  ::mozilla::safebrowsing::Duration* temp = minimum_wait_duration_;
4672
  minimum_wait_duration_ = NULL;
4673
  return temp;
4674
}
4675
void FetchThreatListUpdatesResponse::set_allocated_minimum_wait_duration(::mozilla::safebrowsing::Duration* minimum_wait_duration) {
4676
  delete minimum_wait_duration_;
4677
  minimum_wait_duration_ = minimum_wait_duration;
4678
  if (minimum_wait_duration) {
4679
    set_has_minimum_wait_duration();
4680
  } else {
4681
    clear_has_minimum_wait_duration();
4682
  }
4683
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.FetchThreatListUpdatesResponse.minimum_wait_duration)
4684
}
4685
4686
#endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
4687
4688
// ===================================================================
4689
4690
#if !defined(_MSC_VER) || _MSC_VER >= 1900
4691
const int FindFullHashesRequest::kClientFieldNumber;
4692
const int FindFullHashesRequest::kClientStatesFieldNumber;
4693
const int FindFullHashesRequest::kThreatInfoFieldNumber;
4694
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
4695
4696
FindFullHashesRequest::FindFullHashesRequest()
4697
0
  : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) {
4698
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
4699
0
    protobuf_safebrowsing_2eproto::InitDefaults();
4700
0
  }
4701
0
  SharedCtor();
4702
0
  // @@protoc_insertion_point(constructor:mozilla.safebrowsing.FindFullHashesRequest)
4703
0
}
4704
FindFullHashesRequest::FindFullHashesRequest(const FindFullHashesRequest& from)
4705
  : ::google::protobuf::MessageLite(),
4706
      _internal_metadata_(NULL),
4707
      _has_bits_(from._has_bits_),
4708
      _cached_size_(0),
4709
0
      client_states_(from.client_states_) {
4710
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
4711
0
  if (from.has_client()) {
4712
0
    client_ = new ::mozilla::safebrowsing::ClientInfo(*from.client_);
4713
0
  } else {
4714
0
    client_ = NULL;
4715
0
  }
4716
0
  if (from.has_threat_info()) {
4717
0
    threat_info_ = new ::mozilla::safebrowsing::ThreatInfo(*from.threat_info_);
4718
0
  } else {
4719
0
    threat_info_ = NULL;
4720
0
  }
4721
0
  // @@protoc_insertion_point(copy_constructor:mozilla.safebrowsing.FindFullHashesRequest)
4722
0
}
4723
4724
0
void FindFullHashesRequest::SharedCtor() {
4725
0
  _cached_size_ = 0;
4726
0
  ::memset(&client_, 0, static_cast<size_t>(
4727
0
      reinterpret_cast<char*>(&threat_info_) -
4728
0
      reinterpret_cast<char*>(&client_)) + sizeof(threat_info_));
4729
0
}
4730
4731
0
FindFullHashesRequest::~FindFullHashesRequest() {
4732
0
  // @@protoc_insertion_point(destructor:mozilla.safebrowsing.FindFullHashesRequest)
4733
0
  SharedDtor();
4734
0
}
4735
4736
0
void FindFullHashesRequest::SharedDtor() {
4737
0
  if (this != internal_default_instance()) delete client_;
4738
0
  if (this != internal_default_instance()) delete threat_info_;
4739
0
}
4740
4741
0
void FindFullHashesRequest::SetCachedSize(int size) const {
4742
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4743
0
  _cached_size_ = size;
4744
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4745
0
}
4746
0
const FindFullHashesRequest& FindFullHashesRequest::default_instance() {
4747
0
  protobuf_safebrowsing_2eproto::InitDefaults();
4748
0
  return *internal_default_instance();
4749
0
}
4750
4751
0
FindFullHashesRequest* FindFullHashesRequest::New(::google::protobuf::Arena* arena) const {
4752
0
  FindFullHashesRequest* n = new FindFullHashesRequest;
4753
0
  if (arena != NULL) {
4754
0
    arena->Own(n);
4755
0
  }
4756
0
  return n;
4757
0
}
4758
4759
0
void FindFullHashesRequest::Clear() {
4760
0
// @@protoc_insertion_point(message_clear_start:mozilla.safebrowsing.FindFullHashesRequest)
4761
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4762
0
  // Prevent compiler warnings about cached_has_bits being unused
4763
0
  (void) cached_has_bits;
4764
0
4765
0
  client_states_.Clear();
4766
0
  cached_has_bits = _has_bits_[0];
4767
0
  if (cached_has_bits & 3u) {
4768
0
    if (cached_has_bits & 0x00000001u) {
4769
0
      GOOGLE_DCHECK(client_ != NULL);
4770
0
      client_->::mozilla::safebrowsing::ClientInfo::Clear();
4771
0
    }
4772
0
    if (cached_has_bits & 0x00000002u) {
4773
0
      GOOGLE_DCHECK(threat_info_ != NULL);
4774
0
      threat_info_->::mozilla::safebrowsing::ThreatInfo::Clear();
4775
0
    }
4776
0
  }
4777
0
  _has_bits_.Clear();
4778
0
  _internal_metadata_.Clear();
4779
0
}
4780
4781
bool FindFullHashesRequest::MergePartialFromCodedStream(
4782
0
    ::google::protobuf::io::CodedInputStream* input) {
4783
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
4784
0
  ::google::protobuf::uint32 tag;
4785
0
  ::google::protobuf::io::LazyStringOutputStream unknown_fields_string(
4786
0
      ::google::protobuf::NewPermanentCallback(&_internal_metadata_,
4787
0
          &::google::protobuf::internal::InternalMetadataWithArenaLite::
4788
0
              mutable_unknown_fields));
4789
0
  ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
4790
0
      &unknown_fields_string, false);
4791
0
  // @@protoc_insertion_point(parse_start:mozilla.safebrowsing.FindFullHashesRequest)
4792
0
  for (;;) {
4793
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4794
0
    tag = p.first;
4795
0
    if (!p.second) goto handle_unusual;
4796
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4797
0
      // optional .mozilla.safebrowsing.ClientInfo client = 1;
4798
0
      case 1: {
4799
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4800
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
4801
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
4802
0
               input, mutable_client()));
4803
0
        } else {
4804
0
          goto handle_unusual;
4805
0
        }
4806
0
        break;
4807
0
      }
4808
0
4809
0
      // repeated bytes client_states = 2;
4810
0
      case 2: {
4811
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4812
0
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
4813
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
4814
0
                input, this->add_client_states()));
4815
0
        } else {
4816
0
          goto handle_unusual;
4817
0
        }
4818
0
        break;
4819
0
      }
4820
0
4821
0
      // optional .mozilla.safebrowsing.ThreatInfo threat_info = 3;
4822
0
      case 3: {
4823
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4824
0
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
4825
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
4826
0
               input, mutable_threat_info()));
4827
0
        } else {
4828
0
          goto handle_unusual;
4829
0
        }
4830
0
        break;
4831
0
      }
4832
0
4833
0
      default: {
4834
0
      handle_unusual:
4835
0
        if (tag == 0) {
4836
0
          goto success;
4837
0
        }
4838
0
        DO_(::google::protobuf::internal::WireFormatLite::SkipField(
4839
0
            input, tag, &unknown_fields_stream));
4840
0
        break;
4841
0
      }
4842
0
    }
4843
0
  }
4844
0
success:
4845
0
  // @@protoc_insertion_point(parse_success:mozilla.safebrowsing.FindFullHashesRequest)
4846
0
  return true;
4847
0
failure:
4848
0
  // @@protoc_insertion_point(parse_failure:mozilla.safebrowsing.FindFullHashesRequest)
4849
0
  return false;
4850
0
#undef DO_
4851
0
}
4852
4853
void FindFullHashesRequest::SerializeWithCachedSizes(
4854
0
    ::google::protobuf::io::CodedOutputStream* output) const {
4855
0
  // @@protoc_insertion_point(serialize_start:mozilla.safebrowsing.FindFullHashesRequest)
4856
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4857
0
  (void) cached_has_bits;
4858
0
4859
0
  cached_has_bits = _has_bits_[0];
4860
0
  // optional .mozilla.safebrowsing.ClientInfo client = 1;
4861
0
  if (cached_has_bits & 0x00000001u) {
4862
0
    ::google::protobuf::internal::WireFormatLite::WriteMessage(
4863
0
      1, *this->client_, output);
4864
0
  }
4865
0
4866
0
  // repeated bytes client_states = 2;
4867
0
  for (int i = 0, n = this->client_states_size(); i < n; i++) {
4868
0
    ::google::protobuf::internal::WireFormatLite::WriteBytes(
4869
0
      2, this->client_states(i), output);
4870
0
  }
4871
0
4872
0
  // optional .mozilla.safebrowsing.ThreatInfo threat_info = 3;
4873
0
  if (cached_has_bits & 0x00000002u) {
4874
0
    ::google::protobuf::internal::WireFormatLite::WriteMessage(
4875
0
      3, *this->threat_info_, output);
4876
0
  }
4877
0
4878
0
  output->WriteRaw(_internal_metadata_.unknown_fields().data(),
4879
0
                   static_cast<int>(_internal_metadata_.unknown_fields().size()));
4880
0
  // @@protoc_insertion_point(serialize_end:mozilla.safebrowsing.FindFullHashesRequest)
4881
0
}
4882
4883
0
size_t FindFullHashesRequest::ByteSizeLong() const {
4884
0
// @@protoc_insertion_point(message_byte_size_start:mozilla.safebrowsing.FindFullHashesRequest)
4885
0
  size_t total_size = 0;
4886
0
4887
0
  total_size += _internal_metadata_.unknown_fields().size();
4888
0
4889
0
  // repeated bytes client_states = 2;
4890
0
  total_size += 1 *
4891
0
      ::google::protobuf::internal::FromIntSize(this->client_states_size());
4892
0
  for (int i = 0, n = this->client_states_size(); i < n; i++) {
4893
0
    total_size += ::google::protobuf::internal::WireFormatLite::BytesSize(
4894
0
      this->client_states(i));
4895
0
  }
4896
0
4897
0
  if (_has_bits_[0 / 32] & 3u) {
4898
0
    // optional .mozilla.safebrowsing.ClientInfo client = 1;
4899
0
    if (has_client()) {
4900
0
      total_size += 1 +
4901
0
        ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
4902
0
          *this->client_);
4903
0
    }
4904
0
4905
0
    // optional .mozilla.safebrowsing.ThreatInfo threat_info = 3;
4906
0
    if (has_threat_info()) {
4907
0
      total_size += 1 +
4908
0
        ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
4909
0
          *this->threat_info_);
4910
0
    }
4911
0
4912
0
  }
4913
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
4914
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4915
0
  _cached_size_ = cached_size;
4916
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4917
0
  return total_size;
4918
0
}
4919
4920
void FindFullHashesRequest::CheckTypeAndMergeFrom(
4921
0
    const ::google::protobuf::MessageLite& from) {
4922
0
  MergeFrom(*::google::protobuf::down_cast<const FindFullHashesRequest*>(&from));
4923
0
}
4924
4925
0
void FindFullHashesRequest::MergeFrom(const FindFullHashesRequest& from) {
4926
0
// @@protoc_insertion_point(class_specific_merge_from_start:mozilla.safebrowsing.FindFullHashesRequest)
4927
0
  GOOGLE_DCHECK_NE(&from, this);
4928
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
4929
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4930
0
  (void) cached_has_bits;
4931
0
4932
0
  client_states_.MergeFrom(from.client_states_);
4933
0
  cached_has_bits = from._has_bits_[0];
4934
0
  if (cached_has_bits & 3u) {
4935
0
    if (cached_has_bits & 0x00000001u) {
4936
0
      mutable_client()->::mozilla::safebrowsing::ClientInfo::MergeFrom(from.client());
4937
0
    }
4938
0
    if (cached_has_bits & 0x00000002u) {
4939
0
      mutable_threat_info()->::mozilla::safebrowsing::ThreatInfo::MergeFrom(from.threat_info());
4940
0
    }
4941
0
  }
4942
0
}
4943
4944
0
void FindFullHashesRequest::CopyFrom(const FindFullHashesRequest& from) {
4945
0
// @@protoc_insertion_point(class_specific_copy_from_start:mozilla.safebrowsing.FindFullHashesRequest)
4946
0
  if (&from == this) return;
4947
0
  Clear();
4948
0
  MergeFrom(from);
4949
0
}
4950
4951
0
bool FindFullHashesRequest::IsInitialized() const {
4952
0
  return true;
4953
0
}
4954
4955
0
void FindFullHashesRequest::Swap(FindFullHashesRequest* other) {
4956
0
  if (other == this) return;
4957
0
  InternalSwap(other);
4958
0
}
4959
0
void FindFullHashesRequest::InternalSwap(FindFullHashesRequest* other) {
4960
0
  using std::swap;
4961
0
  client_states_.InternalSwap(&other->client_states_);
4962
0
  swap(client_, other->client_);
4963
0
  swap(threat_info_, other->threat_info_);
4964
0
  swap(_has_bits_[0], other->_has_bits_[0]);
4965
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
4966
0
  swap(_cached_size_, other->_cached_size_);
4967
0
}
4968
4969
0
::std::string FindFullHashesRequest::GetTypeName() const {
4970
0
  return "mozilla.safebrowsing.FindFullHashesRequest";
4971
0
}
4972
4973
#if PROTOBUF_INLINE_NOT_IN_HEADERS
4974
// FindFullHashesRequest
4975
4976
// optional .mozilla.safebrowsing.ClientInfo client = 1;
4977
bool FindFullHashesRequest::has_client() const {
4978
  return (_has_bits_[0] & 0x00000001u) != 0;
4979
}
4980
void FindFullHashesRequest::set_has_client() {
4981
  _has_bits_[0] |= 0x00000001u;
4982
}
4983
void FindFullHashesRequest::clear_has_client() {
4984
  _has_bits_[0] &= ~0x00000001u;
4985
}
4986
void FindFullHashesRequest::clear_client() {
4987
  if (client_ != NULL) client_->::mozilla::safebrowsing::ClientInfo::Clear();
4988
  clear_has_client();
4989
}
4990
const ::mozilla::safebrowsing::ClientInfo& FindFullHashesRequest::client() const {
4991
  const ::mozilla::safebrowsing::ClientInfo* p = client_;
4992
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FindFullHashesRequest.client)
4993
  return p != NULL ? *p : *reinterpret_cast<const ::mozilla::safebrowsing::ClientInfo*>(
4994
      &::mozilla::safebrowsing::_ClientInfo_default_instance_);
4995
}
4996
::mozilla::safebrowsing::ClientInfo* FindFullHashesRequest::mutable_client() {
4997
  set_has_client();
4998
  if (client_ == NULL) {
4999
    client_ = new ::mozilla::safebrowsing::ClientInfo;
5000
  }
5001
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.FindFullHashesRequest.client)
5002
  return client_;
5003
}
5004
::mozilla::safebrowsing::ClientInfo* FindFullHashesRequest::release_client() {
5005
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.FindFullHashesRequest.client)
5006
  clear_has_client();
5007
  ::mozilla::safebrowsing::ClientInfo* temp = client_;
5008
  client_ = NULL;
5009
  return temp;
5010
}
5011
void FindFullHashesRequest::set_allocated_client(::mozilla::safebrowsing::ClientInfo* client) {
5012
  delete client_;
5013
  client_ = client;
5014
  if (client) {
5015
    set_has_client();
5016
  } else {
5017
    clear_has_client();
5018
  }
5019
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.FindFullHashesRequest.client)
5020
}
5021
5022
// repeated bytes client_states = 2;
5023
int FindFullHashesRequest::client_states_size() const {
5024
  return client_states_.size();
5025
}
5026
void FindFullHashesRequest::clear_client_states() {
5027
  client_states_.Clear();
5028
}
5029
const ::std::string& FindFullHashesRequest::client_states(int index) const {
5030
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FindFullHashesRequest.client_states)
5031
  return client_states_.Get(index);
5032
}
5033
::std::string* FindFullHashesRequest::mutable_client_states(int index) {
5034
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.FindFullHashesRequest.client_states)
5035
  return client_states_.Mutable(index);
5036
}
5037
void FindFullHashesRequest::set_client_states(int index, const ::std::string& value) {
5038
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.FindFullHashesRequest.client_states)
5039
  client_states_.Mutable(index)->assign(value);
5040
}
5041
#if LANG_CXX11
5042
void FindFullHashesRequest::set_client_states(int index, ::std::string&& value) {
5043
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.FindFullHashesRequest.client_states)
5044
  client_states_.Mutable(index)->assign(std::move(value));
5045
}
5046
#endif
5047
void FindFullHashesRequest::set_client_states(int index, const char* value) {
5048
  GOOGLE_DCHECK(value != NULL);
5049
  client_states_.Mutable(index)->assign(value);
5050
  // @@protoc_insertion_point(field_set_char:mozilla.safebrowsing.FindFullHashesRequest.client_states)
5051
}
5052
void FindFullHashesRequest::set_client_states(int index, const void* value, size_t size) {
5053
  client_states_.Mutable(index)->assign(
5054
    reinterpret_cast<const char*>(value), size);
5055
  // @@protoc_insertion_point(field_set_pointer:mozilla.safebrowsing.FindFullHashesRequest.client_states)
5056
}
5057
::std::string* FindFullHashesRequest::add_client_states() {
5058
  // @@protoc_insertion_point(field_add_mutable:mozilla.safebrowsing.FindFullHashesRequest.client_states)
5059
  return client_states_.Add();
5060
}
5061
void FindFullHashesRequest::add_client_states(const ::std::string& value) {
5062
  client_states_.Add()->assign(value);
5063
  // @@protoc_insertion_point(field_add:mozilla.safebrowsing.FindFullHashesRequest.client_states)
5064
}
5065
#if LANG_CXX11
5066
void FindFullHashesRequest::add_client_states(::std::string&& value) {
5067
  client_states_.Add(std::move(value));
5068
  // @@protoc_insertion_point(field_add:mozilla.safebrowsing.FindFullHashesRequest.client_states)
5069
}
5070
#endif
5071
void FindFullHashesRequest::add_client_states(const char* value) {
5072
  GOOGLE_DCHECK(value != NULL);
5073
  client_states_.Add()->assign(value);
5074
  // @@protoc_insertion_point(field_add_char:mozilla.safebrowsing.FindFullHashesRequest.client_states)
5075
}
5076
void FindFullHashesRequest::add_client_states(const void* value, size_t size) {
5077
  client_states_.Add()->assign(reinterpret_cast<const char*>(value), size);
5078
  // @@protoc_insertion_point(field_add_pointer:mozilla.safebrowsing.FindFullHashesRequest.client_states)
5079
}
5080
const ::google::protobuf::RepeatedPtrField< ::std::string>&
5081
FindFullHashesRequest::client_states() const {
5082
  // @@protoc_insertion_point(field_list:mozilla.safebrowsing.FindFullHashesRequest.client_states)
5083
  return client_states_;
5084
}
5085
::google::protobuf::RepeatedPtrField< ::std::string>*
5086
FindFullHashesRequest::mutable_client_states() {
5087
  // @@protoc_insertion_point(field_mutable_list:mozilla.safebrowsing.FindFullHashesRequest.client_states)
5088
  return &client_states_;
5089
}
5090
5091
// optional .mozilla.safebrowsing.ThreatInfo threat_info = 3;
5092
bool FindFullHashesRequest::has_threat_info() const {
5093
  return (_has_bits_[0] & 0x00000002u) != 0;
5094
}
5095
void FindFullHashesRequest::set_has_threat_info() {
5096
  _has_bits_[0] |= 0x00000002u;
5097
}
5098
void FindFullHashesRequest::clear_has_threat_info() {
5099
  _has_bits_[0] &= ~0x00000002u;
5100
}
5101
void FindFullHashesRequest::clear_threat_info() {
5102
  if (threat_info_ != NULL) threat_info_->::mozilla::safebrowsing::ThreatInfo::Clear();
5103
  clear_has_threat_info();
5104
}
5105
const ::mozilla::safebrowsing::ThreatInfo& FindFullHashesRequest::threat_info() const {
5106
  const ::mozilla::safebrowsing::ThreatInfo* p = threat_info_;
5107
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FindFullHashesRequest.threat_info)
5108
  return p != NULL ? *p : *reinterpret_cast<const ::mozilla::safebrowsing::ThreatInfo*>(
5109
      &::mozilla::safebrowsing::_ThreatInfo_default_instance_);
5110
}
5111
::mozilla::safebrowsing::ThreatInfo* FindFullHashesRequest::mutable_threat_info() {
5112
  set_has_threat_info();
5113
  if (threat_info_ == NULL) {
5114
    threat_info_ = new ::mozilla::safebrowsing::ThreatInfo;
5115
  }
5116
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.FindFullHashesRequest.threat_info)
5117
  return threat_info_;
5118
}
5119
::mozilla::safebrowsing::ThreatInfo* FindFullHashesRequest::release_threat_info() {
5120
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.FindFullHashesRequest.threat_info)
5121
  clear_has_threat_info();
5122
  ::mozilla::safebrowsing::ThreatInfo* temp = threat_info_;
5123
  threat_info_ = NULL;
5124
  return temp;
5125
}
5126
void FindFullHashesRequest::set_allocated_threat_info(::mozilla::safebrowsing::ThreatInfo* threat_info) {
5127
  delete threat_info_;
5128
  threat_info_ = threat_info;
5129
  if (threat_info) {
5130
    set_has_threat_info();
5131
  } else {
5132
    clear_has_threat_info();
5133
  }
5134
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.FindFullHashesRequest.threat_info)
5135
}
5136
5137
#endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
5138
5139
// ===================================================================
5140
5141
#if !defined(_MSC_VER) || _MSC_VER >= 1900
5142
const int FindFullHashesResponse::kMatchesFieldNumber;
5143
const int FindFullHashesResponse::kMinimumWaitDurationFieldNumber;
5144
const int FindFullHashesResponse::kNegativeCacheDurationFieldNumber;
5145
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
5146
5147
FindFullHashesResponse::FindFullHashesResponse()
5148
0
  : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) {
5149
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
5150
0
    protobuf_safebrowsing_2eproto::InitDefaults();
5151
0
  }
5152
0
  SharedCtor();
5153
0
  // @@protoc_insertion_point(constructor:mozilla.safebrowsing.FindFullHashesResponse)
5154
0
}
5155
FindFullHashesResponse::FindFullHashesResponse(const FindFullHashesResponse& from)
5156
  : ::google::protobuf::MessageLite(),
5157
      _internal_metadata_(NULL),
5158
      _has_bits_(from._has_bits_),
5159
      _cached_size_(0),
5160
0
      matches_(from.matches_) {
5161
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
5162
0
  if (from.has_minimum_wait_duration()) {
5163
0
    minimum_wait_duration_ = new ::mozilla::safebrowsing::Duration(*from.minimum_wait_duration_);
5164
0
  } else {
5165
0
    minimum_wait_duration_ = NULL;
5166
0
  }
5167
0
  if (from.has_negative_cache_duration()) {
5168
0
    negative_cache_duration_ = new ::mozilla::safebrowsing::Duration(*from.negative_cache_duration_);
5169
0
  } else {
5170
0
    negative_cache_duration_ = NULL;
5171
0
  }
5172
0
  // @@protoc_insertion_point(copy_constructor:mozilla.safebrowsing.FindFullHashesResponse)
5173
0
}
5174
5175
0
void FindFullHashesResponse::SharedCtor() {
5176
0
  _cached_size_ = 0;
5177
0
  ::memset(&minimum_wait_duration_, 0, static_cast<size_t>(
5178
0
      reinterpret_cast<char*>(&negative_cache_duration_) -
5179
0
      reinterpret_cast<char*>(&minimum_wait_duration_)) + sizeof(negative_cache_duration_));
5180
0
}
5181
5182
0
FindFullHashesResponse::~FindFullHashesResponse() {
5183
0
  // @@protoc_insertion_point(destructor:mozilla.safebrowsing.FindFullHashesResponse)
5184
0
  SharedDtor();
5185
0
}
5186
5187
0
void FindFullHashesResponse::SharedDtor() {
5188
0
  if (this != internal_default_instance()) delete minimum_wait_duration_;
5189
0
  if (this != internal_default_instance()) delete negative_cache_duration_;
5190
0
}
5191
5192
0
void FindFullHashesResponse::SetCachedSize(int size) const {
5193
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5194
0
  _cached_size_ = size;
5195
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
5196
0
}
5197
0
const FindFullHashesResponse& FindFullHashesResponse::default_instance() {
5198
0
  protobuf_safebrowsing_2eproto::InitDefaults();
5199
0
  return *internal_default_instance();
5200
0
}
5201
5202
0
FindFullHashesResponse* FindFullHashesResponse::New(::google::protobuf::Arena* arena) const {
5203
0
  FindFullHashesResponse* n = new FindFullHashesResponse;
5204
0
  if (arena != NULL) {
5205
0
    arena->Own(n);
5206
0
  }
5207
0
  return n;
5208
0
}
5209
5210
0
void FindFullHashesResponse::Clear() {
5211
0
// @@protoc_insertion_point(message_clear_start:mozilla.safebrowsing.FindFullHashesResponse)
5212
0
  ::google::protobuf::uint32 cached_has_bits = 0;
5213
0
  // Prevent compiler warnings about cached_has_bits being unused
5214
0
  (void) cached_has_bits;
5215
0
5216
0
  matches_.Clear();
5217
0
  cached_has_bits = _has_bits_[0];
5218
0
  if (cached_has_bits & 3u) {
5219
0
    if (cached_has_bits & 0x00000001u) {
5220
0
      GOOGLE_DCHECK(minimum_wait_duration_ != NULL);
5221
0
      minimum_wait_duration_->::mozilla::safebrowsing::Duration::Clear();
5222
0
    }
5223
0
    if (cached_has_bits & 0x00000002u) {
5224
0
      GOOGLE_DCHECK(negative_cache_duration_ != NULL);
5225
0
      negative_cache_duration_->::mozilla::safebrowsing::Duration::Clear();
5226
0
    }
5227
0
  }
5228
0
  _has_bits_.Clear();
5229
0
  _internal_metadata_.Clear();
5230
0
}
5231
5232
bool FindFullHashesResponse::MergePartialFromCodedStream(
5233
0
    ::google::protobuf::io::CodedInputStream* input) {
5234
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
5235
0
  ::google::protobuf::uint32 tag;
5236
0
  ::google::protobuf::io::LazyStringOutputStream unknown_fields_string(
5237
0
      ::google::protobuf::NewPermanentCallback(&_internal_metadata_,
5238
0
          &::google::protobuf::internal::InternalMetadataWithArenaLite::
5239
0
              mutable_unknown_fields));
5240
0
  ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
5241
0
      &unknown_fields_string, false);
5242
0
  // @@protoc_insertion_point(parse_start:mozilla.safebrowsing.FindFullHashesResponse)
5243
0
  for (;;) {
5244
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
5245
0
    tag = p.first;
5246
0
    if (!p.second) goto handle_unusual;
5247
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5248
0
      // repeated .mozilla.safebrowsing.ThreatMatch matches = 1;
5249
0
      case 1: {
5250
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5251
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
5252
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
5253
0
                input, add_matches()));
5254
0
        } else {
5255
0
          goto handle_unusual;
5256
0
        }
5257
0
        break;
5258
0
      }
5259
0
5260
0
      // optional .mozilla.safebrowsing.Duration minimum_wait_duration = 2;
5261
0
      case 2: {
5262
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5263
0
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
5264
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
5265
0
               input, mutable_minimum_wait_duration()));
5266
0
        } else {
5267
0
          goto handle_unusual;
5268
0
        }
5269
0
        break;
5270
0
      }
5271
0
5272
0
      // optional .mozilla.safebrowsing.Duration negative_cache_duration = 3;
5273
0
      case 3: {
5274
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5275
0
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
5276
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
5277
0
               input, mutable_negative_cache_duration()));
5278
0
        } else {
5279
0
          goto handle_unusual;
5280
0
        }
5281
0
        break;
5282
0
      }
5283
0
5284
0
      default: {
5285
0
      handle_unusual:
5286
0
        if (tag == 0) {
5287
0
          goto success;
5288
0
        }
5289
0
        DO_(::google::protobuf::internal::WireFormatLite::SkipField(
5290
0
            input, tag, &unknown_fields_stream));
5291
0
        break;
5292
0
      }
5293
0
    }
5294
0
  }
5295
0
success:
5296
0
  // @@protoc_insertion_point(parse_success:mozilla.safebrowsing.FindFullHashesResponse)
5297
0
  return true;
5298
0
failure:
5299
0
  // @@protoc_insertion_point(parse_failure:mozilla.safebrowsing.FindFullHashesResponse)
5300
0
  return false;
5301
0
#undef DO_
5302
0
}
5303
5304
void FindFullHashesResponse::SerializeWithCachedSizes(
5305
0
    ::google::protobuf::io::CodedOutputStream* output) const {
5306
0
  // @@protoc_insertion_point(serialize_start:mozilla.safebrowsing.FindFullHashesResponse)
5307
0
  ::google::protobuf::uint32 cached_has_bits = 0;
5308
0
  (void) cached_has_bits;
5309
0
5310
0
  // repeated .mozilla.safebrowsing.ThreatMatch matches = 1;
5311
0
  for (unsigned int i = 0,
5312
0
      n = static_cast<unsigned int>(this->matches_size()); i < n; i++) {
5313
0
    ::google::protobuf::internal::WireFormatLite::WriteMessage(
5314
0
      1, this->matches(static_cast<int>(i)), output);
5315
0
  }
5316
0
5317
0
  cached_has_bits = _has_bits_[0];
5318
0
  // optional .mozilla.safebrowsing.Duration minimum_wait_duration = 2;
5319
0
  if (cached_has_bits & 0x00000001u) {
5320
0
    ::google::protobuf::internal::WireFormatLite::WriteMessage(
5321
0
      2, *this->minimum_wait_duration_, output);
5322
0
  }
5323
0
5324
0
  // optional .mozilla.safebrowsing.Duration negative_cache_duration = 3;
5325
0
  if (cached_has_bits & 0x00000002u) {
5326
0
    ::google::protobuf::internal::WireFormatLite::WriteMessage(
5327
0
      3, *this->negative_cache_duration_, output);
5328
0
  }
5329
0
5330
0
  output->WriteRaw(_internal_metadata_.unknown_fields().data(),
5331
0
                   static_cast<int>(_internal_metadata_.unknown_fields().size()));
5332
0
  // @@protoc_insertion_point(serialize_end:mozilla.safebrowsing.FindFullHashesResponse)
5333
0
}
5334
5335
0
size_t FindFullHashesResponse::ByteSizeLong() const {
5336
0
// @@protoc_insertion_point(message_byte_size_start:mozilla.safebrowsing.FindFullHashesResponse)
5337
0
  size_t total_size = 0;
5338
0
5339
0
  total_size += _internal_metadata_.unknown_fields().size();
5340
0
5341
0
  // repeated .mozilla.safebrowsing.ThreatMatch matches = 1;
5342
0
  {
5343
0
    unsigned int count = static_cast<unsigned int>(this->matches_size());
5344
0
    total_size += 1UL * count;
5345
0
    for (unsigned int i = 0; i < count; i++) {
5346
0
      total_size +=
5347
0
        ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
5348
0
          this->matches(static_cast<int>(i)));
5349
0
    }
5350
0
  }
5351
0
5352
0
  if (_has_bits_[0 / 32] & 3u) {
5353
0
    // optional .mozilla.safebrowsing.Duration minimum_wait_duration = 2;
5354
0
    if (has_minimum_wait_duration()) {
5355
0
      total_size += 1 +
5356
0
        ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
5357
0
          *this->minimum_wait_duration_);
5358
0
    }
5359
0
5360
0
    // optional .mozilla.safebrowsing.Duration negative_cache_duration = 3;
5361
0
    if (has_negative_cache_duration()) {
5362
0
      total_size += 1 +
5363
0
        ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
5364
0
          *this->negative_cache_duration_);
5365
0
    }
5366
0
5367
0
  }
5368
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
5369
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5370
0
  _cached_size_ = cached_size;
5371
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
5372
0
  return total_size;
5373
0
}
5374
5375
void FindFullHashesResponse::CheckTypeAndMergeFrom(
5376
0
    const ::google::protobuf::MessageLite& from) {
5377
0
  MergeFrom(*::google::protobuf::down_cast<const FindFullHashesResponse*>(&from));
5378
0
}
5379
5380
0
void FindFullHashesResponse::MergeFrom(const FindFullHashesResponse& from) {
5381
0
// @@protoc_insertion_point(class_specific_merge_from_start:mozilla.safebrowsing.FindFullHashesResponse)
5382
0
  GOOGLE_DCHECK_NE(&from, this);
5383
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
5384
0
  ::google::protobuf::uint32 cached_has_bits = 0;
5385
0
  (void) cached_has_bits;
5386
0
5387
0
  matches_.MergeFrom(from.matches_);
5388
0
  cached_has_bits = from._has_bits_[0];
5389
0
  if (cached_has_bits & 3u) {
5390
0
    if (cached_has_bits & 0x00000001u) {
5391
0
      mutable_minimum_wait_duration()->::mozilla::safebrowsing::Duration::MergeFrom(from.minimum_wait_duration());
5392
0
    }
5393
0
    if (cached_has_bits & 0x00000002u) {
5394
0
      mutable_negative_cache_duration()->::mozilla::safebrowsing::Duration::MergeFrom(from.negative_cache_duration());
5395
0
    }
5396
0
  }
5397
0
}
5398
5399
0
void FindFullHashesResponse::CopyFrom(const FindFullHashesResponse& from) {
5400
0
// @@protoc_insertion_point(class_specific_copy_from_start:mozilla.safebrowsing.FindFullHashesResponse)
5401
0
  if (&from == this) return;
5402
0
  Clear();
5403
0
  MergeFrom(from);
5404
0
}
5405
5406
0
bool FindFullHashesResponse::IsInitialized() const {
5407
0
  return true;
5408
0
}
5409
5410
0
void FindFullHashesResponse::Swap(FindFullHashesResponse* other) {
5411
0
  if (other == this) return;
5412
0
  InternalSwap(other);
5413
0
}
5414
0
void FindFullHashesResponse::InternalSwap(FindFullHashesResponse* other) {
5415
0
  using std::swap;
5416
0
  matches_.InternalSwap(&other->matches_);
5417
0
  swap(minimum_wait_duration_, other->minimum_wait_duration_);
5418
0
  swap(negative_cache_duration_, other->negative_cache_duration_);
5419
0
  swap(_has_bits_[0], other->_has_bits_[0]);
5420
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
5421
0
  swap(_cached_size_, other->_cached_size_);
5422
0
}
5423
5424
0
::std::string FindFullHashesResponse::GetTypeName() const {
5425
0
  return "mozilla.safebrowsing.FindFullHashesResponse";
5426
0
}
5427
5428
#if PROTOBUF_INLINE_NOT_IN_HEADERS
5429
// FindFullHashesResponse
5430
5431
// repeated .mozilla.safebrowsing.ThreatMatch matches = 1;
5432
int FindFullHashesResponse::matches_size() const {
5433
  return matches_.size();
5434
}
5435
void FindFullHashesResponse::clear_matches() {
5436
  matches_.Clear();
5437
}
5438
const ::mozilla::safebrowsing::ThreatMatch& FindFullHashesResponse::matches(int index) const {
5439
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FindFullHashesResponse.matches)
5440
  return matches_.Get(index);
5441
}
5442
::mozilla::safebrowsing::ThreatMatch* FindFullHashesResponse::mutable_matches(int index) {
5443
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.FindFullHashesResponse.matches)
5444
  return matches_.Mutable(index);
5445
}
5446
::mozilla::safebrowsing::ThreatMatch* FindFullHashesResponse::add_matches() {
5447
  // @@protoc_insertion_point(field_add:mozilla.safebrowsing.FindFullHashesResponse.matches)
5448
  return matches_.Add();
5449
}
5450
::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatMatch >*
5451
FindFullHashesResponse::mutable_matches() {
5452
  // @@protoc_insertion_point(field_mutable_list:mozilla.safebrowsing.FindFullHashesResponse.matches)
5453
  return &matches_;
5454
}
5455
const ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatMatch >&
5456
FindFullHashesResponse::matches() const {
5457
  // @@protoc_insertion_point(field_list:mozilla.safebrowsing.FindFullHashesResponse.matches)
5458
  return matches_;
5459
}
5460
5461
// optional .mozilla.safebrowsing.Duration minimum_wait_duration = 2;
5462
bool FindFullHashesResponse::has_minimum_wait_duration() const {
5463
  return (_has_bits_[0] & 0x00000001u) != 0;
5464
}
5465
void FindFullHashesResponse::set_has_minimum_wait_duration() {
5466
  _has_bits_[0] |= 0x00000001u;
5467
}
5468
void FindFullHashesResponse::clear_has_minimum_wait_duration() {
5469
  _has_bits_[0] &= ~0x00000001u;
5470
}
5471
void FindFullHashesResponse::clear_minimum_wait_duration() {
5472
  if (minimum_wait_duration_ != NULL) minimum_wait_duration_->::mozilla::safebrowsing::Duration::Clear();
5473
  clear_has_minimum_wait_duration();
5474
}
5475
const ::mozilla::safebrowsing::Duration& FindFullHashesResponse::minimum_wait_duration() const {
5476
  const ::mozilla::safebrowsing::Duration* p = minimum_wait_duration_;
5477
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FindFullHashesResponse.minimum_wait_duration)
5478
  return p != NULL ? *p : *reinterpret_cast<const ::mozilla::safebrowsing::Duration*>(
5479
      &::mozilla::safebrowsing::_Duration_default_instance_);
5480
}
5481
::mozilla::safebrowsing::Duration* FindFullHashesResponse::mutable_minimum_wait_duration() {
5482
  set_has_minimum_wait_duration();
5483
  if (minimum_wait_duration_ == NULL) {
5484
    minimum_wait_duration_ = new ::mozilla::safebrowsing::Duration;
5485
  }
5486
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.FindFullHashesResponse.minimum_wait_duration)
5487
  return minimum_wait_duration_;
5488
}
5489
::mozilla::safebrowsing::Duration* FindFullHashesResponse::release_minimum_wait_duration() {
5490
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.FindFullHashesResponse.minimum_wait_duration)
5491
  clear_has_minimum_wait_duration();
5492
  ::mozilla::safebrowsing::Duration* temp = minimum_wait_duration_;
5493
  minimum_wait_duration_ = NULL;
5494
  return temp;
5495
}
5496
void FindFullHashesResponse::set_allocated_minimum_wait_duration(::mozilla::safebrowsing::Duration* minimum_wait_duration) {
5497
  delete minimum_wait_duration_;
5498
  minimum_wait_duration_ = minimum_wait_duration;
5499
  if (minimum_wait_duration) {
5500
    set_has_minimum_wait_duration();
5501
  } else {
5502
    clear_has_minimum_wait_duration();
5503
  }
5504
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.FindFullHashesResponse.minimum_wait_duration)
5505
}
5506
5507
// optional .mozilla.safebrowsing.Duration negative_cache_duration = 3;
5508
bool FindFullHashesResponse::has_negative_cache_duration() const {
5509
  return (_has_bits_[0] & 0x00000002u) != 0;
5510
}
5511
void FindFullHashesResponse::set_has_negative_cache_duration() {
5512
  _has_bits_[0] |= 0x00000002u;
5513
}
5514
void FindFullHashesResponse::clear_has_negative_cache_duration() {
5515
  _has_bits_[0] &= ~0x00000002u;
5516
}
5517
void FindFullHashesResponse::clear_negative_cache_duration() {
5518
  if (negative_cache_duration_ != NULL) negative_cache_duration_->::mozilla::safebrowsing::Duration::Clear();
5519
  clear_has_negative_cache_duration();
5520
}
5521
const ::mozilla::safebrowsing::Duration& FindFullHashesResponse::negative_cache_duration() const {
5522
  const ::mozilla::safebrowsing::Duration* p = negative_cache_duration_;
5523
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FindFullHashesResponse.negative_cache_duration)
5524
  return p != NULL ? *p : *reinterpret_cast<const ::mozilla::safebrowsing::Duration*>(
5525
      &::mozilla::safebrowsing::_Duration_default_instance_);
5526
}
5527
::mozilla::safebrowsing::Duration* FindFullHashesResponse::mutable_negative_cache_duration() {
5528
  set_has_negative_cache_duration();
5529
  if (negative_cache_duration_ == NULL) {
5530
    negative_cache_duration_ = new ::mozilla::safebrowsing::Duration;
5531
  }
5532
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.FindFullHashesResponse.negative_cache_duration)
5533
  return negative_cache_duration_;
5534
}
5535
::mozilla::safebrowsing::Duration* FindFullHashesResponse::release_negative_cache_duration() {
5536
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.FindFullHashesResponse.negative_cache_duration)
5537
  clear_has_negative_cache_duration();
5538
  ::mozilla::safebrowsing::Duration* temp = negative_cache_duration_;
5539
  negative_cache_duration_ = NULL;
5540
  return temp;
5541
}
5542
void FindFullHashesResponse::set_allocated_negative_cache_duration(::mozilla::safebrowsing::Duration* negative_cache_duration) {
5543
  delete negative_cache_duration_;
5544
  negative_cache_duration_ = negative_cache_duration;
5545
  if (negative_cache_duration) {
5546
    set_has_negative_cache_duration();
5547
  } else {
5548
    clear_has_negative_cache_duration();
5549
  }
5550
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.FindFullHashesResponse.negative_cache_duration)
5551
}
5552
5553
#endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
5554
5555
// ===================================================================
5556
5557
#if !defined(_MSC_VER) || _MSC_VER >= 1900
5558
const int ThreatHit_ThreatSource::kUrlFieldNumber;
5559
const int ThreatHit_ThreatSource::kTypeFieldNumber;
5560
const int ThreatHit_ThreatSource::kRemoteIpFieldNumber;
5561
const int ThreatHit_ThreatSource::kReferrerFieldNumber;
5562
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
5563
5564
ThreatHit_ThreatSource::ThreatHit_ThreatSource()
5565
0
  : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) {
5566
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
5567
0
    protobuf_safebrowsing_2eproto::InitDefaults();
5568
0
  }
5569
0
  SharedCtor();
5570
0
  // @@protoc_insertion_point(constructor:mozilla.safebrowsing.ThreatHit.ThreatSource)
5571
0
}
5572
ThreatHit_ThreatSource::ThreatHit_ThreatSource(const ThreatHit_ThreatSource& from)
5573
  : ::google::protobuf::MessageLite(),
5574
      _internal_metadata_(NULL),
5575
      _has_bits_(from._has_bits_),
5576
0
      _cached_size_(0) {
5577
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
5578
0
  url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5579
0
  if (from.has_url()) {
5580
0
    url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.url_);
5581
0
  }
5582
0
  remote_ip_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5583
0
  if (from.has_remote_ip()) {
5584
0
    remote_ip_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.remote_ip_);
5585
0
  }
5586
0
  referrer_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5587
0
  if (from.has_referrer()) {
5588
0
    referrer_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.referrer_);
5589
0
  }
5590
0
  type_ = from.type_;
5591
0
  // @@protoc_insertion_point(copy_constructor:mozilla.safebrowsing.ThreatHit.ThreatSource)
5592
0
}
5593
5594
0
void ThreatHit_ThreatSource::SharedCtor() {
5595
0
  _cached_size_ = 0;
5596
0
  url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5597
0
  remote_ip_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5598
0
  referrer_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5599
0
  type_ = 0;
5600
0
}
5601
5602
0
ThreatHit_ThreatSource::~ThreatHit_ThreatSource() {
5603
0
  // @@protoc_insertion_point(destructor:mozilla.safebrowsing.ThreatHit.ThreatSource)
5604
0
  SharedDtor();
5605
0
}
5606
5607
0
void ThreatHit_ThreatSource::SharedDtor() {
5608
0
  url_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5609
0
  remote_ip_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5610
0
  referrer_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5611
0
}
5612
5613
0
void ThreatHit_ThreatSource::SetCachedSize(int size) const {
5614
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5615
0
  _cached_size_ = size;
5616
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
5617
0
}
5618
0
const ThreatHit_ThreatSource& ThreatHit_ThreatSource::default_instance() {
5619
0
  protobuf_safebrowsing_2eproto::InitDefaults();
5620
0
  return *internal_default_instance();
5621
0
}
5622
5623
0
ThreatHit_ThreatSource* ThreatHit_ThreatSource::New(::google::protobuf::Arena* arena) const {
5624
0
  ThreatHit_ThreatSource* n = new ThreatHit_ThreatSource;
5625
0
  if (arena != NULL) {
5626
0
    arena->Own(n);
5627
0
  }
5628
0
  return n;
5629
0
}
5630
5631
0
void ThreatHit_ThreatSource::Clear() {
5632
0
// @@protoc_insertion_point(message_clear_start:mozilla.safebrowsing.ThreatHit.ThreatSource)
5633
0
  ::google::protobuf::uint32 cached_has_bits = 0;
5634
0
  // Prevent compiler warnings about cached_has_bits being unused
5635
0
  (void) cached_has_bits;
5636
0
5637
0
  cached_has_bits = _has_bits_[0];
5638
0
  if (cached_has_bits & 7u) {
5639
0
    if (cached_has_bits & 0x00000001u) {
5640
0
      GOOGLE_DCHECK(!url_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
5641
0
      (*url_.UnsafeRawStringPointer())->clear();
5642
0
    }
5643
0
    if (cached_has_bits & 0x00000002u) {
5644
0
      GOOGLE_DCHECK(!remote_ip_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
5645
0
      (*remote_ip_.UnsafeRawStringPointer())->clear();
5646
0
    }
5647
0
    if (cached_has_bits & 0x00000004u) {
5648
0
      GOOGLE_DCHECK(!referrer_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
5649
0
      (*referrer_.UnsafeRawStringPointer())->clear();
5650
0
    }
5651
0
  }
5652
0
  type_ = 0;
5653
0
  _has_bits_.Clear();
5654
0
  _internal_metadata_.Clear();
5655
0
}
5656
5657
bool ThreatHit_ThreatSource::MergePartialFromCodedStream(
5658
0
    ::google::protobuf::io::CodedInputStream* input) {
5659
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
5660
0
  ::google::protobuf::uint32 tag;
5661
0
  ::google::protobuf::io::LazyStringOutputStream unknown_fields_string(
5662
0
      ::google::protobuf::NewPermanentCallback(&_internal_metadata_,
5663
0
          &::google::protobuf::internal::InternalMetadataWithArenaLite::
5664
0
              mutable_unknown_fields));
5665
0
  ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
5666
0
      &unknown_fields_string, false);
5667
0
  // @@protoc_insertion_point(parse_start:mozilla.safebrowsing.ThreatHit.ThreatSource)
5668
0
  for (;;) {
5669
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
5670
0
    tag = p.first;
5671
0
    if (!p.second) goto handle_unusual;
5672
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5673
0
      // optional string url = 1;
5674
0
      case 1: {
5675
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5676
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
5677
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
5678
0
                input, this->mutable_url()));
5679
0
        } else {
5680
0
          goto handle_unusual;
5681
0
        }
5682
0
        break;
5683
0
      }
5684
0
5685
0
      // optional .mozilla.safebrowsing.ThreatHit.ThreatSourceType type = 2;
5686
0
      case 2: {
5687
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5688
0
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
5689
0
          int value;
5690
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5691
0
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
5692
0
                 input, &value)));
5693
0
          if (::mozilla::safebrowsing::ThreatHit_ThreatSourceType_IsValid(value)) {
5694
0
            set_type(static_cast< ::mozilla::safebrowsing::ThreatHit_ThreatSourceType >(value));
5695
0
          } else {
5696
0
            unknown_fields_stream.WriteVarint32(16u);
5697
0
            unknown_fields_stream.WriteVarint32(
5698
0
                static_cast< ::google::protobuf::uint32>(value));
5699
0
          }
5700
0
        } else {
5701
0
          goto handle_unusual;
5702
0
        }
5703
0
        break;
5704
0
      }
5705
0
5706
0
      // optional string remote_ip = 3;
5707
0
      case 3: {
5708
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5709
0
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
5710
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
5711
0
                input, this->mutable_remote_ip()));
5712
0
        } else {
5713
0
          goto handle_unusual;
5714
0
        }
5715
0
        break;
5716
0
      }
5717
0
5718
0
      // optional string referrer = 4;
5719
0
      case 4: {
5720
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5721
0
            static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
5722
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
5723
0
                input, this->mutable_referrer()));
5724
0
        } else {
5725
0
          goto handle_unusual;
5726
0
        }
5727
0
        break;
5728
0
      }
5729
0
5730
0
      default: {
5731
0
      handle_unusual:
5732
0
        if (tag == 0) {
5733
0
          goto success;
5734
0
        }
5735
0
        DO_(::google::protobuf::internal::WireFormatLite::SkipField(
5736
0
            input, tag, &unknown_fields_stream));
5737
0
        break;
5738
0
      }
5739
0
    }
5740
0
  }
5741
0
success:
5742
0
  // @@protoc_insertion_point(parse_success:mozilla.safebrowsing.ThreatHit.ThreatSource)
5743
0
  return true;
5744
0
failure:
5745
0
  // @@protoc_insertion_point(parse_failure:mozilla.safebrowsing.ThreatHit.ThreatSource)
5746
0
  return false;
5747
0
#undef DO_
5748
0
}
5749
5750
void ThreatHit_ThreatSource::SerializeWithCachedSizes(
5751
0
    ::google::protobuf::io::CodedOutputStream* output) const {
5752
0
  // @@protoc_insertion_point(serialize_start:mozilla.safebrowsing.ThreatHit.ThreatSource)
5753
0
  ::google::protobuf::uint32 cached_has_bits = 0;
5754
0
  (void) cached_has_bits;
5755
0
5756
0
  cached_has_bits = _has_bits_[0];
5757
0
  // optional string url = 1;
5758
0
  if (cached_has_bits & 0x00000001u) {
5759
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
5760
0
      1, this->url(), output);
5761
0
  }
5762
0
5763
0
  // optional .mozilla.safebrowsing.ThreatHit.ThreatSourceType type = 2;
5764
0
  if (cached_has_bits & 0x00000008u) {
5765
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
5766
0
      2, this->type(), output);
5767
0
  }
5768
0
5769
0
  // optional string remote_ip = 3;
5770
0
  if (cached_has_bits & 0x00000002u) {
5771
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
5772
0
      3, this->remote_ip(), output);
5773
0
  }
5774
0
5775
0
  // optional string referrer = 4;
5776
0
  if (cached_has_bits & 0x00000004u) {
5777
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
5778
0
      4, this->referrer(), output);
5779
0
  }
5780
0
5781
0
  output->WriteRaw(_internal_metadata_.unknown_fields().data(),
5782
0
                   static_cast<int>(_internal_metadata_.unknown_fields().size()));
5783
0
  // @@protoc_insertion_point(serialize_end:mozilla.safebrowsing.ThreatHit.ThreatSource)
5784
0
}
5785
5786
0
size_t ThreatHit_ThreatSource::ByteSizeLong() const {
5787
0
// @@protoc_insertion_point(message_byte_size_start:mozilla.safebrowsing.ThreatHit.ThreatSource)
5788
0
  size_t total_size = 0;
5789
0
5790
0
  total_size += _internal_metadata_.unknown_fields().size();
5791
0
5792
0
  if (_has_bits_[0 / 32] & 15u) {
5793
0
    // optional string url = 1;
5794
0
    if (has_url()) {
5795
0
      total_size += 1 +
5796
0
        ::google::protobuf::internal::WireFormatLite::StringSize(
5797
0
          this->url());
5798
0
    }
5799
0
5800
0
    // optional string remote_ip = 3;
5801
0
    if (has_remote_ip()) {
5802
0
      total_size += 1 +
5803
0
        ::google::protobuf::internal::WireFormatLite::StringSize(
5804
0
          this->remote_ip());
5805
0
    }
5806
0
5807
0
    // optional string referrer = 4;
5808
0
    if (has_referrer()) {
5809
0
      total_size += 1 +
5810
0
        ::google::protobuf::internal::WireFormatLite::StringSize(
5811
0
          this->referrer());
5812
0
    }
5813
0
5814
0
    // optional .mozilla.safebrowsing.ThreatHit.ThreatSourceType type = 2;
5815
0
    if (has_type()) {
5816
0
      total_size += 1 +
5817
0
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
5818
0
    }
5819
0
5820
0
  }
5821
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
5822
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5823
0
  _cached_size_ = cached_size;
5824
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
5825
0
  return total_size;
5826
0
}
5827
5828
void ThreatHit_ThreatSource::CheckTypeAndMergeFrom(
5829
0
    const ::google::protobuf::MessageLite& from) {
5830
0
  MergeFrom(*::google::protobuf::down_cast<const ThreatHit_ThreatSource*>(&from));
5831
0
}
5832
5833
0
void ThreatHit_ThreatSource::MergeFrom(const ThreatHit_ThreatSource& from) {
5834
0
// @@protoc_insertion_point(class_specific_merge_from_start:mozilla.safebrowsing.ThreatHit.ThreatSource)
5835
0
  GOOGLE_DCHECK_NE(&from, this);
5836
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
5837
0
  ::google::protobuf::uint32 cached_has_bits = 0;
5838
0
  (void) cached_has_bits;
5839
0
5840
0
  cached_has_bits = from._has_bits_[0];
5841
0
  if (cached_has_bits & 15u) {
5842
0
    if (cached_has_bits & 0x00000001u) {
5843
0
      set_has_url();
5844
0
      url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.url_);
5845
0
    }
5846
0
    if (cached_has_bits & 0x00000002u) {
5847
0
      set_has_remote_ip();
5848
0
      remote_ip_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.remote_ip_);
5849
0
    }
5850
0
    if (cached_has_bits & 0x00000004u) {
5851
0
      set_has_referrer();
5852
0
      referrer_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.referrer_);
5853
0
    }
5854
0
    if (cached_has_bits & 0x00000008u) {
5855
0
      type_ = from.type_;
5856
0
    }
5857
0
    _has_bits_[0] |= cached_has_bits;
5858
0
  }
5859
0
}
5860
5861
0
void ThreatHit_ThreatSource::CopyFrom(const ThreatHit_ThreatSource& from) {
5862
0
// @@protoc_insertion_point(class_specific_copy_from_start:mozilla.safebrowsing.ThreatHit.ThreatSource)
5863
0
  if (&from == this) return;
5864
0
  Clear();
5865
0
  MergeFrom(from);
5866
0
}
5867
5868
0
bool ThreatHit_ThreatSource::IsInitialized() const {
5869
0
  return true;
5870
0
}
5871
5872
0
void ThreatHit_ThreatSource::Swap(ThreatHit_ThreatSource* other) {
5873
0
  if (other == this) return;
5874
0
  InternalSwap(other);
5875
0
}
5876
0
void ThreatHit_ThreatSource::InternalSwap(ThreatHit_ThreatSource* other) {
5877
0
  using std::swap;
5878
0
  url_.Swap(&other->url_);
5879
0
  remote_ip_.Swap(&other->remote_ip_);
5880
0
  referrer_.Swap(&other->referrer_);
5881
0
  swap(type_, other->type_);
5882
0
  swap(_has_bits_[0], other->_has_bits_[0]);
5883
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
5884
0
  swap(_cached_size_, other->_cached_size_);
5885
0
}
5886
5887
0
::std::string ThreatHit_ThreatSource::GetTypeName() const {
5888
0
  return "mozilla.safebrowsing.ThreatHit.ThreatSource";
5889
0
}
5890
5891
#if PROTOBUF_INLINE_NOT_IN_HEADERS
5892
// ThreatHit_ThreatSource
5893
5894
// optional string url = 1;
5895
bool ThreatHit_ThreatSource::has_url() const {
5896
  return (_has_bits_[0] & 0x00000001u) != 0;
5897
}
5898
void ThreatHit_ThreatSource::set_has_url() {
5899
  _has_bits_[0] |= 0x00000001u;
5900
}
5901
void ThreatHit_ThreatSource::clear_has_url() {
5902
  _has_bits_[0] &= ~0x00000001u;
5903
}
5904
void ThreatHit_ThreatSource::clear_url() {
5905
  url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5906
  clear_has_url();
5907
}
5908
const ::std::string& ThreatHit_ThreatSource::url() const {
5909
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatHit.ThreatSource.url)
5910
  return url_.GetNoArena();
5911
}
5912
void ThreatHit_ThreatSource::set_url(const ::std::string& value) {
5913
  set_has_url();
5914
  url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
5915
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatHit.ThreatSource.url)
5916
}
5917
#if LANG_CXX11
5918
void ThreatHit_ThreatSource::set_url(::std::string&& value) {
5919
  set_has_url();
5920
  url_.SetNoArena(
5921
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
5922
  // @@protoc_insertion_point(field_set_rvalue:mozilla.safebrowsing.ThreatHit.ThreatSource.url)
5923
}
5924
#endif
5925
void ThreatHit_ThreatSource::set_url(const char* value) {
5926
  GOOGLE_DCHECK(value != NULL);
5927
  set_has_url();
5928
  url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
5929
  // @@protoc_insertion_point(field_set_char:mozilla.safebrowsing.ThreatHit.ThreatSource.url)
5930
}
5931
void ThreatHit_ThreatSource::set_url(const char* value, size_t size) {
5932
  set_has_url();
5933
  url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
5934
      ::std::string(reinterpret_cast<const char*>(value), size));
5935
  // @@protoc_insertion_point(field_set_pointer:mozilla.safebrowsing.ThreatHit.ThreatSource.url)
5936
}
5937
::std::string* ThreatHit_ThreatSource::mutable_url() {
5938
  set_has_url();
5939
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatHit.ThreatSource.url)
5940
  return url_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5941
}
5942
::std::string* ThreatHit_ThreatSource::release_url() {
5943
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.ThreatHit.ThreatSource.url)
5944
  clear_has_url();
5945
  return url_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5946
}
5947
void ThreatHit_ThreatSource::set_allocated_url(::std::string* url) {
5948
  if (url != NULL) {
5949
    set_has_url();
5950
  } else {
5951
    clear_has_url();
5952
  }
5953
  url_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), url);
5954
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.ThreatHit.ThreatSource.url)
5955
}
5956
5957
// optional .mozilla.safebrowsing.ThreatHit.ThreatSourceType type = 2;
5958
bool ThreatHit_ThreatSource::has_type() const {
5959
  return (_has_bits_[0] & 0x00000008u) != 0;
5960
}
5961
void ThreatHit_ThreatSource::set_has_type() {
5962
  _has_bits_[0] |= 0x00000008u;
5963
}
5964
void ThreatHit_ThreatSource::clear_has_type() {
5965
  _has_bits_[0] &= ~0x00000008u;
5966
}
5967
void ThreatHit_ThreatSource::clear_type() {
5968
  type_ = 0;
5969
  clear_has_type();
5970
}
5971
::mozilla::safebrowsing::ThreatHit_ThreatSourceType ThreatHit_ThreatSource::type() const {
5972
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatHit.ThreatSource.type)
5973
  return static_cast< ::mozilla::safebrowsing::ThreatHit_ThreatSourceType >(type_);
5974
}
5975
void ThreatHit_ThreatSource::set_type(::mozilla::safebrowsing::ThreatHit_ThreatSourceType value) {
5976
  assert(::mozilla::safebrowsing::ThreatHit_ThreatSourceType_IsValid(value));
5977
  set_has_type();
5978
  type_ = value;
5979
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatHit.ThreatSource.type)
5980
}
5981
5982
// optional string remote_ip = 3;
5983
bool ThreatHit_ThreatSource::has_remote_ip() const {
5984
  return (_has_bits_[0] & 0x00000002u) != 0;
5985
}
5986
void ThreatHit_ThreatSource::set_has_remote_ip() {
5987
  _has_bits_[0] |= 0x00000002u;
5988
}
5989
void ThreatHit_ThreatSource::clear_has_remote_ip() {
5990
  _has_bits_[0] &= ~0x00000002u;
5991
}
5992
void ThreatHit_ThreatSource::clear_remote_ip() {
5993
  remote_ip_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5994
  clear_has_remote_ip();
5995
}
5996
const ::std::string& ThreatHit_ThreatSource::remote_ip() const {
5997
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatHit.ThreatSource.remote_ip)
5998
  return remote_ip_.GetNoArena();
5999
}
6000
void ThreatHit_ThreatSource::set_remote_ip(const ::std::string& value) {
6001
  set_has_remote_ip();
6002
  remote_ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
6003
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatHit.ThreatSource.remote_ip)
6004
}
6005
#if LANG_CXX11
6006
void ThreatHit_ThreatSource::set_remote_ip(::std::string&& value) {
6007
  set_has_remote_ip();
6008
  remote_ip_.SetNoArena(
6009
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
6010
  // @@protoc_insertion_point(field_set_rvalue:mozilla.safebrowsing.ThreatHit.ThreatSource.remote_ip)
6011
}
6012
#endif
6013
void ThreatHit_ThreatSource::set_remote_ip(const char* value) {
6014
  GOOGLE_DCHECK(value != NULL);
6015
  set_has_remote_ip();
6016
  remote_ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
6017
  // @@protoc_insertion_point(field_set_char:mozilla.safebrowsing.ThreatHit.ThreatSource.remote_ip)
6018
}
6019
void ThreatHit_ThreatSource::set_remote_ip(const char* value, size_t size) {
6020
  set_has_remote_ip();
6021
  remote_ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
6022
      ::std::string(reinterpret_cast<const char*>(value), size));
6023
  // @@protoc_insertion_point(field_set_pointer:mozilla.safebrowsing.ThreatHit.ThreatSource.remote_ip)
6024
}
6025
::std::string* ThreatHit_ThreatSource::mutable_remote_ip() {
6026
  set_has_remote_ip();
6027
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatHit.ThreatSource.remote_ip)
6028
  return remote_ip_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6029
}
6030
::std::string* ThreatHit_ThreatSource::release_remote_ip() {
6031
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.ThreatHit.ThreatSource.remote_ip)
6032
  clear_has_remote_ip();
6033
  return remote_ip_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6034
}
6035
void ThreatHit_ThreatSource::set_allocated_remote_ip(::std::string* remote_ip) {
6036
  if (remote_ip != NULL) {
6037
    set_has_remote_ip();
6038
  } else {
6039
    clear_has_remote_ip();
6040
  }
6041
  remote_ip_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), remote_ip);
6042
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.ThreatHit.ThreatSource.remote_ip)
6043
}
6044
6045
// optional string referrer = 4;
6046
bool ThreatHit_ThreatSource::has_referrer() const {
6047
  return (_has_bits_[0] & 0x00000004u) != 0;
6048
}
6049
void ThreatHit_ThreatSource::set_has_referrer() {
6050
  _has_bits_[0] |= 0x00000004u;
6051
}
6052
void ThreatHit_ThreatSource::clear_has_referrer() {
6053
  _has_bits_[0] &= ~0x00000004u;
6054
}
6055
void ThreatHit_ThreatSource::clear_referrer() {
6056
  referrer_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6057
  clear_has_referrer();
6058
}
6059
const ::std::string& ThreatHit_ThreatSource::referrer() const {
6060
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatHit.ThreatSource.referrer)
6061
  return referrer_.GetNoArena();
6062
}
6063
void ThreatHit_ThreatSource::set_referrer(const ::std::string& value) {
6064
  set_has_referrer();
6065
  referrer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
6066
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatHit.ThreatSource.referrer)
6067
}
6068
#if LANG_CXX11
6069
void ThreatHit_ThreatSource::set_referrer(::std::string&& value) {
6070
  set_has_referrer();
6071
  referrer_.SetNoArena(
6072
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
6073
  // @@protoc_insertion_point(field_set_rvalue:mozilla.safebrowsing.ThreatHit.ThreatSource.referrer)
6074
}
6075
#endif
6076
void ThreatHit_ThreatSource::set_referrer(const char* value) {
6077
  GOOGLE_DCHECK(value != NULL);
6078
  set_has_referrer();
6079
  referrer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
6080
  // @@protoc_insertion_point(field_set_char:mozilla.safebrowsing.ThreatHit.ThreatSource.referrer)
6081
}
6082
void ThreatHit_ThreatSource::set_referrer(const char* value, size_t size) {
6083
  set_has_referrer();
6084
  referrer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
6085
      ::std::string(reinterpret_cast<const char*>(value), size));
6086
  // @@protoc_insertion_point(field_set_pointer:mozilla.safebrowsing.ThreatHit.ThreatSource.referrer)
6087
}
6088
::std::string* ThreatHit_ThreatSource::mutable_referrer() {
6089
  set_has_referrer();
6090
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatHit.ThreatSource.referrer)
6091
  return referrer_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6092
}
6093
::std::string* ThreatHit_ThreatSource::release_referrer() {
6094
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.ThreatHit.ThreatSource.referrer)
6095
  clear_has_referrer();
6096
  return referrer_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6097
}
6098
void ThreatHit_ThreatSource::set_allocated_referrer(::std::string* referrer) {
6099
  if (referrer != NULL) {
6100
    set_has_referrer();
6101
  } else {
6102
    clear_has_referrer();
6103
  }
6104
  referrer_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), referrer);
6105
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.ThreatHit.ThreatSource.referrer)
6106
}
6107
6108
#endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
6109
6110
// ===================================================================
6111
6112
#if !defined(_MSC_VER) || _MSC_VER >= 1900
6113
const int ThreatHit_UserInfo::kRegionCodeFieldNumber;
6114
const int ThreatHit_UserInfo::kUserIdFieldNumber;
6115
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
6116
6117
ThreatHit_UserInfo::ThreatHit_UserInfo()
6118
0
  : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) {
6119
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
6120
0
    protobuf_safebrowsing_2eproto::InitDefaults();
6121
0
  }
6122
0
  SharedCtor();
6123
0
  // @@protoc_insertion_point(constructor:mozilla.safebrowsing.ThreatHit.UserInfo)
6124
0
}
6125
ThreatHit_UserInfo::ThreatHit_UserInfo(const ThreatHit_UserInfo& from)
6126
  : ::google::protobuf::MessageLite(),
6127
      _internal_metadata_(NULL),
6128
      _has_bits_(from._has_bits_),
6129
0
      _cached_size_(0) {
6130
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
6131
0
  region_code_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6132
0
  if (from.has_region_code()) {
6133
0
    region_code_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.region_code_);
6134
0
  }
6135
0
  user_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6136
0
  if (from.has_user_id()) {
6137
0
    user_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.user_id_);
6138
0
  }
6139
0
  // @@protoc_insertion_point(copy_constructor:mozilla.safebrowsing.ThreatHit.UserInfo)
6140
0
}
6141
6142
0
void ThreatHit_UserInfo::SharedCtor() {
6143
0
  _cached_size_ = 0;
6144
0
  region_code_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6145
0
  user_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6146
0
}
6147
6148
0
ThreatHit_UserInfo::~ThreatHit_UserInfo() {
6149
0
  // @@protoc_insertion_point(destructor:mozilla.safebrowsing.ThreatHit.UserInfo)
6150
0
  SharedDtor();
6151
0
}
6152
6153
0
void ThreatHit_UserInfo::SharedDtor() {
6154
0
  region_code_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6155
0
  user_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6156
0
}
6157
6158
0
void ThreatHit_UserInfo::SetCachedSize(int size) const {
6159
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6160
0
  _cached_size_ = size;
6161
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
6162
0
}
6163
0
const ThreatHit_UserInfo& ThreatHit_UserInfo::default_instance() {
6164
0
  protobuf_safebrowsing_2eproto::InitDefaults();
6165
0
  return *internal_default_instance();
6166
0
}
6167
6168
0
ThreatHit_UserInfo* ThreatHit_UserInfo::New(::google::protobuf::Arena* arena) const {
6169
0
  ThreatHit_UserInfo* n = new ThreatHit_UserInfo;
6170
0
  if (arena != NULL) {
6171
0
    arena->Own(n);
6172
0
  }
6173
0
  return n;
6174
0
}
6175
6176
0
void ThreatHit_UserInfo::Clear() {
6177
0
// @@protoc_insertion_point(message_clear_start:mozilla.safebrowsing.ThreatHit.UserInfo)
6178
0
  ::google::protobuf::uint32 cached_has_bits = 0;
6179
0
  // Prevent compiler warnings about cached_has_bits being unused
6180
0
  (void) cached_has_bits;
6181
0
6182
0
  cached_has_bits = _has_bits_[0];
6183
0
  if (cached_has_bits & 3u) {
6184
0
    if (cached_has_bits & 0x00000001u) {
6185
0
      GOOGLE_DCHECK(!region_code_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
6186
0
      (*region_code_.UnsafeRawStringPointer())->clear();
6187
0
    }
6188
0
    if (cached_has_bits & 0x00000002u) {
6189
0
      GOOGLE_DCHECK(!user_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
6190
0
      (*user_id_.UnsafeRawStringPointer())->clear();
6191
0
    }
6192
0
  }
6193
0
  _has_bits_.Clear();
6194
0
  _internal_metadata_.Clear();
6195
0
}
6196
6197
bool ThreatHit_UserInfo::MergePartialFromCodedStream(
6198
0
    ::google::protobuf::io::CodedInputStream* input) {
6199
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
6200
0
  ::google::protobuf::uint32 tag;
6201
0
  ::google::protobuf::io::LazyStringOutputStream unknown_fields_string(
6202
0
      ::google::protobuf::NewPermanentCallback(&_internal_metadata_,
6203
0
          &::google::protobuf::internal::InternalMetadataWithArenaLite::
6204
0
              mutable_unknown_fields));
6205
0
  ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
6206
0
      &unknown_fields_string, false);
6207
0
  // @@protoc_insertion_point(parse_start:mozilla.safebrowsing.ThreatHit.UserInfo)
6208
0
  for (;;) {
6209
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
6210
0
    tag = p.first;
6211
0
    if (!p.second) goto handle_unusual;
6212
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6213
0
      // optional string region_code = 1;
6214
0
      case 1: {
6215
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6216
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
6217
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6218
0
                input, this->mutable_region_code()));
6219
0
        } else {
6220
0
          goto handle_unusual;
6221
0
        }
6222
0
        break;
6223
0
      }
6224
0
6225
0
      // optional bytes user_id = 2;
6226
0
      case 2: {
6227
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6228
0
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
6229
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
6230
0
                input, this->mutable_user_id()));
6231
0
        } else {
6232
0
          goto handle_unusual;
6233
0
        }
6234
0
        break;
6235
0
      }
6236
0
6237
0
      default: {
6238
0
      handle_unusual:
6239
0
        if (tag == 0) {
6240
0
          goto success;
6241
0
        }
6242
0
        DO_(::google::protobuf::internal::WireFormatLite::SkipField(
6243
0
            input, tag, &unknown_fields_stream));
6244
0
        break;
6245
0
      }
6246
0
    }
6247
0
  }
6248
0
success:
6249
0
  // @@protoc_insertion_point(parse_success:mozilla.safebrowsing.ThreatHit.UserInfo)
6250
0
  return true;
6251
0
failure:
6252
0
  // @@protoc_insertion_point(parse_failure:mozilla.safebrowsing.ThreatHit.UserInfo)
6253
0
  return false;
6254
0
#undef DO_
6255
0
}
6256
6257
void ThreatHit_UserInfo::SerializeWithCachedSizes(
6258
0
    ::google::protobuf::io::CodedOutputStream* output) const {
6259
0
  // @@protoc_insertion_point(serialize_start:mozilla.safebrowsing.ThreatHit.UserInfo)
6260
0
  ::google::protobuf::uint32 cached_has_bits = 0;
6261
0
  (void) cached_has_bits;
6262
0
6263
0
  cached_has_bits = _has_bits_[0];
6264
0
  // optional string region_code = 1;
6265
0
  if (cached_has_bits & 0x00000001u) {
6266
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
6267
0
      1, this->region_code(), output);
6268
0
  }
6269
0
6270
0
  // optional bytes user_id = 2;
6271
0
  if (cached_has_bits & 0x00000002u) {
6272
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
6273
0
      2, this->user_id(), output);
6274
0
  }
6275
0
6276
0
  output->WriteRaw(_internal_metadata_.unknown_fields().data(),
6277
0
                   static_cast<int>(_internal_metadata_.unknown_fields().size()));
6278
0
  // @@protoc_insertion_point(serialize_end:mozilla.safebrowsing.ThreatHit.UserInfo)
6279
0
}
6280
6281
0
size_t ThreatHit_UserInfo::ByteSizeLong() const {
6282
0
// @@protoc_insertion_point(message_byte_size_start:mozilla.safebrowsing.ThreatHit.UserInfo)
6283
0
  size_t total_size = 0;
6284
0
6285
0
  total_size += _internal_metadata_.unknown_fields().size();
6286
0
6287
0
  if (_has_bits_[0 / 32] & 3u) {
6288
0
    // optional string region_code = 1;
6289
0
    if (has_region_code()) {
6290
0
      total_size += 1 +
6291
0
        ::google::protobuf::internal::WireFormatLite::StringSize(
6292
0
          this->region_code());
6293
0
    }
6294
0
6295
0
    // optional bytes user_id = 2;
6296
0
    if (has_user_id()) {
6297
0
      total_size += 1 +
6298
0
        ::google::protobuf::internal::WireFormatLite::BytesSize(
6299
0
          this->user_id());
6300
0
    }
6301
0
6302
0
  }
6303
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
6304
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6305
0
  _cached_size_ = cached_size;
6306
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
6307
0
  return total_size;
6308
0
}
6309
6310
void ThreatHit_UserInfo::CheckTypeAndMergeFrom(
6311
0
    const ::google::protobuf::MessageLite& from) {
6312
0
  MergeFrom(*::google::protobuf::down_cast<const ThreatHit_UserInfo*>(&from));
6313
0
}
6314
6315
0
void ThreatHit_UserInfo::MergeFrom(const ThreatHit_UserInfo& from) {
6316
0
// @@protoc_insertion_point(class_specific_merge_from_start:mozilla.safebrowsing.ThreatHit.UserInfo)
6317
0
  GOOGLE_DCHECK_NE(&from, this);
6318
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
6319
0
  ::google::protobuf::uint32 cached_has_bits = 0;
6320
0
  (void) cached_has_bits;
6321
0
6322
0
  cached_has_bits = from._has_bits_[0];
6323
0
  if (cached_has_bits & 3u) {
6324
0
    if (cached_has_bits & 0x00000001u) {
6325
0
      set_has_region_code();
6326
0
      region_code_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.region_code_);
6327
0
    }
6328
0
    if (cached_has_bits & 0x00000002u) {
6329
0
      set_has_user_id();
6330
0
      user_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.user_id_);
6331
0
    }
6332
0
  }
6333
0
}
6334
6335
0
void ThreatHit_UserInfo::CopyFrom(const ThreatHit_UserInfo& from) {
6336
0
// @@protoc_insertion_point(class_specific_copy_from_start:mozilla.safebrowsing.ThreatHit.UserInfo)
6337
0
  if (&from == this) return;
6338
0
  Clear();
6339
0
  MergeFrom(from);
6340
0
}
6341
6342
0
bool ThreatHit_UserInfo::IsInitialized() const {
6343
0
  return true;
6344
0
}
6345
6346
0
void ThreatHit_UserInfo::Swap(ThreatHit_UserInfo* other) {
6347
0
  if (other == this) return;
6348
0
  InternalSwap(other);
6349
0
}
6350
0
void ThreatHit_UserInfo::InternalSwap(ThreatHit_UserInfo* other) {
6351
0
  using std::swap;
6352
0
  region_code_.Swap(&other->region_code_);
6353
0
  user_id_.Swap(&other->user_id_);
6354
0
  swap(_has_bits_[0], other->_has_bits_[0]);
6355
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
6356
0
  swap(_cached_size_, other->_cached_size_);
6357
0
}
6358
6359
0
::std::string ThreatHit_UserInfo::GetTypeName() const {
6360
0
  return "mozilla.safebrowsing.ThreatHit.UserInfo";
6361
0
}
6362
6363
#if PROTOBUF_INLINE_NOT_IN_HEADERS
6364
// ThreatHit_UserInfo
6365
6366
// optional string region_code = 1;
6367
bool ThreatHit_UserInfo::has_region_code() const {
6368
  return (_has_bits_[0] & 0x00000001u) != 0;
6369
}
6370
void ThreatHit_UserInfo::set_has_region_code() {
6371
  _has_bits_[0] |= 0x00000001u;
6372
}
6373
void ThreatHit_UserInfo::clear_has_region_code() {
6374
  _has_bits_[0] &= ~0x00000001u;
6375
}
6376
void ThreatHit_UserInfo::clear_region_code() {
6377
  region_code_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6378
  clear_has_region_code();
6379
}
6380
const ::std::string& ThreatHit_UserInfo::region_code() const {
6381
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatHit.UserInfo.region_code)
6382
  return region_code_.GetNoArena();
6383
}
6384
void ThreatHit_UserInfo::set_region_code(const ::std::string& value) {
6385
  set_has_region_code();
6386
  region_code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
6387
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatHit.UserInfo.region_code)
6388
}
6389
#if LANG_CXX11
6390
void ThreatHit_UserInfo::set_region_code(::std::string&& value) {
6391
  set_has_region_code();
6392
  region_code_.SetNoArena(
6393
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
6394
  // @@protoc_insertion_point(field_set_rvalue:mozilla.safebrowsing.ThreatHit.UserInfo.region_code)
6395
}
6396
#endif
6397
void ThreatHit_UserInfo::set_region_code(const char* value) {
6398
  GOOGLE_DCHECK(value != NULL);
6399
  set_has_region_code();
6400
  region_code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
6401
  // @@protoc_insertion_point(field_set_char:mozilla.safebrowsing.ThreatHit.UserInfo.region_code)
6402
}
6403
void ThreatHit_UserInfo::set_region_code(const char* value, size_t size) {
6404
  set_has_region_code();
6405
  region_code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
6406
      ::std::string(reinterpret_cast<const char*>(value), size));
6407
  // @@protoc_insertion_point(field_set_pointer:mozilla.safebrowsing.ThreatHit.UserInfo.region_code)
6408
}
6409
::std::string* ThreatHit_UserInfo::mutable_region_code() {
6410
  set_has_region_code();
6411
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatHit.UserInfo.region_code)
6412
  return region_code_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6413
}
6414
::std::string* ThreatHit_UserInfo::release_region_code() {
6415
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.ThreatHit.UserInfo.region_code)
6416
  clear_has_region_code();
6417
  return region_code_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6418
}
6419
void ThreatHit_UserInfo::set_allocated_region_code(::std::string* region_code) {
6420
  if (region_code != NULL) {
6421
    set_has_region_code();
6422
  } else {
6423
    clear_has_region_code();
6424
  }
6425
  region_code_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), region_code);
6426
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.ThreatHit.UserInfo.region_code)
6427
}
6428
6429
// optional bytes user_id = 2;
6430
bool ThreatHit_UserInfo::has_user_id() const {
6431
  return (_has_bits_[0] & 0x00000002u) != 0;
6432
}
6433
void ThreatHit_UserInfo::set_has_user_id() {
6434
  _has_bits_[0] |= 0x00000002u;
6435
}
6436
void ThreatHit_UserInfo::clear_has_user_id() {
6437
  _has_bits_[0] &= ~0x00000002u;
6438
}
6439
void ThreatHit_UserInfo::clear_user_id() {
6440
  user_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6441
  clear_has_user_id();
6442
}
6443
const ::std::string& ThreatHit_UserInfo::user_id() const {
6444
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatHit.UserInfo.user_id)
6445
  return user_id_.GetNoArena();
6446
}
6447
void ThreatHit_UserInfo::set_user_id(const ::std::string& value) {
6448
  set_has_user_id();
6449
  user_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
6450
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatHit.UserInfo.user_id)
6451
}
6452
#if LANG_CXX11
6453
void ThreatHit_UserInfo::set_user_id(::std::string&& value) {
6454
  set_has_user_id();
6455
  user_id_.SetNoArena(
6456
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
6457
  // @@protoc_insertion_point(field_set_rvalue:mozilla.safebrowsing.ThreatHit.UserInfo.user_id)
6458
}
6459
#endif
6460
void ThreatHit_UserInfo::set_user_id(const char* value) {
6461
  GOOGLE_DCHECK(value != NULL);
6462
  set_has_user_id();
6463
  user_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
6464
  // @@protoc_insertion_point(field_set_char:mozilla.safebrowsing.ThreatHit.UserInfo.user_id)
6465
}
6466
void ThreatHit_UserInfo::set_user_id(const void* value, size_t size) {
6467
  set_has_user_id();
6468
  user_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
6469
      ::std::string(reinterpret_cast<const char*>(value), size));
6470
  // @@protoc_insertion_point(field_set_pointer:mozilla.safebrowsing.ThreatHit.UserInfo.user_id)
6471
}
6472
::std::string* ThreatHit_UserInfo::mutable_user_id() {
6473
  set_has_user_id();
6474
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatHit.UserInfo.user_id)
6475
  return user_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6476
}
6477
::std::string* ThreatHit_UserInfo::release_user_id() {
6478
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.ThreatHit.UserInfo.user_id)
6479
  clear_has_user_id();
6480
  return user_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6481
}
6482
void ThreatHit_UserInfo::set_allocated_user_id(::std::string* user_id) {
6483
  if (user_id != NULL) {
6484
    set_has_user_id();
6485
  } else {
6486
    clear_has_user_id();
6487
  }
6488
  user_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), user_id);
6489
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.ThreatHit.UserInfo.user_id)
6490
}
6491
6492
#endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
6493
6494
// ===================================================================
6495
6496
#if !defined(_MSC_VER) || _MSC_VER >= 1900
6497
const int ThreatHit::kThreatTypeFieldNumber;
6498
const int ThreatHit::kPlatformTypeFieldNumber;
6499
const int ThreatHit::kEntryFieldNumber;
6500
const int ThreatHit::kResourcesFieldNumber;
6501
const int ThreatHit::kClientInfoFieldNumber;
6502
const int ThreatHit::kUserInfoFieldNumber;
6503
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
6504
6505
ThreatHit::ThreatHit()
6506
0
  : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) {
6507
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
6508
0
    protobuf_safebrowsing_2eproto::InitDefaults();
6509
0
  }
6510
0
  SharedCtor();
6511
0
  // @@protoc_insertion_point(constructor:mozilla.safebrowsing.ThreatHit)
6512
0
}
6513
ThreatHit::ThreatHit(const ThreatHit& from)
6514
  : ::google::protobuf::MessageLite(),
6515
      _internal_metadata_(NULL),
6516
      _has_bits_(from._has_bits_),
6517
      _cached_size_(0),
6518
0
      resources_(from.resources_) {
6519
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
6520
0
  if (from.has_entry()) {
6521
0
    entry_ = new ::mozilla::safebrowsing::ThreatEntry(*from.entry_);
6522
0
  } else {
6523
0
    entry_ = NULL;
6524
0
  }
6525
0
  if (from.has_client_info()) {
6526
0
    client_info_ = new ::mozilla::safebrowsing::ClientInfo(*from.client_info_);
6527
0
  } else {
6528
0
    client_info_ = NULL;
6529
0
  }
6530
0
  if (from.has_user_info()) {
6531
0
    user_info_ = new ::mozilla::safebrowsing::ThreatHit_UserInfo(*from.user_info_);
6532
0
  } else {
6533
0
    user_info_ = NULL;
6534
0
  }
6535
0
  ::memcpy(&threat_type_, &from.threat_type_,
6536
0
    static_cast<size_t>(reinterpret_cast<char*>(&platform_type_) -
6537
0
    reinterpret_cast<char*>(&threat_type_)) + sizeof(platform_type_));
6538
0
  // @@protoc_insertion_point(copy_constructor:mozilla.safebrowsing.ThreatHit)
6539
0
}
6540
6541
0
void ThreatHit::SharedCtor() {
6542
0
  _cached_size_ = 0;
6543
0
  ::memset(&entry_, 0, static_cast<size_t>(
6544
0
      reinterpret_cast<char*>(&platform_type_) -
6545
0
      reinterpret_cast<char*>(&entry_)) + sizeof(platform_type_));
6546
0
}
6547
6548
0
ThreatHit::~ThreatHit() {
6549
0
  // @@protoc_insertion_point(destructor:mozilla.safebrowsing.ThreatHit)
6550
0
  SharedDtor();
6551
0
}
6552
6553
0
void ThreatHit::SharedDtor() {
6554
0
  if (this != internal_default_instance()) delete entry_;
6555
0
  if (this != internal_default_instance()) delete client_info_;
6556
0
  if (this != internal_default_instance()) delete user_info_;
6557
0
}
6558
6559
0
void ThreatHit::SetCachedSize(int size) const {
6560
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6561
0
  _cached_size_ = size;
6562
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
6563
0
}
6564
0
const ThreatHit& ThreatHit::default_instance() {
6565
0
  protobuf_safebrowsing_2eproto::InitDefaults();
6566
0
  return *internal_default_instance();
6567
0
}
6568
6569
0
ThreatHit* ThreatHit::New(::google::protobuf::Arena* arena) const {
6570
0
  ThreatHit* n = new ThreatHit;
6571
0
  if (arena != NULL) {
6572
0
    arena->Own(n);
6573
0
  }
6574
0
  return n;
6575
0
}
6576
6577
0
void ThreatHit::Clear() {
6578
0
// @@protoc_insertion_point(message_clear_start:mozilla.safebrowsing.ThreatHit)
6579
0
  ::google::protobuf::uint32 cached_has_bits = 0;
6580
0
  // Prevent compiler warnings about cached_has_bits being unused
6581
0
  (void) cached_has_bits;
6582
0
6583
0
  resources_.Clear();
6584
0
  cached_has_bits = _has_bits_[0];
6585
0
  if (cached_has_bits & 7u) {
6586
0
    if (cached_has_bits & 0x00000001u) {
6587
0
      GOOGLE_DCHECK(entry_ != NULL);
6588
0
      entry_->::mozilla::safebrowsing::ThreatEntry::Clear();
6589
0
    }
6590
0
    if (cached_has_bits & 0x00000002u) {
6591
0
      GOOGLE_DCHECK(client_info_ != NULL);
6592
0
      client_info_->::mozilla::safebrowsing::ClientInfo::Clear();
6593
0
    }
6594
0
    if (cached_has_bits & 0x00000004u) {
6595
0
      GOOGLE_DCHECK(user_info_ != NULL);
6596
0
      user_info_->::mozilla::safebrowsing::ThreatHit_UserInfo::Clear();
6597
0
    }
6598
0
  }
6599
0
  if (cached_has_bits & 24u) {
6600
0
    ::memset(&threat_type_, 0, static_cast<size_t>(
6601
0
        reinterpret_cast<char*>(&platform_type_) -
6602
0
        reinterpret_cast<char*>(&threat_type_)) + sizeof(platform_type_));
6603
0
  }
6604
0
  _has_bits_.Clear();
6605
0
  _internal_metadata_.Clear();
6606
0
}
6607
6608
bool ThreatHit::MergePartialFromCodedStream(
6609
0
    ::google::protobuf::io::CodedInputStream* input) {
6610
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
6611
0
  ::google::protobuf::uint32 tag;
6612
0
  ::google::protobuf::io::LazyStringOutputStream unknown_fields_string(
6613
0
      ::google::protobuf::NewPermanentCallback(&_internal_metadata_,
6614
0
          &::google::protobuf::internal::InternalMetadataWithArenaLite::
6615
0
              mutable_unknown_fields));
6616
0
  ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
6617
0
      &unknown_fields_string, false);
6618
0
  // @@protoc_insertion_point(parse_start:mozilla.safebrowsing.ThreatHit)
6619
0
  for (;;) {
6620
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
6621
0
    tag = p.first;
6622
0
    if (!p.second) goto handle_unusual;
6623
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6624
0
      // optional .mozilla.safebrowsing.ThreatType threat_type = 1;
6625
0
      case 1: {
6626
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6627
0
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
6628
0
          int value;
6629
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6630
0
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
6631
0
                 input, &value)));
6632
0
          if (::mozilla::safebrowsing::ThreatType_IsValid(value)) {
6633
0
            set_threat_type(static_cast< ::mozilla::safebrowsing::ThreatType >(value));
6634
0
          } else {
6635
0
            unknown_fields_stream.WriteVarint32(8u);
6636
0
            unknown_fields_stream.WriteVarint32(
6637
0
                static_cast< ::google::protobuf::uint32>(value));
6638
0
          }
6639
0
        } else {
6640
0
          goto handle_unusual;
6641
0
        }
6642
0
        break;
6643
0
      }
6644
0
6645
0
      // optional .mozilla.safebrowsing.PlatformType platform_type = 2;
6646
0
      case 2: {
6647
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6648
0
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
6649
0
          int value;
6650
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6651
0
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
6652
0
                 input, &value)));
6653
0
          if (::mozilla::safebrowsing::PlatformType_IsValid(value)) {
6654
0
            set_platform_type(static_cast< ::mozilla::safebrowsing::PlatformType >(value));
6655
0
          } else {
6656
0
            unknown_fields_stream.WriteVarint32(16u);
6657
0
            unknown_fields_stream.WriteVarint32(
6658
0
                static_cast< ::google::protobuf::uint32>(value));
6659
0
          }
6660
0
        } else {
6661
0
          goto handle_unusual;
6662
0
        }
6663
0
        break;
6664
0
      }
6665
0
6666
0
      // optional .mozilla.safebrowsing.ThreatEntry entry = 3;
6667
0
      case 3: {
6668
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6669
0
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
6670
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
6671
0
               input, mutable_entry()));
6672
0
        } else {
6673
0
          goto handle_unusual;
6674
0
        }
6675
0
        break;
6676
0
      }
6677
0
6678
0
      // repeated .mozilla.safebrowsing.ThreatHit.ThreatSource resources = 4;
6679
0
      case 4: {
6680
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6681
0
            static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
6682
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
6683
0
                input, add_resources()));
6684
0
        } else {
6685
0
          goto handle_unusual;
6686
0
        }
6687
0
        break;
6688
0
      }
6689
0
6690
0
      // optional .mozilla.safebrowsing.ClientInfo client_info = 5;
6691
0
      case 5: {
6692
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6693
0
            static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
6694
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
6695
0
               input, mutable_client_info()));
6696
0
        } else {
6697
0
          goto handle_unusual;
6698
0
        }
6699
0
        break;
6700
0
      }
6701
0
6702
0
      // optional .mozilla.safebrowsing.ThreatHit.UserInfo user_info = 6;
6703
0
      case 6: {
6704
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6705
0
            static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
6706
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
6707
0
               input, mutable_user_info()));
6708
0
        } else {
6709
0
          goto handle_unusual;
6710
0
        }
6711
0
        break;
6712
0
      }
6713
0
6714
0
      default: {
6715
0
      handle_unusual:
6716
0
        if (tag == 0) {
6717
0
          goto success;
6718
0
        }
6719
0
        DO_(::google::protobuf::internal::WireFormatLite::SkipField(
6720
0
            input, tag, &unknown_fields_stream));
6721
0
        break;
6722
0
      }
6723
0
    }
6724
0
  }
6725
0
success:
6726
0
  // @@protoc_insertion_point(parse_success:mozilla.safebrowsing.ThreatHit)
6727
0
  return true;
6728
0
failure:
6729
0
  // @@protoc_insertion_point(parse_failure:mozilla.safebrowsing.ThreatHit)
6730
0
  return false;
6731
0
#undef DO_
6732
0
}
6733
6734
void ThreatHit::SerializeWithCachedSizes(
6735
0
    ::google::protobuf::io::CodedOutputStream* output) const {
6736
0
  // @@protoc_insertion_point(serialize_start:mozilla.safebrowsing.ThreatHit)
6737
0
  ::google::protobuf::uint32 cached_has_bits = 0;
6738
0
  (void) cached_has_bits;
6739
0
6740
0
  cached_has_bits = _has_bits_[0];
6741
0
  // optional .mozilla.safebrowsing.ThreatType threat_type = 1;
6742
0
  if (cached_has_bits & 0x00000008u) {
6743
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
6744
0
      1, this->threat_type(), output);
6745
0
  }
6746
0
6747
0
  // optional .mozilla.safebrowsing.PlatformType platform_type = 2;
6748
0
  if (cached_has_bits & 0x00000010u) {
6749
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
6750
0
      2, this->platform_type(), output);
6751
0
  }
6752
0
6753
0
  // optional .mozilla.safebrowsing.ThreatEntry entry = 3;
6754
0
  if (cached_has_bits & 0x00000001u) {
6755
0
    ::google::protobuf::internal::WireFormatLite::WriteMessage(
6756
0
      3, *this->entry_, output);
6757
0
  }
6758
0
6759
0
  // repeated .mozilla.safebrowsing.ThreatHit.ThreatSource resources = 4;
6760
0
  for (unsigned int i = 0,
6761
0
      n = static_cast<unsigned int>(this->resources_size()); i < n; i++) {
6762
0
    ::google::protobuf::internal::WireFormatLite::WriteMessage(
6763
0
      4, this->resources(static_cast<int>(i)), output);
6764
0
  }
6765
0
6766
0
  // optional .mozilla.safebrowsing.ClientInfo client_info = 5;
6767
0
  if (cached_has_bits & 0x00000002u) {
6768
0
    ::google::protobuf::internal::WireFormatLite::WriteMessage(
6769
0
      5, *this->client_info_, output);
6770
0
  }
6771
0
6772
0
  // optional .mozilla.safebrowsing.ThreatHit.UserInfo user_info = 6;
6773
0
  if (cached_has_bits & 0x00000004u) {
6774
0
    ::google::protobuf::internal::WireFormatLite::WriteMessage(
6775
0
      6, *this->user_info_, output);
6776
0
  }
6777
0
6778
0
  output->WriteRaw(_internal_metadata_.unknown_fields().data(),
6779
0
                   static_cast<int>(_internal_metadata_.unknown_fields().size()));
6780
0
  // @@protoc_insertion_point(serialize_end:mozilla.safebrowsing.ThreatHit)
6781
0
}
6782
6783
0
size_t ThreatHit::ByteSizeLong() const {
6784
0
// @@protoc_insertion_point(message_byte_size_start:mozilla.safebrowsing.ThreatHit)
6785
0
  size_t total_size = 0;
6786
0
6787
0
  total_size += _internal_metadata_.unknown_fields().size();
6788
0
6789
0
  // repeated .mozilla.safebrowsing.ThreatHit.ThreatSource resources = 4;
6790
0
  {
6791
0
    unsigned int count = static_cast<unsigned int>(this->resources_size());
6792
0
    total_size += 1UL * count;
6793
0
    for (unsigned int i = 0; i < count; i++) {
6794
0
      total_size +=
6795
0
        ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6796
0
          this->resources(static_cast<int>(i)));
6797
0
    }
6798
0
  }
6799
0
6800
0
  if (_has_bits_[0 / 32] & 31u) {
6801
0
    // optional .mozilla.safebrowsing.ThreatEntry entry = 3;
6802
0
    if (has_entry()) {
6803
0
      total_size += 1 +
6804
0
        ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6805
0
          *this->entry_);
6806
0
    }
6807
0
6808
0
    // optional .mozilla.safebrowsing.ClientInfo client_info = 5;
6809
0
    if (has_client_info()) {
6810
0
      total_size += 1 +
6811
0
        ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6812
0
          *this->client_info_);
6813
0
    }
6814
0
6815
0
    // optional .mozilla.safebrowsing.ThreatHit.UserInfo user_info = 6;
6816
0
    if (has_user_info()) {
6817
0
      total_size += 1 +
6818
0
        ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6819
0
          *this->user_info_);
6820
0
    }
6821
0
6822
0
    // optional .mozilla.safebrowsing.ThreatType threat_type = 1;
6823
0
    if (has_threat_type()) {
6824
0
      total_size += 1 +
6825
0
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->threat_type());
6826
0
    }
6827
0
6828
0
    // optional .mozilla.safebrowsing.PlatformType platform_type = 2;
6829
0
    if (has_platform_type()) {
6830
0
      total_size += 1 +
6831
0
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->platform_type());
6832
0
    }
6833
0
6834
0
  }
6835
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
6836
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6837
0
  _cached_size_ = cached_size;
6838
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
6839
0
  return total_size;
6840
0
}
6841
6842
void ThreatHit::CheckTypeAndMergeFrom(
6843
0
    const ::google::protobuf::MessageLite& from) {
6844
0
  MergeFrom(*::google::protobuf::down_cast<const ThreatHit*>(&from));
6845
0
}
6846
6847
0
void ThreatHit::MergeFrom(const ThreatHit& from) {
6848
0
// @@protoc_insertion_point(class_specific_merge_from_start:mozilla.safebrowsing.ThreatHit)
6849
0
  GOOGLE_DCHECK_NE(&from, this);
6850
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
6851
0
  ::google::protobuf::uint32 cached_has_bits = 0;
6852
0
  (void) cached_has_bits;
6853
0
6854
0
  resources_.MergeFrom(from.resources_);
6855
0
  cached_has_bits = from._has_bits_[0];
6856
0
  if (cached_has_bits & 31u) {
6857
0
    if (cached_has_bits & 0x00000001u) {
6858
0
      mutable_entry()->::mozilla::safebrowsing::ThreatEntry::MergeFrom(from.entry());
6859
0
    }
6860
0
    if (cached_has_bits & 0x00000002u) {
6861
0
      mutable_client_info()->::mozilla::safebrowsing::ClientInfo::MergeFrom(from.client_info());
6862
0
    }
6863
0
    if (cached_has_bits & 0x00000004u) {
6864
0
      mutable_user_info()->::mozilla::safebrowsing::ThreatHit_UserInfo::MergeFrom(from.user_info());
6865
0
    }
6866
0
    if (cached_has_bits & 0x00000008u) {
6867
0
      threat_type_ = from.threat_type_;
6868
0
    }
6869
0
    if (cached_has_bits & 0x00000010u) {
6870
0
      platform_type_ = from.platform_type_;
6871
0
    }
6872
0
    _has_bits_[0] |= cached_has_bits;
6873
0
  }
6874
0
}
6875
6876
0
void ThreatHit::CopyFrom(const ThreatHit& from) {
6877
0
// @@protoc_insertion_point(class_specific_copy_from_start:mozilla.safebrowsing.ThreatHit)
6878
0
  if (&from == this) return;
6879
0
  Clear();
6880
0
  MergeFrom(from);
6881
0
}
6882
6883
0
bool ThreatHit::IsInitialized() const {
6884
0
  return true;
6885
0
}
6886
6887
0
void ThreatHit::Swap(ThreatHit* other) {
6888
0
  if (other == this) return;
6889
0
  InternalSwap(other);
6890
0
}
6891
0
void ThreatHit::InternalSwap(ThreatHit* other) {
6892
0
  using std::swap;
6893
0
  resources_.InternalSwap(&other->resources_);
6894
0
  swap(entry_, other->entry_);
6895
0
  swap(client_info_, other->client_info_);
6896
0
  swap(user_info_, other->user_info_);
6897
0
  swap(threat_type_, other->threat_type_);
6898
0
  swap(platform_type_, other->platform_type_);
6899
0
  swap(_has_bits_[0], other->_has_bits_[0]);
6900
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
6901
0
  swap(_cached_size_, other->_cached_size_);
6902
0
}
6903
6904
0
::std::string ThreatHit::GetTypeName() const {
6905
0
  return "mozilla.safebrowsing.ThreatHit";
6906
0
}
6907
6908
#if PROTOBUF_INLINE_NOT_IN_HEADERS
6909
// ThreatHit
6910
6911
// optional .mozilla.safebrowsing.ThreatType threat_type = 1;
6912
bool ThreatHit::has_threat_type() const {
6913
  return (_has_bits_[0] & 0x00000008u) != 0;
6914
}
6915
void ThreatHit::set_has_threat_type() {
6916
  _has_bits_[0] |= 0x00000008u;
6917
}
6918
void ThreatHit::clear_has_threat_type() {
6919
  _has_bits_[0] &= ~0x00000008u;
6920
}
6921
void ThreatHit::clear_threat_type() {
6922
  threat_type_ = 0;
6923
  clear_has_threat_type();
6924
}
6925
::mozilla::safebrowsing::ThreatType ThreatHit::threat_type() const {
6926
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatHit.threat_type)
6927
  return static_cast< ::mozilla::safebrowsing::ThreatType >(threat_type_);
6928
}
6929
void ThreatHit::set_threat_type(::mozilla::safebrowsing::ThreatType value) {
6930
  assert(::mozilla::safebrowsing::ThreatType_IsValid(value));
6931
  set_has_threat_type();
6932
  threat_type_ = value;
6933
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatHit.threat_type)
6934
}
6935
6936
// optional .mozilla.safebrowsing.PlatformType platform_type = 2;
6937
bool ThreatHit::has_platform_type() const {
6938
  return (_has_bits_[0] & 0x00000010u) != 0;
6939
}
6940
void ThreatHit::set_has_platform_type() {
6941
  _has_bits_[0] |= 0x00000010u;
6942
}
6943
void ThreatHit::clear_has_platform_type() {
6944
  _has_bits_[0] &= ~0x00000010u;
6945
}
6946
void ThreatHit::clear_platform_type() {
6947
  platform_type_ = 0;
6948
  clear_has_platform_type();
6949
}
6950
::mozilla::safebrowsing::PlatformType ThreatHit::platform_type() const {
6951
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatHit.platform_type)
6952
  return static_cast< ::mozilla::safebrowsing::PlatformType >(platform_type_);
6953
}
6954
void ThreatHit::set_platform_type(::mozilla::safebrowsing::PlatformType value) {
6955
  assert(::mozilla::safebrowsing::PlatformType_IsValid(value));
6956
  set_has_platform_type();
6957
  platform_type_ = value;
6958
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatHit.platform_type)
6959
}
6960
6961
// optional .mozilla.safebrowsing.ThreatEntry entry = 3;
6962
bool ThreatHit::has_entry() const {
6963
  return (_has_bits_[0] & 0x00000001u) != 0;
6964
}
6965
void ThreatHit::set_has_entry() {
6966
  _has_bits_[0] |= 0x00000001u;
6967
}
6968
void ThreatHit::clear_has_entry() {
6969
  _has_bits_[0] &= ~0x00000001u;
6970
}
6971
void ThreatHit::clear_entry() {
6972
  if (entry_ != NULL) entry_->::mozilla::safebrowsing::ThreatEntry::Clear();
6973
  clear_has_entry();
6974
}
6975
const ::mozilla::safebrowsing::ThreatEntry& ThreatHit::entry() const {
6976
  const ::mozilla::safebrowsing::ThreatEntry* p = entry_;
6977
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatHit.entry)
6978
  return p != NULL ? *p : *reinterpret_cast<const ::mozilla::safebrowsing::ThreatEntry*>(
6979
      &::mozilla::safebrowsing::_ThreatEntry_default_instance_);
6980
}
6981
::mozilla::safebrowsing::ThreatEntry* ThreatHit::mutable_entry() {
6982
  set_has_entry();
6983
  if (entry_ == NULL) {
6984
    entry_ = new ::mozilla::safebrowsing::ThreatEntry;
6985
  }
6986
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatHit.entry)
6987
  return entry_;
6988
}
6989
::mozilla::safebrowsing::ThreatEntry* ThreatHit::release_entry() {
6990
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.ThreatHit.entry)
6991
  clear_has_entry();
6992
  ::mozilla::safebrowsing::ThreatEntry* temp = entry_;
6993
  entry_ = NULL;
6994
  return temp;
6995
}
6996
void ThreatHit::set_allocated_entry(::mozilla::safebrowsing::ThreatEntry* entry) {
6997
  delete entry_;
6998
  entry_ = entry;
6999
  if (entry) {
7000
    set_has_entry();
7001
  } else {
7002
    clear_has_entry();
7003
  }
7004
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.ThreatHit.entry)
7005
}
7006
7007
// repeated .mozilla.safebrowsing.ThreatHit.ThreatSource resources = 4;
7008
int ThreatHit::resources_size() const {
7009
  return resources_.size();
7010
}
7011
void ThreatHit::clear_resources() {
7012
  resources_.Clear();
7013
}
7014
const ::mozilla::safebrowsing::ThreatHit_ThreatSource& ThreatHit::resources(int index) const {
7015
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatHit.resources)
7016
  return resources_.Get(index);
7017
}
7018
::mozilla::safebrowsing::ThreatHit_ThreatSource* ThreatHit::mutable_resources(int index) {
7019
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatHit.resources)
7020
  return resources_.Mutable(index);
7021
}
7022
::mozilla::safebrowsing::ThreatHit_ThreatSource* ThreatHit::add_resources() {
7023
  // @@protoc_insertion_point(field_add:mozilla.safebrowsing.ThreatHit.resources)
7024
  return resources_.Add();
7025
}
7026
::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatHit_ThreatSource >*
7027
ThreatHit::mutable_resources() {
7028
  // @@protoc_insertion_point(field_mutable_list:mozilla.safebrowsing.ThreatHit.resources)
7029
  return &resources_;
7030
}
7031
const ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatHit_ThreatSource >&
7032
ThreatHit::resources() const {
7033
  // @@protoc_insertion_point(field_list:mozilla.safebrowsing.ThreatHit.resources)
7034
  return resources_;
7035
}
7036
7037
// optional .mozilla.safebrowsing.ClientInfo client_info = 5;
7038
bool ThreatHit::has_client_info() const {
7039
  return (_has_bits_[0] & 0x00000002u) != 0;
7040
}
7041
void ThreatHit::set_has_client_info() {
7042
  _has_bits_[0] |= 0x00000002u;
7043
}
7044
void ThreatHit::clear_has_client_info() {
7045
  _has_bits_[0] &= ~0x00000002u;
7046
}
7047
void ThreatHit::clear_client_info() {
7048
  if (client_info_ != NULL) client_info_->::mozilla::safebrowsing::ClientInfo::Clear();
7049
  clear_has_client_info();
7050
}
7051
const ::mozilla::safebrowsing::ClientInfo& ThreatHit::client_info() const {
7052
  const ::mozilla::safebrowsing::ClientInfo* p = client_info_;
7053
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatHit.client_info)
7054
  return p != NULL ? *p : *reinterpret_cast<const ::mozilla::safebrowsing::ClientInfo*>(
7055
      &::mozilla::safebrowsing::_ClientInfo_default_instance_);
7056
}
7057
::mozilla::safebrowsing::ClientInfo* ThreatHit::mutable_client_info() {
7058
  set_has_client_info();
7059
  if (client_info_ == NULL) {
7060
    client_info_ = new ::mozilla::safebrowsing::ClientInfo;
7061
  }
7062
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatHit.client_info)
7063
  return client_info_;
7064
}
7065
::mozilla::safebrowsing::ClientInfo* ThreatHit::release_client_info() {
7066
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.ThreatHit.client_info)
7067
  clear_has_client_info();
7068
  ::mozilla::safebrowsing::ClientInfo* temp = client_info_;
7069
  client_info_ = NULL;
7070
  return temp;
7071
}
7072
void ThreatHit::set_allocated_client_info(::mozilla::safebrowsing::ClientInfo* client_info) {
7073
  delete client_info_;
7074
  client_info_ = client_info;
7075
  if (client_info) {
7076
    set_has_client_info();
7077
  } else {
7078
    clear_has_client_info();
7079
  }
7080
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.ThreatHit.client_info)
7081
}
7082
7083
// optional .mozilla.safebrowsing.ThreatHit.UserInfo user_info = 6;
7084
bool ThreatHit::has_user_info() const {
7085
  return (_has_bits_[0] & 0x00000004u) != 0;
7086
}
7087
void ThreatHit::set_has_user_info() {
7088
  _has_bits_[0] |= 0x00000004u;
7089
}
7090
void ThreatHit::clear_has_user_info() {
7091
  _has_bits_[0] &= ~0x00000004u;
7092
}
7093
void ThreatHit::clear_user_info() {
7094
  if (user_info_ != NULL) user_info_->::mozilla::safebrowsing::ThreatHit_UserInfo::Clear();
7095
  clear_has_user_info();
7096
}
7097
const ::mozilla::safebrowsing::ThreatHit_UserInfo& ThreatHit::user_info() const {
7098
  const ::mozilla::safebrowsing::ThreatHit_UserInfo* p = user_info_;
7099
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatHit.user_info)
7100
  return p != NULL ? *p : *reinterpret_cast<const ::mozilla::safebrowsing::ThreatHit_UserInfo*>(
7101
      &::mozilla::safebrowsing::_ThreatHit_UserInfo_default_instance_);
7102
}
7103
::mozilla::safebrowsing::ThreatHit_UserInfo* ThreatHit::mutable_user_info() {
7104
  set_has_user_info();
7105
  if (user_info_ == NULL) {
7106
    user_info_ = new ::mozilla::safebrowsing::ThreatHit_UserInfo;
7107
  }
7108
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatHit.user_info)
7109
  return user_info_;
7110
}
7111
::mozilla::safebrowsing::ThreatHit_UserInfo* ThreatHit::release_user_info() {
7112
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.ThreatHit.user_info)
7113
  clear_has_user_info();
7114
  ::mozilla::safebrowsing::ThreatHit_UserInfo* temp = user_info_;
7115
  user_info_ = NULL;
7116
  return temp;
7117
}
7118
void ThreatHit::set_allocated_user_info(::mozilla::safebrowsing::ThreatHit_UserInfo* user_info) {
7119
  delete user_info_;
7120
  user_info_ = user_info;
7121
  if (user_info) {
7122
    set_has_user_info();
7123
  } else {
7124
    clear_has_user_info();
7125
  }
7126
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.ThreatHit.user_info)
7127
}
7128
7129
#endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
7130
7131
// ===================================================================
7132
7133
#if !defined(_MSC_VER) || _MSC_VER >= 1900
7134
const int ClientInfo::kClientIdFieldNumber;
7135
const int ClientInfo::kClientVersionFieldNumber;
7136
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
7137
7138
ClientInfo::ClientInfo()
7139
0
  : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) {
7140
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
7141
0
    protobuf_safebrowsing_2eproto::InitDefaults();
7142
0
  }
7143
0
  SharedCtor();
7144
0
  // @@protoc_insertion_point(constructor:mozilla.safebrowsing.ClientInfo)
7145
0
}
7146
ClientInfo::ClientInfo(const ClientInfo& from)
7147
  : ::google::protobuf::MessageLite(),
7148
      _internal_metadata_(NULL),
7149
      _has_bits_(from._has_bits_),
7150
0
      _cached_size_(0) {
7151
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
7152
0
  client_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7153
0
  if (from.has_client_id()) {
7154
0
    client_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.client_id_);
7155
0
  }
7156
0
  client_version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7157
0
  if (from.has_client_version()) {
7158
0
    client_version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.client_version_);
7159
0
  }
7160
0
  // @@protoc_insertion_point(copy_constructor:mozilla.safebrowsing.ClientInfo)
7161
0
}
7162
7163
0
void ClientInfo::SharedCtor() {
7164
0
  _cached_size_ = 0;
7165
0
  client_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7166
0
  client_version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7167
0
}
7168
7169
0
ClientInfo::~ClientInfo() {
7170
0
  // @@protoc_insertion_point(destructor:mozilla.safebrowsing.ClientInfo)
7171
0
  SharedDtor();
7172
0
}
7173
7174
0
void ClientInfo::SharedDtor() {
7175
0
  client_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7176
0
  client_version_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7177
0
}
7178
7179
0
void ClientInfo::SetCachedSize(int size) const {
7180
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7181
0
  _cached_size_ = size;
7182
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
7183
0
}
7184
0
const ClientInfo& ClientInfo::default_instance() {
7185
0
  protobuf_safebrowsing_2eproto::InitDefaults();
7186
0
  return *internal_default_instance();
7187
0
}
7188
7189
0
ClientInfo* ClientInfo::New(::google::protobuf::Arena* arena) const {
7190
0
  ClientInfo* n = new ClientInfo;
7191
0
  if (arena != NULL) {
7192
0
    arena->Own(n);
7193
0
  }
7194
0
  return n;
7195
0
}
7196
7197
0
void ClientInfo::Clear() {
7198
0
// @@protoc_insertion_point(message_clear_start:mozilla.safebrowsing.ClientInfo)
7199
0
  ::google::protobuf::uint32 cached_has_bits = 0;
7200
0
  // Prevent compiler warnings about cached_has_bits being unused
7201
0
  (void) cached_has_bits;
7202
0
7203
0
  cached_has_bits = _has_bits_[0];
7204
0
  if (cached_has_bits & 3u) {
7205
0
    if (cached_has_bits & 0x00000001u) {
7206
0
      GOOGLE_DCHECK(!client_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
7207
0
      (*client_id_.UnsafeRawStringPointer())->clear();
7208
0
    }
7209
0
    if (cached_has_bits & 0x00000002u) {
7210
0
      GOOGLE_DCHECK(!client_version_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
7211
0
      (*client_version_.UnsafeRawStringPointer())->clear();
7212
0
    }
7213
0
  }
7214
0
  _has_bits_.Clear();
7215
0
  _internal_metadata_.Clear();
7216
0
}
7217
7218
bool ClientInfo::MergePartialFromCodedStream(
7219
0
    ::google::protobuf::io::CodedInputStream* input) {
7220
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
7221
0
  ::google::protobuf::uint32 tag;
7222
0
  ::google::protobuf::io::LazyStringOutputStream unknown_fields_string(
7223
0
      ::google::protobuf::NewPermanentCallback(&_internal_metadata_,
7224
0
          &::google::protobuf::internal::InternalMetadataWithArenaLite::
7225
0
              mutable_unknown_fields));
7226
0
  ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
7227
0
      &unknown_fields_string, false);
7228
0
  // @@protoc_insertion_point(parse_start:mozilla.safebrowsing.ClientInfo)
7229
0
  for (;;) {
7230
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
7231
0
    tag = p.first;
7232
0
    if (!p.second) goto handle_unusual;
7233
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
7234
0
      // optional string client_id = 1;
7235
0
      case 1: {
7236
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7237
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
7238
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7239
0
                input, this->mutable_client_id()));
7240
0
        } else {
7241
0
          goto handle_unusual;
7242
0
        }
7243
0
        break;
7244
0
      }
7245
0
7246
0
      // optional string client_version = 2;
7247
0
      case 2: {
7248
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7249
0
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
7250
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7251
0
                input, this->mutable_client_version()));
7252
0
        } else {
7253
0
          goto handle_unusual;
7254
0
        }
7255
0
        break;
7256
0
      }
7257
0
7258
0
      default: {
7259
0
      handle_unusual:
7260
0
        if (tag == 0) {
7261
0
          goto success;
7262
0
        }
7263
0
        DO_(::google::protobuf::internal::WireFormatLite::SkipField(
7264
0
            input, tag, &unknown_fields_stream));
7265
0
        break;
7266
0
      }
7267
0
    }
7268
0
  }
7269
0
success:
7270
0
  // @@protoc_insertion_point(parse_success:mozilla.safebrowsing.ClientInfo)
7271
0
  return true;
7272
0
failure:
7273
0
  // @@protoc_insertion_point(parse_failure:mozilla.safebrowsing.ClientInfo)
7274
0
  return false;
7275
0
#undef DO_
7276
0
}
7277
7278
void ClientInfo::SerializeWithCachedSizes(
7279
0
    ::google::protobuf::io::CodedOutputStream* output) const {
7280
0
  // @@protoc_insertion_point(serialize_start:mozilla.safebrowsing.ClientInfo)
7281
0
  ::google::protobuf::uint32 cached_has_bits = 0;
7282
0
  (void) cached_has_bits;
7283
0
7284
0
  cached_has_bits = _has_bits_[0];
7285
0
  // optional string client_id = 1;
7286
0
  if (cached_has_bits & 0x00000001u) {
7287
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
7288
0
      1, this->client_id(), output);
7289
0
  }
7290
0
7291
0
  // optional string client_version = 2;
7292
0
  if (cached_has_bits & 0x00000002u) {
7293
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
7294
0
      2, this->client_version(), output);
7295
0
  }
7296
0
7297
0
  output->WriteRaw(_internal_metadata_.unknown_fields().data(),
7298
0
                   static_cast<int>(_internal_metadata_.unknown_fields().size()));
7299
0
  // @@protoc_insertion_point(serialize_end:mozilla.safebrowsing.ClientInfo)
7300
0
}
7301
7302
0
size_t ClientInfo::ByteSizeLong() const {
7303
0
// @@protoc_insertion_point(message_byte_size_start:mozilla.safebrowsing.ClientInfo)
7304
0
  size_t total_size = 0;
7305
0
7306
0
  total_size += _internal_metadata_.unknown_fields().size();
7307
0
7308
0
  if (_has_bits_[0 / 32] & 3u) {
7309
0
    // optional string client_id = 1;
7310
0
    if (has_client_id()) {
7311
0
      total_size += 1 +
7312
0
        ::google::protobuf::internal::WireFormatLite::StringSize(
7313
0
          this->client_id());
7314
0
    }
7315
0
7316
0
    // optional string client_version = 2;
7317
0
    if (has_client_version()) {
7318
0
      total_size += 1 +
7319
0
        ::google::protobuf::internal::WireFormatLite::StringSize(
7320
0
          this->client_version());
7321
0
    }
7322
0
7323
0
  }
7324
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
7325
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7326
0
  _cached_size_ = cached_size;
7327
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
7328
0
  return total_size;
7329
0
}
7330
7331
void ClientInfo::CheckTypeAndMergeFrom(
7332
0
    const ::google::protobuf::MessageLite& from) {
7333
0
  MergeFrom(*::google::protobuf::down_cast<const ClientInfo*>(&from));
7334
0
}
7335
7336
0
void ClientInfo::MergeFrom(const ClientInfo& from) {
7337
0
// @@protoc_insertion_point(class_specific_merge_from_start:mozilla.safebrowsing.ClientInfo)
7338
0
  GOOGLE_DCHECK_NE(&from, this);
7339
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
7340
0
  ::google::protobuf::uint32 cached_has_bits = 0;
7341
0
  (void) cached_has_bits;
7342
0
7343
0
  cached_has_bits = from._has_bits_[0];
7344
0
  if (cached_has_bits & 3u) {
7345
0
    if (cached_has_bits & 0x00000001u) {
7346
0
      set_has_client_id();
7347
0
      client_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.client_id_);
7348
0
    }
7349
0
    if (cached_has_bits & 0x00000002u) {
7350
0
      set_has_client_version();
7351
0
      client_version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.client_version_);
7352
0
    }
7353
0
  }
7354
0
}
7355
7356
0
void ClientInfo::CopyFrom(const ClientInfo& from) {
7357
0
// @@protoc_insertion_point(class_specific_copy_from_start:mozilla.safebrowsing.ClientInfo)
7358
0
  if (&from == this) return;
7359
0
  Clear();
7360
0
  MergeFrom(from);
7361
0
}
7362
7363
0
bool ClientInfo::IsInitialized() const {
7364
0
  return true;
7365
0
}
7366
7367
0
void ClientInfo::Swap(ClientInfo* other) {
7368
0
  if (other == this) return;
7369
0
  InternalSwap(other);
7370
0
}
7371
0
void ClientInfo::InternalSwap(ClientInfo* other) {
7372
0
  using std::swap;
7373
0
  client_id_.Swap(&other->client_id_);
7374
0
  client_version_.Swap(&other->client_version_);
7375
0
  swap(_has_bits_[0], other->_has_bits_[0]);
7376
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
7377
0
  swap(_cached_size_, other->_cached_size_);
7378
0
}
7379
7380
0
::std::string ClientInfo::GetTypeName() const {
7381
0
  return "mozilla.safebrowsing.ClientInfo";
7382
0
}
7383
7384
#if PROTOBUF_INLINE_NOT_IN_HEADERS
7385
// ClientInfo
7386
7387
// optional string client_id = 1;
7388
bool ClientInfo::has_client_id() const {
7389
  return (_has_bits_[0] & 0x00000001u) != 0;
7390
}
7391
void ClientInfo::set_has_client_id() {
7392
  _has_bits_[0] |= 0x00000001u;
7393
}
7394
void ClientInfo::clear_has_client_id() {
7395
  _has_bits_[0] &= ~0x00000001u;
7396
}
7397
void ClientInfo::clear_client_id() {
7398
  client_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7399
  clear_has_client_id();
7400
}
7401
const ::std::string& ClientInfo::client_id() const {
7402
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ClientInfo.client_id)
7403
  return client_id_.GetNoArena();
7404
}
7405
void ClientInfo::set_client_id(const ::std::string& value) {
7406
  set_has_client_id();
7407
  client_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
7408
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ClientInfo.client_id)
7409
}
7410
#if LANG_CXX11
7411
void ClientInfo::set_client_id(::std::string&& value) {
7412
  set_has_client_id();
7413
  client_id_.SetNoArena(
7414
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
7415
  // @@protoc_insertion_point(field_set_rvalue:mozilla.safebrowsing.ClientInfo.client_id)
7416
}
7417
#endif
7418
void ClientInfo::set_client_id(const char* value) {
7419
  GOOGLE_DCHECK(value != NULL);
7420
  set_has_client_id();
7421
  client_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
7422
  // @@protoc_insertion_point(field_set_char:mozilla.safebrowsing.ClientInfo.client_id)
7423
}
7424
void ClientInfo::set_client_id(const char* value, size_t size) {
7425
  set_has_client_id();
7426
  client_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
7427
      ::std::string(reinterpret_cast<const char*>(value), size));
7428
  // @@protoc_insertion_point(field_set_pointer:mozilla.safebrowsing.ClientInfo.client_id)
7429
}
7430
::std::string* ClientInfo::mutable_client_id() {
7431
  set_has_client_id();
7432
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ClientInfo.client_id)
7433
  return client_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7434
}
7435
::std::string* ClientInfo::release_client_id() {
7436
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.ClientInfo.client_id)
7437
  clear_has_client_id();
7438
  return client_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7439
}
7440
void ClientInfo::set_allocated_client_id(::std::string* client_id) {
7441
  if (client_id != NULL) {
7442
    set_has_client_id();
7443
  } else {
7444
    clear_has_client_id();
7445
  }
7446
  client_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), client_id);
7447
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.ClientInfo.client_id)
7448
}
7449
7450
// optional string client_version = 2;
7451
bool ClientInfo::has_client_version() const {
7452
  return (_has_bits_[0] & 0x00000002u) != 0;
7453
}
7454
void ClientInfo::set_has_client_version() {
7455
  _has_bits_[0] |= 0x00000002u;
7456
}
7457
void ClientInfo::clear_has_client_version() {
7458
  _has_bits_[0] &= ~0x00000002u;
7459
}
7460
void ClientInfo::clear_client_version() {
7461
  client_version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7462
  clear_has_client_version();
7463
}
7464
const ::std::string& ClientInfo::client_version() const {
7465
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ClientInfo.client_version)
7466
  return client_version_.GetNoArena();
7467
}
7468
void ClientInfo::set_client_version(const ::std::string& value) {
7469
  set_has_client_version();
7470
  client_version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
7471
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ClientInfo.client_version)
7472
}
7473
#if LANG_CXX11
7474
void ClientInfo::set_client_version(::std::string&& value) {
7475
  set_has_client_version();
7476
  client_version_.SetNoArena(
7477
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
7478
  // @@protoc_insertion_point(field_set_rvalue:mozilla.safebrowsing.ClientInfo.client_version)
7479
}
7480
#endif
7481
void ClientInfo::set_client_version(const char* value) {
7482
  GOOGLE_DCHECK(value != NULL);
7483
  set_has_client_version();
7484
  client_version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
7485
  // @@protoc_insertion_point(field_set_char:mozilla.safebrowsing.ClientInfo.client_version)
7486
}
7487
void ClientInfo::set_client_version(const char* value, size_t size) {
7488
  set_has_client_version();
7489
  client_version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
7490
      ::std::string(reinterpret_cast<const char*>(value), size));
7491
  // @@protoc_insertion_point(field_set_pointer:mozilla.safebrowsing.ClientInfo.client_version)
7492
}
7493
::std::string* ClientInfo::mutable_client_version() {
7494
  set_has_client_version();
7495
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ClientInfo.client_version)
7496
  return client_version_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7497
}
7498
::std::string* ClientInfo::release_client_version() {
7499
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.ClientInfo.client_version)
7500
  clear_has_client_version();
7501
  return client_version_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7502
}
7503
void ClientInfo::set_allocated_client_version(::std::string* client_version) {
7504
  if (client_version != NULL) {
7505
    set_has_client_version();
7506
  } else {
7507
    clear_has_client_version();
7508
  }
7509
  client_version_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), client_version);
7510
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.ClientInfo.client_version)
7511
}
7512
7513
#endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
7514
7515
// ===================================================================
7516
7517
#if !defined(_MSC_VER) || _MSC_VER >= 1900
7518
const int ChromeClientInfo::kReportingPopulationFieldNumber;
7519
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
7520
7521
ChromeClientInfo::ChromeClientInfo()
7522
0
  : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) {
7523
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
7524
0
    protobuf_safebrowsing_2eproto::InitDefaults();
7525
0
  }
7526
0
  SharedCtor();
7527
0
  // @@protoc_insertion_point(constructor:mozilla.safebrowsing.ChromeClientInfo)
7528
0
}
7529
ChromeClientInfo::ChromeClientInfo(const ChromeClientInfo& from)
7530
  : ::google::protobuf::MessageLite(),
7531
      _internal_metadata_(NULL),
7532
      _has_bits_(from._has_bits_),
7533
0
      _cached_size_(0) {
7534
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
7535
0
  reporting_population_ = from.reporting_population_;
7536
0
  // @@protoc_insertion_point(copy_constructor:mozilla.safebrowsing.ChromeClientInfo)
7537
0
}
7538
7539
0
void ChromeClientInfo::SharedCtor() {
7540
0
  _cached_size_ = 0;
7541
0
  reporting_population_ = 0;
7542
0
}
7543
7544
0
ChromeClientInfo::~ChromeClientInfo() {
7545
0
  // @@protoc_insertion_point(destructor:mozilla.safebrowsing.ChromeClientInfo)
7546
0
  SharedDtor();
7547
0
}
7548
7549
0
void ChromeClientInfo::SharedDtor() {
7550
0
}
7551
7552
0
void ChromeClientInfo::SetCachedSize(int size) const {
7553
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7554
0
  _cached_size_ = size;
7555
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
7556
0
}
7557
0
const ChromeClientInfo& ChromeClientInfo::default_instance() {
7558
0
  protobuf_safebrowsing_2eproto::InitDefaults();
7559
0
  return *internal_default_instance();
7560
0
}
7561
7562
0
ChromeClientInfo* ChromeClientInfo::New(::google::protobuf::Arena* arena) const {
7563
0
  ChromeClientInfo* n = new ChromeClientInfo;
7564
0
  if (arena != NULL) {
7565
0
    arena->Own(n);
7566
0
  }
7567
0
  return n;
7568
0
}
7569
7570
0
void ChromeClientInfo::Clear() {
7571
0
// @@protoc_insertion_point(message_clear_start:mozilla.safebrowsing.ChromeClientInfo)
7572
0
  ::google::protobuf::uint32 cached_has_bits = 0;
7573
0
  // Prevent compiler warnings about cached_has_bits being unused
7574
0
  (void) cached_has_bits;
7575
0
7576
0
  reporting_population_ = 0;
7577
0
  _has_bits_.Clear();
7578
0
  _internal_metadata_.Clear();
7579
0
}
7580
7581
bool ChromeClientInfo::MergePartialFromCodedStream(
7582
0
    ::google::protobuf::io::CodedInputStream* input) {
7583
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
7584
0
  ::google::protobuf::uint32 tag;
7585
0
  ::google::protobuf::io::LazyStringOutputStream unknown_fields_string(
7586
0
      ::google::protobuf::NewPermanentCallback(&_internal_metadata_,
7587
0
          &::google::protobuf::internal::InternalMetadataWithArenaLite::
7588
0
              mutable_unknown_fields));
7589
0
  ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
7590
0
      &unknown_fields_string, false);
7591
0
  // @@protoc_insertion_point(parse_start:mozilla.safebrowsing.ChromeClientInfo)
7592
0
  for (;;) {
7593
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
7594
0
    tag = p.first;
7595
0
    if (!p.second) goto handle_unusual;
7596
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
7597
0
      // optional .mozilla.safebrowsing.ChromeClientInfo.SafeBrowsingReportingPopulation reporting_population = 1;
7598
0
      case 1: {
7599
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7600
0
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
7601
0
          int value;
7602
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7603
0
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
7604
0
                 input, &value)));
7605
0
          if (::mozilla::safebrowsing::ChromeClientInfo_SafeBrowsingReportingPopulation_IsValid(value)) {
7606
0
            set_reporting_population(static_cast< ::mozilla::safebrowsing::ChromeClientInfo_SafeBrowsingReportingPopulation >(value));
7607
0
          } else {
7608
0
            unknown_fields_stream.WriteVarint32(8u);
7609
0
            unknown_fields_stream.WriteVarint32(
7610
0
                static_cast< ::google::protobuf::uint32>(value));
7611
0
          }
7612
0
        } else {
7613
0
          goto handle_unusual;
7614
0
        }
7615
0
        break;
7616
0
      }
7617
0
7618
0
      default: {
7619
0
      handle_unusual:
7620
0
        if (tag == 0) {
7621
0
          goto success;
7622
0
        }
7623
0
        DO_(::google::protobuf::internal::WireFormatLite::SkipField(
7624
0
            input, tag, &unknown_fields_stream));
7625
0
        break;
7626
0
      }
7627
0
    }
7628
0
  }
7629
0
success:
7630
0
  // @@protoc_insertion_point(parse_success:mozilla.safebrowsing.ChromeClientInfo)
7631
0
  return true;
7632
0
failure:
7633
0
  // @@protoc_insertion_point(parse_failure:mozilla.safebrowsing.ChromeClientInfo)
7634
0
  return false;
7635
0
#undef DO_
7636
0
}
7637
7638
void ChromeClientInfo::SerializeWithCachedSizes(
7639
0
    ::google::protobuf::io::CodedOutputStream* output) const {
7640
0
  // @@protoc_insertion_point(serialize_start:mozilla.safebrowsing.ChromeClientInfo)
7641
0
  ::google::protobuf::uint32 cached_has_bits = 0;
7642
0
  (void) cached_has_bits;
7643
0
7644
0
  cached_has_bits = _has_bits_[0];
7645
0
  // optional .mozilla.safebrowsing.ChromeClientInfo.SafeBrowsingReportingPopulation reporting_population = 1;
7646
0
  if (cached_has_bits & 0x00000001u) {
7647
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
7648
0
      1, this->reporting_population(), output);
7649
0
  }
7650
0
7651
0
  output->WriteRaw(_internal_metadata_.unknown_fields().data(),
7652
0
                   static_cast<int>(_internal_metadata_.unknown_fields().size()));
7653
0
  // @@protoc_insertion_point(serialize_end:mozilla.safebrowsing.ChromeClientInfo)
7654
0
}
7655
7656
0
size_t ChromeClientInfo::ByteSizeLong() const {
7657
0
// @@protoc_insertion_point(message_byte_size_start:mozilla.safebrowsing.ChromeClientInfo)
7658
0
  size_t total_size = 0;
7659
0
7660
0
  total_size += _internal_metadata_.unknown_fields().size();
7661
0
7662
0
  // optional .mozilla.safebrowsing.ChromeClientInfo.SafeBrowsingReportingPopulation reporting_population = 1;
7663
0
  if (has_reporting_population()) {
7664
0
    total_size += 1 +
7665
0
      ::google::protobuf::internal::WireFormatLite::EnumSize(this->reporting_population());
7666
0
  }
7667
0
7668
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
7669
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7670
0
  _cached_size_ = cached_size;
7671
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
7672
0
  return total_size;
7673
0
}
7674
7675
void ChromeClientInfo::CheckTypeAndMergeFrom(
7676
0
    const ::google::protobuf::MessageLite& from) {
7677
0
  MergeFrom(*::google::protobuf::down_cast<const ChromeClientInfo*>(&from));
7678
0
}
7679
7680
0
void ChromeClientInfo::MergeFrom(const ChromeClientInfo& from) {
7681
0
// @@protoc_insertion_point(class_specific_merge_from_start:mozilla.safebrowsing.ChromeClientInfo)
7682
0
  GOOGLE_DCHECK_NE(&from, this);
7683
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
7684
0
  ::google::protobuf::uint32 cached_has_bits = 0;
7685
0
  (void) cached_has_bits;
7686
0
7687
0
  if (from.has_reporting_population()) {
7688
0
    set_reporting_population(from.reporting_population());
7689
0
  }
7690
0
}
7691
7692
0
void ChromeClientInfo::CopyFrom(const ChromeClientInfo& from) {
7693
0
// @@protoc_insertion_point(class_specific_copy_from_start:mozilla.safebrowsing.ChromeClientInfo)
7694
0
  if (&from == this) return;
7695
0
  Clear();
7696
0
  MergeFrom(from);
7697
0
}
7698
7699
0
bool ChromeClientInfo::IsInitialized() const {
7700
0
  return true;
7701
0
}
7702
7703
0
void ChromeClientInfo::Swap(ChromeClientInfo* other) {
7704
0
  if (other == this) return;
7705
0
  InternalSwap(other);
7706
0
}
7707
0
void ChromeClientInfo::InternalSwap(ChromeClientInfo* other) {
7708
0
  using std::swap;
7709
0
  swap(reporting_population_, other->reporting_population_);
7710
0
  swap(_has_bits_[0], other->_has_bits_[0]);
7711
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
7712
0
  swap(_cached_size_, other->_cached_size_);
7713
0
}
7714
7715
0
::std::string ChromeClientInfo::GetTypeName() const {
7716
0
  return "mozilla.safebrowsing.ChromeClientInfo";
7717
0
}
7718
7719
#if PROTOBUF_INLINE_NOT_IN_HEADERS
7720
// ChromeClientInfo
7721
7722
// optional .mozilla.safebrowsing.ChromeClientInfo.SafeBrowsingReportingPopulation reporting_population = 1;
7723
bool ChromeClientInfo::has_reporting_population() const {
7724
  return (_has_bits_[0] & 0x00000001u) != 0;
7725
}
7726
void ChromeClientInfo::set_has_reporting_population() {
7727
  _has_bits_[0] |= 0x00000001u;
7728
}
7729
void ChromeClientInfo::clear_has_reporting_population() {
7730
  _has_bits_[0] &= ~0x00000001u;
7731
}
7732
void ChromeClientInfo::clear_reporting_population() {
7733
  reporting_population_ = 0;
7734
  clear_has_reporting_population();
7735
}
7736
::mozilla::safebrowsing::ChromeClientInfo_SafeBrowsingReportingPopulation ChromeClientInfo::reporting_population() const {
7737
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ChromeClientInfo.reporting_population)
7738
  return static_cast< ::mozilla::safebrowsing::ChromeClientInfo_SafeBrowsingReportingPopulation >(reporting_population_);
7739
}
7740
void ChromeClientInfo::set_reporting_population(::mozilla::safebrowsing::ChromeClientInfo_SafeBrowsingReportingPopulation value) {
7741
  assert(::mozilla::safebrowsing::ChromeClientInfo_SafeBrowsingReportingPopulation_IsValid(value));
7742
  set_has_reporting_population();
7743
  reporting_population_ = value;
7744
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ChromeClientInfo.reporting_population)
7745
}
7746
7747
#endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
7748
7749
// ===================================================================
7750
7751
#if !defined(_MSC_VER) || _MSC_VER >= 1900
7752
const int Checksum::kSha256FieldNumber;
7753
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
7754
7755
Checksum::Checksum()
7756
0
  : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) {
7757
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
7758
0
    protobuf_safebrowsing_2eproto::InitDefaults();
7759
0
  }
7760
0
  SharedCtor();
7761
0
  // @@protoc_insertion_point(constructor:mozilla.safebrowsing.Checksum)
7762
0
}
7763
Checksum::Checksum(const Checksum& from)
7764
  : ::google::protobuf::MessageLite(),
7765
      _internal_metadata_(NULL),
7766
      _has_bits_(from._has_bits_),
7767
0
      _cached_size_(0) {
7768
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
7769
0
  sha256_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7770
0
  if (from.has_sha256()) {
7771
0
    sha256_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.sha256_);
7772
0
  }
7773
0
  // @@protoc_insertion_point(copy_constructor:mozilla.safebrowsing.Checksum)
7774
0
}
7775
7776
0
void Checksum::SharedCtor() {
7777
0
  _cached_size_ = 0;
7778
0
  sha256_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7779
0
}
7780
7781
0
Checksum::~Checksum() {
7782
0
  // @@protoc_insertion_point(destructor:mozilla.safebrowsing.Checksum)
7783
0
  SharedDtor();
7784
0
}
7785
7786
0
void Checksum::SharedDtor() {
7787
0
  sha256_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7788
0
}
7789
7790
0
void Checksum::SetCachedSize(int size) const {
7791
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7792
0
  _cached_size_ = size;
7793
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
7794
0
}
7795
0
const Checksum& Checksum::default_instance() {
7796
0
  protobuf_safebrowsing_2eproto::InitDefaults();
7797
0
  return *internal_default_instance();
7798
0
}
7799
7800
0
Checksum* Checksum::New(::google::protobuf::Arena* arena) const {
7801
0
  Checksum* n = new Checksum;
7802
0
  if (arena != NULL) {
7803
0
    arena->Own(n);
7804
0
  }
7805
0
  return n;
7806
0
}
7807
7808
0
void Checksum::Clear() {
7809
0
// @@protoc_insertion_point(message_clear_start:mozilla.safebrowsing.Checksum)
7810
0
  ::google::protobuf::uint32 cached_has_bits = 0;
7811
0
  // Prevent compiler warnings about cached_has_bits being unused
7812
0
  (void) cached_has_bits;
7813
0
7814
0
  if (has_sha256()) {
7815
0
    GOOGLE_DCHECK(!sha256_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
7816
0
    (*sha256_.UnsafeRawStringPointer())->clear();
7817
0
  }
7818
0
  _has_bits_.Clear();
7819
0
  _internal_metadata_.Clear();
7820
0
}
7821
7822
bool Checksum::MergePartialFromCodedStream(
7823
0
    ::google::protobuf::io::CodedInputStream* input) {
7824
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
7825
0
  ::google::protobuf::uint32 tag;
7826
0
  ::google::protobuf::io::LazyStringOutputStream unknown_fields_string(
7827
0
      ::google::protobuf::NewPermanentCallback(&_internal_metadata_,
7828
0
          &::google::protobuf::internal::InternalMetadataWithArenaLite::
7829
0
              mutable_unknown_fields));
7830
0
  ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
7831
0
      &unknown_fields_string, false);
7832
0
  // @@protoc_insertion_point(parse_start:mozilla.safebrowsing.Checksum)
7833
0
  for (;;) {
7834
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
7835
0
    tag = p.first;
7836
0
    if (!p.second) goto handle_unusual;
7837
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
7838
0
      // optional bytes sha256 = 1;
7839
0
      case 1: {
7840
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7841
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
7842
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
7843
0
                input, this->mutable_sha256()));
7844
0
        } else {
7845
0
          goto handle_unusual;
7846
0
        }
7847
0
        break;
7848
0
      }
7849
0
7850
0
      default: {
7851
0
      handle_unusual:
7852
0
        if (tag == 0) {
7853
0
          goto success;
7854
0
        }
7855
0
        DO_(::google::protobuf::internal::WireFormatLite::SkipField(
7856
0
            input, tag, &unknown_fields_stream));
7857
0
        break;
7858
0
      }
7859
0
    }
7860
0
  }
7861
0
success:
7862
0
  // @@protoc_insertion_point(parse_success:mozilla.safebrowsing.Checksum)
7863
0
  return true;
7864
0
failure:
7865
0
  // @@protoc_insertion_point(parse_failure:mozilla.safebrowsing.Checksum)
7866
0
  return false;
7867
0
#undef DO_
7868
0
}
7869
7870
void Checksum::SerializeWithCachedSizes(
7871
0
    ::google::protobuf::io::CodedOutputStream* output) const {
7872
0
  // @@protoc_insertion_point(serialize_start:mozilla.safebrowsing.Checksum)
7873
0
  ::google::protobuf::uint32 cached_has_bits = 0;
7874
0
  (void) cached_has_bits;
7875
0
7876
0
  cached_has_bits = _has_bits_[0];
7877
0
  // optional bytes sha256 = 1;
7878
0
  if (cached_has_bits & 0x00000001u) {
7879
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
7880
0
      1, this->sha256(), output);
7881
0
  }
7882
0
7883
0
  output->WriteRaw(_internal_metadata_.unknown_fields().data(),
7884
0
                   static_cast<int>(_internal_metadata_.unknown_fields().size()));
7885
0
  // @@protoc_insertion_point(serialize_end:mozilla.safebrowsing.Checksum)
7886
0
}
7887
7888
0
size_t Checksum::ByteSizeLong() const {
7889
0
// @@protoc_insertion_point(message_byte_size_start:mozilla.safebrowsing.Checksum)
7890
0
  size_t total_size = 0;
7891
0
7892
0
  total_size += _internal_metadata_.unknown_fields().size();
7893
0
7894
0
  // optional bytes sha256 = 1;
7895
0
  if (has_sha256()) {
7896
0
    total_size += 1 +
7897
0
      ::google::protobuf::internal::WireFormatLite::BytesSize(
7898
0
        this->sha256());
7899
0
  }
7900
0
7901
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
7902
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7903
0
  _cached_size_ = cached_size;
7904
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
7905
0
  return total_size;
7906
0
}
7907
7908
void Checksum::CheckTypeAndMergeFrom(
7909
0
    const ::google::protobuf::MessageLite& from) {
7910
0
  MergeFrom(*::google::protobuf::down_cast<const Checksum*>(&from));
7911
0
}
7912
7913
0
void Checksum::MergeFrom(const Checksum& from) {
7914
0
// @@protoc_insertion_point(class_specific_merge_from_start:mozilla.safebrowsing.Checksum)
7915
0
  GOOGLE_DCHECK_NE(&from, this);
7916
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
7917
0
  ::google::protobuf::uint32 cached_has_bits = 0;
7918
0
  (void) cached_has_bits;
7919
0
7920
0
  if (from.has_sha256()) {
7921
0
    set_has_sha256();
7922
0
    sha256_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.sha256_);
7923
0
  }
7924
0
}
7925
7926
0
void Checksum::CopyFrom(const Checksum& from) {
7927
0
// @@protoc_insertion_point(class_specific_copy_from_start:mozilla.safebrowsing.Checksum)
7928
0
  if (&from == this) return;
7929
0
  Clear();
7930
0
  MergeFrom(from);
7931
0
}
7932
7933
0
bool Checksum::IsInitialized() const {
7934
0
  return true;
7935
0
}
7936
7937
0
void Checksum::Swap(Checksum* other) {
7938
0
  if (other == this) return;
7939
0
  InternalSwap(other);
7940
0
}
7941
0
void Checksum::InternalSwap(Checksum* other) {
7942
0
  using std::swap;
7943
0
  sha256_.Swap(&other->sha256_);
7944
0
  swap(_has_bits_[0], other->_has_bits_[0]);
7945
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
7946
0
  swap(_cached_size_, other->_cached_size_);
7947
0
}
7948
7949
0
::std::string Checksum::GetTypeName() const {
7950
0
  return "mozilla.safebrowsing.Checksum";
7951
0
}
7952
7953
#if PROTOBUF_INLINE_NOT_IN_HEADERS
7954
// Checksum
7955
7956
// optional bytes sha256 = 1;
7957
bool Checksum::has_sha256() const {
7958
  return (_has_bits_[0] & 0x00000001u) != 0;
7959
}
7960
void Checksum::set_has_sha256() {
7961
  _has_bits_[0] |= 0x00000001u;
7962
}
7963
void Checksum::clear_has_sha256() {
7964
  _has_bits_[0] &= ~0x00000001u;
7965
}
7966
void Checksum::clear_sha256() {
7967
  sha256_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7968
  clear_has_sha256();
7969
}
7970
const ::std::string& Checksum::sha256() const {
7971
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.Checksum.sha256)
7972
  return sha256_.GetNoArena();
7973
}
7974
void Checksum::set_sha256(const ::std::string& value) {
7975
  set_has_sha256();
7976
  sha256_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
7977
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.Checksum.sha256)
7978
}
7979
#if LANG_CXX11
7980
void Checksum::set_sha256(::std::string&& value) {
7981
  set_has_sha256();
7982
  sha256_.SetNoArena(
7983
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
7984
  // @@protoc_insertion_point(field_set_rvalue:mozilla.safebrowsing.Checksum.sha256)
7985
}
7986
#endif
7987
void Checksum::set_sha256(const char* value) {
7988
  GOOGLE_DCHECK(value != NULL);
7989
  set_has_sha256();
7990
  sha256_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
7991
  // @@protoc_insertion_point(field_set_char:mozilla.safebrowsing.Checksum.sha256)
7992
}
7993
void Checksum::set_sha256(const void* value, size_t size) {
7994
  set_has_sha256();
7995
  sha256_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
7996
      ::std::string(reinterpret_cast<const char*>(value), size));
7997
  // @@protoc_insertion_point(field_set_pointer:mozilla.safebrowsing.Checksum.sha256)
7998
}
7999
::std::string* Checksum::mutable_sha256() {
8000
  set_has_sha256();
8001
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.Checksum.sha256)
8002
  return sha256_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8003
}
8004
::std::string* Checksum::release_sha256() {
8005
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.Checksum.sha256)
8006
  clear_has_sha256();
8007
  return sha256_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8008
}
8009
void Checksum::set_allocated_sha256(::std::string* sha256) {
8010
  if (sha256 != NULL) {
8011
    set_has_sha256();
8012
  } else {
8013
    clear_has_sha256();
8014
  }
8015
  sha256_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), sha256);
8016
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.Checksum.sha256)
8017
}
8018
8019
#endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
8020
8021
// ===================================================================
8022
8023
#if !defined(_MSC_VER) || _MSC_VER >= 1900
8024
const int ThreatEntry::kHashFieldNumber;
8025
const int ThreatEntry::kUrlFieldNumber;
8026
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
8027
8028
ThreatEntry::ThreatEntry()
8029
0
  : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) {
8030
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
8031
0
    protobuf_safebrowsing_2eproto::InitDefaults();
8032
0
  }
8033
0
  SharedCtor();
8034
0
  // @@protoc_insertion_point(constructor:mozilla.safebrowsing.ThreatEntry)
8035
0
}
8036
ThreatEntry::ThreatEntry(const ThreatEntry& from)
8037
  : ::google::protobuf::MessageLite(),
8038
      _internal_metadata_(NULL),
8039
      _has_bits_(from._has_bits_),
8040
0
      _cached_size_(0) {
8041
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
8042
0
  hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8043
0
  if (from.has_hash()) {
8044
0
    hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.hash_);
8045
0
  }
8046
0
  url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8047
0
  if (from.has_url()) {
8048
0
    url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.url_);
8049
0
  }
8050
0
  // @@protoc_insertion_point(copy_constructor:mozilla.safebrowsing.ThreatEntry)
8051
0
}
8052
8053
0
void ThreatEntry::SharedCtor() {
8054
0
  _cached_size_ = 0;
8055
0
  hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8056
0
  url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8057
0
}
8058
8059
0
ThreatEntry::~ThreatEntry() {
8060
0
  // @@protoc_insertion_point(destructor:mozilla.safebrowsing.ThreatEntry)
8061
0
  SharedDtor();
8062
0
}
8063
8064
0
void ThreatEntry::SharedDtor() {
8065
0
  hash_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8066
0
  url_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8067
0
}
8068
8069
0
void ThreatEntry::SetCachedSize(int size) const {
8070
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
8071
0
  _cached_size_ = size;
8072
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
8073
0
}
8074
0
const ThreatEntry& ThreatEntry::default_instance() {
8075
0
  protobuf_safebrowsing_2eproto::InitDefaults();
8076
0
  return *internal_default_instance();
8077
0
}
8078
8079
0
ThreatEntry* ThreatEntry::New(::google::protobuf::Arena* arena) const {
8080
0
  ThreatEntry* n = new ThreatEntry;
8081
0
  if (arena != NULL) {
8082
0
    arena->Own(n);
8083
0
  }
8084
0
  return n;
8085
0
}
8086
8087
0
void ThreatEntry::Clear() {
8088
0
// @@protoc_insertion_point(message_clear_start:mozilla.safebrowsing.ThreatEntry)
8089
0
  ::google::protobuf::uint32 cached_has_bits = 0;
8090
0
  // Prevent compiler warnings about cached_has_bits being unused
8091
0
  (void) cached_has_bits;
8092
0
8093
0
  cached_has_bits = _has_bits_[0];
8094
0
  if (cached_has_bits & 3u) {
8095
0
    if (cached_has_bits & 0x00000001u) {
8096
0
      GOOGLE_DCHECK(!hash_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
8097
0
      (*hash_.UnsafeRawStringPointer())->clear();
8098
0
    }
8099
0
    if (cached_has_bits & 0x00000002u) {
8100
0
      GOOGLE_DCHECK(!url_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
8101
0
      (*url_.UnsafeRawStringPointer())->clear();
8102
0
    }
8103
0
  }
8104
0
  _has_bits_.Clear();
8105
0
  _internal_metadata_.Clear();
8106
0
}
8107
8108
bool ThreatEntry::MergePartialFromCodedStream(
8109
0
    ::google::protobuf::io::CodedInputStream* input) {
8110
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
8111
0
  ::google::protobuf::uint32 tag;
8112
0
  ::google::protobuf::io::LazyStringOutputStream unknown_fields_string(
8113
0
      ::google::protobuf::NewPermanentCallback(&_internal_metadata_,
8114
0
          &::google::protobuf::internal::InternalMetadataWithArenaLite::
8115
0
              mutable_unknown_fields));
8116
0
  ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
8117
0
      &unknown_fields_string, false);
8118
0
  // @@protoc_insertion_point(parse_start:mozilla.safebrowsing.ThreatEntry)
8119
0
  for (;;) {
8120
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
8121
0
    tag = p.first;
8122
0
    if (!p.second) goto handle_unusual;
8123
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
8124
0
      // optional bytes hash = 1;
8125
0
      case 1: {
8126
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8127
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
8128
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
8129
0
                input, this->mutable_hash()));
8130
0
        } else {
8131
0
          goto handle_unusual;
8132
0
        }
8133
0
        break;
8134
0
      }
8135
0
8136
0
      // optional string url = 2;
8137
0
      case 2: {
8138
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8139
0
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
8140
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
8141
0
                input, this->mutable_url()));
8142
0
        } else {
8143
0
          goto handle_unusual;
8144
0
        }
8145
0
        break;
8146
0
      }
8147
0
8148
0
      default: {
8149
0
      handle_unusual:
8150
0
        if (tag == 0) {
8151
0
          goto success;
8152
0
        }
8153
0
        DO_(::google::protobuf::internal::WireFormatLite::SkipField(
8154
0
            input, tag, &unknown_fields_stream));
8155
0
        break;
8156
0
      }
8157
0
    }
8158
0
  }
8159
0
success:
8160
0
  // @@protoc_insertion_point(parse_success:mozilla.safebrowsing.ThreatEntry)
8161
0
  return true;
8162
0
failure:
8163
0
  // @@protoc_insertion_point(parse_failure:mozilla.safebrowsing.ThreatEntry)
8164
0
  return false;
8165
0
#undef DO_
8166
0
}
8167
8168
void ThreatEntry::SerializeWithCachedSizes(
8169
0
    ::google::protobuf::io::CodedOutputStream* output) const {
8170
0
  // @@protoc_insertion_point(serialize_start:mozilla.safebrowsing.ThreatEntry)
8171
0
  ::google::protobuf::uint32 cached_has_bits = 0;
8172
0
  (void) cached_has_bits;
8173
0
8174
0
  cached_has_bits = _has_bits_[0];
8175
0
  // optional bytes hash = 1;
8176
0
  if (cached_has_bits & 0x00000001u) {
8177
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
8178
0
      1, this->hash(), output);
8179
0
  }
8180
0
8181
0
  // optional string url = 2;
8182
0
  if (cached_has_bits & 0x00000002u) {
8183
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
8184
0
      2, this->url(), output);
8185
0
  }
8186
0
8187
0
  output->WriteRaw(_internal_metadata_.unknown_fields().data(),
8188
0
                   static_cast<int>(_internal_metadata_.unknown_fields().size()));
8189
0
  // @@protoc_insertion_point(serialize_end:mozilla.safebrowsing.ThreatEntry)
8190
0
}
8191
8192
0
size_t ThreatEntry::ByteSizeLong() const {
8193
0
// @@protoc_insertion_point(message_byte_size_start:mozilla.safebrowsing.ThreatEntry)
8194
0
  size_t total_size = 0;
8195
0
8196
0
  total_size += _internal_metadata_.unknown_fields().size();
8197
0
8198
0
  if (_has_bits_[0 / 32] & 3u) {
8199
0
    // optional bytes hash = 1;
8200
0
    if (has_hash()) {
8201
0
      total_size += 1 +
8202
0
        ::google::protobuf::internal::WireFormatLite::BytesSize(
8203
0
          this->hash());
8204
0
    }
8205
0
8206
0
    // optional string url = 2;
8207
0
    if (has_url()) {
8208
0
      total_size += 1 +
8209
0
        ::google::protobuf::internal::WireFormatLite::StringSize(
8210
0
          this->url());
8211
0
    }
8212
0
8213
0
  }
8214
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
8215
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
8216
0
  _cached_size_ = cached_size;
8217
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
8218
0
  return total_size;
8219
0
}
8220
8221
void ThreatEntry::CheckTypeAndMergeFrom(
8222
0
    const ::google::protobuf::MessageLite& from) {
8223
0
  MergeFrom(*::google::protobuf::down_cast<const ThreatEntry*>(&from));
8224
0
}
8225
8226
0
void ThreatEntry::MergeFrom(const ThreatEntry& from) {
8227
0
// @@protoc_insertion_point(class_specific_merge_from_start:mozilla.safebrowsing.ThreatEntry)
8228
0
  GOOGLE_DCHECK_NE(&from, this);
8229
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
8230
0
  ::google::protobuf::uint32 cached_has_bits = 0;
8231
0
  (void) cached_has_bits;
8232
0
8233
0
  cached_has_bits = from._has_bits_[0];
8234
0
  if (cached_has_bits & 3u) {
8235
0
    if (cached_has_bits & 0x00000001u) {
8236
0
      set_has_hash();
8237
0
      hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.hash_);
8238
0
    }
8239
0
    if (cached_has_bits & 0x00000002u) {
8240
0
      set_has_url();
8241
0
      url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.url_);
8242
0
    }
8243
0
  }
8244
0
}
8245
8246
0
void ThreatEntry::CopyFrom(const ThreatEntry& from) {
8247
0
// @@protoc_insertion_point(class_specific_copy_from_start:mozilla.safebrowsing.ThreatEntry)
8248
0
  if (&from == this) return;
8249
0
  Clear();
8250
0
  MergeFrom(from);
8251
0
}
8252
8253
0
bool ThreatEntry::IsInitialized() const {
8254
0
  return true;
8255
0
}
8256
8257
0
void ThreatEntry::Swap(ThreatEntry* other) {
8258
0
  if (other == this) return;
8259
0
  InternalSwap(other);
8260
0
}
8261
0
void ThreatEntry::InternalSwap(ThreatEntry* other) {
8262
0
  using std::swap;
8263
0
  hash_.Swap(&other->hash_);
8264
0
  url_.Swap(&other->url_);
8265
0
  swap(_has_bits_[0], other->_has_bits_[0]);
8266
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
8267
0
  swap(_cached_size_, other->_cached_size_);
8268
0
}
8269
8270
0
::std::string ThreatEntry::GetTypeName() const {
8271
0
  return "mozilla.safebrowsing.ThreatEntry";
8272
0
}
8273
8274
#if PROTOBUF_INLINE_NOT_IN_HEADERS
8275
// ThreatEntry
8276
8277
// optional bytes hash = 1;
8278
bool ThreatEntry::has_hash() const {
8279
  return (_has_bits_[0] & 0x00000001u) != 0;
8280
}
8281
void ThreatEntry::set_has_hash() {
8282
  _has_bits_[0] |= 0x00000001u;
8283
}
8284
void ThreatEntry::clear_has_hash() {
8285
  _has_bits_[0] &= ~0x00000001u;
8286
}
8287
void ThreatEntry::clear_hash() {
8288
  hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8289
  clear_has_hash();
8290
}
8291
const ::std::string& ThreatEntry::hash() const {
8292
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatEntry.hash)
8293
  return hash_.GetNoArena();
8294
}
8295
void ThreatEntry::set_hash(const ::std::string& value) {
8296
  set_has_hash();
8297
  hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
8298
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatEntry.hash)
8299
}
8300
#if LANG_CXX11
8301
void ThreatEntry::set_hash(::std::string&& value) {
8302
  set_has_hash();
8303
  hash_.SetNoArena(
8304
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
8305
  // @@protoc_insertion_point(field_set_rvalue:mozilla.safebrowsing.ThreatEntry.hash)
8306
}
8307
#endif
8308
void ThreatEntry::set_hash(const char* value) {
8309
  GOOGLE_DCHECK(value != NULL);
8310
  set_has_hash();
8311
  hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
8312
  // @@protoc_insertion_point(field_set_char:mozilla.safebrowsing.ThreatEntry.hash)
8313
}
8314
void ThreatEntry::set_hash(const void* value, size_t size) {
8315
  set_has_hash();
8316
  hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
8317
      ::std::string(reinterpret_cast<const char*>(value), size));
8318
  // @@protoc_insertion_point(field_set_pointer:mozilla.safebrowsing.ThreatEntry.hash)
8319
}
8320
::std::string* ThreatEntry::mutable_hash() {
8321
  set_has_hash();
8322
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatEntry.hash)
8323
  return hash_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8324
}
8325
::std::string* ThreatEntry::release_hash() {
8326
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.ThreatEntry.hash)
8327
  clear_has_hash();
8328
  return hash_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8329
}
8330
void ThreatEntry::set_allocated_hash(::std::string* hash) {
8331
  if (hash != NULL) {
8332
    set_has_hash();
8333
  } else {
8334
    clear_has_hash();
8335
  }
8336
  hash_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), hash);
8337
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.ThreatEntry.hash)
8338
}
8339
8340
// optional string url = 2;
8341
bool ThreatEntry::has_url() const {
8342
  return (_has_bits_[0] & 0x00000002u) != 0;
8343
}
8344
void ThreatEntry::set_has_url() {
8345
  _has_bits_[0] |= 0x00000002u;
8346
}
8347
void ThreatEntry::clear_has_url() {
8348
  _has_bits_[0] &= ~0x00000002u;
8349
}
8350
void ThreatEntry::clear_url() {
8351
  url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8352
  clear_has_url();
8353
}
8354
const ::std::string& ThreatEntry::url() const {
8355
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatEntry.url)
8356
  return url_.GetNoArena();
8357
}
8358
void ThreatEntry::set_url(const ::std::string& value) {
8359
  set_has_url();
8360
  url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
8361
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatEntry.url)
8362
}
8363
#if LANG_CXX11
8364
void ThreatEntry::set_url(::std::string&& value) {
8365
  set_has_url();
8366
  url_.SetNoArena(
8367
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
8368
  // @@protoc_insertion_point(field_set_rvalue:mozilla.safebrowsing.ThreatEntry.url)
8369
}
8370
#endif
8371
void ThreatEntry::set_url(const char* value) {
8372
  GOOGLE_DCHECK(value != NULL);
8373
  set_has_url();
8374
  url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
8375
  // @@protoc_insertion_point(field_set_char:mozilla.safebrowsing.ThreatEntry.url)
8376
}
8377
void ThreatEntry::set_url(const char* value, size_t size) {
8378
  set_has_url();
8379
  url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
8380
      ::std::string(reinterpret_cast<const char*>(value), size));
8381
  // @@protoc_insertion_point(field_set_pointer:mozilla.safebrowsing.ThreatEntry.url)
8382
}
8383
::std::string* ThreatEntry::mutable_url() {
8384
  set_has_url();
8385
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatEntry.url)
8386
  return url_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8387
}
8388
::std::string* ThreatEntry::release_url() {
8389
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.ThreatEntry.url)
8390
  clear_has_url();
8391
  return url_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8392
}
8393
void ThreatEntry::set_allocated_url(::std::string* url) {
8394
  if (url != NULL) {
8395
    set_has_url();
8396
  } else {
8397
    clear_has_url();
8398
  }
8399
  url_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), url);
8400
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.ThreatEntry.url)
8401
}
8402
8403
#endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
8404
8405
// ===================================================================
8406
8407
#if !defined(_MSC_VER) || _MSC_VER >= 1900
8408
const int ThreatEntrySet::kCompressionTypeFieldNumber;
8409
const int ThreatEntrySet::kRawHashesFieldNumber;
8410
const int ThreatEntrySet::kRawIndicesFieldNumber;
8411
const int ThreatEntrySet::kRiceHashesFieldNumber;
8412
const int ThreatEntrySet::kRiceIndicesFieldNumber;
8413
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
8414
8415
ThreatEntrySet::ThreatEntrySet()
8416
0
  : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) {
8417
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
8418
0
    protobuf_safebrowsing_2eproto::InitDefaults();
8419
0
  }
8420
0
  SharedCtor();
8421
0
  // @@protoc_insertion_point(constructor:mozilla.safebrowsing.ThreatEntrySet)
8422
0
}
8423
ThreatEntrySet::ThreatEntrySet(const ThreatEntrySet& from)
8424
  : ::google::protobuf::MessageLite(),
8425
      _internal_metadata_(NULL),
8426
      _has_bits_(from._has_bits_),
8427
0
      _cached_size_(0) {
8428
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
8429
0
  if (from.has_raw_hashes()) {
8430
0
    raw_hashes_ = new ::mozilla::safebrowsing::RawHashes(*from.raw_hashes_);
8431
0
  } else {
8432
0
    raw_hashes_ = NULL;
8433
0
  }
8434
0
  if (from.has_raw_indices()) {
8435
0
    raw_indices_ = new ::mozilla::safebrowsing::RawIndices(*from.raw_indices_);
8436
0
  } else {
8437
0
    raw_indices_ = NULL;
8438
0
  }
8439
0
  if (from.has_rice_hashes()) {
8440
0
    rice_hashes_ = new ::mozilla::safebrowsing::RiceDeltaEncoding(*from.rice_hashes_);
8441
0
  } else {
8442
0
    rice_hashes_ = NULL;
8443
0
  }
8444
0
  if (from.has_rice_indices()) {
8445
0
    rice_indices_ = new ::mozilla::safebrowsing::RiceDeltaEncoding(*from.rice_indices_);
8446
0
  } else {
8447
0
    rice_indices_ = NULL;
8448
0
  }
8449
0
  compression_type_ = from.compression_type_;
8450
0
  // @@protoc_insertion_point(copy_constructor:mozilla.safebrowsing.ThreatEntrySet)
8451
0
}
8452
8453
0
void ThreatEntrySet::SharedCtor() {
8454
0
  _cached_size_ = 0;
8455
0
  ::memset(&raw_hashes_, 0, static_cast<size_t>(
8456
0
      reinterpret_cast<char*>(&compression_type_) -
8457
0
      reinterpret_cast<char*>(&raw_hashes_)) + sizeof(compression_type_));
8458
0
}
8459
8460
0
ThreatEntrySet::~ThreatEntrySet() {
8461
0
  // @@protoc_insertion_point(destructor:mozilla.safebrowsing.ThreatEntrySet)
8462
0
  SharedDtor();
8463
0
}
8464
8465
0
void ThreatEntrySet::SharedDtor() {
8466
0
  if (this != internal_default_instance()) delete raw_hashes_;
8467
0
  if (this != internal_default_instance()) delete raw_indices_;
8468
0
  if (this != internal_default_instance()) delete rice_hashes_;
8469
0
  if (this != internal_default_instance()) delete rice_indices_;
8470
0
}
8471
8472
0
void ThreatEntrySet::SetCachedSize(int size) const {
8473
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
8474
0
  _cached_size_ = size;
8475
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
8476
0
}
8477
0
const ThreatEntrySet& ThreatEntrySet::default_instance() {
8478
0
  protobuf_safebrowsing_2eproto::InitDefaults();
8479
0
  return *internal_default_instance();
8480
0
}
8481
8482
0
ThreatEntrySet* ThreatEntrySet::New(::google::protobuf::Arena* arena) const {
8483
0
  ThreatEntrySet* n = new ThreatEntrySet;
8484
0
  if (arena != NULL) {
8485
0
    arena->Own(n);
8486
0
  }
8487
0
  return n;
8488
0
}
8489
8490
0
void ThreatEntrySet::Clear() {
8491
0
// @@protoc_insertion_point(message_clear_start:mozilla.safebrowsing.ThreatEntrySet)
8492
0
  ::google::protobuf::uint32 cached_has_bits = 0;
8493
0
  // Prevent compiler warnings about cached_has_bits being unused
8494
0
  (void) cached_has_bits;
8495
0
8496
0
  cached_has_bits = _has_bits_[0];
8497
0
  if (cached_has_bits & 15u) {
8498
0
    if (cached_has_bits & 0x00000001u) {
8499
0
      GOOGLE_DCHECK(raw_hashes_ != NULL);
8500
0
      raw_hashes_->::mozilla::safebrowsing::RawHashes::Clear();
8501
0
    }
8502
0
    if (cached_has_bits & 0x00000002u) {
8503
0
      GOOGLE_DCHECK(raw_indices_ != NULL);
8504
0
      raw_indices_->::mozilla::safebrowsing::RawIndices::Clear();
8505
0
    }
8506
0
    if (cached_has_bits & 0x00000004u) {
8507
0
      GOOGLE_DCHECK(rice_hashes_ != NULL);
8508
0
      rice_hashes_->::mozilla::safebrowsing::RiceDeltaEncoding::Clear();
8509
0
    }
8510
0
    if (cached_has_bits & 0x00000008u) {
8511
0
      GOOGLE_DCHECK(rice_indices_ != NULL);
8512
0
      rice_indices_->::mozilla::safebrowsing::RiceDeltaEncoding::Clear();
8513
0
    }
8514
0
  }
8515
0
  compression_type_ = 0;
8516
0
  _has_bits_.Clear();
8517
0
  _internal_metadata_.Clear();
8518
0
}
8519
8520
bool ThreatEntrySet::MergePartialFromCodedStream(
8521
0
    ::google::protobuf::io::CodedInputStream* input) {
8522
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
8523
0
  ::google::protobuf::uint32 tag;
8524
0
  ::google::protobuf::io::LazyStringOutputStream unknown_fields_string(
8525
0
      ::google::protobuf::NewPermanentCallback(&_internal_metadata_,
8526
0
          &::google::protobuf::internal::InternalMetadataWithArenaLite::
8527
0
              mutable_unknown_fields));
8528
0
  ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
8529
0
      &unknown_fields_string, false);
8530
0
  // @@protoc_insertion_point(parse_start:mozilla.safebrowsing.ThreatEntrySet)
8531
0
  for (;;) {
8532
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
8533
0
    tag = p.first;
8534
0
    if (!p.second) goto handle_unusual;
8535
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
8536
0
      // optional .mozilla.safebrowsing.CompressionType compression_type = 1;
8537
0
      case 1: {
8538
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8539
0
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
8540
0
          int value;
8541
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8542
0
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
8543
0
                 input, &value)));
8544
0
          if (::mozilla::safebrowsing::CompressionType_IsValid(value)) {
8545
0
            set_compression_type(static_cast< ::mozilla::safebrowsing::CompressionType >(value));
8546
0
          } else {
8547
0
            unknown_fields_stream.WriteVarint32(8u);
8548
0
            unknown_fields_stream.WriteVarint32(
8549
0
                static_cast< ::google::protobuf::uint32>(value));
8550
0
          }
8551
0
        } else {
8552
0
          goto handle_unusual;
8553
0
        }
8554
0
        break;
8555
0
      }
8556
0
8557
0
      // optional .mozilla.safebrowsing.RawHashes raw_hashes = 2;
8558
0
      case 2: {
8559
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8560
0
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
8561
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
8562
0
               input, mutable_raw_hashes()));
8563
0
        } else {
8564
0
          goto handle_unusual;
8565
0
        }
8566
0
        break;
8567
0
      }
8568
0
8569
0
      // optional .mozilla.safebrowsing.RawIndices raw_indices = 3;
8570
0
      case 3: {
8571
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8572
0
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
8573
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
8574
0
               input, mutable_raw_indices()));
8575
0
        } else {
8576
0
          goto handle_unusual;
8577
0
        }
8578
0
        break;
8579
0
      }
8580
0
8581
0
      // optional .mozilla.safebrowsing.RiceDeltaEncoding rice_hashes = 4;
8582
0
      case 4: {
8583
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8584
0
            static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
8585
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
8586
0
               input, mutable_rice_hashes()));
8587
0
        } else {
8588
0
          goto handle_unusual;
8589
0
        }
8590
0
        break;
8591
0
      }
8592
0
8593
0
      // optional .mozilla.safebrowsing.RiceDeltaEncoding rice_indices = 5;
8594
0
      case 5: {
8595
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8596
0
            static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
8597
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
8598
0
               input, mutable_rice_indices()));
8599
0
        } else {
8600
0
          goto handle_unusual;
8601
0
        }
8602
0
        break;
8603
0
      }
8604
0
8605
0
      default: {
8606
0
      handle_unusual:
8607
0
        if (tag == 0) {
8608
0
          goto success;
8609
0
        }
8610
0
        DO_(::google::protobuf::internal::WireFormatLite::SkipField(
8611
0
            input, tag, &unknown_fields_stream));
8612
0
        break;
8613
0
      }
8614
0
    }
8615
0
  }
8616
0
success:
8617
0
  // @@protoc_insertion_point(parse_success:mozilla.safebrowsing.ThreatEntrySet)
8618
0
  return true;
8619
0
failure:
8620
0
  // @@protoc_insertion_point(parse_failure:mozilla.safebrowsing.ThreatEntrySet)
8621
0
  return false;
8622
0
#undef DO_
8623
0
}
8624
8625
void ThreatEntrySet::SerializeWithCachedSizes(
8626
0
    ::google::protobuf::io::CodedOutputStream* output) const {
8627
0
  // @@protoc_insertion_point(serialize_start:mozilla.safebrowsing.ThreatEntrySet)
8628
0
  ::google::protobuf::uint32 cached_has_bits = 0;
8629
0
  (void) cached_has_bits;
8630
0
8631
0
  cached_has_bits = _has_bits_[0];
8632
0
  // optional .mozilla.safebrowsing.CompressionType compression_type = 1;
8633
0
  if (cached_has_bits & 0x00000010u) {
8634
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
8635
0
      1, this->compression_type(), output);
8636
0
  }
8637
0
8638
0
  // optional .mozilla.safebrowsing.RawHashes raw_hashes = 2;
8639
0
  if (cached_has_bits & 0x00000001u) {
8640
0
    ::google::protobuf::internal::WireFormatLite::WriteMessage(
8641
0
      2, *this->raw_hashes_, output);
8642
0
  }
8643
0
8644
0
  // optional .mozilla.safebrowsing.RawIndices raw_indices = 3;
8645
0
  if (cached_has_bits & 0x00000002u) {
8646
0
    ::google::protobuf::internal::WireFormatLite::WriteMessage(
8647
0
      3, *this->raw_indices_, output);
8648
0
  }
8649
0
8650
0
  // optional .mozilla.safebrowsing.RiceDeltaEncoding rice_hashes = 4;
8651
0
  if (cached_has_bits & 0x00000004u) {
8652
0
    ::google::protobuf::internal::WireFormatLite::WriteMessage(
8653
0
      4, *this->rice_hashes_, output);
8654
0
  }
8655
0
8656
0
  // optional .mozilla.safebrowsing.RiceDeltaEncoding rice_indices = 5;
8657
0
  if (cached_has_bits & 0x00000008u) {
8658
0
    ::google::protobuf::internal::WireFormatLite::WriteMessage(
8659
0
      5, *this->rice_indices_, output);
8660
0
  }
8661
0
8662
0
  output->WriteRaw(_internal_metadata_.unknown_fields().data(),
8663
0
                   static_cast<int>(_internal_metadata_.unknown_fields().size()));
8664
0
  // @@protoc_insertion_point(serialize_end:mozilla.safebrowsing.ThreatEntrySet)
8665
0
}
8666
8667
0
size_t ThreatEntrySet::ByteSizeLong() const {
8668
0
// @@protoc_insertion_point(message_byte_size_start:mozilla.safebrowsing.ThreatEntrySet)
8669
0
  size_t total_size = 0;
8670
0
8671
0
  total_size += _internal_metadata_.unknown_fields().size();
8672
0
8673
0
  if (_has_bits_[0 / 32] & 31u) {
8674
0
    // optional .mozilla.safebrowsing.RawHashes raw_hashes = 2;
8675
0
    if (has_raw_hashes()) {
8676
0
      total_size += 1 +
8677
0
        ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
8678
0
          *this->raw_hashes_);
8679
0
    }
8680
0
8681
0
    // optional .mozilla.safebrowsing.RawIndices raw_indices = 3;
8682
0
    if (has_raw_indices()) {
8683
0
      total_size += 1 +
8684
0
        ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
8685
0
          *this->raw_indices_);
8686
0
    }
8687
0
8688
0
    // optional .mozilla.safebrowsing.RiceDeltaEncoding rice_hashes = 4;
8689
0
    if (has_rice_hashes()) {
8690
0
      total_size += 1 +
8691
0
        ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
8692
0
          *this->rice_hashes_);
8693
0
    }
8694
0
8695
0
    // optional .mozilla.safebrowsing.RiceDeltaEncoding rice_indices = 5;
8696
0
    if (has_rice_indices()) {
8697
0
      total_size += 1 +
8698
0
        ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
8699
0
          *this->rice_indices_);
8700
0
    }
8701
0
8702
0
    // optional .mozilla.safebrowsing.CompressionType compression_type = 1;
8703
0
    if (has_compression_type()) {
8704
0
      total_size += 1 +
8705
0
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->compression_type());
8706
0
    }
8707
0
8708
0
  }
8709
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
8710
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
8711
0
  _cached_size_ = cached_size;
8712
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
8713
0
  return total_size;
8714
0
}
8715
8716
void ThreatEntrySet::CheckTypeAndMergeFrom(
8717
0
    const ::google::protobuf::MessageLite& from) {
8718
0
  MergeFrom(*::google::protobuf::down_cast<const ThreatEntrySet*>(&from));
8719
0
}
8720
8721
0
void ThreatEntrySet::MergeFrom(const ThreatEntrySet& from) {
8722
0
// @@protoc_insertion_point(class_specific_merge_from_start:mozilla.safebrowsing.ThreatEntrySet)
8723
0
  GOOGLE_DCHECK_NE(&from, this);
8724
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
8725
0
  ::google::protobuf::uint32 cached_has_bits = 0;
8726
0
  (void) cached_has_bits;
8727
0
8728
0
  cached_has_bits = from._has_bits_[0];
8729
0
  if (cached_has_bits & 31u) {
8730
0
    if (cached_has_bits & 0x00000001u) {
8731
0
      mutable_raw_hashes()->::mozilla::safebrowsing::RawHashes::MergeFrom(from.raw_hashes());
8732
0
    }
8733
0
    if (cached_has_bits & 0x00000002u) {
8734
0
      mutable_raw_indices()->::mozilla::safebrowsing::RawIndices::MergeFrom(from.raw_indices());
8735
0
    }
8736
0
    if (cached_has_bits & 0x00000004u) {
8737
0
      mutable_rice_hashes()->::mozilla::safebrowsing::RiceDeltaEncoding::MergeFrom(from.rice_hashes());
8738
0
    }
8739
0
    if (cached_has_bits & 0x00000008u) {
8740
0
      mutable_rice_indices()->::mozilla::safebrowsing::RiceDeltaEncoding::MergeFrom(from.rice_indices());
8741
0
    }
8742
0
    if (cached_has_bits & 0x00000010u) {
8743
0
      compression_type_ = from.compression_type_;
8744
0
    }
8745
0
    _has_bits_[0] |= cached_has_bits;
8746
0
  }
8747
0
}
8748
8749
0
void ThreatEntrySet::CopyFrom(const ThreatEntrySet& from) {
8750
0
// @@protoc_insertion_point(class_specific_copy_from_start:mozilla.safebrowsing.ThreatEntrySet)
8751
0
  if (&from == this) return;
8752
0
  Clear();
8753
0
  MergeFrom(from);
8754
0
}
8755
8756
0
bool ThreatEntrySet::IsInitialized() const {
8757
0
  return true;
8758
0
}
8759
8760
0
void ThreatEntrySet::Swap(ThreatEntrySet* other) {
8761
0
  if (other == this) return;
8762
0
  InternalSwap(other);
8763
0
}
8764
0
void ThreatEntrySet::InternalSwap(ThreatEntrySet* other) {
8765
0
  using std::swap;
8766
0
  swap(raw_hashes_, other->raw_hashes_);
8767
0
  swap(raw_indices_, other->raw_indices_);
8768
0
  swap(rice_hashes_, other->rice_hashes_);
8769
0
  swap(rice_indices_, other->rice_indices_);
8770
0
  swap(compression_type_, other->compression_type_);
8771
0
  swap(_has_bits_[0], other->_has_bits_[0]);
8772
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
8773
0
  swap(_cached_size_, other->_cached_size_);
8774
0
}
8775
8776
0
::std::string ThreatEntrySet::GetTypeName() const {
8777
0
  return "mozilla.safebrowsing.ThreatEntrySet";
8778
0
}
8779
8780
#if PROTOBUF_INLINE_NOT_IN_HEADERS
8781
// ThreatEntrySet
8782
8783
// optional .mozilla.safebrowsing.CompressionType compression_type = 1;
8784
bool ThreatEntrySet::has_compression_type() const {
8785
  return (_has_bits_[0] & 0x00000010u) != 0;
8786
}
8787
void ThreatEntrySet::set_has_compression_type() {
8788
  _has_bits_[0] |= 0x00000010u;
8789
}
8790
void ThreatEntrySet::clear_has_compression_type() {
8791
  _has_bits_[0] &= ~0x00000010u;
8792
}
8793
void ThreatEntrySet::clear_compression_type() {
8794
  compression_type_ = 0;
8795
  clear_has_compression_type();
8796
}
8797
::mozilla::safebrowsing::CompressionType ThreatEntrySet::compression_type() const {
8798
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatEntrySet.compression_type)
8799
  return static_cast< ::mozilla::safebrowsing::CompressionType >(compression_type_);
8800
}
8801
void ThreatEntrySet::set_compression_type(::mozilla::safebrowsing::CompressionType value) {
8802
  assert(::mozilla::safebrowsing::CompressionType_IsValid(value));
8803
  set_has_compression_type();
8804
  compression_type_ = value;
8805
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatEntrySet.compression_type)
8806
}
8807
8808
// optional .mozilla.safebrowsing.RawHashes raw_hashes = 2;
8809
bool ThreatEntrySet::has_raw_hashes() const {
8810
  return (_has_bits_[0] & 0x00000001u) != 0;
8811
}
8812
void ThreatEntrySet::set_has_raw_hashes() {
8813
  _has_bits_[0] |= 0x00000001u;
8814
}
8815
void ThreatEntrySet::clear_has_raw_hashes() {
8816
  _has_bits_[0] &= ~0x00000001u;
8817
}
8818
void ThreatEntrySet::clear_raw_hashes() {
8819
  if (raw_hashes_ != NULL) raw_hashes_->::mozilla::safebrowsing::RawHashes::Clear();
8820
  clear_has_raw_hashes();
8821
}
8822
const ::mozilla::safebrowsing::RawHashes& ThreatEntrySet::raw_hashes() const {
8823
  const ::mozilla::safebrowsing::RawHashes* p = raw_hashes_;
8824
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatEntrySet.raw_hashes)
8825
  return p != NULL ? *p : *reinterpret_cast<const ::mozilla::safebrowsing::RawHashes*>(
8826
      &::mozilla::safebrowsing::_RawHashes_default_instance_);
8827
}
8828
::mozilla::safebrowsing::RawHashes* ThreatEntrySet::mutable_raw_hashes() {
8829
  set_has_raw_hashes();
8830
  if (raw_hashes_ == NULL) {
8831
    raw_hashes_ = new ::mozilla::safebrowsing::RawHashes;
8832
  }
8833
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatEntrySet.raw_hashes)
8834
  return raw_hashes_;
8835
}
8836
::mozilla::safebrowsing::RawHashes* ThreatEntrySet::release_raw_hashes() {
8837
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.ThreatEntrySet.raw_hashes)
8838
  clear_has_raw_hashes();
8839
  ::mozilla::safebrowsing::RawHashes* temp = raw_hashes_;
8840
  raw_hashes_ = NULL;
8841
  return temp;
8842
}
8843
void ThreatEntrySet::set_allocated_raw_hashes(::mozilla::safebrowsing::RawHashes* raw_hashes) {
8844
  delete raw_hashes_;
8845
  raw_hashes_ = raw_hashes;
8846
  if (raw_hashes) {
8847
    set_has_raw_hashes();
8848
  } else {
8849
    clear_has_raw_hashes();
8850
  }
8851
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.ThreatEntrySet.raw_hashes)
8852
}
8853
8854
// optional .mozilla.safebrowsing.RawIndices raw_indices = 3;
8855
bool ThreatEntrySet::has_raw_indices() const {
8856
  return (_has_bits_[0] & 0x00000002u) != 0;
8857
}
8858
void ThreatEntrySet::set_has_raw_indices() {
8859
  _has_bits_[0] |= 0x00000002u;
8860
}
8861
void ThreatEntrySet::clear_has_raw_indices() {
8862
  _has_bits_[0] &= ~0x00000002u;
8863
}
8864
void ThreatEntrySet::clear_raw_indices() {
8865
  if (raw_indices_ != NULL) raw_indices_->::mozilla::safebrowsing::RawIndices::Clear();
8866
  clear_has_raw_indices();
8867
}
8868
const ::mozilla::safebrowsing::RawIndices& ThreatEntrySet::raw_indices() const {
8869
  const ::mozilla::safebrowsing::RawIndices* p = raw_indices_;
8870
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatEntrySet.raw_indices)
8871
  return p != NULL ? *p : *reinterpret_cast<const ::mozilla::safebrowsing::RawIndices*>(
8872
      &::mozilla::safebrowsing::_RawIndices_default_instance_);
8873
}
8874
::mozilla::safebrowsing::RawIndices* ThreatEntrySet::mutable_raw_indices() {
8875
  set_has_raw_indices();
8876
  if (raw_indices_ == NULL) {
8877
    raw_indices_ = new ::mozilla::safebrowsing::RawIndices;
8878
  }
8879
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatEntrySet.raw_indices)
8880
  return raw_indices_;
8881
}
8882
::mozilla::safebrowsing::RawIndices* ThreatEntrySet::release_raw_indices() {
8883
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.ThreatEntrySet.raw_indices)
8884
  clear_has_raw_indices();
8885
  ::mozilla::safebrowsing::RawIndices* temp = raw_indices_;
8886
  raw_indices_ = NULL;
8887
  return temp;
8888
}
8889
void ThreatEntrySet::set_allocated_raw_indices(::mozilla::safebrowsing::RawIndices* raw_indices) {
8890
  delete raw_indices_;
8891
  raw_indices_ = raw_indices;
8892
  if (raw_indices) {
8893
    set_has_raw_indices();
8894
  } else {
8895
    clear_has_raw_indices();
8896
  }
8897
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.ThreatEntrySet.raw_indices)
8898
}
8899
8900
// optional .mozilla.safebrowsing.RiceDeltaEncoding rice_hashes = 4;
8901
bool ThreatEntrySet::has_rice_hashes() const {
8902
  return (_has_bits_[0] & 0x00000004u) != 0;
8903
}
8904
void ThreatEntrySet::set_has_rice_hashes() {
8905
  _has_bits_[0] |= 0x00000004u;
8906
}
8907
void ThreatEntrySet::clear_has_rice_hashes() {
8908
  _has_bits_[0] &= ~0x00000004u;
8909
}
8910
void ThreatEntrySet::clear_rice_hashes() {
8911
  if (rice_hashes_ != NULL) rice_hashes_->::mozilla::safebrowsing::RiceDeltaEncoding::Clear();
8912
  clear_has_rice_hashes();
8913
}
8914
const ::mozilla::safebrowsing::RiceDeltaEncoding& ThreatEntrySet::rice_hashes() const {
8915
  const ::mozilla::safebrowsing::RiceDeltaEncoding* p = rice_hashes_;
8916
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatEntrySet.rice_hashes)
8917
  return p != NULL ? *p : *reinterpret_cast<const ::mozilla::safebrowsing::RiceDeltaEncoding*>(
8918
      &::mozilla::safebrowsing::_RiceDeltaEncoding_default_instance_);
8919
}
8920
::mozilla::safebrowsing::RiceDeltaEncoding* ThreatEntrySet::mutable_rice_hashes() {
8921
  set_has_rice_hashes();
8922
  if (rice_hashes_ == NULL) {
8923
    rice_hashes_ = new ::mozilla::safebrowsing::RiceDeltaEncoding;
8924
  }
8925
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatEntrySet.rice_hashes)
8926
  return rice_hashes_;
8927
}
8928
::mozilla::safebrowsing::RiceDeltaEncoding* ThreatEntrySet::release_rice_hashes() {
8929
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.ThreatEntrySet.rice_hashes)
8930
  clear_has_rice_hashes();
8931
  ::mozilla::safebrowsing::RiceDeltaEncoding* temp = rice_hashes_;
8932
  rice_hashes_ = NULL;
8933
  return temp;
8934
}
8935
void ThreatEntrySet::set_allocated_rice_hashes(::mozilla::safebrowsing::RiceDeltaEncoding* rice_hashes) {
8936
  delete rice_hashes_;
8937
  rice_hashes_ = rice_hashes;
8938
  if (rice_hashes) {
8939
    set_has_rice_hashes();
8940
  } else {
8941
    clear_has_rice_hashes();
8942
  }
8943
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.ThreatEntrySet.rice_hashes)
8944
}
8945
8946
// optional .mozilla.safebrowsing.RiceDeltaEncoding rice_indices = 5;
8947
bool ThreatEntrySet::has_rice_indices() const {
8948
  return (_has_bits_[0] & 0x00000008u) != 0;
8949
}
8950
void ThreatEntrySet::set_has_rice_indices() {
8951
  _has_bits_[0] |= 0x00000008u;
8952
}
8953
void ThreatEntrySet::clear_has_rice_indices() {
8954
  _has_bits_[0] &= ~0x00000008u;
8955
}
8956
void ThreatEntrySet::clear_rice_indices() {
8957
  if (rice_indices_ != NULL) rice_indices_->::mozilla::safebrowsing::RiceDeltaEncoding::Clear();
8958
  clear_has_rice_indices();
8959
}
8960
const ::mozilla::safebrowsing::RiceDeltaEncoding& ThreatEntrySet::rice_indices() const {
8961
  const ::mozilla::safebrowsing::RiceDeltaEncoding* p = rice_indices_;
8962
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatEntrySet.rice_indices)
8963
  return p != NULL ? *p : *reinterpret_cast<const ::mozilla::safebrowsing::RiceDeltaEncoding*>(
8964
      &::mozilla::safebrowsing::_RiceDeltaEncoding_default_instance_);
8965
}
8966
::mozilla::safebrowsing::RiceDeltaEncoding* ThreatEntrySet::mutable_rice_indices() {
8967
  set_has_rice_indices();
8968
  if (rice_indices_ == NULL) {
8969
    rice_indices_ = new ::mozilla::safebrowsing::RiceDeltaEncoding;
8970
  }
8971
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatEntrySet.rice_indices)
8972
  return rice_indices_;
8973
}
8974
::mozilla::safebrowsing::RiceDeltaEncoding* ThreatEntrySet::release_rice_indices() {
8975
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.ThreatEntrySet.rice_indices)
8976
  clear_has_rice_indices();
8977
  ::mozilla::safebrowsing::RiceDeltaEncoding* temp = rice_indices_;
8978
  rice_indices_ = NULL;
8979
  return temp;
8980
}
8981
void ThreatEntrySet::set_allocated_rice_indices(::mozilla::safebrowsing::RiceDeltaEncoding* rice_indices) {
8982
  delete rice_indices_;
8983
  rice_indices_ = rice_indices;
8984
  if (rice_indices) {
8985
    set_has_rice_indices();
8986
  } else {
8987
    clear_has_rice_indices();
8988
  }
8989
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.ThreatEntrySet.rice_indices)
8990
}
8991
8992
#endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
8993
8994
// ===================================================================
8995
8996
#if !defined(_MSC_VER) || _MSC_VER >= 1900
8997
const int RawIndices::kIndicesFieldNumber;
8998
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
8999
9000
RawIndices::RawIndices()
9001
0
  : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) {
9002
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
9003
0
    protobuf_safebrowsing_2eproto::InitDefaults();
9004
0
  }
9005
0
  SharedCtor();
9006
0
  // @@protoc_insertion_point(constructor:mozilla.safebrowsing.RawIndices)
9007
0
}
9008
RawIndices::RawIndices(const RawIndices& from)
9009
  : ::google::protobuf::MessageLite(),
9010
      _internal_metadata_(NULL),
9011
      _has_bits_(from._has_bits_),
9012
      _cached_size_(0),
9013
0
      indices_(from.indices_) {
9014
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
9015
0
  // @@protoc_insertion_point(copy_constructor:mozilla.safebrowsing.RawIndices)
9016
0
}
9017
9018
0
void RawIndices::SharedCtor() {
9019
0
  _cached_size_ = 0;
9020
0
}
9021
9022
0
RawIndices::~RawIndices() {
9023
0
  // @@protoc_insertion_point(destructor:mozilla.safebrowsing.RawIndices)
9024
0
  SharedDtor();
9025
0
}
9026
9027
0
void RawIndices::SharedDtor() {
9028
0
}
9029
9030
0
void RawIndices::SetCachedSize(int size) const {
9031
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
9032
0
  _cached_size_ = size;
9033
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
9034
0
}
9035
0
const RawIndices& RawIndices::default_instance() {
9036
0
  protobuf_safebrowsing_2eproto::InitDefaults();
9037
0
  return *internal_default_instance();
9038
0
}
9039
9040
0
RawIndices* RawIndices::New(::google::protobuf::Arena* arena) const {
9041
0
  RawIndices* n = new RawIndices;
9042
0
  if (arena != NULL) {
9043
0
    arena->Own(n);
9044
0
  }
9045
0
  return n;
9046
0
}
9047
9048
0
void RawIndices::Clear() {
9049
0
// @@protoc_insertion_point(message_clear_start:mozilla.safebrowsing.RawIndices)
9050
0
  ::google::protobuf::uint32 cached_has_bits = 0;
9051
0
  // Prevent compiler warnings about cached_has_bits being unused
9052
0
  (void) cached_has_bits;
9053
0
9054
0
  indices_.Clear();
9055
0
  _has_bits_.Clear();
9056
0
  _internal_metadata_.Clear();
9057
0
}
9058
9059
bool RawIndices::MergePartialFromCodedStream(
9060
0
    ::google::protobuf::io::CodedInputStream* input) {
9061
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
9062
0
  ::google::protobuf::uint32 tag;
9063
0
  ::google::protobuf::io::LazyStringOutputStream unknown_fields_string(
9064
0
      ::google::protobuf::NewPermanentCallback(&_internal_metadata_,
9065
0
          &::google::protobuf::internal::InternalMetadataWithArenaLite::
9066
0
              mutable_unknown_fields));
9067
0
  ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
9068
0
      &unknown_fields_string, false);
9069
0
  // @@protoc_insertion_point(parse_start:mozilla.safebrowsing.RawIndices)
9070
0
  for (;;) {
9071
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
9072
0
    tag = p.first;
9073
0
    if (!p.second) goto handle_unusual;
9074
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
9075
0
      // repeated int32 indices = 1;
9076
0
      case 1: {
9077
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9078
0
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
9079
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
9080
0
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
9081
0
                 1, 8u, input, this->mutable_indices())));
9082
0
        } else if (
9083
0
            static_cast< ::google::protobuf::uint8>(tag) ==
9084
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
9085
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
9086
0
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
9087
0
                 input, this->mutable_indices())));
9088
0
        } else {
9089
0
          goto handle_unusual;
9090
0
        }
9091
0
        break;
9092
0
      }
9093
0
9094
0
      default: {
9095
0
      handle_unusual:
9096
0
        if (tag == 0) {
9097
0
          goto success;
9098
0
        }
9099
0
        DO_(::google::protobuf::internal::WireFormatLite::SkipField(
9100
0
            input, tag, &unknown_fields_stream));
9101
0
        break;
9102
0
      }
9103
0
    }
9104
0
  }
9105
0
success:
9106
0
  // @@protoc_insertion_point(parse_success:mozilla.safebrowsing.RawIndices)
9107
0
  return true;
9108
0
failure:
9109
0
  // @@protoc_insertion_point(parse_failure:mozilla.safebrowsing.RawIndices)
9110
0
  return false;
9111
0
#undef DO_
9112
0
}
9113
9114
void RawIndices::SerializeWithCachedSizes(
9115
0
    ::google::protobuf::io::CodedOutputStream* output) const {
9116
0
  // @@protoc_insertion_point(serialize_start:mozilla.safebrowsing.RawIndices)
9117
0
  ::google::protobuf::uint32 cached_has_bits = 0;
9118
0
  (void) cached_has_bits;
9119
0
9120
0
  // repeated int32 indices = 1;
9121
0
  for (int i = 0, n = this->indices_size(); i < n; i++) {
9122
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32(
9123
0
      1, this->indices(i), output);
9124
0
  }
9125
0
9126
0
  output->WriteRaw(_internal_metadata_.unknown_fields().data(),
9127
0
                   static_cast<int>(_internal_metadata_.unknown_fields().size()));
9128
0
  // @@protoc_insertion_point(serialize_end:mozilla.safebrowsing.RawIndices)
9129
0
}
9130
9131
0
size_t RawIndices::ByteSizeLong() const {
9132
0
// @@protoc_insertion_point(message_byte_size_start:mozilla.safebrowsing.RawIndices)
9133
0
  size_t total_size = 0;
9134
0
9135
0
  total_size += _internal_metadata_.unknown_fields().size();
9136
0
9137
0
  // repeated int32 indices = 1;
9138
0
  {
9139
0
    size_t data_size = ::google::protobuf::internal::WireFormatLite::
9140
0
      Int32Size(this->indices_);
9141
0
    total_size += 1 *
9142
0
                  ::google::protobuf::internal::FromIntSize(this->indices_size());
9143
0
    total_size += data_size;
9144
0
  }
9145
0
9146
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
9147
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
9148
0
  _cached_size_ = cached_size;
9149
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
9150
0
  return total_size;
9151
0
}
9152
9153
void RawIndices::CheckTypeAndMergeFrom(
9154
0
    const ::google::protobuf::MessageLite& from) {
9155
0
  MergeFrom(*::google::protobuf::down_cast<const RawIndices*>(&from));
9156
0
}
9157
9158
0
void RawIndices::MergeFrom(const RawIndices& from) {
9159
0
// @@protoc_insertion_point(class_specific_merge_from_start:mozilla.safebrowsing.RawIndices)
9160
0
  GOOGLE_DCHECK_NE(&from, this);
9161
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
9162
0
  ::google::protobuf::uint32 cached_has_bits = 0;
9163
0
  (void) cached_has_bits;
9164
0
9165
0
  indices_.MergeFrom(from.indices_);
9166
0
}
9167
9168
0
void RawIndices::CopyFrom(const RawIndices& from) {
9169
0
// @@protoc_insertion_point(class_specific_copy_from_start:mozilla.safebrowsing.RawIndices)
9170
0
  if (&from == this) return;
9171
0
  Clear();
9172
0
  MergeFrom(from);
9173
0
}
9174
9175
0
bool RawIndices::IsInitialized() const {
9176
0
  return true;
9177
0
}
9178
9179
0
void RawIndices::Swap(RawIndices* other) {
9180
0
  if (other == this) return;
9181
0
  InternalSwap(other);
9182
0
}
9183
0
void RawIndices::InternalSwap(RawIndices* other) {
9184
0
  using std::swap;
9185
0
  indices_.InternalSwap(&other->indices_);
9186
0
  swap(_has_bits_[0], other->_has_bits_[0]);
9187
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
9188
0
  swap(_cached_size_, other->_cached_size_);
9189
0
}
9190
9191
0
::std::string RawIndices::GetTypeName() const {
9192
0
  return "mozilla.safebrowsing.RawIndices";
9193
0
}
9194
9195
#if PROTOBUF_INLINE_NOT_IN_HEADERS
9196
// RawIndices
9197
9198
// repeated int32 indices = 1;
9199
int RawIndices::indices_size() const {
9200
  return indices_.size();
9201
}
9202
void RawIndices::clear_indices() {
9203
  indices_.Clear();
9204
}
9205
::google::protobuf::int32 RawIndices::indices(int index) const {
9206
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.RawIndices.indices)
9207
  return indices_.Get(index);
9208
}
9209
void RawIndices::set_indices(int index, ::google::protobuf::int32 value) {
9210
  indices_.Set(index, value);
9211
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.RawIndices.indices)
9212
}
9213
void RawIndices::add_indices(::google::protobuf::int32 value) {
9214
  indices_.Add(value);
9215
  // @@protoc_insertion_point(field_add:mozilla.safebrowsing.RawIndices.indices)
9216
}
9217
const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
9218
RawIndices::indices() const {
9219
  // @@protoc_insertion_point(field_list:mozilla.safebrowsing.RawIndices.indices)
9220
  return indices_;
9221
}
9222
::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
9223
RawIndices::mutable_indices() {
9224
  // @@protoc_insertion_point(field_mutable_list:mozilla.safebrowsing.RawIndices.indices)
9225
  return &indices_;
9226
}
9227
9228
#endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
9229
9230
// ===================================================================
9231
9232
#if !defined(_MSC_VER) || _MSC_VER >= 1900
9233
const int RawHashes::kPrefixSizeFieldNumber;
9234
const int RawHashes::kRawHashesFieldNumber;
9235
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
9236
9237
RawHashes::RawHashes()
9238
0
  : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) {
9239
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
9240
0
    protobuf_safebrowsing_2eproto::InitDefaults();
9241
0
  }
9242
0
  SharedCtor();
9243
0
  // @@protoc_insertion_point(constructor:mozilla.safebrowsing.RawHashes)
9244
0
}
9245
RawHashes::RawHashes(const RawHashes& from)
9246
  : ::google::protobuf::MessageLite(),
9247
      _internal_metadata_(NULL),
9248
      _has_bits_(from._has_bits_),
9249
0
      _cached_size_(0) {
9250
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
9251
0
  raw_hashes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9252
0
  if (from.has_raw_hashes()) {
9253
0
    raw_hashes_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.raw_hashes_);
9254
0
  }
9255
0
  prefix_size_ = from.prefix_size_;
9256
0
  // @@protoc_insertion_point(copy_constructor:mozilla.safebrowsing.RawHashes)
9257
0
}
9258
9259
0
void RawHashes::SharedCtor() {
9260
0
  _cached_size_ = 0;
9261
0
  raw_hashes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9262
0
  prefix_size_ = 0;
9263
0
}
9264
9265
0
RawHashes::~RawHashes() {
9266
0
  // @@protoc_insertion_point(destructor:mozilla.safebrowsing.RawHashes)
9267
0
  SharedDtor();
9268
0
}
9269
9270
0
void RawHashes::SharedDtor() {
9271
0
  raw_hashes_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9272
0
}
9273
9274
0
void RawHashes::SetCachedSize(int size) const {
9275
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
9276
0
  _cached_size_ = size;
9277
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
9278
0
}
9279
0
const RawHashes& RawHashes::default_instance() {
9280
0
  protobuf_safebrowsing_2eproto::InitDefaults();
9281
0
  return *internal_default_instance();
9282
0
}
9283
9284
0
RawHashes* RawHashes::New(::google::protobuf::Arena* arena) const {
9285
0
  RawHashes* n = new RawHashes;
9286
0
  if (arena != NULL) {
9287
0
    arena->Own(n);
9288
0
  }
9289
0
  return n;
9290
0
}
9291
9292
0
void RawHashes::Clear() {
9293
0
// @@protoc_insertion_point(message_clear_start:mozilla.safebrowsing.RawHashes)
9294
0
  ::google::protobuf::uint32 cached_has_bits = 0;
9295
0
  // Prevent compiler warnings about cached_has_bits being unused
9296
0
  (void) cached_has_bits;
9297
0
9298
0
  if (has_raw_hashes()) {
9299
0
    GOOGLE_DCHECK(!raw_hashes_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
9300
0
    (*raw_hashes_.UnsafeRawStringPointer())->clear();
9301
0
  }
9302
0
  prefix_size_ = 0;
9303
0
  _has_bits_.Clear();
9304
0
  _internal_metadata_.Clear();
9305
0
}
9306
9307
bool RawHashes::MergePartialFromCodedStream(
9308
0
    ::google::protobuf::io::CodedInputStream* input) {
9309
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
9310
0
  ::google::protobuf::uint32 tag;
9311
0
  ::google::protobuf::io::LazyStringOutputStream unknown_fields_string(
9312
0
      ::google::protobuf::NewPermanentCallback(&_internal_metadata_,
9313
0
          &::google::protobuf::internal::InternalMetadataWithArenaLite::
9314
0
              mutable_unknown_fields));
9315
0
  ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
9316
0
      &unknown_fields_string, false);
9317
0
  // @@protoc_insertion_point(parse_start:mozilla.safebrowsing.RawHashes)
9318
0
  for (;;) {
9319
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
9320
0
    tag = p.first;
9321
0
    if (!p.second) goto handle_unusual;
9322
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
9323
0
      // optional int32 prefix_size = 1;
9324
0
      case 1: {
9325
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9326
0
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
9327
0
          set_has_prefix_size();
9328
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9329
0
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
9330
0
                 input, &prefix_size_)));
9331
0
        } else {
9332
0
          goto handle_unusual;
9333
0
        }
9334
0
        break;
9335
0
      }
9336
0
9337
0
      // optional bytes raw_hashes = 2;
9338
0
      case 2: {
9339
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9340
0
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
9341
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
9342
0
                input, this->mutable_raw_hashes()));
9343
0
        } else {
9344
0
          goto handle_unusual;
9345
0
        }
9346
0
        break;
9347
0
      }
9348
0
9349
0
      default: {
9350
0
      handle_unusual:
9351
0
        if (tag == 0) {
9352
0
          goto success;
9353
0
        }
9354
0
        DO_(::google::protobuf::internal::WireFormatLite::SkipField(
9355
0
            input, tag, &unknown_fields_stream));
9356
0
        break;
9357
0
      }
9358
0
    }
9359
0
  }
9360
0
success:
9361
0
  // @@protoc_insertion_point(parse_success:mozilla.safebrowsing.RawHashes)
9362
0
  return true;
9363
0
failure:
9364
0
  // @@protoc_insertion_point(parse_failure:mozilla.safebrowsing.RawHashes)
9365
0
  return false;
9366
0
#undef DO_
9367
0
}
9368
9369
void RawHashes::SerializeWithCachedSizes(
9370
0
    ::google::protobuf::io::CodedOutputStream* output) const {
9371
0
  // @@protoc_insertion_point(serialize_start:mozilla.safebrowsing.RawHashes)
9372
0
  ::google::protobuf::uint32 cached_has_bits = 0;
9373
0
  (void) cached_has_bits;
9374
0
9375
0
  cached_has_bits = _has_bits_[0];
9376
0
  // optional int32 prefix_size = 1;
9377
0
  if (cached_has_bits & 0x00000002u) {
9378
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->prefix_size(), output);
9379
0
  }
9380
0
9381
0
  // optional bytes raw_hashes = 2;
9382
0
  if (cached_has_bits & 0x00000001u) {
9383
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
9384
0
      2, this->raw_hashes(), output);
9385
0
  }
9386
0
9387
0
  output->WriteRaw(_internal_metadata_.unknown_fields().data(),
9388
0
                   static_cast<int>(_internal_metadata_.unknown_fields().size()));
9389
0
  // @@protoc_insertion_point(serialize_end:mozilla.safebrowsing.RawHashes)
9390
0
}
9391
9392
0
size_t RawHashes::ByteSizeLong() const {
9393
0
// @@protoc_insertion_point(message_byte_size_start:mozilla.safebrowsing.RawHashes)
9394
0
  size_t total_size = 0;
9395
0
9396
0
  total_size += _internal_metadata_.unknown_fields().size();
9397
0
9398
0
  if (_has_bits_[0 / 32] & 3u) {
9399
0
    // optional bytes raw_hashes = 2;
9400
0
    if (has_raw_hashes()) {
9401
0
      total_size += 1 +
9402
0
        ::google::protobuf::internal::WireFormatLite::BytesSize(
9403
0
          this->raw_hashes());
9404
0
    }
9405
0
9406
0
    // optional int32 prefix_size = 1;
9407
0
    if (has_prefix_size()) {
9408
0
      total_size += 1 +
9409
0
        ::google::protobuf::internal::WireFormatLite::Int32Size(
9410
0
          this->prefix_size());
9411
0
    }
9412
0
9413
0
  }
9414
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
9415
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
9416
0
  _cached_size_ = cached_size;
9417
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
9418
0
  return total_size;
9419
0
}
9420
9421
void RawHashes::CheckTypeAndMergeFrom(
9422
0
    const ::google::protobuf::MessageLite& from) {
9423
0
  MergeFrom(*::google::protobuf::down_cast<const RawHashes*>(&from));
9424
0
}
9425
9426
0
void RawHashes::MergeFrom(const RawHashes& from) {
9427
0
// @@protoc_insertion_point(class_specific_merge_from_start:mozilla.safebrowsing.RawHashes)
9428
0
  GOOGLE_DCHECK_NE(&from, this);
9429
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
9430
0
  ::google::protobuf::uint32 cached_has_bits = 0;
9431
0
  (void) cached_has_bits;
9432
0
9433
0
  cached_has_bits = from._has_bits_[0];
9434
0
  if (cached_has_bits & 3u) {
9435
0
    if (cached_has_bits & 0x00000001u) {
9436
0
      set_has_raw_hashes();
9437
0
      raw_hashes_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.raw_hashes_);
9438
0
    }
9439
0
    if (cached_has_bits & 0x00000002u) {
9440
0
      prefix_size_ = from.prefix_size_;
9441
0
    }
9442
0
    _has_bits_[0] |= cached_has_bits;
9443
0
  }
9444
0
}
9445
9446
0
void RawHashes::CopyFrom(const RawHashes& from) {
9447
0
// @@protoc_insertion_point(class_specific_copy_from_start:mozilla.safebrowsing.RawHashes)
9448
0
  if (&from == this) return;
9449
0
  Clear();
9450
0
  MergeFrom(from);
9451
0
}
9452
9453
0
bool RawHashes::IsInitialized() const {
9454
0
  return true;
9455
0
}
9456
9457
0
void RawHashes::Swap(RawHashes* other) {
9458
0
  if (other == this) return;
9459
0
  InternalSwap(other);
9460
0
}
9461
0
void RawHashes::InternalSwap(RawHashes* other) {
9462
0
  using std::swap;
9463
0
  raw_hashes_.Swap(&other->raw_hashes_);
9464
0
  swap(prefix_size_, other->prefix_size_);
9465
0
  swap(_has_bits_[0], other->_has_bits_[0]);
9466
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
9467
0
  swap(_cached_size_, other->_cached_size_);
9468
0
}
9469
9470
0
::std::string RawHashes::GetTypeName() const {
9471
0
  return "mozilla.safebrowsing.RawHashes";
9472
0
}
9473
9474
#if PROTOBUF_INLINE_NOT_IN_HEADERS
9475
// RawHashes
9476
9477
// optional int32 prefix_size = 1;
9478
bool RawHashes::has_prefix_size() const {
9479
  return (_has_bits_[0] & 0x00000002u) != 0;
9480
}
9481
void RawHashes::set_has_prefix_size() {
9482
  _has_bits_[0] |= 0x00000002u;
9483
}
9484
void RawHashes::clear_has_prefix_size() {
9485
  _has_bits_[0] &= ~0x00000002u;
9486
}
9487
void RawHashes::clear_prefix_size() {
9488
  prefix_size_ = 0;
9489
  clear_has_prefix_size();
9490
}
9491
::google::protobuf::int32 RawHashes::prefix_size() const {
9492
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.RawHashes.prefix_size)
9493
  return prefix_size_;
9494
}
9495
void RawHashes::set_prefix_size(::google::protobuf::int32 value) {
9496
  set_has_prefix_size();
9497
  prefix_size_ = value;
9498
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.RawHashes.prefix_size)
9499
}
9500
9501
// optional bytes raw_hashes = 2;
9502
bool RawHashes::has_raw_hashes() const {
9503
  return (_has_bits_[0] & 0x00000001u) != 0;
9504
}
9505
void RawHashes::set_has_raw_hashes() {
9506
  _has_bits_[0] |= 0x00000001u;
9507
}
9508
void RawHashes::clear_has_raw_hashes() {
9509
  _has_bits_[0] &= ~0x00000001u;
9510
}
9511
void RawHashes::clear_raw_hashes() {
9512
  raw_hashes_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9513
  clear_has_raw_hashes();
9514
}
9515
const ::std::string& RawHashes::raw_hashes() const {
9516
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.RawHashes.raw_hashes)
9517
  return raw_hashes_.GetNoArena();
9518
}
9519
void RawHashes::set_raw_hashes(const ::std::string& value) {
9520
  set_has_raw_hashes();
9521
  raw_hashes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
9522
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.RawHashes.raw_hashes)
9523
}
9524
#if LANG_CXX11
9525
void RawHashes::set_raw_hashes(::std::string&& value) {
9526
  set_has_raw_hashes();
9527
  raw_hashes_.SetNoArena(
9528
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
9529
  // @@protoc_insertion_point(field_set_rvalue:mozilla.safebrowsing.RawHashes.raw_hashes)
9530
}
9531
#endif
9532
void RawHashes::set_raw_hashes(const char* value) {
9533
  GOOGLE_DCHECK(value != NULL);
9534
  set_has_raw_hashes();
9535
  raw_hashes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
9536
  // @@protoc_insertion_point(field_set_char:mozilla.safebrowsing.RawHashes.raw_hashes)
9537
}
9538
void RawHashes::set_raw_hashes(const void* value, size_t size) {
9539
  set_has_raw_hashes();
9540
  raw_hashes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
9541
      ::std::string(reinterpret_cast<const char*>(value), size));
9542
  // @@protoc_insertion_point(field_set_pointer:mozilla.safebrowsing.RawHashes.raw_hashes)
9543
}
9544
::std::string* RawHashes::mutable_raw_hashes() {
9545
  set_has_raw_hashes();
9546
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.RawHashes.raw_hashes)
9547
  return raw_hashes_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9548
}
9549
::std::string* RawHashes::release_raw_hashes() {
9550
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.RawHashes.raw_hashes)
9551
  clear_has_raw_hashes();
9552
  return raw_hashes_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9553
}
9554
void RawHashes::set_allocated_raw_hashes(::std::string* raw_hashes) {
9555
  if (raw_hashes != NULL) {
9556
    set_has_raw_hashes();
9557
  } else {
9558
    clear_has_raw_hashes();
9559
  }
9560
  raw_hashes_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), raw_hashes);
9561
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.RawHashes.raw_hashes)
9562
}
9563
9564
#endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
9565
9566
// ===================================================================
9567
9568
#if !defined(_MSC_VER) || _MSC_VER >= 1900
9569
const int RiceDeltaEncoding::kFirstValueFieldNumber;
9570
const int RiceDeltaEncoding::kRiceParameterFieldNumber;
9571
const int RiceDeltaEncoding::kNumEntriesFieldNumber;
9572
const int RiceDeltaEncoding::kEncodedDataFieldNumber;
9573
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
9574
9575
RiceDeltaEncoding::RiceDeltaEncoding()
9576
0
  : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) {
9577
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
9578
0
    protobuf_safebrowsing_2eproto::InitDefaults();
9579
0
  }
9580
0
  SharedCtor();
9581
0
  // @@protoc_insertion_point(constructor:mozilla.safebrowsing.RiceDeltaEncoding)
9582
0
}
9583
RiceDeltaEncoding::RiceDeltaEncoding(const RiceDeltaEncoding& from)
9584
  : ::google::protobuf::MessageLite(),
9585
      _internal_metadata_(NULL),
9586
      _has_bits_(from._has_bits_),
9587
0
      _cached_size_(0) {
9588
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
9589
0
  encoded_data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9590
0
  if (from.has_encoded_data()) {
9591
0
    encoded_data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.encoded_data_);
9592
0
  }
9593
0
  ::memcpy(&first_value_, &from.first_value_,
9594
0
    static_cast<size_t>(reinterpret_cast<char*>(&num_entries_) -
9595
0
    reinterpret_cast<char*>(&first_value_)) + sizeof(num_entries_));
9596
0
  // @@protoc_insertion_point(copy_constructor:mozilla.safebrowsing.RiceDeltaEncoding)
9597
0
}
9598
9599
0
void RiceDeltaEncoding::SharedCtor() {
9600
0
  _cached_size_ = 0;
9601
0
  encoded_data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9602
0
  ::memset(&first_value_, 0, static_cast<size_t>(
9603
0
      reinterpret_cast<char*>(&num_entries_) -
9604
0
      reinterpret_cast<char*>(&first_value_)) + sizeof(num_entries_));
9605
0
}
9606
9607
0
RiceDeltaEncoding::~RiceDeltaEncoding() {
9608
0
  // @@protoc_insertion_point(destructor:mozilla.safebrowsing.RiceDeltaEncoding)
9609
0
  SharedDtor();
9610
0
}
9611
9612
0
void RiceDeltaEncoding::SharedDtor() {
9613
0
  encoded_data_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9614
0
}
9615
9616
0
void RiceDeltaEncoding::SetCachedSize(int size) const {
9617
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
9618
0
  _cached_size_ = size;
9619
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
9620
0
}
9621
0
const RiceDeltaEncoding& RiceDeltaEncoding::default_instance() {
9622
0
  protobuf_safebrowsing_2eproto::InitDefaults();
9623
0
  return *internal_default_instance();
9624
0
}
9625
9626
0
RiceDeltaEncoding* RiceDeltaEncoding::New(::google::protobuf::Arena* arena) const {
9627
0
  RiceDeltaEncoding* n = new RiceDeltaEncoding;
9628
0
  if (arena != NULL) {
9629
0
    arena->Own(n);
9630
0
  }
9631
0
  return n;
9632
0
}
9633
9634
0
void RiceDeltaEncoding::Clear() {
9635
0
// @@protoc_insertion_point(message_clear_start:mozilla.safebrowsing.RiceDeltaEncoding)
9636
0
  ::google::protobuf::uint32 cached_has_bits = 0;
9637
0
  // Prevent compiler warnings about cached_has_bits being unused
9638
0
  (void) cached_has_bits;
9639
0
9640
0
  if (has_encoded_data()) {
9641
0
    GOOGLE_DCHECK(!encoded_data_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
9642
0
    (*encoded_data_.UnsafeRawStringPointer())->clear();
9643
0
  }
9644
0
  cached_has_bits = _has_bits_[0];
9645
0
  if (cached_has_bits & 14u) {
9646
0
    ::memset(&first_value_, 0, static_cast<size_t>(
9647
0
        reinterpret_cast<char*>(&num_entries_) -
9648
0
        reinterpret_cast<char*>(&first_value_)) + sizeof(num_entries_));
9649
0
  }
9650
0
  _has_bits_.Clear();
9651
0
  _internal_metadata_.Clear();
9652
0
}
9653
9654
bool RiceDeltaEncoding::MergePartialFromCodedStream(
9655
0
    ::google::protobuf::io::CodedInputStream* input) {
9656
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
9657
0
  ::google::protobuf::uint32 tag;
9658
0
  ::google::protobuf::io::LazyStringOutputStream unknown_fields_string(
9659
0
      ::google::protobuf::NewPermanentCallback(&_internal_metadata_,
9660
0
          &::google::protobuf::internal::InternalMetadataWithArenaLite::
9661
0
              mutable_unknown_fields));
9662
0
  ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
9663
0
      &unknown_fields_string, false);
9664
0
  // @@protoc_insertion_point(parse_start:mozilla.safebrowsing.RiceDeltaEncoding)
9665
0
  for (;;) {
9666
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
9667
0
    tag = p.first;
9668
0
    if (!p.second) goto handle_unusual;
9669
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
9670
0
      // optional int64 first_value = 1;
9671
0
      case 1: {
9672
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9673
0
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
9674
0
          set_has_first_value();
9675
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9676
0
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
9677
0
                 input, &first_value_)));
9678
0
        } else {
9679
0
          goto handle_unusual;
9680
0
        }
9681
0
        break;
9682
0
      }
9683
0
9684
0
      // optional int32 rice_parameter = 2;
9685
0
      case 2: {
9686
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9687
0
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
9688
0
          set_has_rice_parameter();
9689
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9690
0
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
9691
0
                 input, &rice_parameter_)));
9692
0
        } else {
9693
0
          goto handle_unusual;
9694
0
        }
9695
0
        break;
9696
0
      }
9697
0
9698
0
      // optional int32 num_entries = 3;
9699
0
      case 3: {
9700
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9701
0
            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
9702
0
          set_has_num_entries();
9703
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9704
0
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
9705
0
                 input, &num_entries_)));
9706
0
        } else {
9707
0
          goto handle_unusual;
9708
0
        }
9709
0
        break;
9710
0
      }
9711
0
9712
0
      // optional bytes encoded_data = 4;
9713
0
      case 4: {
9714
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9715
0
            static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
9716
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
9717
0
                input, this->mutable_encoded_data()));
9718
0
        } else {
9719
0
          goto handle_unusual;
9720
0
        }
9721
0
        break;
9722
0
      }
9723
0
9724
0
      default: {
9725
0
      handle_unusual:
9726
0
        if (tag == 0) {
9727
0
          goto success;
9728
0
        }
9729
0
        DO_(::google::protobuf::internal::WireFormatLite::SkipField(
9730
0
            input, tag, &unknown_fields_stream));
9731
0
        break;
9732
0
      }
9733
0
    }
9734
0
  }
9735
0
success:
9736
0
  // @@protoc_insertion_point(parse_success:mozilla.safebrowsing.RiceDeltaEncoding)
9737
0
  return true;
9738
0
failure:
9739
0
  // @@protoc_insertion_point(parse_failure:mozilla.safebrowsing.RiceDeltaEncoding)
9740
0
  return false;
9741
0
#undef DO_
9742
0
}
9743
9744
void RiceDeltaEncoding::SerializeWithCachedSizes(
9745
0
    ::google::protobuf::io::CodedOutputStream* output) const {
9746
0
  // @@protoc_insertion_point(serialize_start:mozilla.safebrowsing.RiceDeltaEncoding)
9747
0
  ::google::protobuf::uint32 cached_has_bits = 0;
9748
0
  (void) cached_has_bits;
9749
0
9750
0
  cached_has_bits = _has_bits_[0];
9751
0
  // optional int64 first_value = 1;
9752
0
  if (cached_has_bits & 0x00000002u) {
9753
0
    ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->first_value(), output);
9754
0
  }
9755
0
9756
0
  // optional int32 rice_parameter = 2;
9757
0
  if (cached_has_bits & 0x00000004u) {
9758
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->rice_parameter(), output);
9759
0
  }
9760
0
9761
0
  // optional int32 num_entries = 3;
9762
0
  if (cached_has_bits & 0x00000008u) {
9763
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->num_entries(), output);
9764
0
  }
9765
0
9766
0
  // optional bytes encoded_data = 4;
9767
0
  if (cached_has_bits & 0x00000001u) {
9768
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
9769
0
      4, this->encoded_data(), output);
9770
0
  }
9771
0
9772
0
  output->WriteRaw(_internal_metadata_.unknown_fields().data(),
9773
0
                   static_cast<int>(_internal_metadata_.unknown_fields().size()));
9774
0
  // @@protoc_insertion_point(serialize_end:mozilla.safebrowsing.RiceDeltaEncoding)
9775
0
}
9776
9777
0
size_t RiceDeltaEncoding::ByteSizeLong() const {
9778
0
// @@protoc_insertion_point(message_byte_size_start:mozilla.safebrowsing.RiceDeltaEncoding)
9779
0
  size_t total_size = 0;
9780
0
9781
0
  total_size += _internal_metadata_.unknown_fields().size();
9782
0
9783
0
  if (_has_bits_[0 / 32] & 15u) {
9784
0
    // optional bytes encoded_data = 4;
9785
0
    if (has_encoded_data()) {
9786
0
      total_size += 1 +
9787
0
        ::google::protobuf::internal::WireFormatLite::BytesSize(
9788
0
          this->encoded_data());
9789
0
    }
9790
0
9791
0
    // optional int64 first_value = 1;
9792
0
    if (has_first_value()) {
9793
0
      total_size += 1 +
9794
0
        ::google::protobuf::internal::WireFormatLite::Int64Size(
9795
0
          this->first_value());
9796
0
    }
9797
0
9798
0
    // optional int32 rice_parameter = 2;
9799
0
    if (has_rice_parameter()) {
9800
0
      total_size += 1 +
9801
0
        ::google::protobuf::internal::WireFormatLite::Int32Size(
9802
0
          this->rice_parameter());
9803
0
    }
9804
0
9805
0
    // optional int32 num_entries = 3;
9806
0
    if (has_num_entries()) {
9807
0
      total_size += 1 +
9808
0
        ::google::protobuf::internal::WireFormatLite::Int32Size(
9809
0
          this->num_entries());
9810
0
    }
9811
0
9812
0
  }
9813
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
9814
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
9815
0
  _cached_size_ = cached_size;
9816
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
9817
0
  return total_size;
9818
0
}
9819
9820
void RiceDeltaEncoding::CheckTypeAndMergeFrom(
9821
0
    const ::google::protobuf::MessageLite& from) {
9822
0
  MergeFrom(*::google::protobuf::down_cast<const RiceDeltaEncoding*>(&from));
9823
0
}
9824
9825
0
void RiceDeltaEncoding::MergeFrom(const RiceDeltaEncoding& from) {
9826
0
// @@protoc_insertion_point(class_specific_merge_from_start:mozilla.safebrowsing.RiceDeltaEncoding)
9827
0
  GOOGLE_DCHECK_NE(&from, this);
9828
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
9829
0
  ::google::protobuf::uint32 cached_has_bits = 0;
9830
0
  (void) cached_has_bits;
9831
0
9832
0
  cached_has_bits = from._has_bits_[0];
9833
0
  if (cached_has_bits & 15u) {
9834
0
    if (cached_has_bits & 0x00000001u) {
9835
0
      set_has_encoded_data();
9836
0
      encoded_data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.encoded_data_);
9837
0
    }
9838
0
    if (cached_has_bits & 0x00000002u) {
9839
0
      first_value_ = from.first_value_;
9840
0
    }
9841
0
    if (cached_has_bits & 0x00000004u) {
9842
0
      rice_parameter_ = from.rice_parameter_;
9843
0
    }
9844
0
    if (cached_has_bits & 0x00000008u) {
9845
0
      num_entries_ = from.num_entries_;
9846
0
    }
9847
0
    _has_bits_[0] |= cached_has_bits;
9848
0
  }
9849
0
}
9850
9851
0
void RiceDeltaEncoding::CopyFrom(const RiceDeltaEncoding& from) {
9852
0
// @@protoc_insertion_point(class_specific_copy_from_start:mozilla.safebrowsing.RiceDeltaEncoding)
9853
0
  if (&from == this) return;
9854
0
  Clear();
9855
0
  MergeFrom(from);
9856
0
}
9857
9858
0
bool RiceDeltaEncoding::IsInitialized() const {
9859
0
  return true;
9860
0
}
9861
9862
0
void RiceDeltaEncoding::Swap(RiceDeltaEncoding* other) {
9863
0
  if (other == this) return;
9864
0
  InternalSwap(other);
9865
0
}
9866
0
void RiceDeltaEncoding::InternalSwap(RiceDeltaEncoding* other) {
9867
0
  using std::swap;
9868
0
  encoded_data_.Swap(&other->encoded_data_);
9869
0
  swap(first_value_, other->first_value_);
9870
0
  swap(rice_parameter_, other->rice_parameter_);
9871
0
  swap(num_entries_, other->num_entries_);
9872
0
  swap(_has_bits_[0], other->_has_bits_[0]);
9873
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
9874
0
  swap(_cached_size_, other->_cached_size_);
9875
0
}
9876
9877
0
::std::string RiceDeltaEncoding::GetTypeName() const {
9878
0
  return "mozilla.safebrowsing.RiceDeltaEncoding";
9879
0
}
9880
9881
#if PROTOBUF_INLINE_NOT_IN_HEADERS
9882
// RiceDeltaEncoding
9883
9884
// optional int64 first_value = 1;
9885
bool RiceDeltaEncoding::has_first_value() const {
9886
  return (_has_bits_[0] & 0x00000002u) != 0;
9887
}
9888
void RiceDeltaEncoding::set_has_first_value() {
9889
  _has_bits_[0] |= 0x00000002u;
9890
}
9891
void RiceDeltaEncoding::clear_has_first_value() {
9892
  _has_bits_[0] &= ~0x00000002u;
9893
}
9894
void RiceDeltaEncoding::clear_first_value() {
9895
  first_value_ = GOOGLE_LONGLONG(0);
9896
  clear_has_first_value();
9897
}
9898
::google::protobuf::int64 RiceDeltaEncoding::first_value() const {
9899
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.RiceDeltaEncoding.first_value)
9900
  return first_value_;
9901
}
9902
void RiceDeltaEncoding::set_first_value(::google::protobuf::int64 value) {
9903
  set_has_first_value();
9904
  first_value_ = value;
9905
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.RiceDeltaEncoding.first_value)
9906
}
9907
9908
// optional int32 rice_parameter = 2;
9909
bool RiceDeltaEncoding::has_rice_parameter() const {
9910
  return (_has_bits_[0] & 0x00000004u) != 0;
9911
}
9912
void RiceDeltaEncoding::set_has_rice_parameter() {
9913
  _has_bits_[0] |= 0x00000004u;
9914
}
9915
void RiceDeltaEncoding::clear_has_rice_parameter() {
9916
  _has_bits_[0] &= ~0x00000004u;
9917
}
9918
void RiceDeltaEncoding::clear_rice_parameter() {
9919
  rice_parameter_ = 0;
9920
  clear_has_rice_parameter();
9921
}
9922
::google::protobuf::int32 RiceDeltaEncoding::rice_parameter() const {
9923
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.RiceDeltaEncoding.rice_parameter)
9924
  return rice_parameter_;
9925
}
9926
void RiceDeltaEncoding::set_rice_parameter(::google::protobuf::int32 value) {
9927
  set_has_rice_parameter();
9928
  rice_parameter_ = value;
9929
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.RiceDeltaEncoding.rice_parameter)
9930
}
9931
9932
// optional int32 num_entries = 3;
9933
bool RiceDeltaEncoding::has_num_entries() const {
9934
  return (_has_bits_[0] & 0x00000008u) != 0;
9935
}
9936
void RiceDeltaEncoding::set_has_num_entries() {
9937
  _has_bits_[0] |= 0x00000008u;
9938
}
9939
void RiceDeltaEncoding::clear_has_num_entries() {
9940
  _has_bits_[0] &= ~0x00000008u;
9941
}
9942
void RiceDeltaEncoding::clear_num_entries() {
9943
  num_entries_ = 0;
9944
  clear_has_num_entries();
9945
}
9946
::google::protobuf::int32 RiceDeltaEncoding::num_entries() const {
9947
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.RiceDeltaEncoding.num_entries)
9948
  return num_entries_;
9949
}
9950
void RiceDeltaEncoding::set_num_entries(::google::protobuf::int32 value) {
9951
  set_has_num_entries();
9952
  num_entries_ = value;
9953
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.RiceDeltaEncoding.num_entries)
9954
}
9955
9956
// optional bytes encoded_data = 4;
9957
bool RiceDeltaEncoding::has_encoded_data() const {
9958
  return (_has_bits_[0] & 0x00000001u) != 0;
9959
}
9960
void RiceDeltaEncoding::set_has_encoded_data() {
9961
  _has_bits_[0] |= 0x00000001u;
9962
}
9963
void RiceDeltaEncoding::clear_has_encoded_data() {
9964
  _has_bits_[0] &= ~0x00000001u;
9965
}
9966
void RiceDeltaEncoding::clear_encoded_data() {
9967
  encoded_data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9968
  clear_has_encoded_data();
9969
}
9970
const ::std::string& RiceDeltaEncoding::encoded_data() const {
9971
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.RiceDeltaEncoding.encoded_data)
9972
  return encoded_data_.GetNoArena();
9973
}
9974
void RiceDeltaEncoding::set_encoded_data(const ::std::string& value) {
9975
  set_has_encoded_data();
9976
  encoded_data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
9977
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.RiceDeltaEncoding.encoded_data)
9978
}
9979
#if LANG_CXX11
9980
void RiceDeltaEncoding::set_encoded_data(::std::string&& value) {
9981
  set_has_encoded_data();
9982
  encoded_data_.SetNoArena(
9983
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
9984
  // @@protoc_insertion_point(field_set_rvalue:mozilla.safebrowsing.RiceDeltaEncoding.encoded_data)
9985
}
9986
#endif
9987
void RiceDeltaEncoding::set_encoded_data(const char* value) {
9988
  GOOGLE_DCHECK(value != NULL);
9989
  set_has_encoded_data();
9990
  encoded_data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
9991
  // @@protoc_insertion_point(field_set_char:mozilla.safebrowsing.RiceDeltaEncoding.encoded_data)
9992
}
9993
void RiceDeltaEncoding::set_encoded_data(const void* value, size_t size) {
9994
  set_has_encoded_data();
9995
  encoded_data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
9996
      ::std::string(reinterpret_cast<const char*>(value), size));
9997
  // @@protoc_insertion_point(field_set_pointer:mozilla.safebrowsing.RiceDeltaEncoding.encoded_data)
9998
}
9999
::std::string* RiceDeltaEncoding::mutable_encoded_data() {
10000
  set_has_encoded_data();
10001
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.RiceDeltaEncoding.encoded_data)
10002
  return encoded_data_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
10003
}
10004
::std::string* RiceDeltaEncoding::release_encoded_data() {
10005
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.RiceDeltaEncoding.encoded_data)
10006
  clear_has_encoded_data();
10007
  return encoded_data_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
10008
}
10009
void RiceDeltaEncoding::set_allocated_encoded_data(::std::string* encoded_data) {
10010
  if (encoded_data != NULL) {
10011
    set_has_encoded_data();
10012
  } else {
10013
    clear_has_encoded_data();
10014
  }
10015
  encoded_data_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), encoded_data);
10016
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.RiceDeltaEncoding.encoded_data)
10017
}
10018
10019
#endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
10020
10021
// ===================================================================
10022
10023
#if !defined(_MSC_VER) || _MSC_VER >= 1900
10024
const int ThreatEntryMetadata_MetadataEntry::kKeyFieldNumber;
10025
const int ThreatEntryMetadata_MetadataEntry::kValueFieldNumber;
10026
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
10027
10028
ThreatEntryMetadata_MetadataEntry::ThreatEntryMetadata_MetadataEntry()
10029
0
  : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) {
10030
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
10031
0
    protobuf_safebrowsing_2eproto::InitDefaults();
10032
0
  }
10033
0
  SharedCtor();
10034
0
  // @@protoc_insertion_point(constructor:mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry)
10035
0
}
10036
ThreatEntryMetadata_MetadataEntry::ThreatEntryMetadata_MetadataEntry(const ThreatEntryMetadata_MetadataEntry& from)
10037
  : ::google::protobuf::MessageLite(),
10038
      _internal_metadata_(NULL),
10039
      _has_bits_(from._has_bits_),
10040
0
      _cached_size_(0) {
10041
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
10042
0
  key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
10043
0
  if (from.has_key()) {
10044
0
    key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_);
10045
0
  }
10046
0
  value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
10047
0
  if (from.has_value()) {
10048
0
    value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_);
10049
0
  }
10050
0
  // @@protoc_insertion_point(copy_constructor:mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry)
10051
0
}
10052
10053
0
void ThreatEntryMetadata_MetadataEntry::SharedCtor() {
10054
0
  _cached_size_ = 0;
10055
0
  key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
10056
0
  value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
10057
0
}
10058
10059
0
ThreatEntryMetadata_MetadataEntry::~ThreatEntryMetadata_MetadataEntry() {
10060
0
  // @@protoc_insertion_point(destructor:mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry)
10061
0
  SharedDtor();
10062
0
}
10063
10064
0
void ThreatEntryMetadata_MetadataEntry::SharedDtor() {
10065
0
  key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
10066
0
  value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
10067
0
}
10068
10069
0
void ThreatEntryMetadata_MetadataEntry::SetCachedSize(int size) const {
10070
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
10071
0
  _cached_size_ = size;
10072
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
10073
0
}
10074
0
const ThreatEntryMetadata_MetadataEntry& ThreatEntryMetadata_MetadataEntry::default_instance() {
10075
0
  protobuf_safebrowsing_2eproto::InitDefaults();
10076
0
  return *internal_default_instance();
10077
0
}
10078
10079
0
ThreatEntryMetadata_MetadataEntry* ThreatEntryMetadata_MetadataEntry::New(::google::protobuf::Arena* arena) const {
10080
0
  ThreatEntryMetadata_MetadataEntry* n = new ThreatEntryMetadata_MetadataEntry;
10081
0
  if (arena != NULL) {
10082
0
    arena->Own(n);
10083
0
  }
10084
0
  return n;
10085
0
}
10086
10087
0
void ThreatEntryMetadata_MetadataEntry::Clear() {
10088
0
// @@protoc_insertion_point(message_clear_start:mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry)
10089
0
  ::google::protobuf::uint32 cached_has_bits = 0;
10090
0
  // Prevent compiler warnings about cached_has_bits being unused
10091
0
  (void) cached_has_bits;
10092
0
10093
0
  cached_has_bits = _has_bits_[0];
10094
0
  if (cached_has_bits & 3u) {
10095
0
    if (cached_has_bits & 0x00000001u) {
10096
0
      GOOGLE_DCHECK(!key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
10097
0
      (*key_.UnsafeRawStringPointer())->clear();
10098
0
    }
10099
0
    if (cached_has_bits & 0x00000002u) {
10100
0
      GOOGLE_DCHECK(!value_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
10101
0
      (*value_.UnsafeRawStringPointer())->clear();
10102
0
    }
10103
0
  }
10104
0
  _has_bits_.Clear();
10105
0
  _internal_metadata_.Clear();
10106
0
}
10107
10108
bool ThreatEntryMetadata_MetadataEntry::MergePartialFromCodedStream(
10109
0
    ::google::protobuf::io::CodedInputStream* input) {
10110
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
10111
0
  ::google::protobuf::uint32 tag;
10112
0
  ::google::protobuf::io::LazyStringOutputStream unknown_fields_string(
10113
0
      ::google::protobuf::NewPermanentCallback(&_internal_metadata_,
10114
0
          &::google::protobuf::internal::InternalMetadataWithArenaLite::
10115
0
              mutable_unknown_fields));
10116
0
  ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
10117
0
      &unknown_fields_string, false);
10118
0
  // @@protoc_insertion_point(parse_start:mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry)
10119
0
  for (;;) {
10120
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
10121
0
    tag = p.first;
10122
0
    if (!p.second) goto handle_unusual;
10123
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
10124
0
      // optional bytes key = 1;
10125
0
      case 1: {
10126
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
10127
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
10128
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
10129
0
                input, this->mutable_key()));
10130
0
        } else {
10131
0
          goto handle_unusual;
10132
0
        }
10133
0
        break;
10134
0
      }
10135
0
10136
0
      // optional bytes value = 2;
10137
0
      case 2: {
10138
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
10139
0
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
10140
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
10141
0
                input, this->mutable_value()));
10142
0
        } else {
10143
0
          goto handle_unusual;
10144
0
        }
10145
0
        break;
10146
0
      }
10147
0
10148
0
      default: {
10149
0
      handle_unusual:
10150
0
        if (tag == 0) {
10151
0
          goto success;
10152
0
        }
10153
0
        DO_(::google::protobuf::internal::WireFormatLite::SkipField(
10154
0
            input, tag, &unknown_fields_stream));
10155
0
        break;
10156
0
      }
10157
0
    }
10158
0
  }
10159
0
success:
10160
0
  // @@protoc_insertion_point(parse_success:mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry)
10161
0
  return true;
10162
0
failure:
10163
0
  // @@protoc_insertion_point(parse_failure:mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry)
10164
0
  return false;
10165
0
#undef DO_
10166
0
}
10167
10168
void ThreatEntryMetadata_MetadataEntry::SerializeWithCachedSizes(
10169
0
    ::google::protobuf::io::CodedOutputStream* output) const {
10170
0
  // @@protoc_insertion_point(serialize_start:mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry)
10171
0
  ::google::protobuf::uint32 cached_has_bits = 0;
10172
0
  (void) cached_has_bits;
10173
0
10174
0
  cached_has_bits = _has_bits_[0];
10175
0
  // optional bytes key = 1;
10176
0
  if (cached_has_bits & 0x00000001u) {
10177
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
10178
0
      1, this->key(), output);
10179
0
  }
10180
0
10181
0
  // optional bytes value = 2;
10182
0
  if (cached_has_bits & 0x00000002u) {
10183
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
10184
0
      2, this->value(), output);
10185
0
  }
10186
0
10187
0
  output->WriteRaw(_internal_metadata_.unknown_fields().data(),
10188
0
                   static_cast<int>(_internal_metadata_.unknown_fields().size()));
10189
0
  // @@protoc_insertion_point(serialize_end:mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry)
10190
0
}
10191
10192
0
size_t ThreatEntryMetadata_MetadataEntry::ByteSizeLong() const {
10193
0
// @@protoc_insertion_point(message_byte_size_start:mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry)
10194
0
  size_t total_size = 0;
10195
0
10196
0
  total_size += _internal_metadata_.unknown_fields().size();
10197
0
10198
0
  if (_has_bits_[0 / 32] & 3u) {
10199
0
    // optional bytes key = 1;
10200
0
    if (has_key()) {
10201
0
      total_size += 1 +
10202
0
        ::google::protobuf::internal::WireFormatLite::BytesSize(
10203
0
          this->key());
10204
0
    }
10205
0
10206
0
    // optional bytes value = 2;
10207
0
    if (has_value()) {
10208
0
      total_size += 1 +
10209
0
        ::google::protobuf::internal::WireFormatLite::BytesSize(
10210
0
          this->value());
10211
0
    }
10212
0
10213
0
  }
10214
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
10215
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
10216
0
  _cached_size_ = cached_size;
10217
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
10218
0
  return total_size;
10219
0
}
10220
10221
void ThreatEntryMetadata_MetadataEntry::CheckTypeAndMergeFrom(
10222
0
    const ::google::protobuf::MessageLite& from) {
10223
0
  MergeFrom(*::google::protobuf::down_cast<const ThreatEntryMetadata_MetadataEntry*>(&from));
10224
0
}
10225
10226
0
void ThreatEntryMetadata_MetadataEntry::MergeFrom(const ThreatEntryMetadata_MetadataEntry& from) {
10227
0
// @@protoc_insertion_point(class_specific_merge_from_start:mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry)
10228
0
  GOOGLE_DCHECK_NE(&from, this);
10229
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
10230
0
  ::google::protobuf::uint32 cached_has_bits = 0;
10231
0
  (void) cached_has_bits;
10232
0
10233
0
  cached_has_bits = from._has_bits_[0];
10234
0
  if (cached_has_bits & 3u) {
10235
0
    if (cached_has_bits & 0x00000001u) {
10236
0
      set_has_key();
10237
0
      key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_);
10238
0
    }
10239
0
    if (cached_has_bits & 0x00000002u) {
10240
0
      set_has_value();
10241
0
      value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_);
10242
0
    }
10243
0
  }
10244
0
}
10245
10246
0
void ThreatEntryMetadata_MetadataEntry::CopyFrom(const ThreatEntryMetadata_MetadataEntry& from) {
10247
0
// @@protoc_insertion_point(class_specific_copy_from_start:mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry)
10248
0
  if (&from == this) return;
10249
0
  Clear();
10250
0
  MergeFrom(from);
10251
0
}
10252
10253
0
bool ThreatEntryMetadata_MetadataEntry::IsInitialized() const {
10254
0
  return true;
10255
0
}
10256
10257
0
void ThreatEntryMetadata_MetadataEntry::Swap(ThreatEntryMetadata_MetadataEntry* other) {
10258
0
  if (other == this) return;
10259
0
  InternalSwap(other);
10260
0
}
10261
0
void ThreatEntryMetadata_MetadataEntry::InternalSwap(ThreatEntryMetadata_MetadataEntry* other) {
10262
0
  using std::swap;
10263
0
  key_.Swap(&other->key_);
10264
0
  value_.Swap(&other->value_);
10265
0
  swap(_has_bits_[0], other->_has_bits_[0]);
10266
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
10267
0
  swap(_cached_size_, other->_cached_size_);
10268
0
}
10269
10270
0
::std::string ThreatEntryMetadata_MetadataEntry::GetTypeName() const {
10271
0
  return "mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry";
10272
0
}
10273
10274
#if PROTOBUF_INLINE_NOT_IN_HEADERS
10275
// ThreatEntryMetadata_MetadataEntry
10276
10277
// optional bytes key = 1;
10278
bool ThreatEntryMetadata_MetadataEntry::has_key() const {
10279
  return (_has_bits_[0] & 0x00000001u) != 0;
10280
}
10281
void ThreatEntryMetadata_MetadataEntry::set_has_key() {
10282
  _has_bits_[0] |= 0x00000001u;
10283
}
10284
void ThreatEntryMetadata_MetadataEntry::clear_has_key() {
10285
  _has_bits_[0] &= ~0x00000001u;
10286
}
10287
void ThreatEntryMetadata_MetadataEntry::clear_key() {
10288
  key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
10289
  clear_has_key();
10290
}
10291
const ::std::string& ThreatEntryMetadata_MetadataEntry::key() const {
10292
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry.key)
10293
  return key_.GetNoArena();
10294
}
10295
void ThreatEntryMetadata_MetadataEntry::set_key(const ::std::string& value) {
10296
  set_has_key();
10297
  key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
10298
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry.key)
10299
}
10300
#if LANG_CXX11
10301
void ThreatEntryMetadata_MetadataEntry::set_key(::std::string&& value) {
10302
  set_has_key();
10303
  key_.SetNoArena(
10304
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
10305
  // @@protoc_insertion_point(field_set_rvalue:mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry.key)
10306
}
10307
#endif
10308
void ThreatEntryMetadata_MetadataEntry::set_key(const char* value) {
10309
  GOOGLE_DCHECK(value != NULL);
10310
  set_has_key();
10311
  key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
10312
  // @@protoc_insertion_point(field_set_char:mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry.key)
10313
}
10314
void ThreatEntryMetadata_MetadataEntry::set_key(const void* value, size_t size) {
10315
  set_has_key();
10316
  key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
10317
      ::std::string(reinterpret_cast<const char*>(value), size));
10318
  // @@protoc_insertion_point(field_set_pointer:mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry.key)
10319
}
10320
::std::string* ThreatEntryMetadata_MetadataEntry::mutable_key() {
10321
  set_has_key();
10322
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry.key)
10323
  return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
10324
}
10325
::std::string* ThreatEntryMetadata_MetadataEntry::release_key() {
10326
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry.key)
10327
  clear_has_key();
10328
  return key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
10329
}
10330
void ThreatEntryMetadata_MetadataEntry::set_allocated_key(::std::string* key) {
10331
  if (key != NULL) {
10332
    set_has_key();
10333
  } else {
10334
    clear_has_key();
10335
  }
10336
  key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key);
10337
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry.key)
10338
}
10339
10340
// optional bytes value = 2;
10341
bool ThreatEntryMetadata_MetadataEntry::has_value() const {
10342
  return (_has_bits_[0] & 0x00000002u) != 0;
10343
}
10344
void ThreatEntryMetadata_MetadataEntry::set_has_value() {
10345
  _has_bits_[0] |= 0x00000002u;
10346
}
10347
void ThreatEntryMetadata_MetadataEntry::clear_has_value() {
10348
  _has_bits_[0] &= ~0x00000002u;
10349
}
10350
void ThreatEntryMetadata_MetadataEntry::clear_value() {
10351
  value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
10352
  clear_has_value();
10353
}
10354
const ::std::string& ThreatEntryMetadata_MetadataEntry::value() const {
10355
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry.value)
10356
  return value_.GetNoArena();
10357
}
10358
void ThreatEntryMetadata_MetadataEntry::set_value(const ::std::string& value) {
10359
  set_has_value();
10360
  value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
10361
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry.value)
10362
}
10363
#if LANG_CXX11
10364
void ThreatEntryMetadata_MetadataEntry::set_value(::std::string&& value) {
10365
  set_has_value();
10366
  value_.SetNoArena(
10367
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
10368
  // @@protoc_insertion_point(field_set_rvalue:mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry.value)
10369
}
10370
#endif
10371
void ThreatEntryMetadata_MetadataEntry::set_value(const char* value) {
10372
  GOOGLE_DCHECK(value != NULL);
10373
  set_has_value();
10374
  value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
10375
  // @@protoc_insertion_point(field_set_char:mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry.value)
10376
}
10377
void ThreatEntryMetadata_MetadataEntry::set_value(const void* value, size_t size) {
10378
  set_has_value();
10379
  value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
10380
      ::std::string(reinterpret_cast<const char*>(value), size));
10381
  // @@protoc_insertion_point(field_set_pointer:mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry.value)
10382
}
10383
::std::string* ThreatEntryMetadata_MetadataEntry::mutable_value() {
10384
  set_has_value();
10385
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry.value)
10386
  return value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
10387
}
10388
::std::string* ThreatEntryMetadata_MetadataEntry::release_value() {
10389
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry.value)
10390
  clear_has_value();
10391
  return value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
10392
}
10393
void ThreatEntryMetadata_MetadataEntry::set_allocated_value(::std::string* value) {
10394
  if (value != NULL) {
10395
    set_has_value();
10396
  } else {
10397
    clear_has_value();
10398
  }
10399
  value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
10400
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry.value)
10401
}
10402
10403
#endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
10404
10405
// ===================================================================
10406
10407
#if !defined(_MSC_VER) || _MSC_VER >= 1900
10408
const int ThreatEntryMetadata::kEntriesFieldNumber;
10409
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
10410
10411
ThreatEntryMetadata::ThreatEntryMetadata()
10412
0
  : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) {
10413
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
10414
0
    protobuf_safebrowsing_2eproto::InitDefaults();
10415
0
  }
10416
0
  SharedCtor();
10417
0
  // @@protoc_insertion_point(constructor:mozilla.safebrowsing.ThreatEntryMetadata)
10418
0
}
10419
ThreatEntryMetadata::ThreatEntryMetadata(const ThreatEntryMetadata& from)
10420
  : ::google::protobuf::MessageLite(),
10421
      _internal_metadata_(NULL),
10422
      _has_bits_(from._has_bits_),
10423
      _cached_size_(0),
10424
0
      entries_(from.entries_) {
10425
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
10426
0
  // @@protoc_insertion_point(copy_constructor:mozilla.safebrowsing.ThreatEntryMetadata)
10427
0
}
10428
10429
0
void ThreatEntryMetadata::SharedCtor() {
10430
0
  _cached_size_ = 0;
10431
0
}
10432
10433
0
ThreatEntryMetadata::~ThreatEntryMetadata() {
10434
0
  // @@protoc_insertion_point(destructor:mozilla.safebrowsing.ThreatEntryMetadata)
10435
0
  SharedDtor();
10436
0
}
10437
10438
0
void ThreatEntryMetadata::SharedDtor() {
10439
0
}
10440
10441
0
void ThreatEntryMetadata::SetCachedSize(int size) const {
10442
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
10443
0
  _cached_size_ = size;
10444
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
10445
0
}
10446
0
const ThreatEntryMetadata& ThreatEntryMetadata::default_instance() {
10447
0
  protobuf_safebrowsing_2eproto::InitDefaults();
10448
0
  return *internal_default_instance();
10449
0
}
10450
10451
0
ThreatEntryMetadata* ThreatEntryMetadata::New(::google::protobuf::Arena* arena) const {
10452
0
  ThreatEntryMetadata* n = new ThreatEntryMetadata;
10453
0
  if (arena != NULL) {
10454
0
    arena->Own(n);
10455
0
  }
10456
0
  return n;
10457
0
}
10458
10459
0
void ThreatEntryMetadata::Clear() {
10460
0
// @@protoc_insertion_point(message_clear_start:mozilla.safebrowsing.ThreatEntryMetadata)
10461
0
  ::google::protobuf::uint32 cached_has_bits = 0;
10462
0
  // Prevent compiler warnings about cached_has_bits being unused
10463
0
  (void) cached_has_bits;
10464
0
10465
0
  entries_.Clear();
10466
0
  _has_bits_.Clear();
10467
0
  _internal_metadata_.Clear();
10468
0
}
10469
10470
bool ThreatEntryMetadata::MergePartialFromCodedStream(
10471
0
    ::google::protobuf::io::CodedInputStream* input) {
10472
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
10473
0
  ::google::protobuf::uint32 tag;
10474
0
  ::google::protobuf::io::LazyStringOutputStream unknown_fields_string(
10475
0
      ::google::protobuf::NewPermanentCallback(&_internal_metadata_,
10476
0
          &::google::protobuf::internal::InternalMetadataWithArenaLite::
10477
0
              mutable_unknown_fields));
10478
0
  ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
10479
0
      &unknown_fields_string, false);
10480
0
  // @@protoc_insertion_point(parse_start:mozilla.safebrowsing.ThreatEntryMetadata)
10481
0
  for (;;) {
10482
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
10483
0
    tag = p.first;
10484
0
    if (!p.second) goto handle_unusual;
10485
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
10486
0
      // repeated .mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry entries = 1;
10487
0
      case 1: {
10488
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
10489
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
10490
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
10491
0
                input, add_entries()));
10492
0
        } else {
10493
0
          goto handle_unusual;
10494
0
        }
10495
0
        break;
10496
0
      }
10497
0
10498
0
      default: {
10499
0
      handle_unusual:
10500
0
        if (tag == 0) {
10501
0
          goto success;
10502
0
        }
10503
0
        DO_(::google::protobuf::internal::WireFormatLite::SkipField(
10504
0
            input, tag, &unknown_fields_stream));
10505
0
        break;
10506
0
      }
10507
0
    }
10508
0
  }
10509
0
success:
10510
0
  // @@protoc_insertion_point(parse_success:mozilla.safebrowsing.ThreatEntryMetadata)
10511
0
  return true;
10512
0
failure:
10513
0
  // @@protoc_insertion_point(parse_failure:mozilla.safebrowsing.ThreatEntryMetadata)
10514
0
  return false;
10515
0
#undef DO_
10516
0
}
10517
10518
void ThreatEntryMetadata::SerializeWithCachedSizes(
10519
0
    ::google::protobuf::io::CodedOutputStream* output) const {
10520
0
  // @@protoc_insertion_point(serialize_start:mozilla.safebrowsing.ThreatEntryMetadata)
10521
0
  ::google::protobuf::uint32 cached_has_bits = 0;
10522
0
  (void) cached_has_bits;
10523
0
10524
0
  // repeated .mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry entries = 1;
10525
0
  for (unsigned int i = 0,
10526
0
      n = static_cast<unsigned int>(this->entries_size()); i < n; i++) {
10527
0
    ::google::protobuf::internal::WireFormatLite::WriteMessage(
10528
0
      1, this->entries(static_cast<int>(i)), output);
10529
0
  }
10530
0
10531
0
  output->WriteRaw(_internal_metadata_.unknown_fields().data(),
10532
0
                   static_cast<int>(_internal_metadata_.unknown_fields().size()));
10533
0
  // @@protoc_insertion_point(serialize_end:mozilla.safebrowsing.ThreatEntryMetadata)
10534
0
}
10535
10536
0
size_t ThreatEntryMetadata::ByteSizeLong() const {
10537
0
// @@protoc_insertion_point(message_byte_size_start:mozilla.safebrowsing.ThreatEntryMetadata)
10538
0
  size_t total_size = 0;
10539
0
10540
0
  total_size += _internal_metadata_.unknown_fields().size();
10541
0
10542
0
  // repeated .mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry entries = 1;
10543
0
  {
10544
0
    unsigned int count = static_cast<unsigned int>(this->entries_size());
10545
0
    total_size += 1UL * count;
10546
0
    for (unsigned int i = 0; i < count; i++) {
10547
0
      total_size +=
10548
0
        ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
10549
0
          this->entries(static_cast<int>(i)));
10550
0
    }
10551
0
  }
10552
0
10553
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
10554
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
10555
0
  _cached_size_ = cached_size;
10556
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
10557
0
  return total_size;
10558
0
}
10559
10560
void ThreatEntryMetadata::CheckTypeAndMergeFrom(
10561
0
    const ::google::protobuf::MessageLite& from) {
10562
0
  MergeFrom(*::google::protobuf::down_cast<const ThreatEntryMetadata*>(&from));
10563
0
}
10564
10565
0
void ThreatEntryMetadata::MergeFrom(const ThreatEntryMetadata& from) {
10566
0
// @@protoc_insertion_point(class_specific_merge_from_start:mozilla.safebrowsing.ThreatEntryMetadata)
10567
0
  GOOGLE_DCHECK_NE(&from, this);
10568
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
10569
0
  ::google::protobuf::uint32 cached_has_bits = 0;
10570
0
  (void) cached_has_bits;
10571
0
10572
0
  entries_.MergeFrom(from.entries_);
10573
0
}
10574
10575
0
void ThreatEntryMetadata::CopyFrom(const ThreatEntryMetadata& from) {
10576
0
// @@protoc_insertion_point(class_specific_copy_from_start:mozilla.safebrowsing.ThreatEntryMetadata)
10577
0
  if (&from == this) return;
10578
0
  Clear();
10579
0
  MergeFrom(from);
10580
0
}
10581
10582
0
bool ThreatEntryMetadata::IsInitialized() const {
10583
0
  return true;
10584
0
}
10585
10586
0
void ThreatEntryMetadata::Swap(ThreatEntryMetadata* other) {
10587
0
  if (other == this) return;
10588
0
  InternalSwap(other);
10589
0
}
10590
0
void ThreatEntryMetadata::InternalSwap(ThreatEntryMetadata* other) {
10591
0
  using std::swap;
10592
0
  entries_.InternalSwap(&other->entries_);
10593
0
  swap(_has_bits_[0], other->_has_bits_[0]);
10594
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
10595
0
  swap(_cached_size_, other->_cached_size_);
10596
0
}
10597
10598
0
::std::string ThreatEntryMetadata::GetTypeName() const {
10599
0
  return "mozilla.safebrowsing.ThreatEntryMetadata";
10600
0
}
10601
10602
#if PROTOBUF_INLINE_NOT_IN_HEADERS
10603
// ThreatEntryMetadata
10604
10605
// repeated .mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry entries = 1;
10606
int ThreatEntryMetadata::entries_size() const {
10607
  return entries_.size();
10608
}
10609
void ThreatEntryMetadata::clear_entries() {
10610
  entries_.Clear();
10611
}
10612
const ::mozilla::safebrowsing::ThreatEntryMetadata_MetadataEntry& ThreatEntryMetadata::entries(int index) const {
10613
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatEntryMetadata.entries)
10614
  return entries_.Get(index);
10615
}
10616
::mozilla::safebrowsing::ThreatEntryMetadata_MetadataEntry* ThreatEntryMetadata::mutable_entries(int index) {
10617
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatEntryMetadata.entries)
10618
  return entries_.Mutable(index);
10619
}
10620
::mozilla::safebrowsing::ThreatEntryMetadata_MetadataEntry* ThreatEntryMetadata::add_entries() {
10621
  // @@protoc_insertion_point(field_add:mozilla.safebrowsing.ThreatEntryMetadata.entries)
10622
  return entries_.Add();
10623
}
10624
::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatEntryMetadata_MetadataEntry >*
10625
ThreatEntryMetadata::mutable_entries() {
10626
  // @@protoc_insertion_point(field_mutable_list:mozilla.safebrowsing.ThreatEntryMetadata.entries)
10627
  return &entries_;
10628
}
10629
const ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatEntryMetadata_MetadataEntry >&
10630
ThreatEntryMetadata::entries() const {
10631
  // @@protoc_insertion_point(field_list:mozilla.safebrowsing.ThreatEntryMetadata.entries)
10632
  return entries_;
10633
}
10634
10635
#endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
10636
10637
// ===================================================================
10638
10639
#if !defined(_MSC_VER) || _MSC_VER >= 1900
10640
const int ThreatListDescriptor::kThreatTypeFieldNumber;
10641
const int ThreatListDescriptor::kPlatformTypeFieldNumber;
10642
const int ThreatListDescriptor::kThreatEntryTypeFieldNumber;
10643
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
10644
10645
ThreatListDescriptor::ThreatListDescriptor()
10646
0
  : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) {
10647
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
10648
0
    protobuf_safebrowsing_2eproto::InitDefaults();
10649
0
  }
10650
0
  SharedCtor();
10651
0
  // @@protoc_insertion_point(constructor:mozilla.safebrowsing.ThreatListDescriptor)
10652
0
}
10653
ThreatListDescriptor::ThreatListDescriptor(const ThreatListDescriptor& from)
10654
  : ::google::protobuf::MessageLite(),
10655
      _internal_metadata_(NULL),
10656
      _has_bits_(from._has_bits_),
10657
0
      _cached_size_(0) {
10658
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
10659
0
  ::memcpy(&threat_type_, &from.threat_type_,
10660
0
    static_cast<size_t>(reinterpret_cast<char*>(&threat_entry_type_) -
10661
0
    reinterpret_cast<char*>(&threat_type_)) + sizeof(threat_entry_type_));
10662
0
  // @@protoc_insertion_point(copy_constructor:mozilla.safebrowsing.ThreatListDescriptor)
10663
0
}
10664
10665
0
void ThreatListDescriptor::SharedCtor() {
10666
0
  _cached_size_ = 0;
10667
0
  ::memset(&threat_type_, 0, static_cast<size_t>(
10668
0
      reinterpret_cast<char*>(&threat_entry_type_) -
10669
0
      reinterpret_cast<char*>(&threat_type_)) + sizeof(threat_entry_type_));
10670
0
}
10671
10672
0
ThreatListDescriptor::~ThreatListDescriptor() {
10673
0
  // @@protoc_insertion_point(destructor:mozilla.safebrowsing.ThreatListDescriptor)
10674
0
  SharedDtor();
10675
0
}
10676
10677
0
void ThreatListDescriptor::SharedDtor() {
10678
0
}
10679
10680
0
void ThreatListDescriptor::SetCachedSize(int size) const {
10681
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
10682
0
  _cached_size_ = size;
10683
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
10684
0
}
10685
0
const ThreatListDescriptor& ThreatListDescriptor::default_instance() {
10686
0
  protobuf_safebrowsing_2eproto::InitDefaults();
10687
0
  return *internal_default_instance();
10688
0
}
10689
10690
0
ThreatListDescriptor* ThreatListDescriptor::New(::google::protobuf::Arena* arena) const {
10691
0
  ThreatListDescriptor* n = new ThreatListDescriptor;
10692
0
  if (arena != NULL) {
10693
0
    arena->Own(n);
10694
0
  }
10695
0
  return n;
10696
0
}
10697
10698
0
void ThreatListDescriptor::Clear() {
10699
0
// @@protoc_insertion_point(message_clear_start:mozilla.safebrowsing.ThreatListDescriptor)
10700
0
  ::google::protobuf::uint32 cached_has_bits = 0;
10701
0
  // Prevent compiler warnings about cached_has_bits being unused
10702
0
  (void) cached_has_bits;
10703
0
10704
0
  cached_has_bits = _has_bits_[0];
10705
0
  if (cached_has_bits & 7u) {
10706
0
    ::memset(&threat_type_, 0, static_cast<size_t>(
10707
0
        reinterpret_cast<char*>(&threat_entry_type_) -
10708
0
        reinterpret_cast<char*>(&threat_type_)) + sizeof(threat_entry_type_));
10709
0
  }
10710
0
  _has_bits_.Clear();
10711
0
  _internal_metadata_.Clear();
10712
0
}
10713
10714
bool ThreatListDescriptor::MergePartialFromCodedStream(
10715
0
    ::google::protobuf::io::CodedInputStream* input) {
10716
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
10717
0
  ::google::protobuf::uint32 tag;
10718
0
  ::google::protobuf::io::LazyStringOutputStream unknown_fields_string(
10719
0
      ::google::protobuf::NewPermanentCallback(&_internal_metadata_,
10720
0
          &::google::protobuf::internal::InternalMetadataWithArenaLite::
10721
0
              mutable_unknown_fields));
10722
0
  ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
10723
0
      &unknown_fields_string, false);
10724
0
  // @@protoc_insertion_point(parse_start:mozilla.safebrowsing.ThreatListDescriptor)
10725
0
  for (;;) {
10726
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
10727
0
    tag = p.first;
10728
0
    if (!p.second) goto handle_unusual;
10729
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
10730
0
      // optional .mozilla.safebrowsing.ThreatType threat_type = 1;
10731
0
      case 1: {
10732
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
10733
0
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
10734
0
          int value;
10735
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10736
0
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
10737
0
                 input, &value)));
10738
0
          if (::mozilla::safebrowsing::ThreatType_IsValid(value)) {
10739
0
            set_threat_type(static_cast< ::mozilla::safebrowsing::ThreatType >(value));
10740
0
          } else {
10741
0
            unknown_fields_stream.WriteVarint32(8u);
10742
0
            unknown_fields_stream.WriteVarint32(
10743
0
                static_cast< ::google::protobuf::uint32>(value));
10744
0
          }
10745
0
        } else {
10746
0
          goto handle_unusual;
10747
0
        }
10748
0
        break;
10749
0
      }
10750
0
10751
0
      // optional .mozilla.safebrowsing.PlatformType platform_type = 2;
10752
0
      case 2: {
10753
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
10754
0
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
10755
0
          int value;
10756
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10757
0
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
10758
0
                 input, &value)));
10759
0
          if (::mozilla::safebrowsing::PlatformType_IsValid(value)) {
10760
0
            set_platform_type(static_cast< ::mozilla::safebrowsing::PlatformType >(value));
10761
0
          } else {
10762
0
            unknown_fields_stream.WriteVarint32(16u);
10763
0
            unknown_fields_stream.WriteVarint32(
10764
0
                static_cast< ::google::protobuf::uint32>(value));
10765
0
          }
10766
0
        } else {
10767
0
          goto handle_unusual;
10768
0
        }
10769
0
        break;
10770
0
      }
10771
0
10772
0
      // optional .mozilla.safebrowsing.ThreatEntryType threat_entry_type = 3;
10773
0
      case 3: {
10774
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
10775
0
            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
10776
0
          int value;
10777
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10778
0
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
10779
0
                 input, &value)));
10780
0
          if (::mozilla::safebrowsing::ThreatEntryType_IsValid(value)) {
10781
0
            set_threat_entry_type(static_cast< ::mozilla::safebrowsing::ThreatEntryType >(value));
10782
0
          } else {
10783
0
            unknown_fields_stream.WriteVarint32(24u);
10784
0
            unknown_fields_stream.WriteVarint32(
10785
0
                static_cast< ::google::protobuf::uint32>(value));
10786
0
          }
10787
0
        } else {
10788
0
          goto handle_unusual;
10789
0
        }
10790
0
        break;
10791
0
      }
10792
0
10793
0
      default: {
10794
0
      handle_unusual:
10795
0
        if (tag == 0) {
10796
0
          goto success;
10797
0
        }
10798
0
        DO_(::google::protobuf::internal::WireFormatLite::SkipField(
10799
0
            input, tag, &unknown_fields_stream));
10800
0
        break;
10801
0
      }
10802
0
    }
10803
0
  }
10804
0
success:
10805
0
  // @@protoc_insertion_point(parse_success:mozilla.safebrowsing.ThreatListDescriptor)
10806
0
  return true;
10807
0
failure:
10808
0
  // @@protoc_insertion_point(parse_failure:mozilla.safebrowsing.ThreatListDescriptor)
10809
0
  return false;
10810
0
#undef DO_
10811
0
}
10812
10813
void ThreatListDescriptor::SerializeWithCachedSizes(
10814
0
    ::google::protobuf::io::CodedOutputStream* output) const {
10815
0
  // @@protoc_insertion_point(serialize_start:mozilla.safebrowsing.ThreatListDescriptor)
10816
0
  ::google::protobuf::uint32 cached_has_bits = 0;
10817
0
  (void) cached_has_bits;
10818
0
10819
0
  cached_has_bits = _has_bits_[0];
10820
0
  // optional .mozilla.safebrowsing.ThreatType threat_type = 1;
10821
0
  if (cached_has_bits & 0x00000001u) {
10822
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
10823
0
      1, this->threat_type(), output);
10824
0
  }
10825
0
10826
0
  // optional .mozilla.safebrowsing.PlatformType platform_type = 2;
10827
0
  if (cached_has_bits & 0x00000002u) {
10828
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
10829
0
      2, this->platform_type(), output);
10830
0
  }
10831
0
10832
0
  // optional .mozilla.safebrowsing.ThreatEntryType threat_entry_type = 3;
10833
0
  if (cached_has_bits & 0x00000004u) {
10834
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
10835
0
      3, this->threat_entry_type(), output);
10836
0
  }
10837
0
10838
0
  output->WriteRaw(_internal_metadata_.unknown_fields().data(),
10839
0
                   static_cast<int>(_internal_metadata_.unknown_fields().size()));
10840
0
  // @@protoc_insertion_point(serialize_end:mozilla.safebrowsing.ThreatListDescriptor)
10841
0
}
10842
10843
0
size_t ThreatListDescriptor::ByteSizeLong() const {
10844
0
// @@protoc_insertion_point(message_byte_size_start:mozilla.safebrowsing.ThreatListDescriptor)
10845
0
  size_t total_size = 0;
10846
0
10847
0
  total_size += _internal_metadata_.unknown_fields().size();
10848
0
10849
0
  if (_has_bits_[0 / 32] & 7u) {
10850
0
    // optional .mozilla.safebrowsing.ThreatType threat_type = 1;
10851
0
    if (has_threat_type()) {
10852
0
      total_size += 1 +
10853
0
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->threat_type());
10854
0
    }
10855
0
10856
0
    // optional .mozilla.safebrowsing.PlatformType platform_type = 2;
10857
0
    if (has_platform_type()) {
10858
0
      total_size += 1 +
10859
0
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->platform_type());
10860
0
    }
10861
0
10862
0
    // optional .mozilla.safebrowsing.ThreatEntryType threat_entry_type = 3;
10863
0
    if (has_threat_entry_type()) {
10864
0
      total_size += 1 +
10865
0
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->threat_entry_type());
10866
0
    }
10867
0
10868
0
  }
10869
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
10870
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
10871
0
  _cached_size_ = cached_size;
10872
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
10873
0
  return total_size;
10874
0
}
10875
10876
void ThreatListDescriptor::CheckTypeAndMergeFrom(
10877
0
    const ::google::protobuf::MessageLite& from) {
10878
0
  MergeFrom(*::google::protobuf::down_cast<const ThreatListDescriptor*>(&from));
10879
0
}
10880
10881
0
void ThreatListDescriptor::MergeFrom(const ThreatListDescriptor& from) {
10882
0
// @@protoc_insertion_point(class_specific_merge_from_start:mozilla.safebrowsing.ThreatListDescriptor)
10883
0
  GOOGLE_DCHECK_NE(&from, this);
10884
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
10885
0
  ::google::protobuf::uint32 cached_has_bits = 0;
10886
0
  (void) cached_has_bits;
10887
0
10888
0
  cached_has_bits = from._has_bits_[0];
10889
0
  if (cached_has_bits & 7u) {
10890
0
    if (cached_has_bits & 0x00000001u) {
10891
0
      threat_type_ = from.threat_type_;
10892
0
    }
10893
0
    if (cached_has_bits & 0x00000002u) {
10894
0
      platform_type_ = from.platform_type_;
10895
0
    }
10896
0
    if (cached_has_bits & 0x00000004u) {
10897
0
      threat_entry_type_ = from.threat_entry_type_;
10898
0
    }
10899
0
    _has_bits_[0] |= cached_has_bits;
10900
0
  }
10901
0
}
10902
10903
0
void ThreatListDescriptor::CopyFrom(const ThreatListDescriptor& from) {
10904
0
// @@protoc_insertion_point(class_specific_copy_from_start:mozilla.safebrowsing.ThreatListDescriptor)
10905
0
  if (&from == this) return;
10906
0
  Clear();
10907
0
  MergeFrom(from);
10908
0
}
10909
10910
0
bool ThreatListDescriptor::IsInitialized() const {
10911
0
  return true;
10912
0
}
10913
10914
0
void ThreatListDescriptor::Swap(ThreatListDescriptor* other) {
10915
0
  if (other == this) return;
10916
0
  InternalSwap(other);
10917
0
}
10918
0
void ThreatListDescriptor::InternalSwap(ThreatListDescriptor* other) {
10919
0
  using std::swap;
10920
0
  swap(threat_type_, other->threat_type_);
10921
0
  swap(platform_type_, other->platform_type_);
10922
0
  swap(threat_entry_type_, other->threat_entry_type_);
10923
0
  swap(_has_bits_[0], other->_has_bits_[0]);
10924
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
10925
0
  swap(_cached_size_, other->_cached_size_);
10926
0
}
10927
10928
0
::std::string ThreatListDescriptor::GetTypeName() const {
10929
0
  return "mozilla.safebrowsing.ThreatListDescriptor";
10930
0
}
10931
10932
#if PROTOBUF_INLINE_NOT_IN_HEADERS
10933
// ThreatListDescriptor
10934
10935
// optional .mozilla.safebrowsing.ThreatType threat_type = 1;
10936
bool ThreatListDescriptor::has_threat_type() const {
10937
  return (_has_bits_[0] & 0x00000001u) != 0;
10938
}
10939
void ThreatListDescriptor::set_has_threat_type() {
10940
  _has_bits_[0] |= 0x00000001u;
10941
}
10942
void ThreatListDescriptor::clear_has_threat_type() {
10943
  _has_bits_[0] &= ~0x00000001u;
10944
}
10945
void ThreatListDescriptor::clear_threat_type() {
10946
  threat_type_ = 0;
10947
  clear_has_threat_type();
10948
}
10949
::mozilla::safebrowsing::ThreatType ThreatListDescriptor::threat_type() const {
10950
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatListDescriptor.threat_type)
10951
  return static_cast< ::mozilla::safebrowsing::ThreatType >(threat_type_);
10952
}
10953
void ThreatListDescriptor::set_threat_type(::mozilla::safebrowsing::ThreatType value) {
10954
  assert(::mozilla::safebrowsing::ThreatType_IsValid(value));
10955
  set_has_threat_type();
10956
  threat_type_ = value;
10957
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatListDescriptor.threat_type)
10958
}
10959
10960
// optional .mozilla.safebrowsing.PlatformType platform_type = 2;
10961
bool ThreatListDescriptor::has_platform_type() const {
10962
  return (_has_bits_[0] & 0x00000002u) != 0;
10963
}
10964
void ThreatListDescriptor::set_has_platform_type() {
10965
  _has_bits_[0] |= 0x00000002u;
10966
}
10967
void ThreatListDescriptor::clear_has_platform_type() {
10968
  _has_bits_[0] &= ~0x00000002u;
10969
}
10970
void ThreatListDescriptor::clear_platform_type() {
10971
  platform_type_ = 0;
10972
  clear_has_platform_type();
10973
}
10974
::mozilla::safebrowsing::PlatformType ThreatListDescriptor::platform_type() const {
10975
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatListDescriptor.platform_type)
10976
  return static_cast< ::mozilla::safebrowsing::PlatformType >(platform_type_);
10977
}
10978
void ThreatListDescriptor::set_platform_type(::mozilla::safebrowsing::PlatformType value) {
10979
  assert(::mozilla::safebrowsing::PlatformType_IsValid(value));
10980
  set_has_platform_type();
10981
  platform_type_ = value;
10982
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatListDescriptor.platform_type)
10983
}
10984
10985
// optional .mozilla.safebrowsing.ThreatEntryType threat_entry_type = 3;
10986
bool ThreatListDescriptor::has_threat_entry_type() const {
10987
  return (_has_bits_[0] & 0x00000004u) != 0;
10988
}
10989
void ThreatListDescriptor::set_has_threat_entry_type() {
10990
  _has_bits_[0] |= 0x00000004u;
10991
}
10992
void ThreatListDescriptor::clear_has_threat_entry_type() {
10993
  _has_bits_[0] &= ~0x00000004u;
10994
}
10995
void ThreatListDescriptor::clear_threat_entry_type() {
10996
  threat_entry_type_ = 0;
10997
  clear_has_threat_entry_type();
10998
}
10999
::mozilla::safebrowsing::ThreatEntryType ThreatListDescriptor::threat_entry_type() const {
11000
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatListDescriptor.threat_entry_type)
11001
  return static_cast< ::mozilla::safebrowsing::ThreatEntryType >(threat_entry_type_);
11002
}
11003
void ThreatListDescriptor::set_threat_entry_type(::mozilla::safebrowsing::ThreatEntryType value) {
11004
  assert(::mozilla::safebrowsing::ThreatEntryType_IsValid(value));
11005
  set_has_threat_entry_type();
11006
  threat_entry_type_ = value;
11007
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatListDescriptor.threat_entry_type)
11008
}
11009
11010
#endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
11011
11012
// ===================================================================
11013
11014
#if !defined(_MSC_VER) || _MSC_VER >= 1900
11015
const int ListThreatListsResponse::kThreatListsFieldNumber;
11016
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
11017
11018
ListThreatListsResponse::ListThreatListsResponse()
11019
0
  : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) {
11020
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
11021
0
    protobuf_safebrowsing_2eproto::InitDefaults();
11022
0
  }
11023
0
  SharedCtor();
11024
0
  // @@protoc_insertion_point(constructor:mozilla.safebrowsing.ListThreatListsResponse)
11025
0
}
11026
ListThreatListsResponse::ListThreatListsResponse(const ListThreatListsResponse& from)
11027
  : ::google::protobuf::MessageLite(),
11028
      _internal_metadata_(NULL),
11029
      _has_bits_(from._has_bits_),
11030
      _cached_size_(0),
11031
0
      threat_lists_(from.threat_lists_) {
11032
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
11033
0
  // @@protoc_insertion_point(copy_constructor:mozilla.safebrowsing.ListThreatListsResponse)
11034
0
}
11035
11036
0
void ListThreatListsResponse::SharedCtor() {
11037
0
  _cached_size_ = 0;
11038
0
}
11039
11040
0
ListThreatListsResponse::~ListThreatListsResponse() {
11041
0
  // @@protoc_insertion_point(destructor:mozilla.safebrowsing.ListThreatListsResponse)
11042
0
  SharedDtor();
11043
0
}
11044
11045
0
void ListThreatListsResponse::SharedDtor() {
11046
0
}
11047
11048
0
void ListThreatListsResponse::SetCachedSize(int size) const {
11049
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
11050
0
  _cached_size_ = size;
11051
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
11052
0
}
11053
0
const ListThreatListsResponse& ListThreatListsResponse::default_instance() {
11054
0
  protobuf_safebrowsing_2eproto::InitDefaults();
11055
0
  return *internal_default_instance();
11056
0
}
11057
11058
0
ListThreatListsResponse* ListThreatListsResponse::New(::google::protobuf::Arena* arena) const {
11059
0
  ListThreatListsResponse* n = new ListThreatListsResponse;
11060
0
  if (arena != NULL) {
11061
0
    arena->Own(n);
11062
0
  }
11063
0
  return n;
11064
0
}
11065
11066
0
void ListThreatListsResponse::Clear() {
11067
0
// @@protoc_insertion_point(message_clear_start:mozilla.safebrowsing.ListThreatListsResponse)
11068
0
  ::google::protobuf::uint32 cached_has_bits = 0;
11069
0
  // Prevent compiler warnings about cached_has_bits being unused
11070
0
  (void) cached_has_bits;
11071
0
11072
0
  threat_lists_.Clear();
11073
0
  _has_bits_.Clear();
11074
0
  _internal_metadata_.Clear();
11075
0
}
11076
11077
bool ListThreatListsResponse::MergePartialFromCodedStream(
11078
0
    ::google::protobuf::io::CodedInputStream* input) {
11079
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
11080
0
  ::google::protobuf::uint32 tag;
11081
0
  ::google::protobuf::io::LazyStringOutputStream unknown_fields_string(
11082
0
      ::google::protobuf::NewPermanentCallback(&_internal_metadata_,
11083
0
          &::google::protobuf::internal::InternalMetadataWithArenaLite::
11084
0
              mutable_unknown_fields));
11085
0
  ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
11086
0
      &unknown_fields_string, false);
11087
0
  // @@protoc_insertion_point(parse_start:mozilla.safebrowsing.ListThreatListsResponse)
11088
0
  for (;;) {
11089
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
11090
0
    tag = p.first;
11091
0
    if (!p.second) goto handle_unusual;
11092
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
11093
0
      // repeated .mozilla.safebrowsing.ThreatListDescriptor threat_lists = 1;
11094
0
      case 1: {
11095
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
11096
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
11097
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
11098
0
                input, add_threat_lists()));
11099
0
        } else {
11100
0
          goto handle_unusual;
11101
0
        }
11102
0
        break;
11103
0
      }
11104
0
11105
0
      default: {
11106
0
      handle_unusual:
11107
0
        if (tag == 0) {
11108
0
          goto success;
11109
0
        }
11110
0
        DO_(::google::protobuf::internal::WireFormatLite::SkipField(
11111
0
            input, tag, &unknown_fields_stream));
11112
0
        break;
11113
0
      }
11114
0
    }
11115
0
  }
11116
0
success:
11117
0
  // @@protoc_insertion_point(parse_success:mozilla.safebrowsing.ListThreatListsResponse)
11118
0
  return true;
11119
0
failure:
11120
0
  // @@protoc_insertion_point(parse_failure:mozilla.safebrowsing.ListThreatListsResponse)
11121
0
  return false;
11122
0
#undef DO_
11123
0
}
11124
11125
void ListThreatListsResponse::SerializeWithCachedSizes(
11126
0
    ::google::protobuf::io::CodedOutputStream* output) const {
11127
0
  // @@protoc_insertion_point(serialize_start:mozilla.safebrowsing.ListThreatListsResponse)
11128
0
  ::google::protobuf::uint32 cached_has_bits = 0;
11129
0
  (void) cached_has_bits;
11130
0
11131
0
  // repeated .mozilla.safebrowsing.ThreatListDescriptor threat_lists = 1;
11132
0
  for (unsigned int i = 0,
11133
0
      n = static_cast<unsigned int>(this->threat_lists_size()); i < n; i++) {
11134
0
    ::google::protobuf::internal::WireFormatLite::WriteMessage(
11135
0
      1, this->threat_lists(static_cast<int>(i)), output);
11136
0
  }
11137
0
11138
0
  output->WriteRaw(_internal_metadata_.unknown_fields().data(),
11139
0
                   static_cast<int>(_internal_metadata_.unknown_fields().size()));
11140
0
  // @@protoc_insertion_point(serialize_end:mozilla.safebrowsing.ListThreatListsResponse)
11141
0
}
11142
11143
0
size_t ListThreatListsResponse::ByteSizeLong() const {
11144
0
// @@protoc_insertion_point(message_byte_size_start:mozilla.safebrowsing.ListThreatListsResponse)
11145
0
  size_t total_size = 0;
11146
0
11147
0
  total_size += _internal_metadata_.unknown_fields().size();
11148
0
11149
0
  // repeated .mozilla.safebrowsing.ThreatListDescriptor threat_lists = 1;
11150
0
  {
11151
0
    unsigned int count = static_cast<unsigned int>(this->threat_lists_size());
11152
0
    total_size += 1UL * count;
11153
0
    for (unsigned int i = 0; i < count; i++) {
11154
0
      total_size +=
11155
0
        ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
11156
0
          this->threat_lists(static_cast<int>(i)));
11157
0
    }
11158
0
  }
11159
0
11160
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
11161
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
11162
0
  _cached_size_ = cached_size;
11163
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
11164
0
  return total_size;
11165
0
}
11166
11167
void ListThreatListsResponse::CheckTypeAndMergeFrom(
11168
0
    const ::google::protobuf::MessageLite& from) {
11169
0
  MergeFrom(*::google::protobuf::down_cast<const ListThreatListsResponse*>(&from));
11170
0
}
11171
11172
0
void ListThreatListsResponse::MergeFrom(const ListThreatListsResponse& from) {
11173
0
// @@protoc_insertion_point(class_specific_merge_from_start:mozilla.safebrowsing.ListThreatListsResponse)
11174
0
  GOOGLE_DCHECK_NE(&from, this);
11175
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
11176
0
  ::google::protobuf::uint32 cached_has_bits = 0;
11177
0
  (void) cached_has_bits;
11178
0
11179
0
  threat_lists_.MergeFrom(from.threat_lists_);
11180
0
}
11181
11182
0
void ListThreatListsResponse::CopyFrom(const ListThreatListsResponse& from) {
11183
0
// @@protoc_insertion_point(class_specific_copy_from_start:mozilla.safebrowsing.ListThreatListsResponse)
11184
0
  if (&from == this) return;
11185
0
  Clear();
11186
0
  MergeFrom(from);
11187
0
}
11188
11189
0
bool ListThreatListsResponse::IsInitialized() const {
11190
0
  return true;
11191
0
}
11192
11193
0
void ListThreatListsResponse::Swap(ListThreatListsResponse* other) {
11194
0
  if (other == this) return;
11195
0
  InternalSwap(other);
11196
0
}
11197
0
void ListThreatListsResponse::InternalSwap(ListThreatListsResponse* other) {
11198
0
  using std::swap;
11199
0
  threat_lists_.InternalSwap(&other->threat_lists_);
11200
0
  swap(_has_bits_[0], other->_has_bits_[0]);
11201
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
11202
0
  swap(_cached_size_, other->_cached_size_);
11203
0
}
11204
11205
0
::std::string ListThreatListsResponse::GetTypeName() const {
11206
0
  return "mozilla.safebrowsing.ListThreatListsResponse";
11207
0
}
11208
11209
#if PROTOBUF_INLINE_NOT_IN_HEADERS
11210
// ListThreatListsResponse
11211
11212
// repeated .mozilla.safebrowsing.ThreatListDescriptor threat_lists = 1;
11213
int ListThreatListsResponse::threat_lists_size() const {
11214
  return threat_lists_.size();
11215
}
11216
void ListThreatListsResponse::clear_threat_lists() {
11217
  threat_lists_.Clear();
11218
}
11219
const ::mozilla::safebrowsing::ThreatListDescriptor& ListThreatListsResponse::threat_lists(int index) const {
11220
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ListThreatListsResponse.threat_lists)
11221
  return threat_lists_.Get(index);
11222
}
11223
::mozilla::safebrowsing::ThreatListDescriptor* ListThreatListsResponse::mutable_threat_lists(int index) {
11224
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ListThreatListsResponse.threat_lists)
11225
  return threat_lists_.Mutable(index);
11226
}
11227
::mozilla::safebrowsing::ThreatListDescriptor* ListThreatListsResponse::add_threat_lists() {
11228
  // @@protoc_insertion_point(field_add:mozilla.safebrowsing.ListThreatListsResponse.threat_lists)
11229
  return threat_lists_.Add();
11230
}
11231
::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatListDescriptor >*
11232
ListThreatListsResponse::mutable_threat_lists() {
11233
  // @@protoc_insertion_point(field_mutable_list:mozilla.safebrowsing.ListThreatListsResponse.threat_lists)
11234
  return &threat_lists_;
11235
}
11236
const ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatListDescriptor >&
11237
ListThreatListsResponse::threat_lists() const {
11238
  // @@protoc_insertion_point(field_list:mozilla.safebrowsing.ListThreatListsResponse.threat_lists)
11239
  return threat_lists_;
11240
}
11241
11242
#endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
11243
11244
// ===================================================================
11245
11246
#if !defined(_MSC_VER) || _MSC_VER >= 1900
11247
const int Duration::kSecondsFieldNumber;
11248
const int Duration::kNanosFieldNumber;
11249
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
11250
11251
Duration::Duration()
11252
0
  : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) {
11253
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
11254
0
    protobuf_safebrowsing_2eproto::InitDefaults();
11255
0
  }
11256
0
  SharedCtor();
11257
0
  // @@protoc_insertion_point(constructor:mozilla.safebrowsing.Duration)
11258
0
}
11259
Duration::Duration(const Duration& from)
11260
  : ::google::protobuf::MessageLite(),
11261
      _internal_metadata_(NULL),
11262
      _has_bits_(from._has_bits_),
11263
0
      _cached_size_(0) {
11264
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
11265
0
  ::memcpy(&seconds_, &from.seconds_,
11266
0
    static_cast<size_t>(reinterpret_cast<char*>(&nanos_) -
11267
0
    reinterpret_cast<char*>(&seconds_)) + sizeof(nanos_));
11268
0
  // @@protoc_insertion_point(copy_constructor:mozilla.safebrowsing.Duration)
11269
0
}
11270
11271
0
void Duration::SharedCtor() {
11272
0
  _cached_size_ = 0;
11273
0
  ::memset(&seconds_, 0, static_cast<size_t>(
11274
0
      reinterpret_cast<char*>(&nanos_) -
11275
0
      reinterpret_cast<char*>(&seconds_)) + sizeof(nanos_));
11276
0
}
11277
11278
0
Duration::~Duration() {
11279
0
  // @@protoc_insertion_point(destructor:mozilla.safebrowsing.Duration)
11280
0
  SharedDtor();
11281
0
}
11282
11283
0
void Duration::SharedDtor() {
11284
0
}
11285
11286
0
void Duration::SetCachedSize(int size) const {
11287
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
11288
0
  _cached_size_ = size;
11289
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
11290
0
}
11291
0
const Duration& Duration::default_instance() {
11292
0
  protobuf_safebrowsing_2eproto::InitDefaults();
11293
0
  return *internal_default_instance();
11294
0
}
11295
11296
0
Duration* Duration::New(::google::protobuf::Arena* arena) const {
11297
0
  Duration* n = new Duration;
11298
0
  if (arena != NULL) {
11299
0
    arena->Own(n);
11300
0
  }
11301
0
  return n;
11302
0
}
11303
11304
0
void Duration::Clear() {
11305
0
// @@protoc_insertion_point(message_clear_start:mozilla.safebrowsing.Duration)
11306
0
  ::google::protobuf::uint32 cached_has_bits = 0;
11307
0
  // Prevent compiler warnings about cached_has_bits being unused
11308
0
  (void) cached_has_bits;
11309
0
11310
0
  cached_has_bits = _has_bits_[0];
11311
0
  if (cached_has_bits & 3u) {
11312
0
    ::memset(&seconds_, 0, static_cast<size_t>(
11313
0
        reinterpret_cast<char*>(&nanos_) -
11314
0
        reinterpret_cast<char*>(&seconds_)) + sizeof(nanos_));
11315
0
  }
11316
0
  _has_bits_.Clear();
11317
0
  _internal_metadata_.Clear();
11318
0
}
11319
11320
bool Duration::MergePartialFromCodedStream(
11321
0
    ::google::protobuf::io::CodedInputStream* input) {
11322
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
11323
0
  ::google::protobuf::uint32 tag;
11324
0
  ::google::protobuf::io::LazyStringOutputStream unknown_fields_string(
11325
0
      ::google::protobuf::NewPermanentCallback(&_internal_metadata_,
11326
0
          &::google::protobuf::internal::InternalMetadataWithArenaLite::
11327
0
              mutable_unknown_fields));
11328
0
  ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
11329
0
      &unknown_fields_string, false);
11330
0
  // @@protoc_insertion_point(parse_start:mozilla.safebrowsing.Duration)
11331
0
  for (;;) {
11332
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
11333
0
    tag = p.first;
11334
0
    if (!p.second) goto handle_unusual;
11335
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
11336
0
      // optional int64 seconds = 1;
11337
0
      case 1: {
11338
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
11339
0
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
11340
0
          set_has_seconds();
11341
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
11342
0
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
11343
0
                 input, &seconds_)));
11344
0
        } else {
11345
0
          goto handle_unusual;
11346
0
        }
11347
0
        break;
11348
0
      }
11349
0
11350
0
      // optional int32 nanos = 2;
11351
0
      case 2: {
11352
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
11353
0
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
11354
0
          set_has_nanos();
11355
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
11356
0
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
11357
0
                 input, &nanos_)));
11358
0
        } else {
11359
0
          goto handle_unusual;
11360
0
        }
11361
0
        break;
11362
0
      }
11363
0
11364
0
      default: {
11365
0
      handle_unusual:
11366
0
        if (tag == 0) {
11367
0
          goto success;
11368
0
        }
11369
0
        DO_(::google::protobuf::internal::WireFormatLite::SkipField(
11370
0
            input, tag, &unknown_fields_stream));
11371
0
        break;
11372
0
      }
11373
0
    }
11374
0
  }
11375
0
success:
11376
0
  // @@protoc_insertion_point(parse_success:mozilla.safebrowsing.Duration)
11377
0
  return true;
11378
0
failure:
11379
0
  // @@protoc_insertion_point(parse_failure:mozilla.safebrowsing.Duration)
11380
0
  return false;
11381
0
#undef DO_
11382
0
}
11383
11384
void Duration::SerializeWithCachedSizes(
11385
0
    ::google::protobuf::io::CodedOutputStream* output) const {
11386
0
  // @@protoc_insertion_point(serialize_start:mozilla.safebrowsing.Duration)
11387
0
  ::google::protobuf::uint32 cached_has_bits = 0;
11388
0
  (void) cached_has_bits;
11389
0
11390
0
  cached_has_bits = _has_bits_[0];
11391
0
  // optional int64 seconds = 1;
11392
0
  if (cached_has_bits & 0x00000001u) {
11393
0
    ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->seconds(), output);
11394
0
  }
11395
0
11396
0
  // optional int32 nanos = 2;
11397
0
  if (cached_has_bits & 0x00000002u) {
11398
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->nanos(), output);
11399
0
  }
11400
0
11401
0
  output->WriteRaw(_internal_metadata_.unknown_fields().data(),
11402
0
                   static_cast<int>(_internal_metadata_.unknown_fields().size()));
11403
0
  // @@protoc_insertion_point(serialize_end:mozilla.safebrowsing.Duration)
11404
0
}
11405
11406
0
size_t Duration::ByteSizeLong() const {
11407
0
// @@protoc_insertion_point(message_byte_size_start:mozilla.safebrowsing.Duration)
11408
0
  size_t total_size = 0;
11409
0
11410
0
  total_size += _internal_metadata_.unknown_fields().size();
11411
0
11412
0
  if (_has_bits_[0 / 32] & 3u) {
11413
0
    // optional int64 seconds = 1;
11414
0
    if (has_seconds()) {
11415
0
      total_size += 1 +
11416
0
        ::google::protobuf::internal::WireFormatLite::Int64Size(
11417
0
          this->seconds());
11418
0
    }
11419
0
11420
0
    // optional int32 nanos = 2;
11421
0
    if (has_nanos()) {
11422
0
      total_size += 1 +
11423
0
        ::google::protobuf::internal::WireFormatLite::Int32Size(
11424
0
          this->nanos());
11425
0
    }
11426
0
11427
0
  }
11428
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
11429
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
11430
0
  _cached_size_ = cached_size;
11431
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
11432
0
  return total_size;
11433
0
}
11434
11435
void Duration::CheckTypeAndMergeFrom(
11436
0
    const ::google::protobuf::MessageLite& from) {
11437
0
  MergeFrom(*::google::protobuf::down_cast<const Duration*>(&from));
11438
0
}
11439
11440
0
void Duration::MergeFrom(const Duration& from) {
11441
0
// @@protoc_insertion_point(class_specific_merge_from_start:mozilla.safebrowsing.Duration)
11442
0
  GOOGLE_DCHECK_NE(&from, this);
11443
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
11444
0
  ::google::protobuf::uint32 cached_has_bits = 0;
11445
0
  (void) cached_has_bits;
11446
0
11447
0
  cached_has_bits = from._has_bits_[0];
11448
0
  if (cached_has_bits & 3u) {
11449
0
    if (cached_has_bits & 0x00000001u) {
11450
0
      seconds_ = from.seconds_;
11451
0
    }
11452
0
    if (cached_has_bits & 0x00000002u) {
11453
0
      nanos_ = from.nanos_;
11454
0
    }
11455
0
    _has_bits_[0] |= cached_has_bits;
11456
0
  }
11457
0
}
11458
11459
0
void Duration::CopyFrom(const Duration& from) {
11460
0
// @@protoc_insertion_point(class_specific_copy_from_start:mozilla.safebrowsing.Duration)
11461
0
  if (&from == this) return;
11462
0
  Clear();
11463
0
  MergeFrom(from);
11464
0
}
11465
11466
0
bool Duration::IsInitialized() const {
11467
0
  return true;
11468
0
}
11469
11470
0
void Duration::Swap(Duration* other) {
11471
0
  if (other == this) return;
11472
0
  InternalSwap(other);
11473
0
}
11474
0
void Duration::InternalSwap(Duration* other) {
11475
0
  using std::swap;
11476
0
  swap(seconds_, other->seconds_);
11477
0
  swap(nanos_, other->nanos_);
11478
0
  swap(_has_bits_[0], other->_has_bits_[0]);
11479
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
11480
0
  swap(_cached_size_, other->_cached_size_);
11481
0
}
11482
11483
0
::std::string Duration::GetTypeName() const {
11484
0
  return "mozilla.safebrowsing.Duration";
11485
0
}
11486
11487
#if PROTOBUF_INLINE_NOT_IN_HEADERS
11488
// Duration
11489
11490
// optional int64 seconds = 1;
11491
bool Duration::has_seconds() const {
11492
  return (_has_bits_[0] & 0x00000001u) != 0;
11493
}
11494
void Duration::set_has_seconds() {
11495
  _has_bits_[0] |= 0x00000001u;
11496
}
11497
void Duration::clear_has_seconds() {
11498
  _has_bits_[0] &= ~0x00000001u;
11499
}
11500
void Duration::clear_seconds() {
11501
  seconds_ = GOOGLE_LONGLONG(0);
11502
  clear_has_seconds();
11503
}
11504
::google::protobuf::int64 Duration::seconds() const {
11505
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.Duration.seconds)
11506
  return seconds_;
11507
}
11508
void Duration::set_seconds(::google::protobuf::int64 value) {
11509
  set_has_seconds();
11510
  seconds_ = value;
11511
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.Duration.seconds)
11512
}
11513
11514
// optional int32 nanos = 2;
11515
bool Duration::has_nanos() const {
11516
  return (_has_bits_[0] & 0x00000002u) != 0;
11517
}
11518
void Duration::set_has_nanos() {
11519
  _has_bits_[0] |= 0x00000002u;
11520
}
11521
void Duration::clear_has_nanos() {
11522
  _has_bits_[0] &= ~0x00000002u;
11523
}
11524
void Duration::clear_nanos() {
11525
  nanos_ = 0;
11526
  clear_has_nanos();
11527
}
11528
::google::protobuf::int32 Duration::nanos() const {
11529
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.Duration.nanos)
11530
  return nanos_;
11531
}
11532
void Duration::set_nanos(::google::protobuf::int32 value) {
11533
  set_has_nanos();
11534
  nanos_ = value;
11535
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.Duration.nanos)
11536
}
11537
11538
#endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
11539
11540
// @@protoc_insertion_point(namespace_scope)
11541
11542
}  // namespace safebrowsing
11543
}  // namespace mozilla
11544
11545
// @@protoc_insertion_point(global_scope)