Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/dist/include/safebrowsing.pb.h
Line
Count
Source (jump to first uncovered line)
1
// Generated by the protocol buffer compiler.  DO NOT EDIT!
2
// source: safebrowsing.proto
3
4
#ifndef PROTOBUF_safebrowsing_2eproto__INCLUDED
5
#define PROTOBUF_safebrowsing_2eproto__INCLUDED
6
7
#include <string>
8
9
#include <google/protobuf/stubs/common.h>
10
11
#if GOOGLE_PROTOBUF_VERSION < 3004000
12
#error This file was generated by a newer version of protoc which is
13
#error incompatible with your Protocol Buffer headers.  Please update
14
#error your headers.
15
#endif
16
#if 3004000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
17
#error This file was generated by an older version of protoc which is
18
#error incompatible with your Protocol Buffer headers.  Please
19
#error regenerate this file with a newer version of protoc.
20
#endif
21
22
#include <google/protobuf/io/coded_stream.h>
23
#include <google/protobuf/arena.h>
24
#include <google/protobuf/arenastring.h>
25
#include <google/protobuf/generated_message_table_driven.h>
26
#include <google/protobuf/generated_message_util.h>
27
#include <google/protobuf/metadata_lite.h>
28
#include <google/protobuf/message_lite.h>
29
#include <google/protobuf/repeated_field.h>  // IWYU pragma: export
30
#include <google/protobuf/extension_set.h>  // IWYU pragma: export
31
#include <google/protobuf/generated_enum_util.h>
32
// @@protoc_insertion_point(includes)
33
namespace mozilla {
34
namespace safebrowsing {
35
class Checksum;
36
class ChecksumDefaultTypeInternal;
37
extern ChecksumDefaultTypeInternal _Checksum_default_instance_;
38
class ChromeClientInfo;
39
class ChromeClientInfoDefaultTypeInternal;
40
extern ChromeClientInfoDefaultTypeInternal _ChromeClientInfo_default_instance_;
41
class ClientInfo;
42
class ClientInfoDefaultTypeInternal;
43
extern ClientInfoDefaultTypeInternal _ClientInfo_default_instance_;
44
class Duration;
45
class DurationDefaultTypeInternal;
46
extern DurationDefaultTypeInternal _Duration_default_instance_;
47
class FetchThreatListUpdatesRequest;
48
class FetchThreatListUpdatesRequestDefaultTypeInternal;
49
extern FetchThreatListUpdatesRequestDefaultTypeInternal _FetchThreatListUpdatesRequest_default_instance_;
50
class FetchThreatListUpdatesRequest_ListUpdateRequest;
51
class FetchThreatListUpdatesRequest_ListUpdateRequestDefaultTypeInternal;
52
extern FetchThreatListUpdatesRequest_ListUpdateRequestDefaultTypeInternal _FetchThreatListUpdatesRequest_ListUpdateRequest_default_instance_;
53
class FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints;
54
class FetchThreatListUpdatesRequest_ListUpdateRequest_ConstraintsDefaultTypeInternal;
55
extern FetchThreatListUpdatesRequest_ListUpdateRequest_ConstraintsDefaultTypeInternal _FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints_default_instance_;
56
class FetchThreatListUpdatesResponse;
57
class FetchThreatListUpdatesResponseDefaultTypeInternal;
58
extern FetchThreatListUpdatesResponseDefaultTypeInternal _FetchThreatListUpdatesResponse_default_instance_;
59
class FetchThreatListUpdatesResponse_ListUpdateResponse;
60
class FetchThreatListUpdatesResponse_ListUpdateResponseDefaultTypeInternal;
61
extern FetchThreatListUpdatesResponse_ListUpdateResponseDefaultTypeInternal _FetchThreatListUpdatesResponse_ListUpdateResponse_default_instance_;
62
class FindFullHashesRequest;
63
class FindFullHashesRequestDefaultTypeInternal;
64
extern FindFullHashesRequestDefaultTypeInternal _FindFullHashesRequest_default_instance_;
65
class FindFullHashesResponse;
66
class FindFullHashesResponseDefaultTypeInternal;
67
extern FindFullHashesResponseDefaultTypeInternal _FindFullHashesResponse_default_instance_;
68
class FindThreatMatchesRequest;
69
class FindThreatMatchesRequestDefaultTypeInternal;
70
extern FindThreatMatchesRequestDefaultTypeInternal _FindThreatMatchesRequest_default_instance_;
71
class FindThreatMatchesResponse;
72
class FindThreatMatchesResponseDefaultTypeInternal;
73
extern FindThreatMatchesResponseDefaultTypeInternal _FindThreatMatchesResponse_default_instance_;
74
class ListThreatListsResponse;
75
class ListThreatListsResponseDefaultTypeInternal;
76
extern ListThreatListsResponseDefaultTypeInternal _ListThreatListsResponse_default_instance_;
77
class RawHashes;
78
class RawHashesDefaultTypeInternal;
79
extern RawHashesDefaultTypeInternal _RawHashes_default_instance_;
80
class RawIndices;
81
class RawIndicesDefaultTypeInternal;
82
extern RawIndicesDefaultTypeInternal _RawIndices_default_instance_;
83
class RiceDeltaEncoding;
84
class RiceDeltaEncodingDefaultTypeInternal;
85
extern RiceDeltaEncodingDefaultTypeInternal _RiceDeltaEncoding_default_instance_;
86
class ThreatEntry;
87
class ThreatEntryDefaultTypeInternal;
88
extern ThreatEntryDefaultTypeInternal _ThreatEntry_default_instance_;
89
class ThreatEntryMetadata;
90
class ThreatEntryMetadataDefaultTypeInternal;
91
extern ThreatEntryMetadataDefaultTypeInternal _ThreatEntryMetadata_default_instance_;
92
class ThreatEntryMetadata_MetadataEntry;
93
class ThreatEntryMetadata_MetadataEntryDefaultTypeInternal;
94
extern ThreatEntryMetadata_MetadataEntryDefaultTypeInternal _ThreatEntryMetadata_MetadataEntry_default_instance_;
95
class ThreatEntrySet;
96
class ThreatEntrySetDefaultTypeInternal;
97
extern ThreatEntrySetDefaultTypeInternal _ThreatEntrySet_default_instance_;
98
class ThreatHit;
99
class ThreatHitDefaultTypeInternal;
100
extern ThreatHitDefaultTypeInternal _ThreatHit_default_instance_;
101
class ThreatHit_ThreatSource;
102
class ThreatHit_ThreatSourceDefaultTypeInternal;
103
extern ThreatHit_ThreatSourceDefaultTypeInternal _ThreatHit_ThreatSource_default_instance_;
104
class ThreatHit_UserInfo;
105
class ThreatHit_UserInfoDefaultTypeInternal;
106
extern ThreatHit_UserInfoDefaultTypeInternal _ThreatHit_UserInfo_default_instance_;
107
class ThreatInfo;
108
class ThreatInfoDefaultTypeInternal;
109
extern ThreatInfoDefaultTypeInternal _ThreatInfo_default_instance_;
110
class ThreatListDescriptor;
111
class ThreatListDescriptorDefaultTypeInternal;
112
extern ThreatListDescriptorDefaultTypeInternal _ThreatListDescriptor_default_instance_;
113
class ThreatMatch;
114
class ThreatMatchDefaultTypeInternal;
115
extern ThreatMatchDefaultTypeInternal _ThreatMatch_default_instance_;
116
}  // namespace safebrowsing
117
}  // namespace mozilla
118
119
namespace mozilla {
120
namespace safebrowsing {
121
122
namespace protobuf_safebrowsing_2eproto {
123
// Internal implementation detail -- do not call these.
124
struct TableStruct {
125
  static const ::google::protobuf::internal::ParseTableField entries[];
126
  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
127
  static const ::google::protobuf::internal::ParseTable schema[];
128
  static const ::google::protobuf::uint32 offsets[];
129
  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
130
  static const ::google::protobuf::internal::SerializationTable serialization_table[];
131
  static void InitDefaultsImpl();
132
};
133
void AddDescriptors();
134
void InitDefaults();
135
}  // namespace protobuf_safebrowsing_2eproto
136
137
enum FetchThreatListUpdatesResponse_ListUpdateResponse_ResponseType {
138
  FetchThreatListUpdatesResponse_ListUpdateResponse_ResponseType_RESPONSE_TYPE_UNSPECIFIED = 0,
139
  FetchThreatListUpdatesResponse_ListUpdateResponse_ResponseType_PARTIAL_UPDATE = 1,
140
  FetchThreatListUpdatesResponse_ListUpdateResponse_ResponseType_FULL_UPDATE = 2
141
};
142
bool FetchThreatListUpdatesResponse_ListUpdateResponse_ResponseType_IsValid(int value);
143
const FetchThreatListUpdatesResponse_ListUpdateResponse_ResponseType FetchThreatListUpdatesResponse_ListUpdateResponse_ResponseType_ResponseType_MIN = FetchThreatListUpdatesResponse_ListUpdateResponse_ResponseType_RESPONSE_TYPE_UNSPECIFIED;
144
const FetchThreatListUpdatesResponse_ListUpdateResponse_ResponseType FetchThreatListUpdatesResponse_ListUpdateResponse_ResponseType_ResponseType_MAX = FetchThreatListUpdatesResponse_ListUpdateResponse_ResponseType_FULL_UPDATE;
145
const int FetchThreatListUpdatesResponse_ListUpdateResponse_ResponseType_ResponseType_ARRAYSIZE = FetchThreatListUpdatesResponse_ListUpdateResponse_ResponseType_ResponseType_MAX + 1;
146
147
enum ThreatHit_ThreatSourceType {
148
  ThreatHit_ThreatSourceType_THREAT_SOURCE_TYPE_UNSPECIFIED = 0,
149
  ThreatHit_ThreatSourceType_MATCHING_URL = 1,
150
  ThreatHit_ThreatSourceType_TAB_URL = 2,
151
  ThreatHit_ThreatSourceType_TAB_REDIRECT = 3,
152
  ThreatHit_ThreatSourceType_TAB_RESOURCE = 4
153
};
154
bool ThreatHit_ThreatSourceType_IsValid(int value);
155
const ThreatHit_ThreatSourceType ThreatHit_ThreatSourceType_ThreatSourceType_MIN = ThreatHit_ThreatSourceType_THREAT_SOURCE_TYPE_UNSPECIFIED;
156
const ThreatHit_ThreatSourceType ThreatHit_ThreatSourceType_ThreatSourceType_MAX = ThreatHit_ThreatSourceType_TAB_RESOURCE;
157
const int ThreatHit_ThreatSourceType_ThreatSourceType_ARRAYSIZE = ThreatHit_ThreatSourceType_ThreatSourceType_MAX + 1;
158
159
enum ChromeClientInfo_SafeBrowsingReportingPopulation {
160
  ChromeClientInfo_SafeBrowsingReportingPopulation_UNSPECIFIED = 0,
161
  ChromeClientInfo_SafeBrowsingReportingPopulation_OPT_OUT = 1,
162
  ChromeClientInfo_SafeBrowsingReportingPopulation_EXTENDED = 2,
163
  ChromeClientInfo_SafeBrowsingReportingPopulation_SCOUT = 3
164
};
165
bool ChromeClientInfo_SafeBrowsingReportingPopulation_IsValid(int value);
166
const ChromeClientInfo_SafeBrowsingReportingPopulation ChromeClientInfo_SafeBrowsingReportingPopulation_SafeBrowsingReportingPopulation_MIN = ChromeClientInfo_SafeBrowsingReportingPopulation_UNSPECIFIED;
167
const ChromeClientInfo_SafeBrowsingReportingPopulation ChromeClientInfo_SafeBrowsingReportingPopulation_SafeBrowsingReportingPopulation_MAX = ChromeClientInfo_SafeBrowsingReportingPopulation_SCOUT;
168
const int ChromeClientInfo_SafeBrowsingReportingPopulation_SafeBrowsingReportingPopulation_ARRAYSIZE = ChromeClientInfo_SafeBrowsingReportingPopulation_SafeBrowsingReportingPopulation_MAX + 1;
169
170
enum ThreatType {
171
  THREAT_TYPE_UNSPECIFIED = 0,
172
  MALWARE_THREAT = 1,
173
  SOCIAL_ENGINEERING_PUBLIC = 2,
174
  UNWANTED_SOFTWARE = 3,
175
  POTENTIALLY_HARMFUL_APPLICATION = 4,
176
  SOCIAL_ENGINEERING = 5,
177
  API_ABUSE = 6,
178
  MALICIOUS_BINARY = 7,
179
  CSD_WHITELIST = 8,
180
  CSD_DOWNLOAD_WHITELIST = 9,
181
  CLIENT_INCIDENT = 10,
182
  SUBRESOURCE_FILTER = 13
183
};
184
bool ThreatType_IsValid(int value);
185
const ThreatType ThreatType_MIN = THREAT_TYPE_UNSPECIFIED;
186
const ThreatType ThreatType_MAX = SUBRESOURCE_FILTER;
187
const int ThreatType_ARRAYSIZE = ThreatType_MAX + 1;
188
189
enum PlatformType {
190
  PLATFORM_TYPE_UNSPECIFIED = 0,
191
  WINDOWS_PLATFORM = 1,
192
  LINUX_PLATFORM = 2,
193
  ANDROID_PLATFORM = 3,
194
  OSX_PLATFORM = 4,
195
  IOS_PLATFORM = 5,
196
  ANY_PLATFORM = 6,
197
  ALL_PLATFORMS = 7,
198
  CHROME_PLATFORM = 8
199
};
200
bool PlatformType_IsValid(int value);
201
const PlatformType PlatformType_MIN = PLATFORM_TYPE_UNSPECIFIED;
202
const PlatformType PlatformType_MAX = CHROME_PLATFORM;
203
const int PlatformType_ARRAYSIZE = PlatformType_MAX + 1;
204
205
enum CompressionType {
206
  COMPRESSION_TYPE_UNSPECIFIED = 0,
207
  RAW = 1,
208
  RICE = 2
209
};
210
bool CompressionType_IsValid(int value);
211
const CompressionType CompressionType_MIN = COMPRESSION_TYPE_UNSPECIFIED;
212
const CompressionType CompressionType_MAX = RICE;
213
const int CompressionType_ARRAYSIZE = CompressionType_MAX + 1;
214
215
enum ThreatEntryType {
216
  THREAT_ENTRY_TYPE_UNSPECIFIED = 0,
217
  URL = 1,
218
  EXECUTABLE = 2,
219
  IP_RANGE = 3,
220
  CHROME_EXTENSION = 4,
221
  FILENAME = 5,
222
  CERT = 6
223
};
224
bool ThreatEntryType_IsValid(int value);
225
const ThreatEntryType ThreatEntryType_MIN = THREAT_ENTRY_TYPE_UNSPECIFIED;
226
const ThreatEntryType ThreatEntryType_MAX = CERT;
227
const int ThreatEntryType_ARRAYSIZE = ThreatEntryType_MAX + 1;
228
229
// ===================================================================
230
231
class ThreatInfo : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:mozilla.safebrowsing.ThreatInfo) */ {
232
 public:
233
  ThreatInfo();
234
  virtual ~ThreatInfo();
235
236
  ThreatInfo(const ThreatInfo& from);
237
238
  inline ThreatInfo& operator=(const ThreatInfo& from) {
239
    CopyFrom(from);
240
    return *this;
241
  }
242
  #if LANG_CXX11
243
  ThreatInfo(ThreatInfo&& from) noexcept
244
    : ThreatInfo() {
245
    *this = ::std::move(from);
246
  }
247
248
  inline ThreatInfo& operator=(ThreatInfo&& from) noexcept {
249
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
250
      if (this != &from) InternalSwap(&from);
251
    } else {
252
      CopyFrom(from);
253
    }
254
    return *this;
255
  }
256
  #endif
257
  inline const ::std::string& unknown_fields() const {
258
    return _internal_metadata_.unknown_fields();
259
  }
260
  inline ::std::string* mutable_unknown_fields() {
261
    return _internal_metadata_.mutable_unknown_fields();
262
  }
263
264
  static const ThreatInfo& default_instance();
265
266
  static inline const ThreatInfo* internal_default_instance() {
267
    return reinterpret_cast<const ThreatInfo*>(
268
               &_ThreatInfo_default_instance_);
269
  }
270
  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
271
    0;
272
273
  void Swap(ThreatInfo* other);
274
  friend void swap(ThreatInfo& a, ThreatInfo& b) {
275
    a.Swap(&b);
276
  }
277
278
  // implements Message ----------------------------------------------
279
280
  inline ThreatInfo* New() const PROTOBUF_FINAL { return New(NULL); }
281
282
  ThreatInfo* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
283
  void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
284
    PROTOBUF_FINAL;
285
  void CopyFrom(const ThreatInfo& from);
286
  void MergeFrom(const ThreatInfo& from);
287
  void Clear() PROTOBUF_FINAL;
288
  bool IsInitialized() const PROTOBUF_FINAL;
289
290
  size_t ByteSizeLong() const PROTOBUF_FINAL;
291
  bool MergePartialFromCodedStream(
292
      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
293
  void SerializeWithCachedSizes(
294
      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
295
  void DiscardUnknownFields();
296
  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
297
  private:
298
  void SharedCtor();
299
  void SharedDtor();
300
  void SetCachedSize(int size) const;
301
  void InternalSwap(ThreatInfo* other);
302
  private:
303
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
304
    return NULL;
305
  }
306
  inline void* MaybeArenaPtr() const {
307
    return NULL;
308
  }
309
  public:
310
311
  ::std::string GetTypeName() const PROTOBUF_FINAL;
312
313
  // nested types ----------------------------------------------------
314
315
  // accessors -------------------------------------------------------
316
317
  // repeated .mozilla.safebrowsing.ThreatType threat_types = 1;
318
  int threat_types_size() const;
319
  void clear_threat_types();
320
  static const int kThreatTypesFieldNumber = 1;
321
  ::mozilla::safebrowsing::ThreatType threat_types(int index) const;
322
  void set_threat_types(int index, ::mozilla::safebrowsing::ThreatType value);
323
  void add_threat_types(::mozilla::safebrowsing::ThreatType value);
324
  const ::google::protobuf::RepeatedField<int>& threat_types() const;
325
  ::google::protobuf::RepeatedField<int>* mutable_threat_types();
326
327
  // repeated .mozilla.safebrowsing.PlatformType platform_types = 2;
328
  int platform_types_size() const;
329
  void clear_platform_types();
330
  static const int kPlatformTypesFieldNumber = 2;
331
  ::mozilla::safebrowsing::PlatformType platform_types(int index) const;
332
  void set_platform_types(int index, ::mozilla::safebrowsing::PlatformType value);
333
  void add_platform_types(::mozilla::safebrowsing::PlatformType value);
334
  const ::google::protobuf::RepeatedField<int>& platform_types() const;
335
  ::google::protobuf::RepeatedField<int>* mutable_platform_types();
336
337
  // repeated .mozilla.safebrowsing.ThreatEntry threat_entries = 3;
338
  int threat_entries_size() const;
339
  void clear_threat_entries();
340
  static const int kThreatEntriesFieldNumber = 3;
341
  const ::mozilla::safebrowsing::ThreatEntry& threat_entries(int index) const;
342
  ::mozilla::safebrowsing::ThreatEntry* mutable_threat_entries(int index);
343
  ::mozilla::safebrowsing::ThreatEntry* add_threat_entries();
344
  ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatEntry >*
345
      mutable_threat_entries();
346
  const ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatEntry >&
347
      threat_entries() const;
348
349
  // repeated .mozilla.safebrowsing.ThreatEntryType threat_entry_types = 4;
350
  int threat_entry_types_size() const;
351
  void clear_threat_entry_types();
352
  static const int kThreatEntryTypesFieldNumber = 4;
353
  ::mozilla::safebrowsing::ThreatEntryType threat_entry_types(int index) const;
354
  void set_threat_entry_types(int index, ::mozilla::safebrowsing::ThreatEntryType value);
355
  void add_threat_entry_types(::mozilla::safebrowsing::ThreatEntryType value);
356
  const ::google::protobuf::RepeatedField<int>& threat_entry_types() const;
357
  ::google::protobuf::RepeatedField<int>* mutable_threat_entry_types();
358
359
  // @@protoc_insertion_point(class_scope:mozilla.safebrowsing.ThreatInfo)
360
 private:
361
362
  ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
363
  ::google::protobuf::internal::HasBits<1> _has_bits_;
364
  mutable int _cached_size_;
365
  ::google::protobuf::RepeatedField<int> threat_types_;
366
  ::google::protobuf::RepeatedField<int> platform_types_;
367
  ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatEntry > threat_entries_;
368
  ::google::protobuf::RepeatedField<int> threat_entry_types_;
369
  friend struct protobuf_safebrowsing_2eproto::TableStruct;
370
};
371
// -------------------------------------------------------------------
372
373
class ThreatMatch : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:mozilla.safebrowsing.ThreatMatch) */ {
374
 public:
375
  ThreatMatch();
376
  virtual ~ThreatMatch();
377
378
  ThreatMatch(const ThreatMatch& from);
379
380
  inline ThreatMatch& operator=(const ThreatMatch& from) {
381
    CopyFrom(from);
382
    return *this;
383
  }
384
  #if LANG_CXX11
385
  ThreatMatch(ThreatMatch&& from) noexcept
386
    : ThreatMatch() {
387
    *this = ::std::move(from);
388
  }
389
390
  inline ThreatMatch& operator=(ThreatMatch&& from) noexcept {
391
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
392
      if (this != &from) InternalSwap(&from);
393
    } else {
394
      CopyFrom(from);
395
    }
396
    return *this;
397
  }
398
  #endif
399
  inline const ::std::string& unknown_fields() const {
400
    return _internal_metadata_.unknown_fields();
401
  }
402
  inline ::std::string* mutable_unknown_fields() {
403
    return _internal_metadata_.mutable_unknown_fields();
404
  }
405
406
  static const ThreatMatch& default_instance();
407
408
  static inline const ThreatMatch* internal_default_instance() {
409
    return reinterpret_cast<const ThreatMatch*>(
410
               &_ThreatMatch_default_instance_);
411
  }
412
  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
413
    1;
414
415
  void Swap(ThreatMatch* other);
416
  friend void swap(ThreatMatch& a, ThreatMatch& b) {
417
    a.Swap(&b);
418
  }
419
420
  // implements Message ----------------------------------------------
421
422
  inline ThreatMatch* New() const PROTOBUF_FINAL { return New(NULL); }
423
424
  ThreatMatch* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
425
  void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
426
    PROTOBUF_FINAL;
427
  void CopyFrom(const ThreatMatch& from);
428
  void MergeFrom(const ThreatMatch& from);
429
  void Clear() PROTOBUF_FINAL;
430
  bool IsInitialized() const PROTOBUF_FINAL;
431
432
  size_t ByteSizeLong() const PROTOBUF_FINAL;
433
  bool MergePartialFromCodedStream(
434
      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
435
  void SerializeWithCachedSizes(
436
      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
437
  void DiscardUnknownFields();
438
  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
439
  private:
440
  void SharedCtor();
441
  void SharedDtor();
442
  void SetCachedSize(int size) const;
443
  void InternalSwap(ThreatMatch* other);
444
  private:
445
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
446
    return NULL;
447
  }
448
  inline void* MaybeArenaPtr() const {
449
    return NULL;
450
  }
451
  public:
452
453
  ::std::string GetTypeName() const PROTOBUF_FINAL;
454
455
  // nested types ----------------------------------------------------
456
457
  // accessors -------------------------------------------------------
458
459
  // optional .mozilla.safebrowsing.ThreatEntry threat = 3;
460
  bool has_threat() const;
461
  void clear_threat();
462
  static const int kThreatFieldNumber = 3;
463
  const ::mozilla::safebrowsing::ThreatEntry& threat() const;
464
  ::mozilla::safebrowsing::ThreatEntry* mutable_threat();
465
  ::mozilla::safebrowsing::ThreatEntry* release_threat();
466
  void set_allocated_threat(::mozilla::safebrowsing::ThreatEntry* threat);
467
468
  // optional .mozilla.safebrowsing.ThreatEntryMetadata threat_entry_metadata = 4;
469
  bool has_threat_entry_metadata() const;
470
  void clear_threat_entry_metadata();
471
  static const int kThreatEntryMetadataFieldNumber = 4;
472
  const ::mozilla::safebrowsing::ThreatEntryMetadata& threat_entry_metadata() const;
473
  ::mozilla::safebrowsing::ThreatEntryMetadata* mutable_threat_entry_metadata();
474
  ::mozilla::safebrowsing::ThreatEntryMetadata* release_threat_entry_metadata();
475
  void set_allocated_threat_entry_metadata(::mozilla::safebrowsing::ThreatEntryMetadata* threat_entry_metadata);
476
477
  // optional .mozilla.safebrowsing.Duration cache_duration = 5;
478
  bool has_cache_duration() const;
479
  void clear_cache_duration();
480
  static const int kCacheDurationFieldNumber = 5;
481
  const ::mozilla::safebrowsing::Duration& cache_duration() const;
482
  ::mozilla::safebrowsing::Duration* mutable_cache_duration();
483
  ::mozilla::safebrowsing::Duration* release_cache_duration();
484
  void set_allocated_cache_duration(::mozilla::safebrowsing::Duration* cache_duration);
485
486
  // optional .mozilla.safebrowsing.ThreatType threat_type = 1;
487
  bool has_threat_type() const;
488
  void clear_threat_type();
489
  static const int kThreatTypeFieldNumber = 1;
490
  ::mozilla::safebrowsing::ThreatType threat_type() const;
491
  void set_threat_type(::mozilla::safebrowsing::ThreatType value);
492
493
  // optional .mozilla.safebrowsing.PlatformType platform_type = 2;
494
  bool has_platform_type() const;
495
  void clear_platform_type();
496
  static const int kPlatformTypeFieldNumber = 2;
497
  ::mozilla::safebrowsing::PlatformType platform_type() const;
498
  void set_platform_type(::mozilla::safebrowsing::PlatformType value);
499
500
  // optional .mozilla.safebrowsing.ThreatEntryType threat_entry_type = 6;
501
  bool has_threat_entry_type() const;
502
  void clear_threat_entry_type();
503
  static const int kThreatEntryTypeFieldNumber = 6;
504
  ::mozilla::safebrowsing::ThreatEntryType threat_entry_type() const;
505
  void set_threat_entry_type(::mozilla::safebrowsing::ThreatEntryType value);
506
507
  // @@protoc_insertion_point(class_scope:mozilla.safebrowsing.ThreatMatch)
508
 private:
509
  void set_has_threat_type();
510
  void clear_has_threat_type();
511
  void set_has_platform_type();
512
  void clear_has_platform_type();
513
  void set_has_threat_entry_type();
514
  void clear_has_threat_entry_type();
515
  void set_has_threat();
516
  void clear_has_threat();
517
  void set_has_threat_entry_metadata();
518
  void clear_has_threat_entry_metadata();
519
  void set_has_cache_duration();
520
  void clear_has_cache_duration();
521
522
  ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
523
  ::google::protobuf::internal::HasBits<1> _has_bits_;
524
  mutable int _cached_size_;
525
  ::mozilla::safebrowsing::ThreatEntry* threat_;
526
  ::mozilla::safebrowsing::ThreatEntryMetadata* threat_entry_metadata_;
527
  ::mozilla::safebrowsing::Duration* cache_duration_;
528
  int threat_type_;
529
  int platform_type_;
530
  int threat_entry_type_;
531
  friend struct protobuf_safebrowsing_2eproto::TableStruct;
532
};
533
// -------------------------------------------------------------------
534
535
class FindThreatMatchesRequest : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:mozilla.safebrowsing.FindThreatMatchesRequest) */ {
536
 public:
537
  FindThreatMatchesRequest();
538
  virtual ~FindThreatMatchesRequest();
539
540
  FindThreatMatchesRequest(const FindThreatMatchesRequest& from);
541
542
  inline FindThreatMatchesRequest& operator=(const FindThreatMatchesRequest& from) {
543
    CopyFrom(from);
544
    return *this;
545
  }
546
  #if LANG_CXX11
547
  FindThreatMatchesRequest(FindThreatMatchesRequest&& from) noexcept
548
    : FindThreatMatchesRequest() {
549
    *this = ::std::move(from);
550
  }
551
552
  inline FindThreatMatchesRequest& operator=(FindThreatMatchesRequest&& from) noexcept {
553
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
554
      if (this != &from) InternalSwap(&from);
555
    } else {
556
      CopyFrom(from);
557
    }
558
    return *this;
559
  }
560
  #endif
561
  inline const ::std::string& unknown_fields() const {
562
    return _internal_metadata_.unknown_fields();
563
  }
564
  inline ::std::string* mutable_unknown_fields() {
565
    return _internal_metadata_.mutable_unknown_fields();
566
  }
567
568
  static const FindThreatMatchesRequest& default_instance();
569
570
  static inline const FindThreatMatchesRequest* internal_default_instance() {
571
    return reinterpret_cast<const FindThreatMatchesRequest*>(
572
               &_FindThreatMatchesRequest_default_instance_);
573
  }
574
  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
575
    2;
576
577
  void Swap(FindThreatMatchesRequest* other);
578
  friend void swap(FindThreatMatchesRequest& a, FindThreatMatchesRequest& b) {
579
    a.Swap(&b);
580
  }
581
582
  // implements Message ----------------------------------------------
583
584
  inline FindThreatMatchesRequest* New() const PROTOBUF_FINAL { return New(NULL); }
585
586
  FindThreatMatchesRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
587
  void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
588
    PROTOBUF_FINAL;
589
  void CopyFrom(const FindThreatMatchesRequest& from);
590
  void MergeFrom(const FindThreatMatchesRequest& from);
591
  void Clear() PROTOBUF_FINAL;
592
  bool IsInitialized() const PROTOBUF_FINAL;
593
594
  size_t ByteSizeLong() const PROTOBUF_FINAL;
595
  bool MergePartialFromCodedStream(
596
      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
597
  void SerializeWithCachedSizes(
598
      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
599
  void DiscardUnknownFields();
600
  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
601
  private:
602
  void SharedCtor();
603
  void SharedDtor();
604
  void SetCachedSize(int size) const;
605
  void InternalSwap(FindThreatMatchesRequest* other);
606
  private:
607
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
608
    return NULL;
609
  }
610
  inline void* MaybeArenaPtr() const {
611
    return NULL;
612
  }
613
  public:
614
615
  ::std::string GetTypeName() const PROTOBUF_FINAL;
616
617
  // nested types ----------------------------------------------------
618
619
  // accessors -------------------------------------------------------
620
621
  // optional .mozilla.safebrowsing.ClientInfo client = 1;
622
  bool has_client() const;
623
  void clear_client();
624
  static const int kClientFieldNumber = 1;
625
  const ::mozilla::safebrowsing::ClientInfo& client() const;
626
  ::mozilla::safebrowsing::ClientInfo* mutable_client();
627
  ::mozilla::safebrowsing::ClientInfo* release_client();
628
  void set_allocated_client(::mozilla::safebrowsing::ClientInfo* client);
629
630
  // optional .mozilla.safebrowsing.ThreatInfo threat_info = 2;
631
  bool has_threat_info() const;
632
  void clear_threat_info();
633
  static const int kThreatInfoFieldNumber = 2;
634
  const ::mozilla::safebrowsing::ThreatInfo& threat_info() const;
635
  ::mozilla::safebrowsing::ThreatInfo* mutable_threat_info();
636
  ::mozilla::safebrowsing::ThreatInfo* release_threat_info();
637
  void set_allocated_threat_info(::mozilla::safebrowsing::ThreatInfo* threat_info);
638
639
  // @@protoc_insertion_point(class_scope:mozilla.safebrowsing.FindThreatMatchesRequest)
640
 private:
641
  void set_has_client();
642
  void clear_has_client();
643
  void set_has_threat_info();
644
  void clear_has_threat_info();
645
646
  ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
647
  ::google::protobuf::internal::HasBits<1> _has_bits_;
648
  mutable int _cached_size_;
649
  ::mozilla::safebrowsing::ClientInfo* client_;
650
  ::mozilla::safebrowsing::ThreatInfo* threat_info_;
651
  friend struct protobuf_safebrowsing_2eproto::TableStruct;
652
};
653
// -------------------------------------------------------------------
654
655
class FindThreatMatchesResponse : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:mozilla.safebrowsing.FindThreatMatchesResponse) */ {
656
 public:
657
  FindThreatMatchesResponse();
658
  virtual ~FindThreatMatchesResponse();
659
660
  FindThreatMatchesResponse(const FindThreatMatchesResponse& from);
661
662
  inline FindThreatMatchesResponse& operator=(const FindThreatMatchesResponse& from) {
663
    CopyFrom(from);
664
    return *this;
665
  }
666
  #if LANG_CXX11
667
  FindThreatMatchesResponse(FindThreatMatchesResponse&& from) noexcept
668
    : FindThreatMatchesResponse() {
669
    *this = ::std::move(from);
670
  }
671
672
  inline FindThreatMatchesResponse& operator=(FindThreatMatchesResponse&& from) noexcept {
673
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
674
      if (this != &from) InternalSwap(&from);
675
    } else {
676
      CopyFrom(from);
677
    }
678
    return *this;
679
  }
680
  #endif
681
  inline const ::std::string& unknown_fields() const {
682
    return _internal_metadata_.unknown_fields();
683
  }
684
  inline ::std::string* mutable_unknown_fields() {
685
    return _internal_metadata_.mutable_unknown_fields();
686
  }
687
688
  static const FindThreatMatchesResponse& default_instance();
689
690
  static inline const FindThreatMatchesResponse* internal_default_instance() {
691
    return reinterpret_cast<const FindThreatMatchesResponse*>(
692
               &_FindThreatMatchesResponse_default_instance_);
693
  }
694
  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
695
    3;
696
697
  void Swap(FindThreatMatchesResponse* other);
698
  friend void swap(FindThreatMatchesResponse& a, FindThreatMatchesResponse& b) {
699
    a.Swap(&b);
700
  }
701
702
  // implements Message ----------------------------------------------
703
704
  inline FindThreatMatchesResponse* New() const PROTOBUF_FINAL { return New(NULL); }
705
706
  FindThreatMatchesResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
707
  void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
708
    PROTOBUF_FINAL;
709
  void CopyFrom(const FindThreatMatchesResponse& from);
710
  void MergeFrom(const FindThreatMatchesResponse& from);
711
  void Clear() PROTOBUF_FINAL;
712
  bool IsInitialized() const PROTOBUF_FINAL;
713
714
  size_t ByteSizeLong() const PROTOBUF_FINAL;
715
  bool MergePartialFromCodedStream(
716
      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
717
  void SerializeWithCachedSizes(
718
      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
719
  void DiscardUnknownFields();
720
  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
721
  private:
722
  void SharedCtor();
723
  void SharedDtor();
724
  void SetCachedSize(int size) const;
725
  void InternalSwap(FindThreatMatchesResponse* other);
726
  private:
727
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
728
    return NULL;
729
  }
730
  inline void* MaybeArenaPtr() const {
731
    return NULL;
732
  }
733
  public:
734
735
  ::std::string GetTypeName() const PROTOBUF_FINAL;
736
737
  // nested types ----------------------------------------------------
738
739
  // accessors -------------------------------------------------------
740
741
  // repeated .mozilla.safebrowsing.ThreatMatch matches = 1;
742
  int matches_size() const;
743
  void clear_matches();
744
  static const int kMatchesFieldNumber = 1;
745
  const ::mozilla::safebrowsing::ThreatMatch& matches(int index) const;
746
  ::mozilla::safebrowsing::ThreatMatch* mutable_matches(int index);
747
  ::mozilla::safebrowsing::ThreatMatch* add_matches();
748
  ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatMatch >*
749
      mutable_matches();
750
  const ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatMatch >&
751
      matches() const;
752
753
  // @@protoc_insertion_point(class_scope:mozilla.safebrowsing.FindThreatMatchesResponse)
754
 private:
755
756
  ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
757
  ::google::protobuf::internal::HasBits<1> _has_bits_;
758
  mutable int _cached_size_;
759
  ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatMatch > matches_;
760
  friend struct protobuf_safebrowsing_2eproto::TableStruct;
761
};
762
// -------------------------------------------------------------------
763
764
class FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints) */ {
765
 public:
766
  FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints();
767
  virtual ~FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints();
768
769
  FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints(const FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints& from);
770
771
  inline FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints& operator=(const FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints& from) {
772
    CopyFrom(from);
773
    return *this;
774
  }
775
  #if LANG_CXX11
776
  FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints(FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints&& from) noexcept
777
    : FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints() {
778
    *this = ::std::move(from);
779
  }
780
781
  inline FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints& operator=(FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints&& from) noexcept {
782
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
783
      if (this != &from) InternalSwap(&from);
784
    } else {
785
      CopyFrom(from);
786
    }
787
    return *this;
788
  }
789
  #endif
790
  inline const ::std::string& unknown_fields() const {
791
    return _internal_metadata_.unknown_fields();
792
  }
793
  inline ::std::string* mutable_unknown_fields() {
794
    return _internal_metadata_.mutable_unknown_fields();
795
  }
796
797
  static const FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints& default_instance();
798
799
  static inline const FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints* internal_default_instance() {
800
    return reinterpret_cast<const FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints*>(
801
               &_FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints_default_instance_);
802
  }
803
  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
804
    4;
805
806
  void Swap(FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints* other);
807
  friend void swap(FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints& a, FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints& b) {
808
    a.Swap(&b);
809
  }
810
811
  // implements Message ----------------------------------------------
812
813
  inline FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints* New() const PROTOBUF_FINAL { return New(NULL); }
814
815
  FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
816
  void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
817
    PROTOBUF_FINAL;
818
  void CopyFrom(const FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints& from);
819
  void MergeFrom(const FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints& from);
820
  void Clear() PROTOBUF_FINAL;
821
  bool IsInitialized() const PROTOBUF_FINAL;
822
823
  size_t ByteSizeLong() const PROTOBUF_FINAL;
824
  bool MergePartialFromCodedStream(
825
      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
826
  void SerializeWithCachedSizes(
827
      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
828
  void DiscardUnknownFields();
829
  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
830
  private:
831
  void SharedCtor();
832
  void SharedDtor();
833
  void SetCachedSize(int size) const;
834
  void InternalSwap(FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints* other);
835
  private:
836
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
837
    return NULL;
838
  }
839
  inline void* MaybeArenaPtr() const {
840
    return NULL;
841
  }
842
  public:
843
844
  ::std::string GetTypeName() const PROTOBUF_FINAL;
845
846
  // nested types ----------------------------------------------------
847
848
  // accessors -------------------------------------------------------
849
850
  // repeated .mozilla.safebrowsing.CompressionType supported_compressions = 4;
851
  int supported_compressions_size() const;
852
  void clear_supported_compressions();
853
  static const int kSupportedCompressionsFieldNumber = 4;
854
  ::mozilla::safebrowsing::CompressionType supported_compressions(int index) const;
855
  void set_supported_compressions(int index, ::mozilla::safebrowsing::CompressionType value);
856
  void add_supported_compressions(::mozilla::safebrowsing::CompressionType value);
857
  const ::google::protobuf::RepeatedField<int>& supported_compressions() const;
858
  ::google::protobuf::RepeatedField<int>* mutable_supported_compressions();
859
860
  // optional string region = 3;
861
  bool has_region() const;
862
  void clear_region();
863
  static const int kRegionFieldNumber = 3;
864
  const ::std::string& region() const;
865
  void set_region(const ::std::string& value);
866
  #if LANG_CXX11
867
  void set_region(::std::string&& value);
868
  #endif
869
  void set_region(const char* value);
870
  void set_region(const char* value, size_t size);
871
  ::std::string* mutable_region();
872
  ::std::string* release_region();
873
  void set_allocated_region(::std::string* region);
874
875
  // optional int32 max_update_entries = 1;
876
  bool has_max_update_entries() const;
877
  void clear_max_update_entries();
878
  static const int kMaxUpdateEntriesFieldNumber = 1;
879
  ::google::protobuf::int32 max_update_entries() const;
880
  void set_max_update_entries(::google::protobuf::int32 value);
881
882
  // optional int32 max_database_entries = 2;
883
  bool has_max_database_entries() const;
884
  void clear_max_database_entries();
885
  static const int kMaxDatabaseEntriesFieldNumber = 2;
886
  ::google::protobuf::int32 max_database_entries() const;
887
  void set_max_database_entries(::google::protobuf::int32 value);
888
889
  // @@protoc_insertion_point(class_scope:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints)
890
 private:
891
  void set_has_max_update_entries();
892
  void clear_has_max_update_entries();
893
  void set_has_max_database_entries();
894
  void clear_has_max_database_entries();
895
  void set_has_region();
896
  void clear_has_region();
897
898
  ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
899
  ::google::protobuf::internal::HasBits<1> _has_bits_;
900
  mutable int _cached_size_;
901
  ::google::protobuf::RepeatedField<int> supported_compressions_;
902
  ::google::protobuf::internal::ArenaStringPtr region_;
903
  ::google::protobuf::int32 max_update_entries_;
904
  ::google::protobuf::int32 max_database_entries_;
905
  friend struct protobuf_safebrowsing_2eproto::TableStruct;
906
};
907
// -------------------------------------------------------------------
908
909
class FetchThreatListUpdatesRequest_ListUpdateRequest : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest) */ {
910
 public:
911
  FetchThreatListUpdatesRequest_ListUpdateRequest();
912
  virtual ~FetchThreatListUpdatesRequest_ListUpdateRequest();
913
914
  FetchThreatListUpdatesRequest_ListUpdateRequest(const FetchThreatListUpdatesRequest_ListUpdateRequest& from);
915
916
  inline FetchThreatListUpdatesRequest_ListUpdateRequest& operator=(const FetchThreatListUpdatesRequest_ListUpdateRequest& from) {
917
    CopyFrom(from);
918
    return *this;
919
  }
920
  #if LANG_CXX11
921
  FetchThreatListUpdatesRequest_ListUpdateRequest(FetchThreatListUpdatesRequest_ListUpdateRequest&& from) noexcept
922
    : FetchThreatListUpdatesRequest_ListUpdateRequest() {
923
    *this = ::std::move(from);
924
  }
925
926
  inline FetchThreatListUpdatesRequest_ListUpdateRequest& operator=(FetchThreatListUpdatesRequest_ListUpdateRequest&& from) noexcept {
927
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
928
      if (this != &from) InternalSwap(&from);
929
    } else {
930
      CopyFrom(from);
931
    }
932
    return *this;
933
  }
934
  #endif
935
  inline const ::std::string& unknown_fields() const {
936
    return _internal_metadata_.unknown_fields();
937
  }
938
  inline ::std::string* mutable_unknown_fields() {
939
    return _internal_metadata_.mutable_unknown_fields();
940
  }
941
942
  static const FetchThreatListUpdatesRequest_ListUpdateRequest& default_instance();
943
944
  static inline const FetchThreatListUpdatesRequest_ListUpdateRequest* internal_default_instance() {
945
    return reinterpret_cast<const FetchThreatListUpdatesRequest_ListUpdateRequest*>(
946
               &_FetchThreatListUpdatesRequest_ListUpdateRequest_default_instance_);
947
  }
948
  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
949
    5;
950
951
  void Swap(FetchThreatListUpdatesRequest_ListUpdateRequest* other);
952
  friend void swap(FetchThreatListUpdatesRequest_ListUpdateRequest& a, FetchThreatListUpdatesRequest_ListUpdateRequest& b) {
953
    a.Swap(&b);
954
  }
955
956
  // implements Message ----------------------------------------------
957
958
  inline FetchThreatListUpdatesRequest_ListUpdateRequest* New() const PROTOBUF_FINAL { return New(NULL); }
959
960
  FetchThreatListUpdatesRequest_ListUpdateRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
961
  void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
962
    PROTOBUF_FINAL;
963
  void CopyFrom(const FetchThreatListUpdatesRequest_ListUpdateRequest& from);
964
  void MergeFrom(const FetchThreatListUpdatesRequest_ListUpdateRequest& from);
965
  void Clear() PROTOBUF_FINAL;
966
  bool IsInitialized() const PROTOBUF_FINAL;
967
968
  size_t ByteSizeLong() const PROTOBUF_FINAL;
969
  bool MergePartialFromCodedStream(
970
      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
971
  void SerializeWithCachedSizes(
972
      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
973
  void DiscardUnknownFields();
974
  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
975
  private:
976
  void SharedCtor();
977
  void SharedDtor();
978
  void SetCachedSize(int size) const;
979
  void InternalSwap(FetchThreatListUpdatesRequest_ListUpdateRequest* other);
980
  private:
981
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
982
    return NULL;
983
  }
984
  inline void* MaybeArenaPtr() const {
985
    return NULL;
986
  }
987
  public:
988
989
  ::std::string GetTypeName() const PROTOBUF_FINAL;
990
991
  // nested types ----------------------------------------------------
992
993
  typedef FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints Constraints;
994
995
  // accessors -------------------------------------------------------
996
997
  // optional bytes state = 3;
998
  bool has_state() const;
999
  void clear_state();
1000
  static const int kStateFieldNumber = 3;
1001
  const ::std::string& state() const;
1002
  void set_state(const ::std::string& value);
1003
  #if LANG_CXX11
1004
  void set_state(::std::string&& value);
1005
  #endif
1006
  void set_state(const char* value);
1007
  void set_state(const void* value, size_t size);
1008
  ::std::string* mutable_state();
1009
  ::std::string* release_state();
1010
  void set_allocated_state(::std::string* state);
1011
1012
  // optional .mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints constraints = 4;
1013
  bool has_constraints() const;
1014
  void clear_constraints();
1015
  static const int kConstraintsFieldNumber = 4;
1016
  const ::mozilla::safebrowsing::FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints& constraints() const;
1017
  ::mozilla::safebrowsing::FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints* mutable_constraints();
1018
  ::mozilla::safebrowsing::FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints* release_constraints();
1019
  void set_allocated_constraints(::mozilla::safebrowsing::FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints* constraints);
1020
1021
  // optional .mozilla.safebrowsing.ThreatType threat_type = 1;
1022
  bool has_threat_type() const;
1023
  void clear_threat_type();
1024
  static const int kThreatTypeFieldNumber = 1;
1025
  ::mozilla::safebrowsing::ThreatType threat_type() const;
1026
  void set_threat_type(::mozilla::safebrowsing::ThreatType value);
1027
1028
  // optional .mozilla.safebrowsing.PlatformType platform_type = 2;
1029
  bool has_platform_type() const;
1030
  void clear_platform_type();
1031
  static const int kPlatformTypeFieldNumber = 2;
1032
  ::mozilla::safebrowsing::PlatformType platform_type() const;
1033
  void set_platform_type(::mozilla::safebrowsing::PlatformType value);
1034
1035
  // optional .mozilla.safebrowsing.ThreatEntryType threat_entry_type = 5;
1036
  bool has_threat_entry_type() const;
1037
  void clear_threat_entry_type();
1038
  static const int kThreatEntryTypeFieldNumber = 5;
1039
  ::mozilla::safebrowsing::ThreatEntryType threat_entry_type() const;
1040
  void set_threat_entry_type(::mozilla::safebrowsing::ThreatEntryType value);
1041
1042
  // @@protoc_insertion_point(class_scope:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest)
1043
 private:
1044
  void set_has_threat_type();
1045
  void clear_has_threat_type();
1046
  void set_has_platform_type();
1047
  void clear_has_platform_type();
1048
  void set_has_threat_entry_type();
1049
  void clear_has_threat_entry_type();
1050
  void set_has_state();
1051
  void clear_has_state();
1052
  void set_has_constraints();
1053
  void clear_has_constraints();
1054
1055
  ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
1056
  ::google::protobuf::internal::HasBits<1> _has_bits_;
1057
  mutable int _cached_size_;
1058
  ::google::protobuf::internal::ArenaStringPtr state_;
1059
  ::mozilla::safebrowsing::FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints* constraints_;
1060
  int threat_type_;
1061
  int platform_type_;
1062
  int threat_entry_type_;
1063
  friend struct protobuf_safebrowsing_2eproto::TableStruct;
1064
};
1065
// -------------------------------------------------------------------
1066
1067
class FetchThreatListUpdatesRequest : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:mozilla.safebrowsing.FetchThreatListUpdatesRequest) */ {
1068
 public:
1069
  FetchThreatListUpdatesRequest();
1070
  virtual ~FetchThreatListUpdatesRequest();
1071
1072
  FetchThreatListUpdatesRequest(const FetchThreatListUpdatesRequest& from);
1073
1074
  inline FetchThreatListUpdatesRequest& operator=(const FetchThreatListUpdatesRequest& from) {
1075
    CopyFrom(from);
1076
    return *this;
1077
  }
1078
  #if LANG_CXX11
1079
  FetchThreatListUpdatesRequest(FetchThreatListUpdatesRequest&& from) noexcept
1080
    : FetchThreatListUpdatesRequest() {
1081
    *this = ::std::move(from);
1082
  }
1083
1084
  inline FetchThreatListUpdatesRequest& operator=(FetchThreatListUpdatesRequest&& from) noexcept {
1085
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
1086
      if (this != &from) InternalSwap(&from);
1087
    } else {
1088
      CopyFrom(from);
1089
    }
1090
    return *this;
1091
  }
1092
  #endif
1093
  inline const ::std::string& unknown_fields() const {
1094
    return _internal_metadata_.unknown_fields();
1095
  }
1096
  inline ::std::string* mutable_unknown_fields() {
1097
    return _internal_metadata_.mutable_unknown_fields();
1098
  }
1099
1100
  static const FetchThreatListUpdatesRequest& default_instance();
1101
1102
  static inline const FetchThreatListUpdatesRequest* internal_default_instance() {
1103
    return reinterpret_cast<const FetchThreatListUpdatesRequest*>(
1104
               &_FetchThreatListUpdatesRequest_default_instance_);
1105
  }
1106
  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
1107
    6;
1108
1109
  void Swap(FetchThreatListUpdatesRequest* other);
1110
  friend void swap(FetchThreatListUpdatesRequest& a, FetchThreatListUpdatesRequest& b) {
1111
    a.Swap(&b);
1112
  }
1113
1114
  // implements Message ----------------------------------------------
1115
1116
  inline FetchThreatListUpdatesRequest* New() const PROTOBUF_FINAL { return New(NULL); }
1117
1118
  FetchThreatListUpdatesRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
1119
  void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
1120
    PROTOBUF_FINAL;
1121
  void CopyFrom(const FetchThreatListUpdatesRequest& from);
1122
  void MergeFrom(const FetchThreatListUpdatesRequest& from);
1123
  void Clear() PROTOBUF_FINAL;
1124
  bool IsInitialized() const PROTOBUF_FINAL;
1125
1126
  size_t ByteSizeLong() const PROTOBUF_FINAL;
1127
  bool MergePartialFromCodedStream(
1128
      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
1129
  void SerializeWithCachedSizes(
1130
      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
1131
  void DiscardUnknownFields();
1132
  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
1133
  private:
1134
  void SharedCtor();
1135
  void SharedDtor();
1136
  void SetCachedSize(int size) const;
1137
  void InternalSwap(FetchThreatListUpdatesRequest* other);
1138
  private:
1139
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
1140
    return NULL;
1141
  }
1142
  inline void* MaybeArenaPtr() const {
1143
    return NULL;
1144
  }
1145
  public:
1146
1147
  ::std::string GetTypeName() const PROTOBUF_FINAL;
1148
1149
  // nested types ----------------------------------------------------
1150
1151
  typedef FetchThreatListUpdatesRequest_ListUpdateRequest ListUpdateRequest;
1152
1153
  // accessors -------------------------------------------------------
1154
1155
  // repeated .mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest list_update_requests = 3;
1156
  int list_update_requests_size() const;
1157
  void clear_list_update_requests();
1158
  static const int kListUpdateRequestsFieldNumber = 3;
1159
  const ::mozilla::safebrowsing::FetchThreatListUpdatesRequest_ListUpdateRequest& list_update_requests(int index) const;
1160
  ::mozilla::safebrowsing::FetchThreatListUpdatesRequest_ListUpdateRequest* mutable_list_update_requests(int index);
1161
  ::mozilla::safebrowsing::FetchThreatListUpdatesRequest_ListUpdateRequest* add_list_update_requests();
1162
  ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::FetchThreatListUpdatesRequest_ListUpdateRequest >*
1163
      mutable_list_update_requests();
1164
  const ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::FetchThreatListUpdatesRequest_ListUpdateRequest >&
1165
      list_update_requests() const;
1166
1167
  // optional .mozilla.safebrowsing.ClientInfo client = 1;
1168
  bool has_client() const;
1169
  void clear_client();
1170
  static const int kClientFieldNumber = 1;
1171
  const ::mozilla::safebrowsing::ClientInfo& client() const;
1172
  ::mozilla::safebrowsing::ClientInfo* mutable_client();
1173
  ::mozilla::safebrowsing::ClientInfo* release_client();
1174
  void set_allocated_client(::mozilla::safebrowsing::ClientInfo* client);
1175
1176
  // optional .mozilla.safebrowsing.ChromeClientInfo chrome_client_info = 4;
1177
  bool has_chrome_client_info() const;
1178
  void clear_chrome_client_info();
1179
  static const int kChromeClientInfoFieldNumber = 4;
1180
  const ::mozilla::safebrowsing::ChromeClientInfo& chrome_client_info() const;
1181
  ::mozilla::safebrowsing::ChromeClientInfo* mutable_chrome_client_info();
1182
  ::mozilla::safebrowsing::ChromeClientInfo* release_chrome_client_info();
1183
  void set_allocated_chrome_client_info(::mozilla::safebrowsing::ChromeClientInfo* chrome_client_info);
1184
1185
  // @@protoc_insertion_point(class_scope:mozilla.safebrowsing.FetchThreatListUpdatesRequest)
1186
 private:
1187
  void set_has_client();
1188
  void clear_has_client();
1189
  void set_has_chrome_client_info();
1190
  void clear_has_chrome_client_info();
1191
1192
  ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
1193
  ::google::protobuf::internal::HasBits<1> _has_bits_;
1194
  mutable int _cached_size_;
1195
  ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::FetchThreatListUpdatesRequest_ListUpdateRequest > list_update_requests_;
1196
  ::mozilla::safebrowsing::ClientInfo* client_;
1197
  ::mozilla::safebrowsing::ChromeClientInfo* chrome_client_info_;
1198
  friend struct protobuf_safebrowsing_2eproto::TableStruct;
1199
};
1200
// -------------------------------------------------------------------
1201
1202
class FetchThreatListUpdatesResponse_ListUpdateResponse : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse) */ {
1203
 public:
1204
  FetchThreatListUpdatesResponse_ListUpdateResponse();
1205
  virtual ~FetchThreatListUpdatesResponse_ListUpdateResponse();
1206
1207
  FetchThreatListUpdatesResponse_ListUpdateResponse(const FetchThreatListUpdatesResponse_ListUpdateResponse& from);
1208
1209
  inline FetchThreatListUpdatesResponse_ListUpdateResponse& operator=(const FetchThreatListUpdatesResponse_ListUpdateResponse& from) {
1210
    CopyFrom(from);
1211
    return *this;
1212
  }
1213
  #if LANG_CXX11
1214
  FetchThreatListUpdatesResponse_ListUpdateResponse(FetchThreatListUpdatesResponse_ListUpdateResponse&& from) noexcept
1215
    : FetchThreatListUpdatesResponse_ListUpdateResponse() {
1216
    *this = ::std::move(from);
1217
  }
1218
1219
  inline FetchThreatListUpdatesResponse_ListUpdateResponse& operator=(FetchThreatListUpdatesResponse_ListUpdateResponse&& from) noexcept {
1220
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
1221
      if (this != &from) InternalSwap(&from);
1222
    } else {
1223
      CopyFrom(from);
1224
    }
1225
    return *this;
1226
  }
1227
  #endif
1228
  inline const ::std::string& unknown_fields() const {
1229
    return _internal_metadata_.unknown_fields();
1230
  }
1231
  inline ::std::string* mutable_unknown_fields() {
1232
    return _internal_metadata_.mutable_unknown_fields();
1233
  }
1234
1235
  static const FetchThreatListUpdatesResponse_ListUpdateResponse& default_instance();
1236
1237
  static inline const FetchThreatListUpdatesResponse_ListUpdateResponse* internal_default_instance() {
1238
    return reinterpret_cast<const FetchThreatListUpdatesResponse_ListUpdateResponse*>(
1239
               &_FetchThreatListUpdatesResponse_ListUpdateResponse_default_instance_);
1240
  }
1241
  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
1242
    7;
1243
1244
  void Swap(FetchThreatListUpdatesResponse_ListUpdateResponse* other);
1245
  friend void swap(FetchThreatListUpdatesResponse_ListUpdateResponse& a, FetchThreatListUpdatesResponse_ListUpdateResponse& b) {
1246
    a.Swap(&b);
1247
  }
1248
1249
  // implements Message ----------------------------------------------
1250
1251
  inline FetchThreatListUpdatesResponse_ListUpdateResponse* New() const PROTOBUF_FINAL { return New(NULL); }
1252
1253
  FetchThreatListUpdatesResponse_ListUpdateResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
1254
  void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
1255
    PROTOBUF_FINAL;
1256
  void CopyFrom(const FetchThreatListUpdatesResponse_ListUpdateResponse& from);
1257
  void MergeFrom(const FetchThreatListUpdatesResponse_ListUpdateResponse& from);
1258
  void Clear() PROTOBUF_FINAL;
1259
  bool IsInitialized() const PROTOBUF_FINAL;
1260
1261
  size_t ByteSizeLong() const PROTOBUF_FINAL;
1262
  bool MergePartialFromCodedStream(
1263
      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
1264
  void SerializeWithCachedSizes(
1265
      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
1266
  void DiscardUnknownFields();
1267
  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
1268
  private:
1269
  void SharedCtor();
1270
  void SharedDtor();
1271
  void SetCachedSize(int size) const;
1272
  void InternalSwap(FetchThreatListUpdatesResponse_ListUpdateResponse* other);
1273
  private:
1274
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
1275
    return NULL;
1276
  }
1277
  inline void* MaybeArenaPtr() const {
1278
    return NULL;
1279
  }
1280
  public:
1281
1282
  ::std::string GetTypeName() const PROTOBUF_FINAL;
1283
1284
  // nested types ----------------------------------------------------
1285
1286
  typedef FetchThreatListUpdatesResponse_ListUpdateResponse_ResponseType ResponseType;
1287
  static const ResponseType RESPONSE_TYPE_UNSPECIFIED =
1288
    FetchThreatListUpdatesResponse_ListUpdateResponse_ResponseType_RESPONSE_TYPE_UNSPECIFIED;
1289
  static const ResponseType PARTIAL_UPDATE =
1290
    FetchThreatListUpdatesResponse_ListUpdateResponse_ResponseType_PARTIAL_UPDATE;
1291
  static const ResponseType FULL_UPDATE =
1292
    FetchThreatListUpdatesResponse_ListUpdateResponse_ResponseType_FULL_UPDATE;
1293
  static inline bool ResponseType_IsValid(int value) {
1294
    return FetchThreatListUpdatesResponse_ListUpdateResponse_ResponseType_IsValid(value);
1295
  }
1296
  static const ResponseType ResponseType_MIN =
1297
    FetchThreatListUpdatesResponse_ListUpdateResponse_ResponseType_ResponseType_MIN;
1298
  static const ResponseType ResponseType_MAX =
1299
    FetchThreatListUpdatesResponse_ListUpdateResponse_ResponseType_ResponseType_MAX;
1300
  static const int ResponseType_ARRAYSIZE =
1301
    FetchThreatListUpdatesResponse_ListUpdateResponse_ResponseType_ResponseType_ARRAYSIZE;
1302
1303
  // accessors -------------------------------------------------------
1304
1305
  // repeated .mozilla.safebrowsing.ThreatEntrySet additions = 5;
1306
  int additions_size() const;
1307
  void clear_additions();
1308
  static const int kAdditionsFieldNumber = 5;
1309
  const ::mozilla::safebrowsing::ThreatEntrySet& additions(int index) const;
1310
  ::mozilla::safebrowsing::ThreatEntrySet* mutable_additions(int index);
1311
  ::mozilla::safebrowsing::ThreatEntrySet* add_additions();
1312
  ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatEntrySet >*
1313
      mutable_additions();
1314
  const ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatEntrySet >&
1315
      additions() const;
1316
1317
  // repeated .mozilla.safebrowsing.ThreatEntrySet removals = 6;
1318
  int removals_size() const;
1319
  void clear_removals();
1320
  static const int kRemovalsFieldNumber = 6;
1321
  const ::mozilla::safebrowsing::ThreatEntrySet& removals(int index) const;
1322
  ::mozilla::safebrowsing::ThreatEntrySet* mutable_removals(int index);
1323
  ::mozilla::safebrowsing::ThreatEntrySet* add_removals();
1324
  ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatEntrySet >*
1325
      mutable_removals();
1326
  const ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatEntrySet >&
1327
      removals() const;
1328
1329
  // optional bytes new_client_state = 7;
1330
  bool has_new_client_state() const;
1331
  void clear_new_client_state();
1332
  static const int kNewClientStateFieldNumber = 7;
1333
  const ::std::string& new_client_state() const;
1334
  void set_new_client_state(const ::std::string& value);
1335
  #if LANG_CXX11
1336
  void set_new_client_state(::std::string&& value);
1337
  #endif
1338
  void set_new_client_state(const char* value);
1339
  void set_new_client_state(const void* value, size_t size);
1340
  ::std::string* mutable_new_client_state();
1341
  ::std::string* release_new_client_state();
1342
  void set_allocated_new_client_state(::std::string* new_client_state);
1343
1344
  // optional .mozilla.safebrowsing.Checksum checksum = 8;
1345
  bool has_checksum() const;
1346
  void clear_checksum();
1347
  static const int kChecksumFieldNumber = 8;
1348
  const ::mozilla::safebrowsing::Checksum& checksum() const;
1349
  ::mozilla::safebrowsing::Checksum* mutable_checksum();
1350
  ::mozilla::safebrowsing::Checksum* release_checksum();
1351
  void set_allocated_checksum(::mozilla::safebrowsing::Checksum* checksum);
1352
1353
  // optional .mozilla.safebrowsing.ThreatType threat_type = 1;
1354
  bool has_threat_type() const;
1355
  void clear_threat_type();
1356
  static const int kThreatTypeFieldNumber = 1;
1357
  ::mozilla::safebrowsing::ThreatType threat_type() const;
1358
  void set_threat_type(::mozilla::safebrowsing::ThreatType value);
1359
1360
  // optional .mozilla.safebrowsing.ThreatEntryType threat_entry_type = 2;
1361
  bool has_threat_entry_type() const;
1362
  void clear_threat_entry_type();
1363
  static const int kThreatEntryTypeFieldNumber = 2;
1364
  ::mozilla::safebrowsing::ThreatEntryType threat_entry_type() const;
1365
  void set_threat_entry_type(::mozilla::safebrowsing::ThreatEntryType value);
1366
1367
  // optional .mozilla.safebrowsing.PlatformType platform_type = 3;
1368
  bool has_platform_type() const;
1369
  void clear_platform_type();
1370
  static const int kPlatformTypeFieldNumber = 3;
1371
  ::mozilla::safebrowsing::PlatformType platform_type() const;
1372
  void set_platform_type(::mozilla::safebrowsing::PlatformType value);
1373
1374
  // optional .mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.ResponseType response_type = 4;
1375
  bool has_response_type() const;
1376
  void clear_response_type();
1377
  static const int kResponseTypeFieldNumber = 4;
1378
  ::mozilla::safebrowsing::FetchThreatListUpdatesResponse_ListUpdateResponse_ResponseType response_type() const;
1379
  void set_response_type(::mozilla::safebrowsing::FetchThreatListUpdatesResponse_ListUpdateResponse_ResponseType value);
1380
1381
  // @@protoc_insertion_point(class_scope:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse)
1382
 private:
1383
  void set_has_threat_type();
1384
  void clear_has_threat_type();
1385
  void set_has_threat_entry_type();
1386
  void clear_has_threat_entry_type();
1387
  void set_has_platform_type();
1388
  void clear_has_platform_type();
1389
  void set_has_response_type();
1390
  void clear_has_response_type();
1391
  void set_has_new_client_state();
1392
  void clear_has_new_client_state();
1393
  void set_has_checksum();
1394
  void clear_has_checksum();
1395
1396
  ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
1397
  ::google::protobuf::internal::HasBits<1> _has_bits_;
1398
  mutable int _cached_size_;
1399
  ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatEntrySet > additions_;
1400
  ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatEntrySet > removals_;
1401
  ::google::protobuf::internal::ArenaStringPtr new_client_state_;
1402
  ::mozilla::safebrowsing::Checksum* checksum_;
1403
  int threat_type_;
1404
  int threat_entry_type_;
1405
  int platform_type_;
1406
  int response_type_;
1407
  friend struct protobuf_safebrowsing_2eproto::TableStruct;
1408
};
1409
// -------------------------------------------------------------------
1410
1411
class FetchThreatListUpdatesResponse : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:mozilla.safebrowsing.FetchThreatListUpdatesResponse) */ {
1412
 public:
1413
  FetchThreatListUpdatesResponse();
1414
  virtual ~FetchThreatListUpdatesResponse();
1415
1416
  FetchThreatListUpdatesResponse(const FetchThreatListUpdatesResponse& from);
1417
1418
  inline FetchThreatListUpdatesResponse& operator=(const FetchThreatListUpdatesResponse& from) {
1419
    CopyFrom(from);
1420
    return *this;
1421
  }
1422
  #if LANG_CXX11
1423
  FetchThreatListUpdatesResponse(FetchThreatListUpdatesResponse&& from) noexcept
1424
    : FetchThreatListUpdatesResponse() {
1425
    *this = ::std::move(from);
1426
  }
1427
1428
  inline FetchThreatListUpdatesResponse& operator=(FetchThreatListUpdatesResponse&& from) noexcept {
1429
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
1430
      if (this != &from) InternalSwap(&from);
1431
    } else {
1432
      CopyFrom(from);
1433
    }
1434
    return *this;
1435
  }
1436
  #endif
1437
  inline const ::std::string& unknown_fields() const {
1438
    return _internal_metadata_.unknown_fields();
1439
  }
1440
  inline ::std::string* mutable_unknown_fields() {
1441
    return _internal_metadata_.mutable_unknown_fields();
1442
  }
1443
1444
  static const FetchThreatListUpdatesResponse& default_instance();
1445
1446
  static inline const FetchThreatListUpdatesResponse* internal_default_instance() {
1447
    return reinterpret_cast<const FetchThreatListUpdatesResponse*>(
1448
               &_FetchThreatListUpdatesResponse_default_instance_);
1449
  }
1450
  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
1451
    8;
1452
1453
  void Swap(FetchThreatListUpdatesResponse* other);
1454
  friend void swap(FetchThreatListUpdatesResponse& a, FetchThreatListUpdatesResponse& b) {
1455
    a.Swap(&b);
1456
  }
1457
1458
  // implements Message ----------------------------------------------
1459
1460
  inline FetchThreatListUpdatesResponse* New() const PROTOBUF_FINAL { return New(NULL); }
1461
1462
  FetchThreatListUpdatesResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
1463
  void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
1464
    PROTOBUF_FINAL;
1465
  void CopyFrom(const FetchThreatListUpdatesResponse& from);
1466
  void MergeFrom(const FetchThreatListUpdatesResponse& from);
1467
  void Clear() PROTOBUF_FINAL;
1468
  bool IsInitialized() const PROTOBUF_FINAL;
1469
1470
  size_t ByteSizeLong() const PROTOBUF_FINAL;
1471
  bool MergePartialFromCodedStream(
1472
      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
1473
  void SerializeWithCachedSizes(
1474
      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
1475
  void DiscardUnknownFields();
1476
  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
1477
  private:
1478
  void SharedCtor();
1479
  void SharedDtor();
1480
  void SetCachedSize(int size) const;
1481
  void InternalSwap(FetchThreatListUpdatesResponse* other);
1482
  private:
1483
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
1484
    return NULL;
1485
  }
1486
  inline void* MaybeArenaPtr() const {
1487
    return NULL;
1488
  }
1489
  public:
1490
1491
  ::std::string GetTypeName() const PROTOBUF_FINAL;
1492
1493
  // nested types ----------------------------------------------------
1494
1495
  typedef FetchThreatListUpdatesResponse_ListUpdateResponse ListUpdateResponse;
1496
1497
  // accessors -------------------------------------------------------
1498
1499
  // repeated .mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse list_update_responses = 1;
1500
  int list_update_responses_size() const;
1501
  void clear_list_update_responses();
1502
  static const int kListUpdateResponsesFieldNumber = 1;
1503
  const ::mozilla::safebrowsing::FetchThreatListUpdatesResponse_ListUpdateResponse& list_update_responses(int index) const;
1504
  ::mozilla::safebrowsing::FetchThreatListUpdatesResponse_ListUpdateResponse* mutable_list_update_responses(int index);
1505
  ::mozilla::safebrowsing::FetchThreatListUpdatesResponse_ListUpdateResponse* add_list_update_responses();
1506
  ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::FetchThreatListUpdatesResponse_ListUpdateResponse >*
1507
      mutable_list_update_responses();
1508
  const ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::FetchThreatListUpdatesResponse_ListUpdateResponse >&
1509
      list_update_responses() const;
1510
1511
  // optional .mozilla.safebrowsing.Duration minimum_wait_duration = 2;
1512
  bool has_minimum_wait_duration() const;
1513
  void clear_minimum_wait_duration();
1514
  static const int kMinimumWaitDurationFieldNumber = 2;
1515
  const ::mozilla::safebrowsing::Duration& minimum_wait_duration() const;
1516
  ::mozilla::safebrowsing::Duration* mutable_minimum_wait_duration();
1517
  ::mozilla::safebrowsing::Duration* release_minimum_wait_duration();
1518
  void set_allocated_minimum_wait_duration(::mozilla::safebrowsing::Duration* minimum_wait_duration);
1519
1520
  // @@protoc_insertion_point(class_scope:mozilla.safebrowsing.FetchThreatListUpdatesResponse)
1521
 private:
1522
  void set_has_minimum_wait_duration();
1523
  void clear_has_minimum_wait_duration();
1524
1525
  ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
1526
  ::google::protobuf::internal::HasBits<1> _has_bits_;
1527
  mutable int _cached_size_;
1528
  ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::FetchThreatListUpdatesResponse_ListUpdateResponse > list_update_responses_;
1529
  ::mozilla::safebrowsing::Duration* minimum_wait_duration_;
1530
  friend struct protobuf_safebrowsing_2eproto::TableStruct;
1531
};
1532
// -------------------------------------------------------------------
1533
1534
class FindFullHashesRequest : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:mozilla.safebrowsing.FindFullHashesRequest) */ {
1535
 public:
1536
  FindFullHashesRequest();
1537
  virtual ~FindFullHashesRequest();
1538
1539
  FindFullHashesRequest(const FindFullHashesRequest& from);
1540
1541
  inline FindFullHashesRequest& operator=(const FindFullHashesRequest& from) {
1542
    CopyFrom(from);
1543
    return *this;
1544
  }
1545
  #if LANG_CXX11
1546
  FindFullHashesRequest(FindFullHashesRequest&& from) noexcept
1547
    : FindFullHashesRequest() {
1548
    *this = ::std::move(from);
1549
  }
1550
1551
  inline FindFullHashesRequest& operator=(FindFullHashesRequest&& from) noexcept {
1552
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
1553
      if (this != &from) InternalSwap(&from);
1554
    } else {
1555
      CopyFrom(from);
1556
    }
1557
    return *this;
1558
  }
1559
  #endif
1560
  inline const ::std::string& unknown_fields() const {
1561
    return _internal_metadata_.unknown_fields();
1562
  }
1563
  inline ::std::string* mutable_unknown_fields() {
1564
    return _internal_metadata_.mutable_unknown_fields();
1565
  }
1566
1567
  static const FindFullHashesRequest& default_instance();
1568
1569
  static inline const FindFullHashesRequest* internal_default_instance() {
1570
    return reinterpret_cast<const FindFullHashesRequest*>(
1571
               &_FindFullHashesRequest_default_instance_);
1572
  }
1573
  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
1574
    9;
1575
1576
  void Swap(FindFullHashesRequest* other);
1577
  friend void swap(FindFullHashesRequest& a, FindFullHashesRequest& b) {
1578
    a.Swap(&b);
1579
  }
1580
1581
  // implements Message ----------------------------------------------
1582
1583
  inline FindFullHashesRequest* New() const PROTOBUF_FINAL { return New(NULL); }
1584
1585
  FindFullHashesRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
1586
  void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
1587
    PROTOBUF_FINAL;
1588
  void CopyFrom(const FindFullHashesRequest& from);
1589
  void MergeFrom(const FindFullHashesRequest& from);
1590
  void Clear() PROTOBUF_FINAL;
1591
  bool IsInitialized() const PROTOBUF_FINAL;
1592
1593
  size_t ByteSizeLong() const PROTOBUF_FINAL;
1594
  bool MergePartialFromCodedStream(
1595
      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
1596
  void SerializeWithCachedSizes(
1597
      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
1598
  void DiscardUnknownFields();
1599
  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
1600
  private:
1601
  void SharedCtor();
1602
  void SharedDtor();
1603
  void SetCachedSize(int size) const;
1604
  void InternalSwap(FindFullHashesRequest* other);
1605
  private:
1606
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
1607
    return NULL;
1608
  }
1609
  inline void* MaybeArenaPtr() const {
1610
    return NULL;
1611
  }
1612
  public:
1613
1614
  ::std::string GetTypeName() const PROTOBUF_FINAL;
1615
1616
  // nested types ----------------------------------------------------
1617
1618
  // accessors -------------------------------------------------------
1619
1620
  // repeated bytes client_states = 2;
1621
  int client_states_size() const;
1622
  void clear_client_states();
1623
  static const int kClientStatesFieldNumber = 2;
1624
  const ::std::string& client_states(int index) const;
1625
  ::std::string* mutable_client_states(int index);
1626
  void set_client_states(int index, const ::std::string& value);
1627
  #if LANG_CXX11
1628
  void set_client_states(int index, ::std::string&& value);
1629
  #endif
1630
  void set_client_states(int index, const char* value);
1631
  void set_client_states(int index, const void* value, size_t size);
1632
  ::std::string* add_client_states();
1633
  void add_client_states(const ::std::string& value);
1634
  #if LANG_CXX11
1635
  void add_client_states(::std::string&& value);
1636
  #endif
1637
  void add_client_states(const char* value);
1638
  void add_client_states(const void* value, size_t size);
1639
  const ::google::protobuf::RepeatedPtrField< ::std::string>& client_states() const;
1640
  ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_client_states();
1641
1642
  // optional .mozilla.safebrowsing.ClientInfo client = 1;
1643
  bool has_client() const;
1644
  void clear_client();
1645
  static const int kClientFieldNumber = 1;
1646
  const ::mozilla::safebrowsing::ClientInfo& client() const;
1647
  ::mozilla::safebrowsing::ClientInfo* mutable_client();
1648
  ::mozilla::safebrowsing::ClientInfo* release_client();
1649
  void set_allocated_client(::mozilla::safebrowsing::ClientInfo* client);
1650
1651
  // optional .mozilla.safebrowsing.ThreatInfo threat_info = 3;
1652
  bool has_threat_info() const;
1653
  void clear_threat_info();
1654
  static const int kThreatInfoFieldNumber = 3;
1655
  const ::mozilla::safebrowsing::ThreatInfo& threat_info() const;
1656
  ::mozilla::safebrowsing::ThreatInfo* mutable_threat_info();
1657
  ::mozilla::safebrowsing::ThreatInfo* release_threat_info();
1658
  void set_allocated_threat_info(::mozilla::safebrowsing::ThreatInfo* threat_info);
1659
1660
  // @@protoc_insertion_point(class_scope:mozilla.safebrowsing.FindFullHashesRequest)
1661
 private:
1662
  void set_has_client();
1663
  void clear_has_client();
1664
  void set_has_threat_info();
1665
  void clear_has_threat_info();
1666
1667
  ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
1668
  ::google::protobuf::internal::HasBits<1> _has_bits_;
1669
  mutable int _cached_size_;
1670
  ::google::protobuf::RepeatedPtrField< ::std::string> client_states_;
1671
  ::mozilla::safebrowsing::ClientInfo* client_;
1672
  ::mozilla::safebrowsing::ThreatInfo* threat_info_;
1673
  friend struct protobuf_safebrowsing_2eproto::TableStruct;
1674
};
1675
// -------------------------------------------------------------------
1676
1677
class FindFullHashesResponse : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:mozilla.safebrowsing.FindFullHashesResponse) */ {
1678
 public:
1679
  FindFullHashesResponse();
1680
  virtual ~FindFullHashesResponse();
1681
1682
  FindFullHashesResponse(const FindFullHashesResponse& from);
1683
1684
  inline FindFullHashesResponse& operator=(const FindFullHashesResponse& from) {
1685
    CopyFrom(from);
1686
    return *this;
1687
  }
1688
  #if LANG_CXX11
1689
  FindFullHashesResponse(FindFullHashesResponse&& from) noexcept
1690
    : FindFullHashesResponse() {
1691
    *this = ::std::move(from);
1692
  }
1693
1694
  inline FindFullHashesResponse& operator=(FindFullHashesResponse&& from) noexcept {
1695
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
1696
      if (this != &from) InternalSwap(&from);
1697
    } else {
1698
      CopyFrom(from);
1699
    }
1700
    return *this;
1701
  }
1702
  #endif
1703
  inline const ::std::string& unknown_fields() const {
1704
    return _internal_metadata_.unknown_fields();
1705
  }
1706
  inline ::std::string* mutable_unknown_fields() {
1707
    return _internal_metadata_.mutable_unknown_fields();
1708
  }
1709
1710
  static const FindFullHashesResponse& default_instance();
1711
1712
  static inline const FindFullHashesResponse* internal_default_instance() {
1713
    return reinterpret_cast<const FindFullHashesResponse*>(
1714
               &_FindFullHashesResponse_default_instance_);
1715
  }
1716
  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
1717
    10;
1718
1719
  void Swap(FindFullHashesResponse* other);
1720
  friend void swap(FindFullHashesResponse& a, FindFullHashesResponse& b) {
1721
    a.Swap(&b);
1722
  }
1723
1724
  // implements Message ----------------------------------------------
1725
1726
  inline FindFullHashesResponse* New() const PROTOBUF_FINAL { return New(NULL); }
1727
1728
  FindFullHashesResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
1729
  void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
1730
    PROTOBUF_FINAL;
1731
  void CopyFrom(const FindFullHashesResponse& from);
1732
  void MergeFrom(const FindFullHashesResponse& from);
1733
  void Clear() PROTOBUF_FINAL;
1734
  bool IsInitialized() const PROTOBUF_FINAL;
1735
1736
  size_t ByteSizeLong() const PROTOBUF_FINAL;
1737
  bool MergePartialFromCodedStream(
1738
      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
1739
  void SerializeWithCachedSizes(
1740
      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
1741
  void DiscardUnknownFields();
1742
  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
1743
  private:
1744
  void SharedCtor();
1745
  void SharedDtor();
1746
  void SetCachedSize(int size) const;
1747
  void InternalSwap(FindFullHashesResponse* other);
1748
  private:
1749
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
1750
    return NULL;
1751
  }
1752
  inline void* MaybeArenaPtr() const {
1753
    return NULL;
1754
  }
1755
  public:
1756
1757
  ::std::string GetTypeName() const PROTOBUF_FINAL;
1758
1759
  // nested types ----------------------------------------------------
1760
1761
  // accessors -------------------------------------------------------
1762
1763
  // repeated .mozilla.safebrowsing.ThreatMatch matches = 1;
1764
  int matches_size() const;
1765
  void clear_matches();
1766
  static const int kMatchesFieldNumber = 1;
1767
  const ::mozilla::safebrowsing::ThreatMatch& matches(int index) const;
1768
  ::mozilla::safebrowsing::ThreatMatch* mutable_matches(int index);
1769
  ::mozilla::safebrowsing::ThreatMatch* add_matches();
1770
  ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatMatch >*
1771
      mutable_matches();
1772
  const ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatMatch >&
1773
      matches() const;
1774
1775
  // optional .mozilla.safebrowsing.Duration minimum_wait_duration = 2;
1776
  bool has_minimum_wait_duration() const;
1777
  void clear_minimum_wait_duration();
1778
  static const int kMinimumWaitDurationFieldNumber = 2;
1779
  const ::mozilla::safebrowsing::Duration& minimum_wait_duration() const;
1780
  ::mozilla::safebrowsing::Duration* mutable_minimum_wait_duration();
1781
  ::mozilla::safebrowsing::Duration* release_minimum_wait_duration();
1782
  void set_allocated_minimum_wait_duration(::mozilla::safebrowsing::Duration* minimum_wait_duration);
1783
1784
  // optional .mozilla.safebrowsing.Duration negative_cache_duration = 3;
1785
  bool has_negative_cache_duration() const;
1786
  void clear_negative_cache_duration();
1787
  static const int kNegativeCacheDurationFieldNumber = 3;
1788
  const ::mozilla::safebrowsing::Duration& negative_cache_duration() const;
1789
  ::mozilla::safebrowsing::Duration* mutable_negative_cache_duration();
1790
  ::mozilla::safebrowsing::Duration* release_negative_cache_duration();
1791
  void set_allocated_negative_cache_duration(::mozilla::safebrowsing::Duration* negative_cache_duration);
1792
1793
  // @@protoc_insertion_point(class_scope:mozilla.safebrowsing.FindFullHashesResponse)
1794
 private:
1795
  void set_has_minimum_wait_duration();
1796
  void clear_has_minimum_wait_duration();
1797
  void set_has_negative_cache_duration();
1798
  void clear_has_negative_cache_duration();
1799
1800
  ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
1801
  ::google::protobuf::internal::HasBits<1> _has_bits_;
1802
  mutable int _cached_size_;
1803
  ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatMatch > matches_;
1804
  ::mozilla::safebrowsing::Duration* minimum_wait_duration_;
1805
  ::mozilla::safebrowsing::Duration* negative_cache_duration_;
1806
  friend struct protobuf_safebrowsing_2eproto::TableStruct;
1807
};
1808
// -------------------------------------------------------------------
1809
1810
class ThreatHit_ThreatSource : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:mozilla.safebrowsing.ThreatHit.ThreatSource) */ {
1811
 public:
1812
  ThreatHit_ThreatSource();
1813
  virtual ~ThreatHit_ThreatSource();
1814
1815
  ThreatHit_ThreatSource(const ThreatHit_ThreatSource& from);
1816
1817
  inline ThreatHit_ThreatSource& operator=(const ThreatHit_ThreatSource& from) {
1818
    CopyFrom(from);
1819
    return *this;
1820
  }
1821
  #if LANG_CXX11
1822
  ThreatHit_ThreatSource(ThreatHit_ThreatSource&& from) noexcept
1823
    : ThreatHit_ThreatSource() {
1824
    *this = ::std::move(from);
1825
  }
1826
1827
  inline ThreatHit_ThreatSource& operator=(ThreatHit_ThreatSource&& from) noexcept {
1828
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
1829
      if (this != &from) InternalSwap(&from);
1830
    } else {
1831
      CopyFrom(from);
1832
    }
1833
    return *this;
1834
  }
1835
  #endif
1836
  inline const ::std::string& unknown_fields() const {
1837
    return _internal_metadata_.unknown_fields();
1838
  }
1839
  inline ::std::string* mutable_unknown_fields() {
1840
    return _internal_metadata_.mutable_unknown_fields();
1841
  }
1842
1843
  static const ThreatHit_ThreatSource& default_instance();
1844
1845
  static inline const ThreatHit_ThreatSource* internal_default_instance() {
1846
    return reinterpret_cast<const ThreatHit_ThreatSource*>(
1847
               &_ThreatHit_ThreatSource_default_instance_);
1848
  }
1849
  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
1850
    11;
1851
1852
  void Swap(ThreatHit_ThreatSource* other);
1853
  friend void swap(ThreatHit_ThreatSource& a, ThreatHit_ThreatSource& b) {
1854
    a.Swap(&b);
1855
  }
1856
1857
  // implements Message ----------------------------------------------
1858
1859
  inline ThreatHit_ThreatSource* New() const PROTOBUF_FINAL { return New(NULL); }
1860
1861
  ThreatHit_ThreatSource* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
1862
  void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
1863
    PROTOBUF_FINAL;
1864
  void CopyFrom(const ThreatHit_ThreatSource& from);
1865
  void MergeFrom(const ThreatHit_ThreatSource& from);
1866
  void Clear() PROTOBUF_FINAL;
1867
  bool IsInitialized() const PROTOBUF_FINAL;
1868
1869
  size_t ByteSizeLong() const PROTOBUF_FINAL;
1870
  bool MergePartialFromCodedStream(
1871
      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
1872
  void SerializeWithCachedSizes(
1873
      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
1874
  void DiscardUnknownFields();
1875
  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
1876
  private:
1877
  void SharedCtor();
1878
  void SharedDtor();
1879
  void SetCachedSize(int size) const;
1880
  void InternalSwap(ThreatHit_ThreatSource* other);
1881
  private:
1882
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
1883
    return NULL;
1884
  }
1885
  inline void* MaybeArenaPtr() const {
1886
    return NULL;
1887
  }
1888
  public:
1889
1890
  ::std::string GetTypeName() const PROTOBUF_FINAL;
1891
1892
  // nested types ----------------------------------------------------
1893
1894
  // accessors -------------------------------------------------------
1895
1896
  // optional string url = 1;
1897
  bool has_url() const;
1898
  void clear_url();
1899
  static const int kUrlFieldNumber = 1;
1900
  const ::std::string& url() const;
1901
  void set_url(const ::std::string& value);
1902
  #if LANG_CXX11
1903
  void set_url(::std::string&& value);
1904
  #endif
1905
  void set_url(const char* value);
1906
  void set_url(const char* value, size_t size);
1907
  ::std::string* mutable_url();
1908
  ::std::string* release_url();
1909
  void set_allocated_url(::std::string* url);
1910
1911
  // optional string remote_ip = 3;
1912
  bool has_remote_ip() const;
1913
  void clear_remote_ip();
1914
  static const int kRemoteIpFieldNumber = 3;
1915
  const ::std::string& remote_ip() const;
1916
  void set_remote_ip(const ::std::string& value);
1917
  #if LANG_CXX11
1918
  void set_remote_ip(::std::string&& value);
1919
  #endif
1920
  void set_remote_ip(const char* value);
1921
  void set_remote_ip(const char* value, size_t size);
1922
  ::std::string* mutable_remote_ip();
1923
  ::std::string* release_remote_ip();
1924
  void set_allocated_remote_ip(::std::string* remote_ip);
1925
1926
  // optional string referrer = 4;
1927
  bool has_referrer() const;
1928
  void clear_referrer();
1929
  static const int kReferrerFieldNumber = 4;
1930
  const ::std::string& referrer() const;
1931
  void set_referrer(const ::std::string& value);
1932
  #if LANG_CXX11
1933
  void set_referrer(::std::string&& value);
1934
  #endif
1935
  void set_referrer(const char* value);
1936
  void set_referrer(const char* value, size_t size);
1937
  ::std::string* mutable_referrer();
1938
  ::std::string* release_referrer();
1939
  void set_allocated_referrer(::std::string* referrer);
1940
1941
  // optional .mozilla.safebrowsing.ThreatHit.ThreatSourceType type = 2;
1942
  bool has_type() const;
1943
  void clear_type();
1944
  static const int kTypeFieldNumber = 2;
1945
  ::mozilla::safebrowsing::ThreatHit_ThreatSourceType type() const;
1946
  void set_type(::mozilla::safebrowsing::ThreatHit_ThreatSourceType value);
1947
1948
  // @@protoc_insertion_point(class_scope:mozilla.safebrowsing.ThreatHit.ThreatSource)
1949
 private:
1950
  void set_has_url();
1951
  void clear_has_url();
1952
  void set_has_type();
1953
  void clear_has_type();
1954
  void set_has_remote_ip();
1955
  void clear_has_remote_ip();
1956
  void set_has_referrer();
1957
  void clear_has_referrer();
1958
1959
  ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
1960
  ::google::protobuf::internal::HasBits<1> _has_bits_;
1961
  mutable int _cached_size_;
1962
  ::google::protobuf::internal::ArenaStringPtr url_;
1963
  ::google::protobuf::internal::ArenaStringPtr remote_ip_;
1964
  ::google::protobuf::internal::ArenaStringPtr referrer_;
1965
  int type_;
1966
  friend struct protobuf_safebrowsing_2eproto::TableStruct;
1967
};
1968
// -------------------------------------------------------------------
1969
1970
class ThreatHit_UserInfo : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:mozilla.safebrowsing.ThreatHit.UserInfo) */ {
1971
 public:
1972
  ThreatHit_UserInfo();
1973
  virtual ~ThreatHit_UserInfo();
1974
1975
  ThreatHit_UserInfo(const ThreatHit_UserInfo& from);
1976
1977
  inline ThreatHit_UserInfo& operator=(const ThreatHit_UserInfo& from) {
1978
    CopyFrom(from);
1979
    return *this;
1980
  }
1981
  #if LANG_CXX11
1982
  ThreatHit_UserInfo(ThreatHit_UserInfo&& from) noexcept
1983
    : ThreatHit_UserInfo() {
1984
    *this = ::std::move(from);
1985
  }
1986
1987
  inline ThreatHit_UserInfo& operator=(ThreatHit_UserInfo&& from) noexcept {
1988
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
1989
      if (this != &from) InternalSwap(&from);
1990
    } else {
1991
      CopyFrom(from);
1992
    }
1993
    return *this;
1994
  }
1995
  #endif
1996
  inline const ::std::string& unknown_fields() const {
1997
    return _internal_metadata_.unknown_fields();
1998
  }
1999
  inline ::std::string* mutable_unknown_fields() {
2000
    return _internal_metadata_.mutable_unknown_fields();
2001
  }
2002
2003
  static const ThreatHit_UserInfo& default_instance();
2004
2005
  static inline const ThreatHit_UserInfo* internal_default_instance() {
2006
    return reinterpret_cast<const ThreatHit_UserInfo*>(
2007
               &_ThreatHit_UserInfo_default_instance_);
2008
  }
2009
  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
2010
    12;
2011
2012
  void Swap(ThreatHit_UserInfo* other);
2013
  friend void swap(ThreatHit_UserInfo& a, ThreatHit_UserInfo& b) {
2014
    a.Swap(&b);
2015
  }
2016
2017
  // implements Message ----------------------------------------------
2018
2019
  inline ThreatHit_UserInfo* New() const PROTOBUF_FINAL { return New(NULL); }
2020
2021
  ThreatHit_UserInfo* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
2022
  void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
2023
    PROTOBUF_FINAL;
2024
  void CopyFrom(const ThreatHit_UserInfo& from);
2025
  void MergeFrom(const ThreatHit_UserInfo& from);
2026
  void Clear() PROTOBUF_FINAL;
2027
  bool IsInitialized() const PROTOBUF_FINAL;
2028
2029
  size_t ByteSizeLong() const PROTOBUF_FINAL;
2030
  bool MergePartialFromCodedStream(
2031
      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
2032
  void SerializeWithCachedSizes(
2033
      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
2034
  void DiscardUnknownFields();
2035
  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
2036
  private:
2037
  void SharedCtor();
2038
  void SharedDtor();
2039
  void SetCachedSize(int size) const;
2040
  void InternalSwap(ThreatHit_UserInfo* other);
2041
  private:
2042
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
2043
    return NULL;
2044
  }
2045
  inline void* MaybeArenaPtr() const {
2046
    return NULL;
2047
  }
2048
  public:
2049
2050
  ::std::string GetTypeName() const PROTOBUF_FINAL;
2051
2052
  // nested types ----------------------------------------------------
2053
2054
  // accessors -------------------------------------------------------
2055
2056
  // optional string region_code = 1;
2057
  bool has_region_code() const;
2058
  void clear_region_code();
2059
  static const int kRegionCodeFieldNumber = 1;
2060
  const ::std::string& region_code() const;
2061
  void set_region_code(const ::std::string& value);
2062
  #if LANG_CXX11
2063
  void set_region_code(::std::string&& value);
2064
  #endif
2065
  void set_region_code(const char* value);
2066
  void set_region_code(const char* value, size_t size);
2067
  ::std::string* mutable_region_code();
2068
  ::std::string* release_region_code();
2069
  void set_allocated_region_code(::std::string* region_code);
2070
2071
  // optional bytes user_id = 2;
2072
  bool has_user_id() const;
2073
  void clear_user_id();
2074
  static const int kUserIdFieldNumber = 2;
2075
  const ::std::string& user_id() const;
2076
  void set_user_id(const ::std::string& value);
2077
  #if LANG_CXX11
2078
  void set_user_id(::std::string&& value);
2079
  #endif
2080
  void set_user_id(const char* value);
2081
  void set_user_id(const void* value, size_t size);
2082
  ::std::string* mutable_user_id();
2083
  ::std::string* release_user_id();
2084
  void set_allocated_user_id(::std::string* user_id);
2085
2086
  // @@protoc_insertion_point(class_scope:mozilla.safebrowsing.ThreatHit.UserInfo)
2087
 private:
2088
  void set_has_region_code();
2089
  void clear_has_region_code();
2090
  void set_has_user_id();
2091
  void clear_has_user_id();
2092
2093
  ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
2094
  ::google::protobuf::internal::HasBits<1> _has_bits_;
2095
  mutable int _cached_size_;
2096
  ::google::protobuf::internal::ArenaStringPtr region_code_;
2097
  ::google::protobuf::internal::ArenaStringPtr user_id_;
2098
  friend struct protobuf_safebrowsing_2eproto::TableStruct;
2099
};
2100
// -------------------------------------------------------------------
2101
2102
class ThreatHit : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:mozilla.safebrowsing.ThreatHit) */ {
2103
 public:
2104
  ThreatHit();
2105
  virtual ~ThreatHit();
2106
2107
  ThreatHit(const ThreatHit& from);
2108
2109
  inline ThreatHit& operator=(const ThreatHit& from) {
2110
    CopyFrom(from);
2111
    return *this;
2112
  }
2113
  #if LANG_CXX11
2114
  ThreatHit(ThreatHit&& from) noexcept
2115
    : ThreatHit() {
2116
    *this = ::std::move(from);
2117
  }
2118
2119
  inline ThreatHit& operator=(ThreatHit&& from) noexcept {
2120
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
2121
      if (this != &from) InternalSwap(&from);
2122
    } else {
2123
      CopyFrom(from);
2124
    }
2125
    return *this;
2126
  }
2127
  #endif
2128
  inline const ::std::string& unknown_fields() const {
2129
    return _internal_metadata_.unknown_fields();
2130
  }
2131
  inline ::std::string* mutable_unknown_fields() {
2132
    return _internal_metadata_.mutable_unknown_fields();
2133
  }
2134
2135
  static const ThreatHit& default_instance();
2136
2137
  static inline const ThreatHit* internal_default_instance() {
2138
    return reinterpret_cast<const ThreatHit*>(
2139
               &_ThreatHit_default_instance_);
2140
  }
2141
  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
2142
    13;
2143
2144
  void Swap(ThreatHit* other);
2145
  friend void swap(ThreatHit& a, ThreatHit& b) {
2146
    a.Swap(&b);
2147
  }
2148
2149
  // implements Message ----------------------------------------------
2150
2151
  inline ThreatHit* New() const PROTOBUF_FINAL { return New(NULL); }
2152
2153
  ThreatHit* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
2154
  void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
2155
    PROTOBUF_FINAL;
2156
  void CopyFrom(const ThreatHit& from);
2157
  void MergeFrom(const ThreatHit& from);
2158
  void Clear() PROTOBUF_FINAL;
2159
  bool IsInitialized() const PROTOBUF_FINAL;
2160
2161
  size_t ByteSizeLong() const PROTOBUF_FINAL;
2162
  bool MergePartialFromCodedStream(
2163
      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
2164
  void SerializeWithCachedSizes(
2165
      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
2166
  void DiscardUnknownFields();
2167
  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
2168
  private:
2169
  void SharedCtor();
2170
  void SharedDtor();
2171
  void SetCachedSize(int size) const;
2172
  void InternalSwap(ThreatHit* other);
2173
  private:
2174
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
2175
    return NULL;
2176
  }
2177
  inline void* MaybeArenaPtr() const {
2178
    return NULL;
2179
  }
2180
  public:
2181
2182
  ::std::string GetTypeName() const PROTOBUF_FINAL;
2183
2184
  // nested types ----------------------------------------------------
2185
2186
  typedef ThreatHit_ThreatSource ThreatSource;
2187
  typedef ThreatHit_UserInfo UserInfo;
2188
2189
  typedef ThreatHit_ThreatSourceType ThreatSourceType;
2190
  static const ThreatSourceType THREAT_SOURCE_TYPE_UNSPECIFIED =
2191
    ThreatHit_ThreatSourceType_THREAT_SOURCE_TYPE_UNSPECIFIED;
2192
  static const ThreatSourceType MATCHING_URL =
2193
    ThreatHit_ThreatSourceType_MATCHING_URL;
2194
  static const ThreatSourceType TAB_URL =
2195
    ThreatHit_ThreatSourceType_TAB_URL;
2196
  static const ThreatSourceType TAB_REDIRECT =
2197
    ThreatHit_ThreatSourceType_TAB_REDIRECT;
2198
  static const ThreatSourceType TAB_RESOURCE =
2199
    ThreatHit_ThreatSourceType_TAB_RESOURCE;
2200
  static inline bool ThreatSourceType_IsValid(int value) {
2201
    return ThreatHit_ThreatSourceType_IsValid(value);
2202
  }
2203
  static const ThreatSourceType ThreatSourceType_MIN =
2204
    ThreatHit_ThreatSourceType_ThreatSourceType_MIN;
2205
  static const ThreatSourceType ThreatSourceType_MAX =
2206
    ThreatHit_ThreatSourceType_ThreatSourceType_MAX;
2207
  static const int ThreatSourceType_ARRAYSIZE =
2208
    ThreatHit_ThreatSourceType_ThreatSourceType_ARRAYSIZE;
2209
2210
  // accessors -------------------------------------------------------
2211
2212
  // repeated .mozilla.safebrowsing.ThreatHit.ThreatSource resources = 4;
2213
  int resources_size() const;
2214
  void clear_resources();
2215
  static const int kResourcesFieldNumber = 4;
2216
  const ::mozilla::safebrowsing::ThreatHit_ThreatSource& resources(int index) const;
2217
  ::mozilla::safebrowsing::ThreatHit_ThreatSource* mutable_resources(int index);
2218
  ::mozilla::safebrowsing::ThreatHit_ThreatSource* add_resources();
2219
  ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatHit_ThreatSource >*
2220
      mutable_resources();
2221
  const ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatHit_ThreatSource >&
2222
      resources() const;
2223
2224
  // optional .mozilla.safebrowsing.ThreatEntry entry = 3;
2225
  bool has_entry() const;
2226
  void clear_entry();
2227
  static const int kEntryFieldNumber = 3;
2228
  const ::mozilla::safebrowsing::ThreatEntry& entry() const;
2229
  ::mozilla::safebrowsing::ThreatEntry* mutable_entry();
2230
  ::mozilla::safebrowsing::ThreatEntry* release_entry();
2231
  void set_allocated_entry(::mozilla::safebrowsing::ThreatEntry* entry);
2232
2233
  // optional .mozilla.safebrowsing.ClientInfo client_info = 5;
2234
  bool has_client_info() const;
2235
  void clear_client_info();
2236
  static const int kClientInfoFieldNumber = 5;
2237
  const ::mozilla::safebrowsing::ClientInfo& client_info() const;
2238
  ::mozilla::safebrowsing::ClientInfo* mutable_client_info();
2239
  ::mozilla::safebrowsing::ClientInfo* release_client_info();
2240
  void set_allocated_client_info(::mozilla::safebrowsing::ClientInfo* client_info);
2241
2242
  // optional .mozilla.safebrowsing.ThreatHit.UserInfo user_info = 6;
2243
  bool has_user_info() const;
2244
  void clear_user_info();
2245
  static const int kUserInfoFieldNumber = 6;
2246
  const ::mozilla::safebrowsing::ThreatHit_UserInfo& user_info() const;
2247
  ::mozilla::safebrowsing::ThreatHit_UserInfo* mutable_user_info();
2248
  ::mozilla::safebrowsing::ThreatHit_UserInfo* release_user_info();
2249
  void set_allocated_user_info(::mozilla::safebrowsing::ThreatHit_UserInfo* user_info);
2250
2251
  // optional .mozilla.safebrowsing.ThreatType threat_type = 1;
2252
  bool has_threat_type() const;
2253
  void clear_threat_type();
2254
  static const int kThreatTypeFieldNumber = 1;
2255
  ::mozilla::safebrowsing::ThreatType threat_type() const;
2256
  void set_threat_type(::mozilla::safebrowsing::ThreatType value);
2257
2258
  // optional .mozilla.safebrowsing.PlatformType platform_type = 2;
2259
  bool has_platform_type() const;
2260
  void clear_platform_type();
2261
  static const int kPlatformTypeFieldNumber = 2;
2262
  ::mozilla::safebrowsing::PlatformType platform_type() const;
2263
  void set_platform_type(::mozilla::safebrowsing::PlatformType value);
2264
2265
  // @@protoc_insertion_point(class_scope:mozilla.safebrowsing.ThreatHit)
2266
 private:
2267
  void set_has_threat_type();
2268
  void clear_has_threat_type();
2269
  void set_has_platform_type();
2270
  void clear_has_platform_type();
2271
  void set_has_entry();
2272
  void clear_has_entry();
2273
  void set_has_client_info();
2274
  void clear_has_client_info();
2275
  void set_has_user_info();
2276
  void clear_has_user_info();
2277
2278
  ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
2279
  ::google::protobuf::internal::HasBits<1> _has_bits_;
2280
  mutable int _cached_size_;
2281
  ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatHit_ThreatSource > resources_;
2282
  ::mozilla::safebrowsing::ThreatEntry* entry_;
2283
  ::mozilla::safebrowsing::ClientInfo* client_info_;
2284
  ::mozilla::safebrowsing::ThreatHit_UserInfo* user_info_;
2285
  int threat_type_;
2286
  int platform_type_;
2287
  friend struct protobuf_safebrowsing_2eproto::TableStruct;
2288
};
2289
// -------------------------------------------------------------------
2290
2291
class ClientInfo : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:mozilla.safebrowsing.ClientInfo) */ {
2292
 public:
2293
  ClientInfo();
2294
  virtual ~ClientInfo();
2295
2296
  ClientInfo(const ClientInfo& from);
2297
2298
  inline ClientInfo& operator=(const ClientInfo& from) {
2299
    CopyFrom(from);
2300
    return *this;
2301
  }
2302
  #if LANG_CXX11
2303
  ClientInfo(ClientInfo&& from) noexcept
2304
    : ClientInfo() {
2305
    *this = ::std::move(from);
2306
  }
2307
2308
  inline ClientInfo& operator=(ClientInfo&& from) noexcept {
2309
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
2310
      if (this != &from) InternalSwap(&from);
2311
    } else {
2312
      CopyFrom(from);
2313
    }
2314
    return *this;
2315
  }
2316
  #endif
2317
  inline const ::std::string& unknown_fields() const {
2318
    return _internal_metadata_.unknown_fields();
2319
  }
2320
  inline ::std::string* mutable_unknown_fields() {
2321
    return _internal_metadata_.mutable_unknown_fields();
2322
  }
2323
2324
  static const ClientInfo& default_instance();
2325
2326
  static inline const ClientInfo* internal_default_instance() {
2327
    return reinterpret_cast<const ClientInfo*>(
2328
               &_ClientInfo_default_instance_);
2329
  }
2330
  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
2331
    14;
2332
2333
  void Swap(ClientInfo* other);
2334
  friend void swap(ClientInfo& a, ClientInfo& b) {
2335
    a.Swap(&b);
2336
  }
2337
2338
  // implements Message ----------------------------------------------
2339
2340
  inline ClientInfo* New() const PROTOBUF_FINAL { return New(NULL); }
2341
2342
  ClientInfo* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
2343
  void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
2344
    PROTOBUF_FINAL;
2345
  void CopyFrom(const ClientInfo& from);
2346
  void MergeFrom(const ClientInfo& from);
2347
  void Clear() PROTOBUF_FINAL;
2348
  bool IsInitialized() const PROTOBUF_FINAL;
2349
2350
  size_t ByteSizeLong() const PROTOBUF_FINAL;
2351
  bool MergePartialFromCodedStream(
2352
      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
2353
  void SerializeWithCachedSizes(
2354
      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
2355
  void DiscardUnknownFields();
2356
  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
2357
  private:
2358
  void SharedCtor();
2359
  void SharedDtor();
2360
  void SetCachedSize(int size) const;
2361
  void InternalSwap(ClientInfo* other);
2362
  private:
2363
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
2364
    return NULL;
2365
  }
2366
  inline void* MaybeArenaPtr() const {
2367
    return NULL;
2368
  }
2369
  public:
2370
2371
  ::std::string GetTypeName() const PROTOBUF_FINAL;
2372
2373
  // nested types ----------------------------------------------------
2374
2375
  // accessors -------------------------------------------------------
2376
2377
  // optional string client_id = 1;
2378
  bool has_client_id() const;
2379
  void clear_client_id();
2380
  static const int kClientIdFieldNumber = 1;
2381
  const ::std::string& client_id() const;
2382
  void set_client_id(const ::std::string& value);
2383
  #if LANG_CXX11
2384
  void set_client_id(::std::string&& value);
2385
  #endif
2386
  void set_client_id(const char* value);
2387
  void set_client_id(const char* value, size_t size);
2388
  ::std::string* mutable_client_id();
2389
  ::std::string* release_client_id();
2390
  void set_allocated_client_id(::std::string* client_id);
2391
2392
  // optional string client_version = 2;
2393
  bool has_client_version() const;
2394
  void clear_client_version();
2395
  static const int kClientVersionFieldNumber = 2;
2396
  const ::std::string& client_version() const;
2397
  void set_client_version(const ::std::string& value);
2398
  #if LANG_CXX11
2399
  void set_client_version(::std::string&& value);
2400
  #endif
2401
  void set_client_version(const char* value);
2402
  void set_client_version(const char* value, size_t size);
2403
  ::std::string* mutable_client_version();
2404
  ::std::string* release_client_version();
2405
  void set_allocated_client_version(::std::string* client_version);
2406
2407
  // @@protoc_insertion_point(class_scope:mozilla.safebrowsing.ClientInfo)
2408
 private:
2409
  void set_has_client_id();
2410
  void clear_has_client_id();
2411
  void set_has_client_version();
2412
  void clear_has_client_version();
2413
2414
  ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
2415
  ::google::protobuf::internal::HasBits<1> _has_bits_;
2416
  mutable int _cached_size_;
2417
  ::google::protobuf::internal::ArenaStringPtr client_id_;
2418
  ::google::protobuf::internal::ArenaStringPtr client_version_;
2419
  friend struct protobuf_safebrowsing_2eproto::TableStruct;
2420
};
2421
// -------------------------------------------------------------------
2422
2423
class ChromeClientInfo : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:mozilla.safebrowsing.ChromeClientInfo) */ {
2424
 public:
2425
  ChromeClientInfo();
2426
  virtual ~ChromeClientInfo();
2427
2428
  ChromeClientInfo(const ChromeClientInfo& from);
2429
2430
  inline ChromeClientInfo& operator=(const ChromeClientInfo& from) {
2431
    CopyFrom(from);
2432
    return *this;
2433
  }
2434
  #if LANG_CXX11
2435
  ChromeClientInfo(ChromeClientInfo&& from) noexcept
2436
    : ChromeClientInfo() {
2437
    *this = ::std::move(from);
2438
  }
2439
2440
  inline ChromeClientInfo& operator=(ChromeClientInfo&& from) noexcept {
2441
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
2442
      if (this != &from) InternalSwap(&from);
2443
    } else {
2444
      CopyFrom(from);
2445
    }
2446
    return *this;
2447
  }
2448
  #endif
2449
  inline const ::std::string& unknown_fields() const {
2450
    return _internal_metadata_.unknown_fields();
2451
  }
2452
  inline ::std::string* mutable_unknown_fields() {
2453
    return _internal_metadata_.mutable_unknown_fields();
2454
  }
2455
2456
  static const ChromeClientInfo& default_instance();
2457
2458
  static inline const ChromeClientInfo* internal_default_instance() {
2459
    return reinterpret_cast<const ChromeClientInfo*>(
2460
               &_ChromeClientInfo_default_instance_);
2461
  }
2462
  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
2463
    15;
2464
2465
  void Swap(ChromeClientInfo* other);
2466
  friend void swap(ChromeClientInfo& a, ChromeClientInfo& b) {
2467
    a.Swap(&b);
2468
  }
2469
2470
  // implements Message ----------------------------------------------
2471
2472
  inline ChromeClientInfo* New() const PROTOBUF_FINAL { return New(NULL); }
2473
2474
  ChromeClientInfo* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
2475
  void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
2476
    PROTOBUF_FINAL;
2477
  void CopyFrom(const ChromeClientInfo& from);
2478
  void MergeFrom(const ChromeClientInfo& from);
2479
  void Clear() PROTOBUF_FINAL;
2480
  bool IsInitialized() const PROTOBUF_FINAL;
2481
2482
  size_t ByteSizeLong() const PROTOBUF_FINAL;
2483
  bool MergePartialFromCodedStream(
2484
      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
2485
  void SerializeWithCachedSizes(
2486
      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
2487
  void DiscardUnknownFields();
2488
  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
2489
  private:
2490
  void SharedCtor();
2491
  void SharedDtor();
2492
  void SetCachedSize(int size) const;
2493
  void InternalSwap(ChromeClientInfo* other);
2494
  private:
2495
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
2496
    return NULL;
2497
  }
2498
  inline void* MaybeArenaPtr() const {
2499
    return NULL;
2500
  }
2501
  public:
2502
2503
  ::std::string GetTypeName() const PROTOBUF_FINAL;
2504
2505
  // nested types ----------------------------------------------------
2506
2507
  typedef ChromeClientInfo_SafeBrowsingReportingPopulation SafeBrowsingReportingPopulation;
2508
  static const SafeBrowsingReportingPopulation UNSPECIFIED =
2509
    ChromeClientInfo_SafeBrowsingReportingPopulation_UNSPECIFIED;
2510
  static const SafeBrowsingReportingPopulation OPT_OUT =
2511
    ChromeClientInfo_SafeBrowsingReportingPopulation_OPT_OUT;
2512
  static const SafeBrowsingReportingPopulation EXTENDED =
2513
    ChromeClientInfo_SafeBrowsingReportingPopulation_EXTENDED;
2514
  static const SafeBrowsingReportingPopulation SCOUT =
2515
    ChromeClientInfo_SafeBrowsingReportingPopulation_SCOUT;
2516
  static inline bool SafeBrowsingReportingPopulation_IsValid(int value) {
2517
    return ChromeClientInfo_SafeBrowsingReportingPopulation_IsValid(value);
2518
  }
2519
  static const SafeBrowsingReportingPopulation SafeBrowsingReportingPopulation_MIN =
2520
    ChromeClientInfo_SafeBrowsingReportingPopulation_SafeBrowsingReportingPopulation_MIN;
2521
  static const SafeBrowsingReportingPopulation SafeBrowsingReportingPopulation_MAX =
2522
    ChromeClientInfo_SafeBrowsingReportingPopulation_SafeBrowsingReportingPopulation_MAX;
2523
  static const int SafeBrowsingReportingPopulation_ARRAYSIZE =
2524
    ChromeClientInfo_SafeBrowsingReportingPopulation_SafeBrowsingReportingPopulation_ARRAYSIZE;
2525
2526
  // accessors -------------------------------------------------------
2527
2528
  // optional .mozilla.safebrowsing.ChromeClientInfo.SafeBrowsingReportingPopulation reporting_population = 1;
2529
  bool has_reporting_population() const;
2530
  void clear_reporting_population();
2531
  static const int kReportingPopulationFieldNumber = 1;
2532
  ::mozilla::safebrowsing::ChromeClientInfo_SafeBrowsingReportingPopulation reporting_population() const;
2533
  void set_reporting_population(::mozilla::safebrowsing::ChromeClientInfo_SafeBrowsingReportingPopulation value);
2534
2535
  // @@protoc_insertion_point(class_scope:mozilla.safebrowsing.ChromeClientInfo)
2536
 private:
2537
  void set_has_reporting_population();
2538
  void clear_has_reporting_population();
2539
2540
  ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
2541
  ::google::protobuf::internal::HasBits<1> _has_bits_;
2542
  mutable int _cached_size_;
2543
  int reporting_population_;
2544
  friend struct protobuf_safebrowsing_2eproto::TableStruct;
2545
};
2546
// -------------------------------------------------------------------
2547
2548
class Checksum : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:mozilla.safebrowsing.Checksum) */ {
2549
 public:
2550
  Checksum();
2551
  virtual ~Checksum();
2552
2553
  Checksum(const Checksum& from);
2554
2555
  inline Checksum& operator=(const Checksum& from) {
2556
    CopyFrom(from);
2557
    return *this;
2558
  }
2559
  #if LANG_CXX11
2560
  Checksum(Checksum&& from) noexcept
2561
    : Checksum() {
2562
    *this = ::std::move(from);
2563
  }
2564
2565
  inline Checksum& operator=(Checksum&& from) noexcept {
2566
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
2567
      if (this != &from) InternalSwap(&from);
2568
    } else {
2569
      CopyFrom(from);
2570
    }
2571
    return *this;
2572
  }
2573
  #endif
2574
  inline const ::std::string& unknown_fields() const {
2575
    return _internal_metadata_.unknown_fields();
2576
  }
2577
  inline ::std::string* mutable_unknown_fields() {
2578
    return _internal_metadata_.mutable_unknown_fields();
2579
  }
2580
2581
  static const Checksum& default_instance();
2582
2583
  static inline const Checksum* internal_default_instance() {
2584
    return reinterpret_cast<const Checksum*>(
2585
               &_Checksum_default_instance_);
2586
  }
2587
  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
2588
    16;
2589
2590
  void Swap(Checksum* other);
2591
  friend void swap(Checksum& a, Checksum& b) {
2592
    a.Swap(&b);
2593
  }
2594
2595
  // implements Message ----------------------------------------------
2596
2597
  inline Checksum* New() const PROTOBUF_FINAL { return New(NULL); }
2598
2599
  Checksum* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
2600
  void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
2601
    PROTOBUF_FINAL;
2602
  void CopyFrom(const Checksum& from);
2603
  void MergeFrom(const Checksum& from);
2604
  void Clear() PROTOBUF_FINAL;
2605
  bool IsInitialized() const PROTOBUF_FINAL;
2606
2607
  size_t ByteSizeLong() const PROTOBUF_FINAL;
2608
  bool MergePartialFromCodedStream(
2609
      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
2610
  void SerializeWithCachedSizes(
2611
      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
2612
  void DiscardUnknownFields();
2613
  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
2614
  private:
2615
  void SharedCtor();
2616
  void SharedDtor();
2617
  void SetCachedSize(int size) const;
2618
  void InternalSwap(Checksum* other);
2619
  private:
2620
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
2621
    return NULL;
2622
  }
2623
  inline void* MaybeArenaPtr() const {
2624
    return NULL;
2625
  }
2626
  public:
2627
2628
  ::std::string GetTypeName() const PROTOBUF_FINAL;
2629
2630
  // nested types ----------------------------------------------------
2631
2632
  // accessors -------------------------------------------------------
2633
2634
  // optional bytes sha256 = 1;
2635
  bool has_sha256() const;
2636
  void clear_sha256();
2637
  static const int kSha256FieldNumber = 1;
2638
  const ::std::string& sha256() const;
2639
  void set_sha256(const ::std::string& value);
2640
  #if LANG_CXX11
2641
  void set_sha256(::std::string&& value);
2642
  #endif
2643
  void set_sha256(const char* value);
2644
  void set_sha256(const void* value, size_t size);
2645
  ::std::string* mutable_sha256();
2646
  ::std::string* release_sha256();
2647
  void set_allocated_sha256(::std::string* sha256);
2648
2649
  // @@protoc_insertion_point(class_scope:mozilla.safebrowsing.Checksum)
2650
 private:
2651
  void set_has_sha256();
2652
  void clear_has_sha256();
2653
2654
  ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
2655
  ::google::protobuf::internal::HasBits<1> _has_bits_;
2656
  mutable int _cached_size_;
2657
  ::google::protobuf::internal::ArenaStringPtr sha256_;
2658
  friend struct protobuf_safebrowsing_2eproto::TableStruct;
2659
};
2660
// -------------------------------------------------------------------
2661
2662
class ThreatEntry : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:mozilla.safebrowsing.ThreatEntry) */ {
2663
 public:
2664
  ThreatEntry();
2665
  virtual ~ThreatEntry();
2666
2667
  ThreatEntry(const ThreatEntry& from);
2668
2669
  inline ThreatEntry& operator=(const ThreatEntry& from) {
2670
    CopyFrom(from);
2671
    return *this;
2672
  }
2673
  #if LANG_CXX11
2674
  ThreatEntry(ThreatEntry&& from) noexcept
2675
    : ThreatEntry() {
2676
    *this = ::std::move(from);
2677
  }
2678
2679
  inline ThreatEntry& operator=(ThreatEntry&& from) noexcept {
2680
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
2681
      if (this != &from) InternalSwap(&from);
2682
    } else {
2683
      CopyFrom(from);
2684
    }
2685
    return *this;
2686
  }
2687
  #endif
2688
  inline const ::std::string& unknown_fields() const {
2689
    return _internal_metadata_.unknown_fields();
2690
  }
2691
  inline ::std::string* mutable_unknown_fields() {
2692
    return _internal_metadata_.mutable_unknown_fields();
2693
  }
2694
2695
  static const ThreatEntry& default_instance();
2696
2697
  static inline const ThreatEntry* internal_default_instance() {
2698
    return reinterpret_cast<const ThreatEntry*>(
2699
               &_ThreatEntry_default_instance_);
2700
  }
2701
  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
2702
    17;
2703
2704
  void Swap(ThreatEntry* other);
2705
  friend void swap(ThreatEntry& a, ThreatEntry& b) {
2706
    a.Swap(&b);
2707
  }
2708
2709
  // implements Message ----------------------------------------------
2710
2711
  inline ThreatEntry* New() const PROTOBUF_FINAL { return New(NULL); }
2712
2713
  ThreatEntry* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
2714
  void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
2715
    PROTOBUF_FINAL;
2716
  void CopyFrom(const ThreatEntry& from);
2717
  void MergeFrom(const ThreatEntry& from);
2718
  void Clear() PROTOBUF_FINAL;
2719
  bool IsInitialized() const PROTOBUF_FINAL;
2720
2721
  size_t ByteSizeLong() const PROTOBUF_FINAL;
2722
  bool MergePartialFromCodedStream(
2723
      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
2724
  void SerializeWithCachedSizes(
2725
      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
2726
  void DiscardUnknownFields();
2727
  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
2728
  private:
2729
  void SharedCtor();
2730
  void SharedDtor();
2731
  void SetCachedSize(int size) const;
2732
  void InternalSwap(ThreatEntry* other);
2733
  private:
2734
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
2735
    return NULL;
2736
  }
2737
  inline void* MaybeArenaPtr() const {
2738
    return NULL;
2739
  }
2740
  public:
2741
2742
  ::std::string GetTypeName() const PROTOBUF_FINAL;
2743
2744
  // nested types ----------------------------------------------------
2745
2746
  // accessors -------------------------------------------------------
2747
2748
  // optional bytes hash = 1;
2749
  bool has_hash() const;
2750
  void clear_hash();
2751
  static const int kHashFieldNumber = 1;
2752
  const ::std::string& hash() const;
2753
  void set_hash(const ::std::string& value);
2754
  #if LANG_CXX11
2755
  void set_hash(::std::string&& value);
2756
  #endif
2757
  void set_hash(const char* value);
2758
  void set_hash(const void* value, size_t size);
2759
  ::std::string* mutable_hash();
2760
  ::std::string* release_hash();
2761
  void set_allocated_hash(::std::string* hash);
2762
2763
  // optional string url = 2;
2764
  bool has_url() const;
2765
  void clear_url();
2766
  static const int kUrlFieldNumber = 2;
2767
  const ::std::string& url() const;
2768
  void set_url(const ::std::string& value);
2769
  #if LANG_CXX11
2770
  void set_url(::std::string&& value);
2771
  #endif
2772
  void set_url(const char* value);
2773
  void set_url(const char* value, size_t size);
2774
  ::std::string* mutable_url();
2775
  ::std::string* release_url();
2776
  void set_allocated_url(::std::string* url);
2777
2778
  // @@protoc_insertion_point(class_scope:mozilla.safebrowsing.ThreatEntry)
2779
 private:
2780
  void set_has_hash();
2781
  void clear_has_hash();
2782
  void set_has_url();
2783
  void clear_has_url();
2784
2785
  ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
2786
  ::google::protobuf::internal::HasBits<1> _has_bits_;
2787
  mutable int _cached_size_;
2788
  ::google::protobuf::internal::ArenaStringPtr hash_;
2789
  ::google::protobuf::internal::ArenaStringPtr url_;
2790
  friend struct protobuf_safebrowsing_2eproto::TableStruct;
2791
};
2792
// -------------------------------------------------------------------
2793
2794
class ThreatEntrySet : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:mozilla.safebrowsing.ThreatEntrySet) */ {
2795
 public:
2796
  ThreatEntrySet();
2797
  virtual ~ThreatEntrySet();
2798
2799
  ThreatEntrySet(const ThreatEntrySet& from);
2800
2801
  inline ThreatEntrySet& operator=(const ThreatEntrySet& from) {
2802
    CopyFrom(from);
2803
    return *this;
2804
  }
2805
  #if LANG_CXX11
2806
  ThreatEntrySet(ThreatEntrySet&& from) noexcept
2807
    : ThreatEntrySet() {
2808
    *this = ::std::move(from);
2809
  }
2810
2811
  inline ThreatEntrySet& operator=(ThreatEntrySet&& from) noexcept {
2812
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
2813
      if (this != &from) InternalSwap(&from);
2814
    } else {
2815
      CopyFrom(from);
2816
    }
2817
    return *this;
2818
  }
2819
  #endif
2820
  inline const ::std::string& unknown_fields() const {
2821
    return _internal_metadata_.unknown_fields();
2822
  }
2823
  inline ::std::string* mutable_unknown_fields() {
2824
    return _internal_metadata_.mutable_unknown_fields();
2825
  }
2826
2827
  static const ThreatEntrySet& default_instance();
2828
2829
  static inline const ThreatEntrySet* internal_default_instance() {
2830
    return reinterpret_cast<const ThreatEntrySet*>(
2831
               &_ThreatEntrySet_default_instance_);
2832
  }
2833
  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
2834
    18;
2835
2836
  void Swap(ThreatEntrySet* other);
2837
  friend void swap(ThreatEntrySet& a, ThreatEntrySet& b) {
2838
    a.Swap(&b);
2839
  }
2840
2841
  // implements Message ----------------------------------------------
2842
2843
  inline ThreatEntrySet* New() const PROTOBUF_FINAL { return New(NULL); }
2844
2845
  ThreatEntrySet* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
2846
  void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
2847
    PROTOBUF_FINAL;
2848
  void CopyFrom(const ThreatEntrySet& from);
2849
  void MergeFrom(const ThreatEntrySet& from);
2850
  void Clear() PROTOBUF_FINAL;
2851
  bool IsInitialized() const PROTOBUF_FINAL;
2852
2853
  size_t ByteSizeLong() const PROTOBUF_FINAL;
2854
  bool MergePartialFromCodedStream(
2855
      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
2856
  void SerializeWithCachedSizes(
2857
      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
2858
  void DiscardUnknownFields();
2859
  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
2860
  private:
2861
  void SharedCtor();
2862
  void SharedDtor();
2863
  void SetCachedSize(int size) const;
2864
  void InternalSwap(ThreatEntrySet* other);
2865
  private:
2866
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
2867
    return NULL;
2868
  }
2869
  inline void* MaybeArenaPtr() const {
2870
    return NULL;
2871
  }
2872
  public:
2873
2874
  ::std::string GetTypeName() const PROTOBUF_FINAL;
2875
2876
  // nested types ----------------------------------------------------
2877
2878
  // accessors -------------------------------------------------------
2879
2880
  // optional .mozilla.safebrowsing.RawHashes raw_hashes = 2;
2881
  bool has_raw_hashes() const;
2882
  void clear_raw_hashes();
2883
  static const int kRawHashesFieldNumber = 2;
2884
  const ::mozilla::safebrowsing::RawHashes& raw_hashes() const;
2885
  ::mozilla::safebrowsing::RawHashes* mutable_raw_hashes();
2886
  ::mozilla::safebrowsing::RawHashes* release_raw_hashes();
2887
  void set_allocated_raw_hashes(::mozilla::safebrowsing::RawHashes* raw_hashes);
2888
2889
  // optional .mozilla.safebrowsing.RawIndices raw_indices = 3;
2890
  bool has_raw_indices() const;
2891
  void clear_raw_indices();
2892
  static const int kRawIndicesFieldNumber = 3;
2893
  const ::mozilla::safebrowsing::RawIndices& raw_indices() const;
2894
  ::mozilla::safebrowsing::RawIndices* mutable_raw_indices();
2895
  ::mozilla::safebrowsing::RawIndices* release_raw_indices();
2896
  void set_allocated_raw_indices(::mozilla::safebrowsing::RawIndices* raw_indices);
2897
2898
  // optional .mozilla.safebrowsing.RiceDeltaEncoding rice_hashes = 4;
2899
  bool has_rice_hashes() const;
2900
  void clear_rice_hashes();
2901
  static const int kRiceHashesFieldNumber = 4;
2902
  const ::mozilla::safebrowsing::RiceDeltaEncoding& rice_hashes() const;
2903
  ::mozilla::safebrowsing::RiceDeltaEncoding* mutable_rice_hashes();
2904
  ::mozilla::safebrowsing::RiceDeltaEncoding* release_rice_hashes();
2905
  void set_allocated_rice_hashes(::mozilla::safebrowsing::RiceDeltaEncoding* rice_hashes);
2906
2907
  // optional .mozilla.safebrowsing.RiceDeltaEncoding rice_indices = 5;
2908
  bool has_rice_indices() const;
2909
  void clear_rice_indices();
2910
  static const int kRiceIndicesFieldNumber = 5;
2911
  const ::mozilla::safebrowsing::RiceDeltaEncoding& rice_indices() const;
2912
  ::mozilla::safebrowsing::RiceDeltaEncoding* mutable_rice_indices();
2913
  ::mozilla::safebrowsing::RiceDeltaEncoding* release_rice_indices();
2914
  void set_allocated_rice_indices(::mozilla::safebrowsing::RiceDeltaEncoding* rice_indices);
2915
2916
  // optional .mozilla.safebrowsing.CompressionType compression_type = 1;
2917
  bool has_compression_type() const;
2918
  void clear_compression_type();
2919
  static const int kCompressionTypeFieldNumber = 1;
2920
  ::mozilla::safebrowsing::CompressionType compression_type() const;
2921
  void set_compression_type(::mozilla::safebrowsing::CompressionType value);
2922
2923
  // @@protoc_insertion_point(class_scope:mozilla.safebrowsing.ThreatEntrySet)
2924
 private:
2925
  void set_has_compression_type();
2926
  void clear_has_compression_type();
2927
  void set_has_raw_hashes();
2928
  void clear_has_raw_hashes();
2929
  void set_has_raw_indices();
2930
  void clear_has_raw_indices();
2931
  void set_has_rice_hashes();
2932
  void clear_has_rice_hashes();
2933
  void set_has_rice_indices();
2934
  void clear_has_rice_indices();
2935
2936
  ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
2937
  ::google::protobuf::internal::HasBits<1> _has_bits_;
2938
  mutable int _cached_size_;
2939
  ::mozilla::safebrowsing::RawHashes* raw_hashes_;
2940
  ::mozilla::safebrowsing::RawIndices* raw_indices_;
2941
  ::mozilla::safebrowsing::RiceDeltaEncoding* rice_hashes_;
2942
  ::mozilla::safebrowsing::RiceDeltaEncoding* rice_indices_;
2943
  int compression_type_;
2944
  friend struct protobuf_safebrowsing_2eproto::TableStruct;
2945
};
2946
// -------------------------------------------------------------------
2947
2948
class RawIndices : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:mozilla.safebrowsing.RawIndices) */ {
2949
 public:
2950
  RawIndices();
2951
  virtual ~RawIndices();
2952
2953
  RawIndices(const RawIndices& from);
2954
2955
  inline RawIndices& operator=(const RawIndices& from) {
2956
    CopyFrom(from);
2957
    return *this;
2958
  }
2959
  #if LANG_CXX11
2960
  RawIndices(RawIndices&& from) noexcept
2961
    : RawIndices() {
2962
    *this = ::std::move(from);
2963
  }
2964
2965
  inline RawIndices& operator=(RawIndices&& from) noexcept {
2966
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
2967
      if (this != &from) InternalSwap(&from);
2968
    } else {
2969
      CopyFrom(from);
2970
    }
2971
    return *this;
2972
  }
2973
  #endif
2974
  inline const ::std::string& unknown_fields() const {
2975
    return _internal_metadata_.unknown_fields();
2976
  }
2977
  inline ::std::string* mutable_unknown_fields() {
2978
    return _internal_metadata_.mutable_unknown_fields();
2979
  }
2980
2981
  static const RawIndices& default_instance();
2982
2983
  static inline const RawIndices* internal_default_instance() {
2984
    return reinterpret_cast<const RawIndices*>(
2985
               &_RawIndices_default_instance_);
2986
  }
2987
  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
2988
    19;
2989
2990
  void Swap(RawIndices* other);
2991
  friend void swap(RawIndices& a, RawIndices& b) {
2992
    a.Swap(&b);
2993
  }
2994
2995
  // implements Message ----------------------------------------------
2996
2997
  inline RawIndices* New() const PROTOBUF_FINAL { return New(NULL); }
2998
2999
  RawIndices* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
3000
  void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
3001
    PROTOBUF_FINAL;
3002
  void CopyFrom(const RawIndices& from);
3003
  void MergeFrom(const RawIndices& from);
3004
  void Clear() PROTOBUF_FINAL;
3005
  bool IsInitialized() const PROTOBUF_FINAL;
3006
3007
  size_t ByteSizeLong() const PROTOBUF_FINAL;
3008
  bool MergePartialFromCodedStream(
3009
      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
3010
  void SerializeWithCachedSizes(
3011
      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
3012
  void DiscardUnknownFields();
3013
  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
3014
  private:
3015
  void SharedCtor();
3016
  void SharedDtor();
3017
  void SetCachedSize(int size) const;
3018
  void InternalSwap(RawIndices* other);
3019
  private:
3020
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
3021
    return NULL;
3022
  }
3023
  inline void* MaybeArenaPtr() const {
3024
    return NULL;
3025
  }
3026
  public:
3027
3028
  ::std::string GetTypeName() const PROTOBUF_FINAL;
3029
3030
  // nested types ----------------------------------------------------
3031
3032
  // accessors -------------------------------------------------------
3033
3034
  // repeated int32 indices = 1;
3035
  int indices_size() const;
3036
  void clear_indices();
3037
  static const int kIndicesFieldNumber = 1;
3038
  ::google::protobuf::int32 indices(int index) const;
3039
  void set_indices(int index, ::google::protobuf::int32 value);
3040
  void add_indices(::google::protobuf::int32 value);
3041
  const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
3042
      indices() const;
3043
  ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
3044
      mutable_indices();
3045
3046
  // @@protoc_insertion_point(class_scope:mozilla.safebrowsing.RawIndices)
3047
 private:
3048
3049
  ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
3050
  ::google::protobuf::internal::HasBits<1> _has_bits_;
3051
  mutable int _cached_size_;
3052
  ::google::protobuf::RepeatedField< ::google::protobuf::int32 > indices_;
3053
  friend struct protobuf_safebrowsing_2eproto::TableStruct;
3054
};
3055
// -------------------------------------------------------------------
3056
3057
class RawHashes : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:mozilla.safebrowsing.RawHashes) */ {
3058
 public:
3059
  RawHashes();
3060
  virtual ~RawHashes();
3061
3062
  RawHashes(const RawHashes& from);
3063
3064
  inline RawHashes& operator=(const RawHashes& from) {
3065
    CopyFrom(from);
3066
    return *this;
3067
  }
3068
  #if LANG_CXX11
3069
  RawHashes(RawHashes&& from) noexcept
3070
    : RawHashes() {
3071
    *this = ::std::move(from);
3072
  }
3073
3074
  inline RawHashes& operator=(RawHashes&& from) noexcept {
3075
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
3076
      if (this != &from) InternalSwap(&from);
3077
    } else {
3078
      CopyFrom(from);
3079
    }
3080
    return *this;
3081
  }
3082
  #endif
3083
  inline const ::std::string& unknown_fields() const {
3084
    return _internal_metadata_.unknown_fields();
3085
  }
3086
  inline ::std::string* mutable_unknown_fields() {
3087
    return _internal_metadata_.mutable_unknown_fields();
3088
  }
3089
3090
  static const RawHashes& default_instance();
3091
3092
  static inline const RawHashes* internal_default_instance() {
3093
    return reinterpret_cast<const RawHashes*>(
3094
               &_RawHashes_default_instance_);
3095
  }
3096
  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
3097
    20;
3098
3099
  void Swap(RawHashes* other);
3100
  friend void swap(RawHashes& a, RawHashes& b) {
3101
    a.Swap(&b);
3102
  }
3103
3104
  // implements Message ----------------------------------------------
3105
3106
  inline RawHashes* New() const PROTOBUF_FINAL { return New(NULL); }
3107
3108
  RawHashes* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
3109
  void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
3110
    PROTOBUF_FINAL;
3111
  void CopyFrom(const RawHashes& from);
3112
  void MergeFrom(const RawHashes& from);
3113
  void Clear() PROTOBUF_FINAL;
3114
  bool IsInitialized() const PROTOBUF_FINAL;
3115
3116
  size_t ByteSizeLong() const PROTOBUF_FINAL;
3117
  bool MergePartialFromCodedStream(
3118
      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
3119
  void SerializeWithCachedSizes(
3120
      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
3121
  void DiscardUnknownFields();
3122
  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
3123
  private:
3124
  void SharedCtor();
3125
  void SharedDtor();
3126
  void SetCachedSize(int size) const;
3127
  void InternalSwap(RawHashes* other);
3128
  private:
3129
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
3130
    return NULL;
3131
  }
3132
  inline void* MaybeArenaPtr() const {
3133
    return NULL;
3134
  }
3135
  public:
3136
3137
  ::std::string GetTypeName() const PROTOBUF_FINAL;
3138
3139
  // nested types ----------------------------------------------------
3140
3141
  // accessors -------------------------------------------------------
3142
3143
  // optional bytes raw_hashes = 2;
3144
  bool has_raw_hashes() const;
3145
  void clear_raw_hashes();
3146
  static const int kRawHashesFieldNumber = 2;
3147
  const ::std::string& raw_hashes() const;
3148
  void set_raw_hashes(const ::std::string& value);
3149
  #if LANG_CXX11
3150
  void set_raw_hashes(::std::string&& value);
3151
  #endif
3152
  void set_raw_hashes(const char* value);
3153
  void set_raw_hashes(const void* value, size_t size);
3154
  ::std::string* mutable_raw_hashes();
3155
  ::std::string* release_raw_hashes();
3156
  void set_allocated_raw_hashes(::std::string* raw_hashes);
3157
3158
  // optional int32 prefix_size = 1;
3159
  bool has_prefix_size() const;
3160
  void clear_prefix_size();
3161
  static const int kPrefixSizeFieldNumber = 1;
3162
  ::google::protobuf::int32 prefix_size() const;
3163
  void set_prefix_size(::google::protobuf::int32 value);
3164
3165
  // @@protoc_insertion_point(class_scope:mozilla.safebrowsing.RawHashes)
3166
 private:
3167
  void set_has_prefix_size();
3168
  void clear_has_prefix_size();
3169
  void set_has_raw_hashes();
3170
  void clear_has_raw_hashes();
3171
3172
  ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
3173
  ::google::protobuf::internal::HasBits<1> _has_bits_;
3174
  mutable int _cached_size_;
3175
  ::google::protobuf::internal::ArenaStringPtr raw_hashes_;
3176
  ::google::protobuf::int32 prefix_size_;
3177
  friend struct protobuf_safebrowsing_2eproto::TableStruct;
3178
};
3179
// -------------------------------------------------------------------
3180
3181
class RiceDeltaEncoding : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:mozilla.safebrowsing.RiceDeltaEncoding) */ {
3182
 public:
3183
  RiceDeltaEncoding();
3184
  virtual ~RiceDeltaEncoding();
3185
3186
  RiceDeltaEncoding(const RiceDeltaEncoding& from);
3187
3188
  inline RiceDeltaEncoding& operator=(const RiceDeltaEncoding& from) {
3189
    CopyFrom(from);
3190
    return *this;
3191
  }
3192
  #if LANG_CXX11
3193
  RiceDeltaEncoding(RiceDeltaEncoding&& from) noexcept
3194
    : RiceDeltaEncoding() {
3195
    *this = ::std::move(from);
3196
  }
3197
3198
  inline RiceDeltaEncoding& operator=(RiceDeltaEncoding&& from) noexcept {
3199
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
3200
      if (this != &from) InternalSwap(&from);
3201
    } else {
3202
      CopyFrom(from);
3203
    }
3204
    return *this;
3205
  }
3206
  #endif
3207
  inline const ::std::string& unknown_fields() const {
3208
    return _internal_metadata_.unknown_fields();
3209
  }
3210
  inline ::std::string* mutable_unknown_fields() {
3211
    return _internal_metadata_.mutable_unknown_fields();
3212
  }
3213
3214
  static const RiceDeltaEncoding& default_instance();
3215
3216
  static inline const RiceDeltaEncoding* internal_default_instance() {
3217
    return reinterpret_cast<const RiceDeltaEncoding*>(
3218
               &_RiceDeltaEncoding_default_instance_);
3219
  }
3220
  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
3221
    21;
3222
3223
  void Swap(RiceDeltaEncoding* other);
3224
  friend void swap(RiceDeltaEncoding& a, RiceDeltaEncoding& b) {
3225
    a.Swap(&b);
3226
  }
3227
3228
  // implements Message ----------------------------------------------
3229
3230
  inline RiceDeltaEncoding* New() const PROTOBUF_FINAL { return New(NULL); }
3231
3232
  RiceDeltaEncoding* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
3233
  void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
3234
    PROTOBUF_FINAL;
3235
  void CopyFrom(const RiceDeltaEncoding& from);
3236
  void MergeFrom(const RiceDeltaEncoding& from);
3237
  void Clear() PROTOBUF_FINAL;
3238
  bool IsInitialized() const PROTOBUF_FINAL;
3239
3240
  size_t ByteSizeLong() const PROTOBUF_FINAL;
3241
  bool MergePartialFromCodedStream(
3242
      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
3243
  void SerializeWithCachedSizes(
3244
      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
3245
  void DiscardUnknownFields();
3246
  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
3247
  private:
3248
  void SharedCtor();
3249
  void SharedDtor();
3250
  void SetCachedSize(int size) const;
3251
  void InternalSwap(RiceDeltaEncoding* other);
3252
  private:
3253
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
3254
    return NULL;
3255
  }
3256
  inline void* MaybeArenaPtr() const {
3257
    return NULL;
3258
  }
3259
  public:
3260
3261
  ::std::string GetTypeName() const PROTOBUF_FINAL;
3262
3263
  // nested types ----------------------------------------------------
3264
3265
  // accessors -------------------------------------------------------
3266
3267
  // optional bytes encoded_data = 4;
3268
  bool has_encoded_data() const;
3269
  void clear_encoded_data();
3270
  static const int kEncodedDataFieldNumber = 4;
3271
  const ::std::string& encoded_data() const;
3272
  void set_encoded_data(const ::std::string& value);
3273
  #if LANG_CXX11
3274
  void set_encoded_data(::std::string&& value);
3275
  #endif
3276
  void set_encoded_data(const char* value);
3277
  void set_encoded_data(const void* value, size_t size);
3278
  ::std::string* mutable_encoded_data();
3279
  ::std::string* release_encoded_data();
3280
  void set_allocated_encoded_data(::std::string* encoded_data);
3281
3282
  // optional int64 first_value = 1;
3283
  bool has_first_value() const;
3284
  void clear_first_value();
3285
  static const int kFirstValueFieldNumber = 1;
3286
  ::google::protobuf::int64 first_value() const;
3287
  void set_first_value(::google::protobuf::int64 value);
3288
3289
  // optional int32 rice_parameter = 2;
3290
  bool has_rice_parameter() const;
3291
  void clear_rice_parameter();
3292
  static const int kRiceParameterFieldNumber = 2;
3293
  ::google::protobuf::int32 rice_parameter() const;
3294
  void set_rice_parameter(::google::protobuf::int32 value);
3295
3296
  // optional int32 num_entries = 3;
3297
  bool has_num_entries() const;
3298
  void clear_num_entries();
3299
  static const int kNumEntriesFieldNumber = 3;
3300
  ::google::protobuf::int32 num_entries() const;
3301
  void set_num_entries(::google::protobuf::int32 value);
3302
3303
  // @@protoc_insertion_point(class_scope:mozilla.safebrowsing.RiceDeltaEncoding)
3304
 private:
3305
  void set_has_first_value();
3306
  void clear_has_first_value();
3307
  void set_has_rice_parameter();
3308
  void clear_has_rice_parameter();
3309
  void set_has_num_entries();
3310
  void clear_has_num_entries();
3311
  void set_has_encoded_data();
3312
  void clear_has_encoded_data();
3313
3314
  ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
3315
  ::google::protobuf::internal::HasBits<1> _has_bits_;
3316
  mutable int _cached_size_;
3317
  ::google::protobuf::internal::ArenaStringPtr encoded_data_;
3318
  ::google::protobuf::int64 first_value_;
3319
  ::google::protobuf::int32 rice_parameter_;
3320
  ::google::protobuf::int32 num_entries_;
3321
  friend struct protobuf_safebrowsing_2eproto::TableStruct;
3322
};
3323
// -------------------------------------------------------------------
3324
3325
class ThreatEntryMetadata_MetadataEntry : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry) */ {
3326
 public:
3327
  ThreatEntryMetadata_MetadataEntry();
3328
  virtual ~ThreatEntryMetadata_MetadataEntry();
3329
3330
  ThreatEntryMetadata_MetadataEntry(const ThreatEntryMetadata_MetadataEntry& from);
3331
3332
  inline ThreatEntryMetadata_MetadataEntry& operator=(const ThreatEntryMetadata_MetadataEntry& from) {
3333
    CopyFrom(from);
3334
    return *this;
3335
  }
3336
  #if LANG_CXX11
3337
  ThreatEntryMetadata_MetadataEntry(ThreatEntryMetadata_MetadataEntry&& from) noexcept
3338
    : ThreatEntryMetadata_MetadataEntry() {
3339
    *this = ::std::move(from);
3340
  }
3341
3342
  inline ThreatEntryMetadata_MetadataEntry& operator=(ThreatEntryMetadata_MetadataEntry&& from) noexcept {
3343
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
3344
      if (this != &from) InternalSwap(&from);
3345
    } else {
3346
      CopyFrom(from);
3347
    }
3348
    return *this;
3349
  }
3350
  #endif
3351
  inline const ::std::string& unknown_fields() const {
3352
    return _internal_metadata_.unknown_fields();
3353
  }
3354
  inline ::std::string* mutable_unknown_fields() {
3355
    return _internal_metadata_.mutable_unknown_fields();
3356
  }
3357
3358
  static const ThreatEntryMetadata_MetadataEntry& default_instance();
3359
3360
  static inline const ThreatEntryMetadata_MetadataEntry* internal_default_instance() {
3361
    return reinterpret_cast<const ThreatEntryMetadata_MetadataEntry*>(
3362
               &_ThreatEntryMetadata_MetadataEntry_default_instance_);
3363
  }
3364
  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
3365
    22;
3366
3367
  void Swap(ThreatEntryMetadata_MetadataEntry* other);
3368
  friend void swap(ThreatEntryMetadata_MetadataEntry& a, ThreatEntryMetadata_MetadataEntry& b) {
3369
    a.Swap(&b);
3370
  }
3371
3372
  // implements Message ----------------------------------------------
3373
3374
  inline ThreatEntryMetadata_MetadataEntry* New() const PROTOBUF_FINAL { return New(NULL); }
3375
3376
  ThreatEntryMetadata_MetadataEntry* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
3377
  void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
3378
    PROTOBUF_FINAL;
3379
  void CopyFrom(const ThreatEntryMetadata_MetadataEntry& from);
3380
  void MergeFrom(const ThreatEntryMetadata_MetadataEntry& from);
3381
  void Clear() PROTOBUF_FINAL;
3382
  bool IsInitialized() const PROTOBUF_FINAL;
3383
3384
  size_t ByteSizeLong() const PROTOBUF_FINAL;
3385
  bool MergePartialFromCodedStream(
3386
      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
3387
  void SerializeWithCachedSizes(
3388
      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
3389
  void DiscardUnknownFields();
3390
  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
3391
  private:
3392
  void SharedCtor();
3393
  void SharedDtor();
3394
  void SetCachedSize(int size) const;
3395
  void InternalSwap(ThreatEntryMetadata_MetadataEntry* other);
3396
  private:
3397
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
3398
    return NULL;
3399
  }
3400
  inline void* MaybeArenaPtr() const {
3401
    return NULL;
3402
  }
3403
  public:
3404
3405
  ::std::string GetTypeName() const PROTOBUF_FINAL;
3406
3407
  // nested types ----------------------------------------------------
3408
3409
  // accessors -------------------------------------------------------
3410
3411
  // optional bytes key = 1;
3412
  bool has_key() const;
3413
  void clear_key();
3414
  static const int kKeyFieldNumber = 1;
3415
  const ::std::string& key() const;
3416
  void set_key(const ::std::string& value);
3417
  #if LANG_CXX11
3418
  void set_key(::std::string&& value);
3419
  #endif
3420
  void set_key(const char* value);
3421
  void set_key(const void* value, size_t size);
3422
  ::std::string* mutable_key();
3423
  ::std::string* release_key();
3424
  void set_allocated_key(::std::string* key);
3425
3426
  // optional bytes value = 2;
3427
  bool has_value() const;
3428
  void clear_value();
3429
  static const int kValueFieldNumber = 2;
3430
  const ::std::string& value() const;
3431
  void set_value(const ::std::string& value);
3432
  #if LANG_CXX11
3433
  void set_value(::std::string&& value);
3434
  #endif
3435
  void set_value(const char* value);
3436
  void set_value(const void* value, size_t size);
3437
  ::std::string* mutable_value();
3438
  ::std::string* release_value();
3439
  void set_allocated_value(::std::string* value);
3440
3441
  // @@protoc_insertion_point(class_scope:mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry)
3442
 private:
3443
  void set_has_key();
3444
  void clear_has_key();
3445
  void set_has_value();
3446
  void clear_has_value();
3447
3448
  ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
3449
  ::google::protobuf::internal::HasBits<1> _has_bits_;
3450
  mutable int _cached_size_;
3451
  ::google::protobuf::internal::ArenaStringPtr key_;
3452
  ::google::protobuf::internal::ArenaStringPtr value_;
3453
  friend struct protobuf_safebrowsing_2eproto::TableStruct;
3454
};
3455
// -------------------------------------------------------------------
3456
3457
class ThreatEntryMetadata : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:mozilla.safebrowsing.ThreatEntryMetadata) */ {
3458
 public:
3459
  ThreatEntryMetadata();
3460
  virtual ~ThreatEntryMetadata();
3461
3462
  ThreatEntryMetadata(const ThreatEntryMetadata& from);
3463
3464
  inline ThreatEntryMetadata& operator=(const ThreatEntryMetadata& from) {
3465
    CopyFrom(from);
3466
    return *this;
3467
  }
3468
  #if LANG_CXX11
3469
  ThreatEntryMetadata(ThreatEntryMetadata&& from) noexcept
3470
    : ThreatEntryMetadata() {
3471
    *this = ::std::move(from);
3472
  }
3473
3474
  inline ThreatEntryMetadata& operator=(ThreatEntryMetadata&& from) noexcept {
3475
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
3476
      if (this != &from) InternalSwap(&from);
3477
    } else {
3478
      CopyFrom(from);
3479
    }
3480
    return *this;
3481
  }
3482
  #endif
3483
  inline const ::std::string& unknown_fields() const {
3484
    return _internal_metadata_.unknown_fields();
3485
  }
3486
  inline ::std::string* mutable_unknown_fields() {
3487
    return _internal_metadata_.mutable_unknown_fields();
3488
  }
3489
3490
  static const ThreatEntryMetadata& default_instance();
3491
3492
  static inline const ThreatEntryMetadata* internal_default_instance() {
3493
    return reinterpret_cast<const ThreatEntryMetadata*>(
3494
               &_ThreatEntryMetadata_default_instance_);
3495
  }
3496
  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
3497
    23;
3498
3499
  void Swap(ThreatEntryMetadata* other);
3500
  friend void swap(ThreatEntryMetadata& a, ThreatEntryMetadata& b) {
3501
    a.Swap(&b);
3502
  }
3503
3504
  // implements Message ----------------------------------------------
3505
3506
  inline ThreatEntryMetadata* New() const PROTOBUF_FINAL { return New(NULL); }
3507
3508
  ThreatEntryMetadata* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
3509
  void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
3510
    PROTOBUF_FINAL;
3511
  void CopyFrom(const ThreatEntryMetadata& from);
3512
  void MergeFrom(const ThreatEntryMetadata& from);
3513
  void Clear() PROTOBUF_FINAL;
3514
  bool IsInitialized() const PROTOBUF_FINAL;
3515
3516
  size_t ByteSizeLong() const PROTOBUF_FINAL;
3517
  bool MergePartialFromCodedStream(
3518
      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
3519
  void SerializeWithCachedSizes(
3520
      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
3521
  void DiscardUnknownFields();
3522
  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
3523
  private:
3524
  void SharedCtor();
3525
  void SharedDtor();
3526
  void SetCachedSize(int size) const;
3527
  void InternalSwap(ThreatEntryMetadata* other);
3528
  private:
3529
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
3530
    return NULL;
3531
  }
3532
  inline void* MaybeArenaPtr() const {
3533
    return NULL;
3534
  }
3535
  public:
3536
3537
  ::std::string GetTypeName() const PROTOBUF_FINAL;
3538
3539
  // nested types ----------------------------------------------------
3540
3541
  typedef ThreatEntryMetadata_MetadataEntry MetadataEntry;
3542
3543
  // accessors -------------------------------------------------------
3544
3545
  // repeated .mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry entries = 1;
3546
  int entries_size() const;
3547
  void clear_entries();
3548
  static const int kEntriesFieldNumber = 1;
3549
  const ::mozilla::safebrowsing::ThreatEntryMetadata_MetadataEntry& entries(int index) const;
3550
  ::mozilla::safebrowsing::ThreatEntryMetadata_MetadataEntry* mutable_entries(int index);
3551
  ::mozilla::safebrowsing::ThreatEntryMetadata_MetadataEntry* add_entries();
3552
  ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatEntryMetadata_MetadataEntry >*
3553
      mutable_entries();
3554
  const ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatEntryMetadata_MetadataEntry >&
3555
      entries() const;
3556
3557
  // @@protoc_insertion_point(class_scope:mozilla.safebrowsing.ThreatEntryMetadata)
3558
 private:
3559
3560
  ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
3561
  ::google::protobuf::internal::HasBits<1> _has_bits_;
3562
  mutable int _cached_size_;
3563
  ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatEntryMetadata_MetadataEntry > entries_;
3564
  friend struct protobuf_safebrowsing_2eproto::TableStruct;
3565
};
3566
// -------------------------------------------------------------------
3567
3568
class ThreatListDescriptor : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:mozilla.safebrowsing.ThreatListDescriptor) */ {
3569
 public:
3570
  ThreatListDescriptor();
3571
  virtual ~ThreatListDescriptor();
3572
3573
  ThreatListDescriptor(const ThreatListDescriptor& from);
3574
3575
  inline ThreatListDescriptor& operator=(const ThreatListDescriptor& from) {
3576
    CopyFrom(from);
3577
    return *this;
3578
  }
3579
  #if LANG_CXX11
3580
  ThreatListDescriptor(ThreatListDescriptor&& from) noexcept
3581
    : ThreatListDescriptor() {
3582
    *this = ::std::move(from);
3583
  }
3584
3585
  inline ThreatListDescriptor& operator=(ThreatListDescriptor&& from) noexcept {
3586
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
3587
      if (this != &from) InternalSwap(&from);
3588
    } else {
3589
      CopyFrom(from);
3590
    }
3591
    return *this;
3592
  }
3593
  #endif
3594
  inline const ::std::string& unknown_fields() const {
3595
    return _internal_metadata_.unknown_fields();
3596
  }
3597
  inline ::std::string* mutable_unknown_fields() {
3598
    return _internal_metadata_.mutable_unknown_fields();
3599
  }
3600
3601
  static const ThreatListDescriptor& default_instance();
3602
3603
  static inline const ThreatListDescriptor* internal_default_instance() {
3604
    return reinterpret_cast<const ThreatListDescriptor*>(
3605
               &_ThreatListDescriptor_default_instance_);
3606
  }
3607
  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
3608
    24;
3609
3610
  void Swap(ThreatListDescriptor* other);
3611
  friend void swap(ThreatListDescriptor& a, ThreatListDescriptor& b) {
3612
    a.Swap(&b);
3613
  }
3614
3615
  // implements Message ----------------------------------------------
3616
3617
  inline ThreatListDescriptor* New() const PROTOBUF_FINAL { return New(NULL); }
3618
3619
  ThreatListDescriptor* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
3620
  void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
3621
    PROTOBUF_FINAL;
3622
  void CopyFrom(const ThreatListDescriptor& from);
3623
  void MergeFrom(const ThreatListDescriptor& from);
3624
  void Clear() PROTOBUF_FINAL;
3625
  bool IsInitialized() const PROTOBUF_FINAL;
3626
3627
  size_t ByteSizeLong() const PROTOBUF_FINAL;
3628
  bool MergePartialFromCodedStream(
3629
      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
3630
  void SerializeWithCachedSizes(
3631
      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
3632
  void DiscardUnknownFields();
3633
  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
3634
  private:
3635
  void SharedCtor();
3636
  void SharedDtor();
3637
  void SetCachedSize(int size) const;
3638
  void InternalSwap(ThreatListDescriptor* other);
3639
  private:
3640
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
3641
    return NULL;
3642
  }
3643
  inline void* MaybeArenaPtr() const {
3644
    return NULL;
3645
  }
3646
  public:
3647
3648
  ::std::string GetTypeName() const PROTOBUF_FINAL;
3649
3650
  // nested types ----------------------------------------------------
3651
3652
  // accessors -------------------------------------------------------
3653
3654
  // optional .mozilla.safebrowsing.ThreatType threat_type = 1;
3655
  bool has_threat_type() const;
3656
  void clear_threat_type();
3657
  static const int kThreatTypeFieldNumber = 1;
3658
  ::mozilla::safebrowsing::ThreatType threat_type() const;
3659
  void set_threat_type(::mozilla::safebrowsing::ThreatType value);
3660
3661
  // optional .mozilla.safebrowsing.PlatformType platform_type = 2;
3662
  bool has_platform_type() const;
3663
  void clear_platform_type();
3664
  static const int kPlatformTypeFieldNumber = 2;
3665
  ::mozilla::safebrowsing::PlatformType platform_type() const;
3666
  void set_platform_type(::mozilla::safebrowsing::PlatformType value);
3667
3668
  // optional .mozilla.safebrowsing.ThreatEntryType threat_entry_type = 3;
3669
  bool has_threat_entry_type() const;
3670
  void clear_threat_entry_type();
3671
  static const int kThreatEntryTypeFieldNumber = 3;
3672
  ::mozilla::safebrowsing::ThreatEntryType threat_entry_type() const;
3673
  void set_threat_entry_type(::mozilla::safebrowsing::ThreatEntryType value);
3674
3675
  // @@protoc_insertion_point(class_scope:mozilla.safebrowsing.ThreatListDescriptor)
3676
 private:
3677
  void set_has_threat_type();
3678
  void clear_has_threat_type();
3679
  void set_has_platform_type();
3680
  void clear_has_platform_type();
3681
  void set_has_threat_entry_type();
3682
  void clear_has_threat_entry_type();
3683
3684
  ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
3685
  ::google::protobuf::internal::HasBits<1> _has_bits_;
3686
  mutable int _cached_size_;
3687
  int threat_type_;
3688
  int platform_type_;
3689
  int threat_entry_type_;
3690
  friend struct protobuf_safebrowsing_2eproto::TableStruct;
3691
};
3692
// -------------------------------------------------------------------
3693
3694
class ListThreatListsResponse : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:mozilla.safebrowsing.ListThreatListsResponse) */ {
3695
 public:
3696
  ListThreatListsResponse();
3697
  virtual ~ListThreatListsResponse();
3698
3699
  ListThreatListsResponse(const ListThreatListsResponse& from);
3700
3701
  inline ListThreatListsResponse& operator=(const ListThreatListsResponse& from) {
3702
    CopyFrom(from);
3703
    return *this;
3704
  }
3705
  #if LANG_CXX11
3706
  ListThreatListsResponse(ListThreatListsResponse&& from) noexcept
3707
    : ListThreatListsResponse() {
3708
    *this = ::std::move(from);
3709
  }
3710
3711
  inline ListThreatListsResponse& operator=(ListThreatListsResponse&& from) noexcept {
3712
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
3713
      if (this != &from) InternalSwap(&from);
3714
    } else {
3715
      CopyFrom(from);
3716
    }
3717
    return *this;
3718
  }
3719
  #endif
3720
  inline const ::std::string& unknown_fields() const {
3721
    return _internal_metadata_.unknown_fields();
3722
  }
3723
  inline ::std::string* mutable_unknown_fields() {
3724
    return _internal_metadata_.mutable_unknown_fields();
3725
  }
3726
3727
  static const ListThreatListsResponse& default_instance();
3728
3729
  static inline const ListThreatListsResponse* internal_default_instance() {
3730
    return reinterpret_cast<const ListThreatListsResponse*>(
3731
               &_ListThreatListsResponse_default_instance_);
3732
  }
3733
  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
3734
    25;
3735
3736
  void Swap(ListThreatListsResponse* other);
3737
  friend void swap(ListThreatListsResponse& a, ListThreatListsResponse& b) {
3738
    a.Swap(&b);
3739
  }
3740
3741
  // implements Message ----------------------------------------------
3742
3743
  inline ListThreatListsResponse* New() const PROTOBUF_FINAL { return New(NULL); }
3744
3745
  ListThreatListsResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
3746
  void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
3747
    PROTOBUF_FINAL;
3748
  void CopyFrom(const ListThreatListsResponse& from);
3749
  void MergeFrom(const ListThreatListsResponse& from);
3750
  void Clear() PROTOBUF_FINAL;
3751
  bool IsInitialized() const PROTOBUF_FINAL;
3752
3753
  size_t ByteSizeLong() const PROTOBUF_FINAL;
3754
  bool MergePartialFromCodedStream(
3755
      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
3756
  void SerializeWithCachedSizes(
3757
      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
3758
  void DiscardUnknownFields();
3759
  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
3760
  private:
3761
  void SharedCtor();
3762
  void SharedDtor();
3763
  void SetCachedSize(int size) const;
3764
  void InternalSwap(ListThreatListsResponse* other);
3765
  private:
3766
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
3767
    return NULL;
3768
  }
3769
  inline void* MaybeArenaPtr() const {
3770
    return NULL;
3771
  }
3772
  public:
3773
3774
  ::std::string GetTypeName() const PROTOBUF_FINAL;
3775
3776
  // nested types ----------------------------------------------------
3777
3778
  // accessors -------------------------------------------------------
3779
3780
  // repeated .mozilla.safebrowsing.ThreatListDescriptor threat_lists = 1;
3781
  int threat_lists_size() const;
3782
  void clear_threat_lists();
3783
  static const int kThreatListsFieldNumber = 1;
3784
  const ::mozilla::safebrowsing::ThreatListDescriptor& threat_lists(int index) const;
3785
  ::mozilla::safebrowsing::ThreatListDescriptor* mutable_threat_lists(int index);
3786
  ::mozilla::safebrowsing::ThreatListDescriptor* add_threat_lists();
3787
  ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatListDescriptor >*
3788
      mutable_threat_lists();
3789
  const ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatListDescriptor >&
3790
      threat_lists() const;
3791
3792
  // @@protoc_insertion_point(class_scope:mozilla.safebrowsing.ListThreatListsResponse)
3793
 private:
3794
3795
  ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
3796
  ::google::protobuf::internal::HasBits<1> _has_bits_;
3797
  mutable int _cached_size_;
3798
  ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatListDescriptor > threat_lists_;
3799
  friend struct protobuf_safebrowsing_2eproto::TableStruct;
3800
};
3801
// -------------------------------------------------------------------
3802
3803
class Duration : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:mozilla.safebrowsing.Duration) */ {
3804
 public:
3805
  Duration();
3806
  virtual ~Duration();
3807
3808
  Duration(const Duration& from);
3809
3810
  inline Duration& operator=(const Duration& from) {
3811
    CopyFrom(from);
3812
    return *this;
3813
  }
3814
  #if LANG_CXX11
3815
  Duration(Duration&& from) noexcept
3816
    : Duration() {
3817
    *this = ::std::move(from);
3818
  }
3819
3820
  inline Duration& operator=(Duration&& from) noexcept {
3821
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
3822
      if (this != &from) InternalSwap(&from);
3823
    } else {
3824
      CopyFrom(from);
3825
    }
3826
    return *this;
3827
  }
3828
  #endif
3829
  inline const ::std::string& unknown_fields() const {
3830
    return _internal_metadata_.unknown_fields();
3831
  }
3832
  inline ::std::string* mutable_unknown_fields() {
3833
    return _internal_metadata_.mutable_unknown_fields();
3834
  }
3835
3836
  static const Duration& default_instance();
3837
3838
  static inline const Duration* internal_default_instance() {
3839
    return reinterpret_cast<const Duration*>(
3840
               &_Duration_default_instance_);
3841
  }
3842
  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
3843
    26;
3844
3845
  void Swap(Duration* other);
3846
  friend void swap(Duration& a, Duration& b) {
3847
    a.Swap(&b);
3848
  }
3849
3850
  // implements Message ----------------------------------------------
3851
3852
  inline Duration* New() const PROTOBUF_FINAL { return New(NULL); }
3853
3854
  Duration* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
3855
  void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
3856
    PROTOBUF_FINAL;
3857
  void CopyFrom(const Duration& from);
3858
  void MergeFrom(const Duration& from);
3859
  void Clear() PROTOBUF_FINAL;
3860
  bool IsInitialized() const PROTOBUF_FINAL;
3861
3862
  size_t ByteSizeLong() const PROTOBUF_FINAL;
3863
  bool MergePartialFromCodedStream(
3864
      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
3865
  void SerializeWithCachedSizes(
3866
      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
3867
  void DiscardUnknownFields();
3868
  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
3869
  private:
3870
  void SharedCtor();
3871
  void SharedDtor();
3872
  void SetCachedSize(int size) const;
3873
  void InternalSwap(Duration* other);
3874
  private:
3875
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
3876
    return NULL;
3877
  }
3878
  inline void* MaybeArenaPtr() const {
3879
    return NULL;
3880
  }
3881
  public:
3882
3883
  ::std::string GetTypeName() const PROTOBUF_FINAL;
3884
3885
  // nested types ----------------------------------------------------
3886
3887
  // accessors -------------------------------------------------------
3888
3889
  // optional int64 seconds = 1;
3890
  bool has_seconds() const;
3891
  void clear_seconds();
3892
  static const int kSecondsFieldNumber = 1;
3893
  ::google::protobuf::int64 seconds() const;
3894
  void set_seconds(::google::protobuf::int64 value);
3895
3896
  // optional int32 nanos = 2;
3897
  bool has_nanos() const;
3898
  void clear_nanos();
3899
  static const int kNanosFieldNumber = 2;
3900
  ::google::protobuf::int32 nanos() const;
3901
  void set_nanos(::google::protobuf::int32 value);
3902
3903
  // @@protoc_insertion_point(class_scope:mozilla.safebrowsing.Duration)
3904
 private:
3905
  void set_has_seconds();
3906
  void clear_has_seconds();
3907
  void set_has_nanos();
3908
  void clear_has_nanos();
3909
3910
  ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
3911
  ::google::protobuf::internal::HasBits<1> _has_bits_;
3912
  mutable int _cached_size_;
3913
  ::google::protobuf::int64 seconds_;
3914
  ::google::protobuf::int32 nanos_;
3915
  friend struct protobuf_safebrowsing_2eproto::TableStruct;
3916
};
3917
// ===================================================================
3918
3919
3920
// ===================================================================
3921
3922
#if !PROTOBUF_INLINE_NOT_IN_HEADERS
3923
#ifdef __GNUC__
3924
  #pragma GCC diagnostic push
3925
  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
3926
#endif  // __GNUC__
3927
// ThreatInfo
3928
3929
// repeated .mozilla.safebrowsing.ThreatType threat_types = 1;
3930
inline int ThreatInfo::threat_types_size() const {
3931
  return threat_types_.size();
3932
}
3933
inline void ThreatInfo::clear_threat_types() {
3934
  threat_types_.Clear();
3935
}
3936
inline ::mozilla::safebrowsing::ThreatType ThreatInfo::threat_types(int index) const {
3937
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatInfo.threat_types)
3938
  return static_cast< ::mozilla::safebrowsing::ThreatType >(threat_types_.Get(index));
3939
}
3940
inline void ThreatInfo::set_threat_types(int index, ::mozilla::safebrowsing::ThreatType value) {
3941
  assert(::mozilla::safebrowsing::ThreatType_IsValid(value));
3942
  threat_types_.Set(index, value);
3943
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatInfo.threat_types)
3944
}
3945
inline void ThreatInfo::add_threat_types(::mozilla::safebrowsing::ThreatType value) {
3946
  assert(::mozilla::safebrowsing::ThreatType_IsValid(value));
3947
  threat_types_.Add(value);
3948
  // @@protoc_insertion_point(field_add:mozilla.safebrowsing.ThreatInfo.threat_types)
3949
}
3950
inline const ::google::protobuf::RepeatedField<int>&
3951
ThreatInfo::threat_types() const {
3952
  // @@protoc_insertion_point(field_list:mozilla.safebrowsing.ThreatInfo.threat_types)
3953
  return threat_types_;
3954
}
3955
inline ::google::protobuf::RepeatedField<int>*
3956
ThreatInfo::mutable_threat_types() {
3957
  // @@protoc_insertion_point(field_mutable_list:mozilla.safebrowsing.ThreatInfo.threat_types)
3958
  return &threat_types_;
3959
}
3960
3961
// repeated .mozilla.safebrowsing.PlatformType platform_types = 2;
3962
inline int ThreatInfo::platform_types_size() const {
3963
  return platform_types_.size();
3964
}
3965
inline void ThreatInfo::clear_platform_types() {
3966
  platform_types_.Clear();
3967
}
3968
inline ::mozilla::safebrowsing::PlatformType ThreatInfo::platform_types(int index) const {
3969
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatInfo.platform_types)
3970
  return static_cast< ::mozilla::safebrowsing::PlatformType >(platform_types_.Get(index));
3971
}
3972
inline void ThreatInfo::set_platform_types(int index, ::mozilla::safebrowsing::PlatformType value) {
3973
  assert(::mozilla::safebrowsing::PlatformType_IsValid(value));
3974
  platform_types_.Set(index, value);
3975
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatInfo.platform_types)
3976
}
3977
inline void ThreatInfo::add_platform_types(::mozilla::safebrowsing::PlatformType value) {
3978
  assert(::mozilla::safebrowsing::PlatformType_IsValid(value));
3979
  platform_types_.Add(value);
3980
  // @@protoc_insertion_point(field_add:mozilla.safebrowsing.ThreatInfo.platform_types)
3981
}
3982
inline const ::google::protobuf::RepeatedField<int>&
3983
ThreatInfo::platform_types() const {
3984
  // @@protoc_insertion_point(field_list:mozilla.safebrowsing.ThreatInfo.platform_types)
3985
  return platform_types_;
3986
}
3987
inline ::google::protobuf::RepeatedField<int>*
3988
ThreatInfo::mutable_platform_types() {
3989
  // @@protoc_insertion_point(field_mutable_list:mozilla.safebrowsing.ThreatInfo.platform_types)
3990
  return &platform_types_;
3991
}
3992
3993
// repeated .mozilla.safebrowsing.ThreatEntryType threat_entry_types = 4;
3994
inline int ThreatInfo::threat_entry_types_size() const {
3995
  return threat_entry_types_.size();
3996
}
3997
inline void ThreatInfo::clear_threat_entry_types() {
3998
  threat_entry_types_.Clear();
3999
}
4000
inline ::mozilla::safebrowsing::ThreatEntryType ThreatInfo::threat_entry_types(int index) const {
4001
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatInfo.threat_entry_types)
4002
  return static_cast< ::mozilla::safebrowsing::ThreatEntryType >(threat_entry_types_.Get(index));
4003
}
4004
inline void ThreatInfo::set_threat_entry_types(int index, ::mozilla::safebrowsing::ThreatEntryType value) {
4005
  assert(::mozilla::safebrowsing::ThreatEntryType_IsValid(value));
4006
  threat_entry_types_.Set(index, value);
4007
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatInfo.threat_entry_types)
4008
}
4009
inline void ThreatInfo::add_threat_entry_types(::mozilla::safebrowsing::ThreatEntryType value) {
4010
  assert(::mozilla::safebrowsing::ThreatEntryType_IsValid(value));
4011
  threat_entry_types_.Add(value);
4012
  // @@protoc_insertion_point(field_add:mozilla.safebrowsing.ThreatInfo.threat_entry_types)
4013
}
4014
inline const ::google::protobuf::RepeatedField<int>&
4015
ThreatInfo::threat_entry_types() const {
4016
  // @@protoc_insertion_point(field_list:mozilla.safebrowsing.ThreatInfo.threat_entry_types)
4017
  return threat_entry_types_;
4018
}
4019
inline ::google::protobuf::RepeatedField<int>*
4020
ThreatInfo::mutable_threat_entry_types() {
4021
  // @@protoc_insertion_point(field_mutable_list:mozilla.safebrowsing.ThreatInfo.threat_entry_types)
4022
  return &threat_entry_types_;
4023
}
4024
4025
// repeated .mozilla.safebrowsing.ThreatEntry threat_entries = 3;
4026
inline int ThreatInfo::threat_entries_size() const {
4027
  return threat_entries_.size();
4028
}
4029
inline void ThreatInfo::clear_threat_entries() {
4030
  threat_entries_.Clear();
4031
}
4032
inline const ::mozilla::safebrowsing::ThreatEntry& ThreatInfo::threat_entries(int index) const {
4033
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatInfo.threat_entries)
4034
  return threat_entries_.Get(index);
4035
}
4036
inline ::mozilla::safebrowsing::ThreatEntry* ThreatInfo::mutable_threat_entries(int index) {
4037
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatInfo.threat_entries)
4038
  return threat_entries_.Mutable(index);
4039
}
4040
inline ::mozilla::safebrowsing::ThreatEntry* ThreatInfo::add_threat_entries() {
4041
  // @@protoc_insertion_point(field_add:mozilla.safebrowsing.ThreatInfo.threat_entries)
4042
  return threat_entries_.Add();
4043
}
4044
inline ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatEntry >*
4045
ThreatInfo::mutable_threat_entries() {
4046
  // @@protoc_insertion_point(field_mutable_list:mozilla.safebrowsing.ThreatInfo.threat_entries)
4047
  return &threat_entries_;
4048
}
4049
inline const ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatEntry >&
4050
ThreatInfo::threat_entries() const {
4051
  // @@protoc_insertion_point(field_list:mozilla.safebrowsing.ThreatInfo.threat_entries)
4052
  return threat_entries_;
4053
}
4054
4055
// -------------------------------------------------------------------
4056
4057
// ThreatMatch
4058
4059
// optional .mozilla.safebrowsing.ThreatType threat_type = 1;
4060
inline bool ThreatMatch::has_threat_type() const {
4061
  return (_has_bits_[0] & 0x00000008u) != 0;
4062
}
4063
inline void ThreatMatch::set_has_threat_type() {
4064
  _has_bits_[0] |= 0x00000008u;
4065
}
4066
inline void ThreatMatch::clear_has_threat_type() {
4067
  _has_bits_[0] &= ~0x00000008u;
4068
}
4069
inline void ThreatMatch::clear_threat_type() {
4070
  threat_type_ = 0;
4071
  clear_has_threat_type();
4072
}
4073
inline ::mozilla::safebrowsing::ThreatType ThreatMatch::threat_type() const {
4074
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatMatch.threat_type)
4075
  return static_cast< ::mozilla::safebrowsing::ThreatType >(threat_type_);
4076
}
4077
inline void ThreatMatch::set_threat_type(::mozilla::safebrowsing::ThreatType value) {
4078
  assert(::mozilla::safebrowsing::ThreatType_IsValid(value));
4079
  set_has_threat_type();
4080
  threat_type_ = value;
4081
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatMatch.threat_type)
4082
}
4083
4084
// optional .mozilla.safebrowsing.PlatformType platform_type = 2;
4085
inline bool ThreatMatch::has_platform_type() const {
4086
  return (_has_bits_[0] & 0x00000010u) != 0;
4087
}
4088
inline void ThreatMatch::set_has_platform_type() {
4089
  _has_bits_[0] |= 0x00000010u;
4090
}
4091
inline void ThreatMatch::clear_has_platform_type() {
4092
  _has_bits_[0] &= ~0x00000010u;
4093
}
4094
inline void ThreatMatch::clear_platform_type() {
4095
  platform_type_ = 0;
4096
  clear_has_platform_type();
4097
}
4098
inline ::mozilla::safebrowsing::PlatformType ThreatMatch::platform_type() const {
4099
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatMatch.platform_type)
4100
  return static_cast< ::mozilla::safebrowsing::PlatformType >(platform_type_);
4101
}
4102
inline void ThreatMatch::set_platform_type(::mozilla::safebrowsing::PlatformType value) {
4103
  assert(::mozilla::safebrowsing::PlatformType_IsValid(value));
4104
  set_has_platform_type();
4105
  platform_type_ = value;
4106
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatMatch.platform_type)
4107
}
4108
4109
// optional .mozilla.safebrowsing.ThreatEntryType threat_entry_type = 6;
4110
inline bool ThreatMatch::has_threat_entry_type() const {
4111
  return (_has_bits_[0] & 0x00000020u) != 0;
4112
}
4113
inline void ThreatMatch::set_has_threat_entry_type() {
4114
  _has_bits_[0] |= 0x00000020u;
4115
}
4116
inline void ThreatMatch::clear_has_threat_entry_type() {
4117
  _has_bits_[0] &= ~0x00000020u;
4118
}
4119
inline void ThreatMatch::clear_threat_entry_type() {
4120
  threat_entry_type_ = 0;
4121
  clear_has_threat_entry_type();
4122
}
4123
inline ::mozilla::safebrowsing::ThreatEntryType ThreatMatch::threat_entry_type() const {
4124
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatMatch.threat_entry_type)
4125
  return static_cast< ::mozilla::safebrowsing::ThreatEntryType >(threat_entry_type_);
4126
}
4127
inline void ThreatMatch::set_threat_entry_type(::mozilla::safebrowsing::ThreatEntryType value) {
4128
  assert(::mozilla::safebrowsing::ThreatEntryType_IsValid(value));
4129
  set_has_threat_entry_type();
4130
  threat_entry_type_ = value;
4131
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatMatch.threat_entry_type)
4132
}
4133
4134
// optional .mozilla.safebrowsing.ThreatEntry threat = 3;
4135
inline bool ThreatMatch::has_threat() const {
4136
  return (_has_bits_[0] & 0x00000001u) != 0;
4137
}
4138
inline void ThreatMatch::set_has_threat() {
4139
  _has_bits_[0] |= 0x00000001u;
4140
}
4141
inline void ThreatMatch::clear_has_threat() {
4142
  _has_bits_[0] &= ~0x00000001u;
4143
}
4144
inline void ThreatMatch::clear_threat() {
4145
  if (threat_ != NULL) threat_->::mozilla::safebrowsing::ThreatEntry::Clear();
4146
  clear_has_threat();
4147
}
4148
inline const ::mozilla::safebrowsing::ThreatEntry& ThreatMatch::threat() const {
4149
  const ::mozilla::safebrowsing::ThreatEntry* p = threat_;
4150
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatMatch.threat)
4151
  return p != NULL ? *p : *reinterpret_cast<const ::mozilla::safebrowsing::ThreatEntry*>(
4152
      &::mozilla::safebrowsing::_ThreatEntry_default_instance_);
4153
}
4154
inline ::mozilla::safebrowsing::ThreatEntry* ThreatMatch::mutable_threat() {
4155
  set_has_threat();
4156
  if (threat_ == NULL) {
4157
    threat_ = new ::mozilla::safebrowsing::ThreatEntry;
4158
  }
4159
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatMatch.threat)
4160
  return threat_;
4161
}
4162
inline ::mozilla::safebrowsing::ThreatEntry* ThreatMatch::release_threat() {
4163
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.ThreatMatch.threat)
4164
  clear_has_threat();
4165
  ::mozilla::safebrowsing::ThreatEntry* temp = threat_;
4166
  threat_ = NULL;
4167
  return temp;
4168
}
4169
inline void ThreatMatch::set_allocated_threat(::mozilla::safebrowsing::ThreatEntry* threat) {
4170
  delete threat_;
4171
  threat_ = threat;
4172
  if (threat) {
4173
    set_has_threat();
4174
  } else {
4175
    clear_has_threat();
4176
  }
4177
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.ThreatMatch.threat)
4178
}
4179
4180
// optional .mozilla.safebrowsing.ThreatEntryMetadata threat_entry_metadata = 4;
4181
inline bool ThreatMatch::has_threat_entry_metadata() const {
4182
  return (_has_bits_[0] & 0x00000002u) != 0;
4183
}
4184
inline void ThreatMatch::set_has_threat_entry_metadata() {
4185
  _has_bits_[0] |= 0x00000002u;
4186
}
4187
inline void ThreatMatch::clear_has_threat_entry_metadata() {
4188
  _has_bits_[0] &= ~0x00000002u;
4189
}
4190
inline void ThreatMatch::clear_threat_entry_metadata() {
4191
  if (threat_entry_metadata_ != NULL) threat_entry_metadata_->::mozilla::safebrowsing::ThreatEntryMetadata::Clear();
4192
  clear_has_threat_entry_metadata();
4193
}
4194
inline const ::mozilla::safebrowsing::ThreatEntryMetadata& ThreatMatch::threat_entry_metadata() const {
4195
  const ::mozilla::safebrowsing::ThreatEntryMetadata* p = threat_entry_metadata_;
4196
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatMatch.threat_entry_metadata)
4197
  return p != NULL ? *p : *reinterpret_cast<const ::mozilla::safebrowsing::ThreatEntryMetadata*>(
4198
      &::mozilla::safebrowsing::_ThreatEntryMetadata_default_instance_);
4199
}
4200
inline ::mozilla::safebrowsing::ThreatEntryMetadata* ThreatMatch::mutable_threat_entry_metadata() {
4201
  set_has_threat_entry_metadata();
4202
  if (threat_entry_metadata_ == NULL) {
4203
    threat_entry_metadata_ = new ::mozilla::safebrowsing::ThreatEntryMetadata;
4204
  }
4205
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatMatch.threat_entry_metadata)
4206
  return threat_entry_metadata_;
4207
}
4208
inline ::mozilla::safebrowsing::ThreatEntryMetadata* ThreatMatch::release_threat_entry_metadata() {
4209
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.ThreatMatch.threat_entry_metadata)
4210
  clear_has_threat_entry_metadata();
4211
  ::mozilla::safebrowsing::ThreatEntryMetadata* temp = threat_entry_metadata_;
4212
  threat_entry_metadata_ = NULL;
4213
  return temp;
4214
}
4215
inline void ThreatMatch::set_allocated_threat_entry_metadata(::mozilla::safebrowsing::ThreatEntryMetadata* threat_entry_metadata) {
4216
  delete threat_entry_metadata_;
4217
  threat_entry_metadata_ = threat_entry_metadata;
4218
  if (threat_entry_metadata) {
4219
    set_has_threat_entry_metadata();
4220
  } else {
4221
    clear_has_threat_entry_metadata();
4222
  }
4223
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.ThreatMatch.threat_entry_metadata)
4224
}
4225
4226
// optional .mozilla.safebrowsing.Duration cache_duration = 5;
4227
inline bool ThreatMatch::has_cache_duration() const {
4228
  return (_has_bits_[0] & 0x00000004u) != 0;
4229
}
4230
inline void ThreatMatch::set_has_cache_duration() {
4231
  _has_bits_[0] |= 0x00000004u;
4232
}
4233
inline void ThreatMatch::clear_has_cache_duration() {
4234
  _has_bits_[0] &= ~0x00000004u;
4235
}
4236
inline void ThreatMatch::clear_cache_duration() {
4237
  if (cache_duration_ != NULL) cache_duration_->::mozilla::safebrowsing::Duration::Clear();
4238
  clear_has_cache_duration();
4239
}
4240
inline const ::mozilla::safebrowsing::Duration& ThreatMatch::cache_duration() const {
4241
  const ::mozilla::safebrowsing::Duration* p = cache_duration_;
4242
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatMatch.cache_duration)
4243
  return p != NULL ? *p : *reinterpret_cast<const ::mozilla::safebrowsing::Duration*>(
4244
      &::mozilla::safebrowsing::_Duration_default_instance_);
4245
}
4246
inline ::mozilla::safebrowsing::Duration* ThreatMatch::mutable_cache_duration() {
4247
  set_has_cache_duration();
4248
  if (cache_duration_ == NULL) {
4249
    cache_duration_ = new ::mozilla::safebrowsing::Duration;
4250
  }
4251
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatMatch.cache_duration)
4252
  return cache_duration_;
4253
}
4254
inline ::mozilla::safebrowsing::Duration* ThreatMatch::release_cache_duration() {
4255
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.ThreatMatch.cache_duration)
4256
  clear_has_cache_duration();
4257
  ::mozilla::safebrowsing::Duration* temp = cache_duration_;
4258
  cache_duration_ = NULL;
4259
  return temp;
4260
}
4261
inline void ThreatMatch::set_allocated_cache_duration(::mozilla::safebrowsing::Duration* cache_duration) {
4262
  delete cache_duration_;
4263
  cache_duration_ = cache_duration;
4264
  if (cache_duration) {
4265
    set_has_cache_duration();
4266
  } else {
4267
    clear_has_cache_duration();
4268
  }
4269
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.ThreatMatch.cache_duration)
4270
}
4271
4272
// -------------------------------------------------------------------
4273
4274
// FindThreatMatchesRequest
4275
4276
// optional .mozilla.safebrowsing.ClientInfo client = 1;
4277
inline bool FindThreatMatchesRequest::has_client() const {
4278
  return (_has_bits_[0] & 0x00000001u) != 0;
4279
}
4280
inline void FindThreatMatchesRequest::set_has_client() {
4281
  _has_bits_[0] |= 0x00000001u;
4282
}
4283
inline void FindThreatMatchesRequest::clear_has_client() {
4284
  _has_bits_[0] &= ~0x00000001u;
4285
}
4286
inline void FindThreatMatchesRequest::clear_client() {
4287
  if (client_ != NULL) client_->::mozilla::safebrowsing::ClientInfo::Clear();
4288
  clear_has_client();
4289
}
4290
inline const ::mozilla::safebrowsing::ClientInfo& FindThreatMatchesRequest::client() const {
4291
  const ::mozilla::safebrowsing::ClientInfo* p = client_;
4292
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FindThreatMatchesRequest.client)
4293
  return p != NULL ? *p : *reinterpret_cast<const ::mozilla::safebrowsing::ClientInfo*>(
4294
      &::mozilla::safebrowsing::_ClientInfo_default_instance_);
4295
}
4296
inline ::mozilla::safebrowsing::ClientInfo* FindThreatMatchesRequest::mutable_client() {
4297
  set_has_client();
4298
  if (client_ == NULL) {
4299
    client_ = new ::mozilla::safebrowsing::ClientInfo;
4300
  }
4301
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.FindThreatMatchesRequest.client)
4302
  return client_;
4303
}
4304
inline ::mozilla::safebrowsing::ClientInfo* FindThreatMatchesRequest::release_client() {
4305
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.FindThreatMatchesRequest.client)
4306
  clear_has_client();
4307
  ::mozilla::safebrowsing::ClientInfo* temp = client_;
4308
  client_ = NULL;
4309
  return temp;
4310
}
4311
inline void FindThreatMatchesRequest::set_allocated_client(::mozilla::safebrowsing::ClientInfo* client) {
4312
  delete client_;
4313
  client_ = client;
4314
  if (client) {
4315
    set_has_client();
4316
  } else {
4317
    clear_has_client();
4318
  }
4319
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.FindThreatMatchesRequest.client)
4320
}
4321
4322
// optional .mozilla.safebrowsing.ThreatInfo threat_info = 2;
4323
inline bool FindThreatMatchesRequest::has_threat_info() const {
4324
  return (_has_bits_[0] & 0x00000002u) != 0;
4325
}
4326
inline void FindThreatMatchesRequest::set_has_threat_info() {
4327
  _has_bits_[0] |= 0x00000002u;
4328
}
4329
inline void FindThreatMatchesRequest::clear_has_threat_info() {
4330
  _has_bits_[0] &= ~0x00000002u;
4331
}
4332
inline void FindThreatMatchesRequest::clear_threat_info() {
4333
  if (threat_info_ != NULL) threat_info_->::mozilla::safebrowsing::ThreatInfo::Clear();
4334
  clear_has_threat_info();
4335
}
4336
inline const ::mozilla::safebrowsing::ThreatInfo& FindThreatMatchesRequest::threat_info() const {
4337
  const ::mozilla::safebrowsing::ThreatInfo* p = threat_info_;
4338
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FindThreatMatchesRequest.threat_info)
4339
  return p != NULL ? *p : *reinterpret_cast<const ::mozilla::safebrowsing::ThreatInfo*>(
4340
      &::mozilla::safebrowsing::_ThreatInfo_default_instance_);
4341
}
4342
inline ::mozilla::safebrowsing::ThreatInfo* FindThreatMatchesRequest::mutable_threat_info() {
4343
  set_has_threat_info();
4344
  if (threat_info_ == NULL) {
4345
    threat_info_ = new ::mozilla::safebrowsing::ThreatInfo;
4346
  }
4347
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.FindThreatMatchesRequest.threat_info)
4348
  return threat_info_;
4349
}
4350
inline ::mozilla::safebrowsing::ThreatInfo* FindThreatMatchesRequest::release_threat_info() {
4351
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.FindThreatMatchesRequest.threat_info)
4352
  clear_has_threat_info();
4353
  ::mozilla::safebrowsing::ThreatInfo* temp = threat_info_;
4354
  threat_info_ = NULL;
4355
  return temp;
4356
}
4357
inline void FindThreatMatchesRequest::set_allocated_threat_info(::mozilla::safebrowsing::ThreatInfo* threat_info) {
4358
  delete threat_info_;
4359
  threat_info_ = threat_info;
4360
  if (threat_info) {
4361
    set_has_threat_info();
4362
  } else {
4363
    clear_has_threat_info();
4364
  }
4365
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.FindThreatMatchesRequest.threat_info)
4366
}
4367
4368
// -------------------------------------------------------------------
4369
4370
// FindThreatMatchesResponse
4371
4372
// repeated .mozilla.safebrowsing.ThreatMatch matches = 1;
4373
inline int FindThreatMatchesResponse::matches_size() const {
4374
  return matches_.size();
4375
}
4376
inline void FindThreatMatchesResponse::clear_matches() {
4377
  matches_.Clear();
4378
}
4379
inline const ::mozilla::safebrowsing::ThreatMatch& FindThreatMatchesResponse::matches(int index) const {
4380
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FindThreatMatchesResponse.matches)
4381
  return matches_.Get(index);
4382
}
4383
inline ::mozilla::safebrowsing::ThreatMatch* FindThreatMatchesResponse::mutable_matches(int index) {
4384
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.FindThreatMatchesResponse.matches)
4385
  return matches_.Mutable(index);
4386
}
4387
inline ::mozilla::safebrowsing::ThreatMatch* FindThreatMatchesResponse::add_matches() {
4388
  // @@protoc_insertion_point(field_add:mozilla.safebrowsing.FindThreatMatchesResponse.matches)
4389
  return matches_.Add();
4390
}
4391
inline ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatMatch >*
4392
FindThreatMatchesResponse::mutable_matches() {
4393
  // @@protoc_insertion_point(field_mutable_list:mozilla.safebrowsing.FindThreatMatchesResponse.matches)
4394
  return &matches_;
4395
}
4396
inline const ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatMatch >&
4397
FindThreatMatchesResponse::matches() const {
4398
  // @@protoc_insertion_point(field_list:mozilla.safebrowsing.FindThreatMatchesResponse.matches)
4399
  return matches_;
4400
}
4401
4402
// -------------------------------------------------------------------
4403
4404
// FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints
4405
4406
// optional int32 max_update_entries = 1;
4407
inline bool FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::has_max_update_entries() const {
4408
  return (_has_bits_[0] & 0x00000002u) != 0;
4409
}
4410
inline void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::set_has_max_update_entries() {
4411
  _has_bits_[0] |= 0x00000002u;
4412
}
4413
inline void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::clear_has_max_update_entries() {
4414
  _has_bits_[0] &= ~0x00000002u;
4415
}
4416
inline void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::clear_max_update_entries() {
4417
  max_update_entries_ = 0;
4418
  clear_has_max_update_entries();
4419
}
4420
inline ::google::protobuf::int32 FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::max_update_entries() const {
4421
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints.max_update_entries)
4422
  return max_update_entries_;
4423
}
4424
inline void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::set_max_update_entries(::google::protobuf::int32 value) {
4425
  set_has_max_update_entries();
4426
  max_update_entries_ = value;
4427
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints.max_update_entries)
4428
}
4429
4430
// optional int32 max_database_entries = 2;
4431
inline bool FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::has_max_database_entries() const {
4432
  return (_has_bits_[0] & 0x00000004u) != 0;
4433
}
4434
inline void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::set_has_max_database_entries() {
4435
  _has_bits_[0] |= 0x00000004u;
4436
}
4437
inline void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::clear_has_max_database_entries() {
4438
  _has_bits_[0] &= ~0x00000004u;
4439
}
4440
inline void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::clear_max_database_entries() {
4441
  max_database_entries_ = 0;
4442
  clear_has_max_database_entries();
4443
}
4444
inline ::google::protobuf::int32 FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::max_database_entries() const {
4445
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints.max_database_entries)
4446
  return max_database_entries_;
4447
}
4448
inline void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::set_max_database_entries(::google::protobuf::int32 value) {
4449
  set_has_max_database_entries();
4450
  max_database_entries_ = value;
4451
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints.max_database_entries)
4452
}
4453
4454
// optional string region = 3;
4455
inline bool FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::has_region() const {
4456
  return (_has_bits_[0] & 0x00000001u) != 0;
4457
}
4458
inline void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::set_has_region() {
4459
  _has_bits_[0] |= 0x00000001u;
4460
}
4461
inline void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::clear_has_region() {
4462
  _has_bits_[0] &= ~0x00000001u;
4463
}
4464
inline void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::clear_region() {
4465
  region_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4466
  clear_has_region();
4467
}
4468
inline const ::std::string& FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::region() const {
4469
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints.region)
4470
  return region_.GetNoArena();
4471
}
4472
inline void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::set_region(const ::std::string& value) {
4473
  set_has_region();
4474
  region_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
4475
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints.region)
4476
}
4477
#if LANG_CXX11
4478
inline void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::set_region(::std::string&& value) {
4479
  set_has_region();
4480
  region_.SetNoArena(
4481
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
4482
  // @@protoc_insertion_point(field_set_rvalue:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints.region)
4483
}
4484
#endif
4485
inline void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::set_region(const char* value) {
4486
  GOOGLE_DCHECK(value != NULL);
4487
  set_has_region();
4488
  region_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
4489
  // @@protoc_insertion_point(field_set_char:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints.region)
4490
}
4491
inline void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::set_region(const char* value, size_t size) {
4492
  set_has_region();
4493
  region_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
4494
      ::std::string(reinterpret_cast<const char*>(value), size));
4495
  // @@protoc_insertion_point(field_set_pointer:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints.region)
4496
}
4497
inline ::std::string* FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::mutable_region() {
4498
  set_has_region();
4499
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints.region)
4500
  return region_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4501
}
4502
inline ::std::string* FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::release_region() {
4503
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints.region)
4504
  clear_has_region();
4505
  return region_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4506
}
4507
inline void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::set_allocated_region(::std::string* region) {
4508
  if (region != NULL) {
4509
    set_has_region();
4510
  } else {
4511
    clear_has_region();
4512
  }
4513
  region_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), region);
4514
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints.region)
4515
}
4516
4517
// repeated .mozilla.safebrowsing.CompressionType supported_compressions = 4;
4518
inline int FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::supported_compressions_size() const {
4519
  return supported_compressions_.size();
4520
}
4521
inline void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::clear_supported_compressions() {
4522
  supported_compressions_.Clear();
4523
}
4524
inline ::mozilla::safebrowsing::CompressionType FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::supported_compressions(int index) const {
4525
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints.supported_compressions)
4526
  return static_cast< ::mozilla::safebrowsing::CompressionType >(supported_compressions_.Get(index));
4527
}
4528
inline void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::set_supported_compressions(int index, ::mozilla::safebrowsing::CompressionType value) {
4529
  assert(::mozilla::safebrowsing::CompressionType_IsValid(value));
4530
  supported_compressions_.Set(index, value);
4531
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints.supported_compressions)
4532
}
4533
inline void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::add_supported_compressions(::mozilla::safebrowsing::CompressionType value) {
4534
  assert(::mozilla::safebrowsing::CompressionType_IsValid(value));
4535
  supported_compressions_.Add(value);
4536
  // @@protoc_insertion_point(field_add:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints.supported_compressions)
4537
}
4538
inline const ::google::protobuf::RepeatedField<int>&
4539
FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::supported_compressions() const {
4540
  // @@protoc_insertion_point(field_list:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints.supported_compressions)
4541
  return supported_compressions_;
4542
}
4543
inline ::google::protobuf::RepeatedField<int>*
4544
FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::mutable_supported_compressions() {
4545
  // @@protoc_insertion_point(field_mutable_list:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints.supported_compressions)
4546
  return &supported_compressions_;
4547
}
4548
4549
// -------------------------------------------------------------------
4550
4551
// FetchThreatListUpdatesRequest_ListUpdateRequest
4552
4553
// optional .mozilla.safebrowsing.ThreatType threat_type = 1;
4554
inline bool FetchThreatListUpdatesRequest_ListUpdateRequest::has_threat_type() const {
4555
  return (_has_bits_[0] & 0x00000004u) != 0;
4556
}
4557
inline void FetchThreatListUpdatesRequest_ListUpdateRequest::set_has_threat_type() {
4558
  _has_bits_[0] |= 0x00000004u;
4559
}
4560
inline void FetchThreatListUpdatesRequest_ListUpdateRequest::clear_has_threat_type() {
4561
  _has_bits_[0] &= ~0x00000004u;
4562
}
4563
inline void FetchThreatListUpdatesRequest_ListUpdateRequest::clear_threat_type() {
4564
  threat_type_ = 0;
4565
  clear_has_threat_type();
4566
}
4567
inline ::mozilla::safebrowsing::ThreatType FetchThreatListUpdatesRequest_ListUpdateRequest::threat_type() const {
4568
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.threat_type)
4569
  return static_cast< ::mozilla::safebrowsing::ThreatType >(threat_type_);
4570
}
4571
inline void FetchThreatListUpdatesRequest_ListUpdateRequest::set_threat_type(::mozilla::safebrowsing::ThreatType value) {
4572
  assert(::mozilla::safebrowsing::ThreatType_IsValid(value));
4573
  set_has_threat_type();
4574
  threat_type_ = value;
4575
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.threat_type)
4576
}
4577
4578
// optional .mozilla.safebrowsing.PlatformType platform_type = 2;
4579
inline bool FetchThreatListUpdatesRequest_ListUpdateRequest::has_platform_type() const {
4580
  return (_has_bits_[0] & 0x00000008u) != 0;
4581
}
4582
inline void FetchThreatListUpdatesRequest_ListUpdateRequest::set_has_platform_type() {
4583
  _has_bits_[0] |= 0x00000008u;
4584
}
4585
inline void FetchThreatListUpdatesRequest_ListUpdateRequest::clear_has_platform_type() {
4586
  _has_bits_[0] &= ~0x00000008u;
4587
}
4588
inline void FetchThreatListUpdatesRequest_ListUpdateRequest::clear_platform_type() {
4589
  platform_type_ = 0;
4590
  clear_has_platform_type();
4591
}
4592
inline ::mozilla::safebrowsing::PlatformType FetchThreatListUpdatesRequest_ListUpdateRequest::platform_type() const {
4593
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.platform_type)
4594
  return static_cast< ::mozilla::safebrowsing::PlatformType >(platform_type_);
4595
}
4596
inline void FetchThreatListUpdatesRequest_ListUpdateRequest::set_platform_type(::mozilla::safebrowsing::PlatformType value) {
4597
  assert(::mozilla::safebrowsing::PlatformType_IsValid(value));
4598
  set_has_platform_type();
4599
  platform_type_ = value;
4600
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.platform_type)
4601
}
4602
4603
// optional .mozilla.safebrowsing.ThreatEntryType threat_entry_type = 5;
4604
inline bool FetchThreatListUpdatesRequest_ListUpdateRequest::has_threat_entry_type() const {
4605
  return (_has_bits_[0] & 0x00000010u) != 0;
4606
}
4607
inline void FetchThreatListUpdatesRequest_ListUpdateRequest::set_has_threat_entry_type() {
4608
  _has_bits_[0] |= 0x00000010u;
4609
}
4610
inline void FetchThreatListUpdatesRequest_ListUpdateRequest::clear_has_threat_entry_type() {
4611
  _has_bits_[0] &= ~0x00000010u;
4612
}
4613
inline void FetchThreatListUpdatesRequest_ListUpdateRequest::clear_threat_entry_type() {
4614
  threat_entry_type_ = 0;
4615
  clear_has_threat_entry_type();
4616
}
4617
inline ::mozilla::safebrowsing::ThreatEntryType FetchThreatListUpdatesRequest_ListUpdateRequest::threat_entry_type() const {
4618
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.threat_entry_type)
4619
  return static_cast< ::mozilla::safebrowsing::ThreatEntryType >(threat_entry_type_);
4620
}
4621
inline void FetchThreatListUpdatesRequest_ListUpdateRequest::set_threat_entry_type(::mozilla::safebrowsing::ThreatEntryType value) {
4622
  assert(::mozilla::safebrowsing::ThreatEntryType_IsValid(value));
4623
  set_has_threat_entry_type();
4624
  threat_entry_type_ = value;
4625
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.threat_entry_type)
4626
}
4627
4628
// optional bytes state = 3;
4629
inline bool FetchThreatListUpdatesRequest_ListUpdateRequest::has_state() const {
4630
  return (_has_bits_[0] & 0x00000001u) != 0;
4631
}
4632
inline void FetchThreatListUpdatesRequest_ListUpdateRequest::set_has_state() {
4633
  _has_bits_[0] |= 0x00000001u;
4634
}
4635
inline void FetchThreatListUpdatesRequest_ListUpdateRequest::clear_has_state() {
4636
  _has_bits_[0] &= ~0x00000001u;
4637
}
4638
inline void FetchThreatListUpdatesRequest_ListUpdateRequest::clear_state() {
4639
  state_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4640
  clear_has_state();
4641
}
4642
inline const ::std::string& FetchThreatListUpdatesRequest_ListUpdateRequest::state() const {
4643
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.state)
4644
  return state_.GetNoArena();
4645
}
4646
inline void FetchThreatListUpdatesRequest_ListUpdateRequest::set_state(const ::std::string& value) {
4647
  set_has_state();
4648
  state_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
4649
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.state)
4650
}
4651
#if LANG_CXX11
4652
inline void FetchThreatListUpdatesRequest_ListUpdateRequest::set_state(::std::string&& value) {
4653
  set_has_state();
4654
  state_.SetNoArena(
4655
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
4656
  // @@protoc_insertion_point(field_set_rvalue:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.state)
4657
}
4658
#endif
4659
inline void FetchThreatListUpdatesRequest_ListUpdateRequest::set_state(const char* value) {
4660
  GOOGLE_DCHECK(value != NULL);
4661
  set_has_state();
4662
  state_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
4663
  // @@protoc_insertion_point(field_set_char:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.state)
4664
}
4665
inline void FetchThreatListUpdatesRequest_ListUpdateRequest::set_state(const void* value, size_t size) {
4666
  set_has_state();
4667
  state_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
4668
      ::std::string(reinterpret_cast<const char*>(value), size));
4669
  // @@protoc_insertion_point(field_set_pointer:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.state)
4670
}
4671
inline ::std::string* FetchThreatListUpdatesRequest_ListUpdateRequest::mutable_state() {
4672
  set_has_state();
4673
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.state)
4674
  return state_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4675
}
4676
inline ::std::string* FetchThreatListUpdatesRequest_ListUpdateRequest::release_state() {
4677
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.state)
4678
  clear_has_state();
4679
  return state_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4680
}
4681
inline void FetchThreatListUpdatesRequest_ListUpdateRequest::set_allocated_state(::std::string* state) {
4682
  if (state != NULL) {
4683
    set_has_state();
4684
  } else {
4685
    clear_has_state();
4686
  }
4687
  state_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), state);
4688
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.state)
4689
}
4690
4691
// optional .mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints constraints = 4;
4692
inline bool FetchThreatListUpdatesRequest_ListUpdateRequest::has_constraints() const {
4693
  return (_has_bits_[0] & 0x00000002u) != 0;
4694
}
4695
inline void FetchThreatListUpdatesRequest_ListUpdateRequest::set_has_constraints() {
4696
  _has_bits_[0] |= 0x00000002u;
4697
}
4698
inline void FetchThreatListUpdatesRequest_ListUpdateRequest::clear_has_constraints() {
4699
  _has_bits_[0] &= ~0x00000002u;
4700
}
4701
inline void FetchThreatListUpdatesRequest_ListUpdateRequest::clear_constraints() {
4702
  if (constraints_ != NULL) constraints_->::mozilla::safebrowsing::FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::Clear();
4703
  clear_has_constraints();
4704
}
4705
inline const ::mozilla::safebrowsing::FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints& FetchThreatListUpdatesRequest_ListUpdateRequest::constraints() const {
4706
  const ::mozilla::safebrowsing::FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints* p = constraints_;
4707
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.constraints)
4708
  return p != NULL ? *p : *reinterpret_cast<const ::mozilla::safebrowsing::FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints*>(
4709
      &::mozilla::safebrowsing::_FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints_default_instance_);
4710
}
4711
inline ::mozilla::safebrowsing::FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints* FetchThreatListUpdatesRequest_ListUpdateRequest::mutable_constraints() {
4712
  set_has_constraints();
4713
  if (constraints_ == NULL) {
4714
    constraints_ = new ::mozilla::safebrowsing::FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints;
4715
  }
4716
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.constraints)
4717
  return constraints_;
4718
}
4719
inline ::mozilla::safebrowsing::FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints* FetchThreatListUpdatesRequest_ListUpdateRequest::release_constraints() {
4720
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.constraints)
4721
  clear_has_constraints();
4722
  ::mozilla::safebrowsing::FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints* temp = constraints_;
4723
  constraints_ = NULL;
4724
  return temp;
4725
}
4726
inline void FetchThreatListUpdatesRequest_ListUpdateRequest::set_allocated_constraints(::mozilla::safebrowsing::FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints* constraints) {
4727
  delete constraints_;
4728
  constraints_ = constraints;
4729
  if (constraints) {
4730
    set_has_constraints();
4731
  } else {
4732
    clear_has_constraints();
4733
  }
4734
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.constraints)
4735
}
4736
4737
// -------------------------------------------------------------------
4738
4739
// FetchThreatListUpdatesRequest
4740
4741
// optional .mozilla.safebrowsing.ClientInfo client = 1;
4742
inline bool FetchThreatListUpdatesRequest::has_client() const {
4743
  return (_has_bits_[0] & 0x00000001u) != 0;
4744
}
4745
inline void FetchThreatListUpdatesRequest::set_has_client() {
4746
  _has_bits_[0] |= 0x00000001u;
4747
}
4748
inline void FetchThreatListUpdatesRequest::clear_has_client() {
4749
  _has_bits_[0] &= ~0x00000001u;
4750
}
4751
inline void FetchThreatListUpdatesRequest::clear_client() {
4752
  if (client_ != NULL) client_->::mozilla::safebrowsing::ClientInfo::Clear();
4753
  clear_has_client();
4754
}
4755
inline const ::mozilla::safebrowsing::ClientInfo& FetchThreatListUpdatesRequest::client() const {
4756
  const ::mozilla::safebrowsing::ClientInfo* p = client_;
4757
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesRequest.client)
4758
  return p != NULL ? *p : *reinterpret_cast<const ::mozilla::safebrowsing::ClientInfo*>(
4759
      &::mozilla::safebrowsing::_ClientInfo_default_instance_);
4760
}
4761
inline ::mozilla::safebrowsing::ClientInfo* FetchThreatListUpdatesRequest::mutable_client() {
4762
  set_has_client();
4763
  if (client_ == NULL) {
4764
    client_ = new ::mozilla::safebrowsing::ClientInfo;
4765
  }
4766
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.FetchThreatListUpdatesRequest.client)
4767
  return client_;
4768
}
4769
inline ::mozilla::safebrowsing::ClientInfo* FetchThreatListUpdatesRequest::release_client() {
4770
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.FetchThreatListUpdatesRequest.client)
4771
  clear_has_client();
4772
  ::mozilla::safebrowsing::ClientInfo* temp = client_;
4773
  client_ = NULL;
4774
  return temp;
4775
}
4776
inline void FetchThreatListUpdatesRequest::set_allocated_client(::mozilla::safebrowsing::ClientInfo* client) {
4777
  delete client_;
4778
  client_ = client;
4779
  if (client) {
4780
    set_has_client();
4781
  } else {
4782
    clear_has_client();
4783
  }
4784
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.FetchThreatListUpdatesRequest.client)
4785
}
4786
4787
// repeated .mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest list_update_requests = 3;
4788
inline int FetchThreatListUpdatesRequest::list_update_requests_size() const {
4789
  return list_update_requests_.size();
4790
}
4791
inline void FetchThreatListUpdatesRequest::clear_list_update_requests() {
4792
  list_update_requests_.Clear();
4793
}
4794
inline const ::mozilla::safebrowsing::FetchThreatListUpdatesRequest_ListUpdateRequest& FetchThreatListUpdatesRequest::list_update_requests(int index) const {
4795
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesRequest.list_update_requests)
4796
  return list_update_requests_.Get(index);
4797
}
4798
inline ::mozilla::safebrowsing::FetchThreatListUpdatesRequest_ListUpdateRequest* FetchThreatListUpdatesRequest::mutable_list_update_requests(int index) {
4799
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.FetchThreatListUpdatesRequest.list_update_requests)
4800
  return list_update_requests_.Mutable(index);
4801
}
4802
inline ::mozilla::safebrowsing::FetchThreatListUpdatesRequest_ListUpdateRequest* FetchThreatListUpdatesRequest::add_list_update_requests() {
4803
  // @@protoc_insertion_point(field_add:mozilla.safebrowsing.FetchThreatListUpdatesRequest.list_update_requests)
4804
  return list_update_requests_.Add();
4805
}
4806
inline ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::FetchThreatListUpdatesRequest_ListUpdateRequest >*
4807
FetchThreatListUpdatesRequest::mutable_list_update_requests() {
4808
  // @@protoc_insertion_point(field_mutable_list:mozilla.safebrowsing.FetchThreatListUpdatesRequest.list_update_requests)
4809
  return &list_update_requests_;
4810
}
4811
inline const ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::FetchThreatListUpdatesRequest_ListUpdateRequest >&
4812
FetchThreatListUpdatesRequest::list_update_requests() const {
4813
  // @@protoc_insertion_point(field_list:mozilla.safebrowsing.FetchThreatListUpdatesRequest.list_update_requests)
4814
  return list_update_requests_;
4815
}
4816
4817
// optional .mozilla.safebrowsing.ChromeClientInfo chrome_client_info = 4;
4818
inline bool FetchThreatListUpdatesRequest::has_chrome_client_info() const {
4819
  return (_has_bits_[0] & 0x00000002u) != 0;
4820
}
4821
inline void FetchThreatListUpdatesRequest::set_has_chrome_client_info() {
4822
  _has_bits_[0] |= 0x00000002u;
4823
}
4824
inline void FetchThreatListUpdatesRequest::clear_has_chrome_client_info() {
4825
  _has_bits_[0] &= ~0x00000002u;
4826
}
4827
inline void FetchThreatListUpdatesRequest::clear_chrome_client_info() {
4828
  if (chrome_client_info_ != NULL) chrome_client_info_->::mozilla::safebrowsing::ChromeClientInfo::Clear();
4829
  clear_has_chrome_client_info();
4830
}
4831
inline const ::mozilla::safebrowsing::ChromeClientInfo& FetchThreatListUpdatesRequest::chrome_client_info() const {
4832
  const ::mozilla::safebrowsing::ChromeClientInfo* p = chrome_client_info_;
4833
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesRequest.chrome_client_info)
4834
  return p != NULL ? *p : *reinterpret_cast<const ::mozilla::safebrowsing::ChromeClientInfo*>(
4835
      &::mozilla::safebrowsing::_ChromeClientInfo_default_instance_);
4836
}
4837
inline ::mozilla::safebrowsing::ChromeClientInfo* FetchThreatListUpdatesRequest::mutable_chrome_client_info() {
4838
  set_has_chrome_client_info();
4839
  if (chrome_client_info_ == NULL) {
4840
    chrome_client_info_ = new ::mozilla::safebrowsing::ChromeClientInfo;
4841
  }
4842
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.FetchThreatListUpdatesRequest.chrome_client_info)
4843
  return chrome_client_info_;
4844
}
4845
inline ::mozilla::safebrowsing::ChromeClientInfo* FetchThreatListUpdatesRequest::release_chrome_client_info() {
4846
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.FetchThreatListUpdatesRequest.chrome_client_info)
4847
  clear_has_chrome_client_info();
4848
  ::mozilla::safebrowsing::ChromeClientInfo* temp = chrome_client_info_;
4849
  chrome_client_info_ = NULL;
4850
  return temp;
4851
}
4852
inline void FetchThreatListUpdatesRequest::set_allocated_chrome_client_info(::mozilla::safebrowsing::ChromeClientInfo* chrome_client_info) {
4853
  delete chrome_client_info_;
4854
  chrome_client_info_ = chrome_client_info;
4855
  if (chrome_client_info) {
4856
    set_has_chrome_client_info();
4857
  } else {
4858
    clear_has_chrome_client_info();
4859
  }
4860
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.FetchThreatListUpdatesRequest.chrome_client_info)
4861
}
4862
4863
// -------------------------------------------------------------------
4864
4865
// FetchThreatListUpdatesResponse_ListUpdateResponse
4866
4867
// optional .mozilla.safebrowsing.ThreatType threat_type = 1;
4868
inline bool FetchThreatListUpdatesResponse_ListUpdateResponse::has_threat_type() const {
4869
  return (_has_bits_[0] & 0x00000004u) != 0;
4870
}
4871
inline void FetchThreatListUpdatesResponse_ListUpdateResponse::set_has_threat_type() {
4872
  _has_bits_[0] |= 0x00000004u;
4873
}
4874
inline void FetchThreatListUpdatesResponse_ListUpdateResponse::clear_has_threat_type() {
4875
  _has_bits_[0] &= ~0x00000004u;
4876
}
4877
inline void FetchThreatListUpdatesResponse_ListUpdateResponse::clear_threat_type() {
4878
  threat_type_ = 0;
4879
  clear_has_threat_type();
4880
}
4881
inline ::mozilla::safebrowsing::ThreatType FetchThreatListUpdatesResponse_ListUpdateResponse::threat_type() const {
4882
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.threat_type)
4883
  return static_cast< ::mozilla::safebrowsing::ThreatType >(threat_type_);
4884
}
4885
inline void FetchThreatListUpdatesResponse_ListUpdateResponse::set_threat_type(::mozilla::safebrowsing::ThreatType value) {
4886
  assert(::mozilla::safebrowsing::ThreatType_IsValid(value));
4887
  set_has_threat_type();
4888
  threat_type_ = value;
4889
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.threat_type)
4890
}
4891
4892
// optional .mozilla.safebrowsing.ThreatEntryType threat_entry_type = 2;
4893
inline bool FetchThreatListUpdatesResponse_ListUpdateResponse::has_threat_entry_type() const {
4894
  return (_has_bits_[0] & 0x00000008u) != 0;
4895
}
4896
inline void FetchThreatListUpdatesResponse_ListUpdateResponse::set_has_threat_entry_type() {
4897
  _has_bits_[0] |= 0x00000008u;
4898
}
4899
inline void FetchThreatListUpdatesResponse_ListUpdateResponse::clear_has_threat_entry_type() {
4900
  _has_bits_[0] &= ~0x00000008u;
4901
}
4902
inline void FetchThreatListUpdatesResponse_ListUpdateResponse::clear_threat_entry_type() {
4903
  threat_entry_type_ = 0;
4904
  clear_has_threat_entry_type();
4905
}
4906
inline ::mozilla::safebrowsing::ThreatEntryType FetchThreatListUpdatesResponse_ListUpdateResponse::threat_entry_type() const {
4907
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.threat_entry_type)
4908
  return static_cast< ::mozilla::safebrowsing::ThreatEntryType >(threat_entry_type_);
4909
}
4910
inline void FetchThreatListUpdatesResponse_ListUpdateResponse::set_threat_entry_type(::mozilla::safebrowsing::ThreatEntryType value) {
4911
  assert(::mozilla::safebrowsing::ThreatEntryType_IsValid(value));
4912
  set_has_threat_entry_type();
4913
  threat_entry_type_ = value;
4914
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.threat_entry_type)
4915
}
4916
4917
// optional .mozilla.safebrowsing.PlatformType platform_type = 3;
4918
inline bool FetchThreatListUpdatesResponse_ListUpdateResponse::has_platform_type() const {
4919
  return (_has_bits_[0] & 0x00000010u) != 0;
4920
}
4921
inline void FetchThreatListUpdatesResponse_ListUpdateResponse::set_has_platform_type() {
4922
  _has_bits_[0] |= 0x00000010u;
4923
}
4924
inline void FetchThreatListUpdatesResponse_ListUpdateResponse::clear_has_platform_type() {
4925
  _has_bits_[0] &= ~0x00000010u;
4926
}
4927
inline void FetchThreatListUpdatesResponse_ListUpdateResponse::clear_platform_type() {
4928
  platform_type_ = 0;
4929
  clear_has_platform_type();
4930
}
4931
inline ::mozilla::safebrowsing::PlatformType FetchThreatListUpdatesResponse_ListUpdateResponse::platform_type() const {
4932
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.platform_type)
4933
  return static_cast< ::mozilla::safebrowsing::PlatformType >(platform_type_);
4934
}
4935
inline void FetchThreatListUpdatesResponse_ListUpdateResponse::set_platform_type(::mozilla::safebrowsing::PlatformType value) {
4936
  assert(::mozilla::safebrowsing::PlatformType_IsValid(value));
4937
  set_has_platform_type();
4938
  platform_type_ = value;
4939
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.platform_type)
4940
}
4941
4942
// optional .mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.ResponseType response_type = 4;
4943
inline bool FetchThreatListUpdatesResponse_ListUpdateResponse::has_response_type() const {
4944
  return (_has_bits_[0] & 0x00000020u) != 0;
4945
}
4946
inline void FetchThreatListUpdatesResponse_ListUpdateResponse::set_has_response_type() {
4947
  _has_bits_[0] |= 0x00000020u;
4948
}
4949
inline void FetchThreatListUpdatesResponse_ListUpdateResponse::clear_has_response_type() {
4950
  _has_bits_[0] &= ~0x00000020u;
4951
}
4952
inline void FetchThreatListUpdatesResponse_ListUpdateResponse::clear_response_type() {
4953
  response_type_ = 0;
4954
  clear_has_response_type();
4955
}
4956
inline ::mozilla::safebrowsing::FetchThreatListUpdatesResponse_ListUpdateResponse_ResponseType FetchThreatListUpdatesResponse_ListUpdateResponse::response_type() const {
4957
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.response_type)
4958
  return static_cast< ::mozilla::safebrowsing::FetchThreatListUpdatesResponse_ListUpdateResponse_ResponseType >(response_type_);
4959
}
4960
inline void FetchThreatListUpdatesResponse_ListUpdateResponse::set_response_type(::mozilla::safebrowsing::FetchThreatListUpdatesResponse_ListUpdateResponse_ResponseType value) {
4961
  assert(::mozilla::safebrowsing::FetchThreatListUpdatesResponse_ListUpdateResponse_ResponseType_IsValid(value));
4962
  set_has_response_type();
4963
  response_type_ = value;
4964
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.response_type)
4965
}
4966
4967
// repeated .mozilla.safebrowsing.ThreatEntrySet additions = 5;
4968
inline int FetchThreatListUpdatesResponse_ListUpdateResponse::additions_size() const {
4969
  return additions_.size();
4970
}
4971
inline void FetchThreatListUpdatesResponse_ListUpdateResponse::clear_additions() {
4972
  additions_.Clear();
4973
}
4974
inline const ::mozilla::safebrowsing::ThreatEntrySet& FetchThreatListUpdatesResponse_ListUpdateResponse::additions(int index) const {
4975
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.additions)
4976
  return additions_.Get(index);
4977
}
4978
inline ::mozilla::safebrowsing::ThreatEntrySet* FetchThreatListUpdatesResponse_ListUpdateResponse::mutable_additions(int index) {
4979
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.additions)
4980
  return additions_.Mutable(index);
4981
}
4982
inline ::mozilla::safebrowsing::ThreatEntrySet* FetchThreatListUpdatesResponse_ListUpdateResponse::add_additions() {
4983
  // @@protoc_insertion_point(field_add:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.additions)
4984
  return additions_.Add();
4985
}
4986
inline ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatEntrySet >*
4987
0
FetchThreatListUpdatesResponse_ListUpdateResponse::mutable_additions() {
4988
0
  // @@protoc_insertion_point(field_mutable_list:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.additions)
4989
0
  return &additions_;
4990
0
}
4991
inline const ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatEntrySet >&
4992
FetchThreatListUpdatesResponse_ListUpdateResponse::additions() const {
4993
  // @@protoc_insertion_point(field_list:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.additions)
4994
  return additions_;
4995
}
4996
4997
// repeated .mozilla.safebrowsing.ThreatEntrySet removals = 6;
4998
inline int FetchThreatListUpdatesResponse_ListUpdateResponse::removals_size() const {
4999
  return removals_.size();
5000
}
5001
inline void FetchThreatListUpdatesResponse_ListUpdateResponse::clear_removals() {
5002
  removals_.Clear();
5003
}
5004
inline const ::mozilla::safebrowsing::ThreatEntrySet& FetchThreatListUpdatesResponse_ListUpdateResponse::removals(int index) const {
5005
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.removals)
5006
  return removals_.Get(index);
5007
}
5008
inline ::mozilla::safebrowsing::ThreatEntrySet* FetchThreatListUpdatesResponse_ListUpdateResponse::mutable_removals(int index) {
5009
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.removals)
5010
  return removals_.Mutable(index);
5011
}
5012
inline ::mozilla::safebrowsing::ThreatEntrySet* FetchThreatListUpdatesResponse_ListUpdateResponse::add_removals() {
5013
  // @@protoc_insertion_point(field_add:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.removals)
5014
  return removals_.Add();
5015
}
5016
inline ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatEntrySet >*
5017
FetchThreatListUpdatesResponse_ListUpdateResponse::mutable_removals() {
5018
  // @@protoc_insertion_point(field_mutable_list:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.removals)
5019
  return &removals_;
5020
}
5021
inline const ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatEntrySet >&
5022
FetchThreatListUpdatesResponse_ListUpdateResponse::removals() const {
5023
  // @@protoc_insertion_point(field_list:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.removals)
5024
  return removals_;
5025
}
5026
5027
// optional bytes new_client_state = 7;
5028
inline bool FetchThreatListUpdatesResponse_ListUpdateResponse::has_new_client_state() const {
5029
  return (_has_bits_[0] & 0x00000001u) != 0;
5030
}
5031
inline void FetchThreatListUpdatesResponse_ListUpdateResponse::set_has_new_client_state() {
5032
  _has_bits_[0] |= 0x00000001u;
5033
}
5034
inline void FetchThreatListUpdatesResponse_ListUpdateResponse::clear_has_new_client_state() {
5035
  _has_bits_[0] &= ~0x00000001u;
5036
}
5037
inline void FetchThreatListUpdatesResponse_ListUpdateResponse::clear_new_client_state() {
5038
  new_client_state_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5039
  clear_has_new_client_state();
5040
}
5041
inline const ::std::string& FetchThreatListUpdatesResponse_ListUpdateResponse::new_client_state() const {
5042
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.new_client_state)
5043
  return new_client_state_.GetNoArena();
5044
}
5045
inline void FetchThreatListUpdatesResponse_ListUpdateResponse::set_new_client_state(const ::std::string& value) {
5046
  set_has_new_client_state();
5047
  new_client_state_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
5048
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.new_client_state)
5049
}
5050
#if LANG_CXX11
5051
inline void FetchThreatListUpdatesResponse_ListUpdateResponse::set_new_client_state(::std::string&& value) {
5052
  set_has_new_client_state();
5053
  new_client_state_.SetNoArena(
5054
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
5055
  // @@protoc_insertion_point(field_set_rvalue:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.new_client_state)
5056
}
5057
#endif
5058
inline void FetchThreatListUpdatesResponse_ListUpdateResponse::set_new_client_state(const char* value) {
5059
  GOOGLE_DCHECK(value != NULL);
5060
  set_has_new_client_state();
5061
  new_client_state_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
5062
  // @@protoc_insertion_point(field_set_char:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.new_client_state)
5063
}
5064
0
inline void FetchThreatListUpdatesResponse_ListUpdateResponse::set_new_client_state(const void* value, size_t size) {
5065
0
  set_has_new_client_state();
5066
0
  new_client_state_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
5067
0
      ::std::string(reinterpret_cast<const char*>(value), size));
5068
0
  // @@protoc_insertion_point(field_set_pointer:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.new_client_state)
5069
0
}
5070
inline ::std::string* FetchThreatListUpdatesResponse_ListUpdateResponse::mutable_new_client_state() {
5071
  set_has_new_client_state();
5072
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.new_client_state)
5073
  return new_client_state_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5074
}
5075
inline ::std::string* FetchThreatListUpdatesResponse_ListUpdateResponse::release_new_client_state() {
5076
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.new_client_state)
5077
  clear_has_new_client_state();
5078
  return new_client_state_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5079
}
5080
inline void FetchThreatListUpdatesResponse_ListUpdateResponse::set_allocated_new_client_state(::std::string* new_client_state) {
5081
  if (new_client_state != NULL) {
5082
    set_has_new_client_state();
5083
  } else {
5084
    clear_has_new_client_state();
5085
  }
5086
  new_client_state_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), new_client_state);
5087
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.new_client_state)
5088
}
5089
5090
// optional .mozilla.safebrowsing.Checksum checksum = 8;
5091
inline bool FetchThreatListUpdatesResponse_ListUpdateResponse::has_checksum() const {
5092
  return (_has_bits_[0] & 0x00000002u) != 0;
5093
}
5094
inline void FetchThreatListUpdatesResponse_ListUpdateResponse::set_has_checksum() {
5095
  _has_bits_[0] |= 0x00000002u;
5096
}
5097
inline void FetchThreatListUpdatesResponse_ListUpdateResponse::clear_has_checksum() {
5098
  _has_bits_[0] &= ~0x00000002u;
5099
}
5100
inline void FetchThreatListUpdatesResponse_ListUpdateResponse::clear_checksum() {
5101
  if (checksum_ != NULL) checksum_->::mozilla::safebrowsing::Checksum::Clear();
5102
  clear_has_checksum();
5103
}
5104
inline const ::mozilla::safebrowsing::Checksum& FetchThreatListUpdatesResponse_ListUpdateResponse::checksum() const {
5105
  const ::mozilla::safebrowsing::Checksum* p = checksum_;
5106
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.checksum)
5107
  return p != NULL ? *p : *reinterpret_cast<const ::mozilla::safebrowsing::Checksum*>(
5108
      &::mozilla::safebrowsing::_Checksum_default_instance_);
5109
}
5110
inline ::mozilla::safebrowsing::Checksum* FetchThreatListUpdatesResponse_ListUpdateResponse::mutable_checksum() {
5111
  set_has_checksum();
5112
  if (checksum_ == NULL) {
5113
    checksum_ = new ::mozilla::safebrowsing::Checksum;
5114
  }
5115
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.checksum)
5116
  return checksum_;
5117
}
5118
inline ::mozilla::safebrowsing::Checksum* FetchThreatListUpdatesResponse_ListUpdateResponse::release_checksum() {
5119
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.checksum)
5120
  clear_has_checksum();
5121
  ::mozilla::safebrowsing::Checksum* temp = checksum_;
5122
  checksum_ = NULL;
5123
  return temp;
5124
}
5125
inline void FetchThreatListUpdatesResponse_ListUpdateResponse::set_allocated_checksum(::mozilla::safebrowsing::Checksum* checksum) {
5126
  delete checksum_;
5127
  checksum_ = checksum;
5128
  if (checksum) {
5129
    set_has_checksum();
5130
  } else {
5131
    clear_has_checksum();
5132
  }
5133
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.checksum)
5134
}
5135
5136
// -------------------------------------------------------------------
5137
5138
// FetchThreatListUpdatesResponse
5139
5140
// repeated .mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse list_update_responses = 1;
5141
inline int FetchThreatListUpdatesResponse::list_update_responses_size() const {
5142
  return list_update_responses_.size();
5143
}
5144
inline void FetchThreatListUpdatesResponse::clear_list_update_responses() {
5145
  list_update_responses_.Clear();
5146
}
5147
inline const ::mozilla::safebrowsing::FetchThreatListUpdatesResponse_ListUpdateResponse& FetchThreatListUpdatesResponse::list_update_responses(int index) const {
5148
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesResponse.list_update_responses)
5149
  return list_update_responses_.Get(index);
5150
}
5151
inline ::mozilla::safebrowsing::FetchThreatListUpdatesResponse_ListUpdateResponse* FetchThreatListUpdatesResponse::mutable_list_update_responses(int index) {
5152
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.FetchThreatListUpdatesResponse.list_update_responses)
5153
  return list_update_responses_.Mutable(index);
5154
}
5155
inline ::mozilla::safebrowsing::FetchThreatListUpdatesResponse_ListUpdateResponse* FetchThreatListUpdatesResponse::add_list_update_responses() {
5156
  // @@protoc_insertion_point(field_add:mozilla.safebrowsing.FetchThreatListUpdatesResponse.list_update_responses)
5157
  return list_update_responses_.Add();
5158
}
5159
inline ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::FetchThreatListUpdatesResponse_ListUpdateResponse >*
5160
0
FetchThreatListUpdatesResponse::mutable_list_update_responses() {
5161
0
  // @@protoc_insertion_point(field_mutable_list:mozilla.safebrowsing.FetchThreatListUpdatesResponse.list_update_responses)
5162
0
  return &list_update_responses_;
5163
0
}
5164
inline const ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::FetchThreatListUpdatesResponse_ListUpdateResponse >&
5165
FetchThreatListUpdatesResponse::list_update_responses() const {
5166
  // @@protoc_insertion_point(field_list:mozilla.safebrowsing.FetchThreatListUpdatesResponse.list_update_responses)
5167
  return list_update_responses_;
5168
}
5169
5170
// optional .mozilla.safebrowsing.Duration minimum_wait_duration = 2;
5171
inline bool FetchThreatListUpdatesResponse::has_minimum_wait_duration() const {
5172
  return (_has_bits_[0] & 0x00000001u) != 0;
5173
}
5174
inline void FetchThreatListUpdatesResponse::set_has_minimum_wait_duration() {
5175
  _has_bits_[0] |= 0x00000001u;
5176
}
5177
inline void FetchThreatListUpdatesResponse::clear_has_minimum_wait_duration() {
5178
  _has_bits_[0] &= ~0x00000001u;
5179
}
5180
inline void FetchThreatListUpdatesResponse::clear_minimum_wait_duration() {
5181
  if (minimum_wait_duration_ != NULL) minimum_wait_duration_->::mozilla::safebrowsing::Duration::Clear();
5182
  clear_has_minimum_wait_duration();
5183
}
5184
inline const ::mozilla::safebrowsing::Duration& FetchThreatListUpdatesResponse::minimum_wait_duration() const {
5185
  const ::mozilla::safebrowsing::Duration* p = minimum_wait_duration_;
5186
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesResponse.minimum_wait_duration)
5187
  return p != NULL ? *p : *reinterpret_cast<const ::mozilla::safebrowsing::Duration*>(
5188
      &::mozilla::safebrowsing::_Duration_default_instance_);
5189
}
5190
inline ::mozilla::safebrowsing::Duration* FetchThreatListUpdatesResponse::mutable_minimum_wait_duration() {
5191
  set_has_minimum_wait_duration();
5192
  if (minimum_wait_duration_ == NULL) {
5193
    minimum_wait_duration_ = new ::mozilla::safebrowsing::Duration;
5194
  }
5195
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.FetchThreatListUpdatesResponse.minimum_wait_duration)
5196
  return minimum_wait_duration_;
5197
}
5198
inline ::mozilla::safebrowsing::Duration* FetchThreatListUpdatesResponse::release_minimum_wait_duration() {
5199
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.FetchThreatListUpdatesResponse.minimum_wait_duration)
5200
  clear_has_minimum_wait_duration();
5201
  ::mozilla::safebrowsing::Duration* temp = minimum_wait_duration_;
5202
  minimum_wait_duration_ = NULL;
5203
  return temp;
5204
}
5205
inline void FetchThreatListUpdatesResponse::set_allocated_minimum_wait_duration(::mozilla::safebrowsing::Duration* minimum_wait_duration) {
5206
  delete minimum_wait_duration_;
5207
  minimum_wait_duration_ = minimum_wait_duration;
5208
  if (minimum_wait_duration) {
5209
    set_has_minimum_wait_duration();
5210
  } else {
5211
    clear_has_minimum_wait_duration();
5212
  }
5213
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.FetchThreatListUpdatesResponse.minimum_wait_duration)
5214
}
5215
5216
// -------------------------------------------------------------------
5217
5218
// FindFullHashesRequest
5219
5220
// optional .mozilla.safebrowsing.ClientInfo client = 1;
5221
inline bool FindFullHashesRequest::has_client() const {
5222
  return (_has_bits_[0] & 0x00000001u) != 0;
5223
}
5224
inline void FindFullHashesRequest::set_has_client() {
5225
  _has_bits_[0] |= 0x00000001u;
5226
}
5227
inline void FindFullHashesRequest::clear_has_client() {
5228
  _has_bits_[0] &= ~0x00000001u;
5229
}
5230
inline void FindFullHashesRequest::clear_client() {
5231
  if (client_ != NULL) client_->::mozilla::safebrowsing::ClientInfo::Clear();
5232
  clear_has_client();
5233
}
5234
inline const ::mozilla::safebrowsing::ClientInfo& FindFullHashesRequest::client() const {
5235
  const ::mozilla::safebrowsing::ClientInfo* p = client_;
5236
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FindFullHashesRequest.client)
5237
  return p != NULL ? *p : *reinterpret_cast<const ::mozilla::safebrowsing::ClientInfo*>(
5238
      &::mozilla::safebrowsing::_ClientInfo_default_instance_);
5239
}
5240
inline ::mozilla::safebrowsing::ClientInfo* FindFullHashesRequest::mutable_client() {
5241
  set_has_client();
5242
  if (client_ == NULL) {
5243
    client_ = new ::mozilla::safebrowsing::ClientInfo;
5244
  }
5245
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.FindFullHashesRequest.client)
5246
  return client_;
5247
}
5248
inline ::mozilla::safebrowsing::ClientInfo* FindFullHashesRequest::release_client() {
5249
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.FindFullHashesRequest.client)
5250
  clear_has_client();
5251
  ::mozilla::safebrowsing::ClientInfo* temp = client_;
5252
  client_ = NULL;
5253
  return temp;
5254
}
5255
inline void FindFullHashesRequest::set_allocated_client(::mozilla::safebrowsing::ClientInfo* client) {
5256
  delete client_;
5257
  client_ = client;
5258
  if (client) {
5259
    set_has_client();
5260
  } else {
5261
    clear_has_client();
5262
  }
5263
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.FindFullHashesRequest.client)
5264
}
5265
5266
// repeated bytes client_states = 2;
5267
inline int FindFullHashesRequest::client_states_size() const {
5268
  return client_states_.size();
5269
}
5270
inline void FindFullHashesRequest::clear_client_states() {
5271
  client_states_.Clear();
5272
}
5273
inline const ::std::string& FindFullHashesRequest::client_states(int index) const {
5274
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FindFullHashesRequest.client_states)
5275
  return client_states_.Get(index);
5276
}
5277
inline ::std::string* FindFullHashesRequest::mutable_client_states(int index) {
5278
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.FindFullHashesRequest.client_states)
5279
  return client_states_.Mutable(index);
5280
}
5281
inline void FindFullHashesRequest::set_client_states(int index, const ::std::string& value) {
5282
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.FindFullHashesRequest.client_states)
5283
  client_states_.Mutable(index)->assign(value);
5284
}
5285
#if LANG_CXX11
5286
inline void FindFullHashesRequest::set_client_states(int index, ::std::string&& value) {
5287
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.FindFullHashesRequest.client_states)
5288
  client_states_.Mutable(index)->assign(std::move(value));
5289
}
5290
#endif
5291
inline void FindFullHashesRequest::set_client_states(int index, const char* value) {
5292
  GOOGLE_DCHECK(value != NULL);
5293
  client_states_.Mutable(index)->assign(value);
5294
  // @@protoc_insertion_point(field_set_char:mozilla.safebrowsing.FindFullHashesRequest.client_states)
5295
}
5296
inline void FindFullHashesRequest::set_client_states(int index, const void* value, size_t size) {
5297
  client_states_.Mutable(index)->assign(
5298
    reinterpret_cast<const char*>(value), size);
5299
  // @@protoc_insertion_point(field_set_pointer:mozilla.safebrowsing.FindFullHashesRequest.client_states)
5300
}
5301
inline ::std::string* FindFullHashesRequest::add_client_states() {
5302
  // @@protoc_insertion_point(field_add_mutable:mozilla.safebrowsing.FindFullHashesRequest.client_states)
5303
  return client_states_.Add();
5304
}
5305
inline void FindFullHashesRequest::add_client_states(const ::std::string& value) {
5306
  client_states_.Add()->assign(value);
5307
  // @@protoc_insertion_point(field_add:mozilla.safebrowsing.FindFullHashesRequest.client_states)
5308
}
5309
#if LANG_CXX11
5310
inline void FindFullHashesRequest::add_client_states(::std::string&& value) {
5311
  client_states_.Add(std::move(value));
5312
  // @@protoc_insertion_point(field_add:mozilla.safebrowsing.FindFullHashesRequest.client_states)
5313
}
5314
#endif
5315
inline void FindFullHashesRequest::add_client_states(const char* value) {
5316
  GOOGLE_DCHECK(value != NULL);
5317
  client_states_.Add()->assign(value);
5318
  // @@protoc_insertion_point(field_add_char:mozilla.safebrowsing.FindFullHashesRequest.client_states)
5319
}
5320
inline void FindFullHashesRequest::add_client_states(const void* value, size_t size) {
5321
  client_states_.Add()->assign(reinterpret_cast<const char*>(value), size);
5322
  // @@protoc_insertion_point(field_add_pointer:mozilla.safebrowsing.FindFullHashesRequest.client_states)
5323
}
5324
inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
5325
FindFullHashesRequest::client_states() const {
5326
  // @@protoc_insertion_point(field_list:mozilla.safebrowsing.FindFullHashesRequest.client_states)
5327
  return client_states_;
5328
}
5329
inline ::google::protobuf::RepeatedPtrField< ::std::string>*
5330
FindFullHashesRequest::mutable_client_states() {
5331
  // @@protoc_insertion_point(field_mutable_list:mozilla.safebrowsing.FindFullHashesRequest.client_states)
5332
  return &client_states_;
5333
}
5334
5335
// optional .mozilla.safebrowsing.ThreatInfo threat_info = 3;
5336
inline bool FindFullHashesRequest::has_threat_info() const {
5337
  return (_has_bits_[0] & 0x00000002u) != 0;
5338
}
5339
inline void FindFullHashesRequest::set_has_threat_info() {
5340
  _has_bits_[0] |= 0x00000002u;
5341
}
5342
inline void FindFullHashesRequest::clear_has_threat_info() {
5343
  _has_bits_[0] &= ~0x00000002u;
5344
}
5345
inline void FindFullHashesRequest::clear_threat_info() {
5346
  if (threat_info_ != NULL) threat_info_->::mozilla::safebrowsing::ThreatInfo::Clear();
5347
  clear_has_threat_info();
5348
}
5349
inline const ::mozilla::safebrowsing::ThreatInfo& FindFullHashesRequest::threat_info() const {
5350
  const ::mozilla::safebrowsing::ThreatInfo* p = threat_info_;
5351
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FindFullHashesRequest.threat_info)
5352
  return p != NULL ? *p : *reinterpret_cast<const ::mozilla::safebrowsing::ThreatInfo*>(
5353
      &::mozilla::safebrowsing::_ThreatInfo_default_instance_);
5354
}
5355
inline ::mozilla::safebrowsing::ThreatInfo* FindFullHashesRequest::mutable_threat_info() {
5356
  set_has_threat_info();
5357
  if (threat_info_ == NULL) {
5358
    threat_info_ = new ::mozilla::safebrowsing::ThreatInfo;
5359
  }
5360
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.FindFullHashesRequest.threat_info)
5361
  return threat_info_;
5362
}
5363
inline ::mozilla::safebrowsing::ThreatInfo* FindFullHashesRequest::release_threat_info() {
5364
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.FindFullHashesRequest.threat_info)
5365
  clear_has_threat_info();
5366
  ::mozilla::safebrowsing::ThreatInfo* temp = threat_info_;
5367
  threat_info_ = NULL;
5368
  return temp;
5369
}
5370
inline void FindFullHashesRequest::set_allocated_threat_info(::mozilla::safebrowsing::ThreatInfo* threat_info) {
5371
  delete threat_info_;
5372
  threat_info_ = threat_info;
5373
  if (threat_info) {
5374
    set_has_threat_info();
5375
  } else {
5376
    clear_has_threat_info();
5377
  }
5378
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.FindFullHashesRequest.threat_info)
5379
}
5380
5381
// -------------------------------------------------------------------
5382
5383
// FindFullHashesResponse
5384
5385
// repeated .mozilla.safebrowsing.ThreatMatch matches = 1;
5386
inline int FindFullHashesResponse::matches_size() const {
5387
  return matches_.size();
5388
}
5389
inline void FindFullHashesResponse::clear_matches() {
5390
  matches_.Clear();
5391
}
5392
inline const ::mozilla::safebrowsing::ThreatMatch& FindFullHashesResponse::matches(int index) const {
5393
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FindFullHashesResponse.matches)
5394
  return matches_.Get(index);
5395
}
5396
inline ::mozilla::safebrowsing::ThreatMatch* FindFullHashesResponse::mutable_matches(int index) {
5397
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.FindFullHashesResponse.matches)
5398
  return matches_.Mutable(index);
5399
}
5400
inline ::mozilla::safebrowsing::ThreatMatch* FindFullHashesResponse::add_matches() {
5401
  // @@protoc_insertion_point(field_add:mozilla.safebrowsing.FindFullHashesResponse.matches)
5402
  return matches_.Add();
5403
}
5404
inline ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatMatch >*
5405
0
FindFullHashesResponse::mutable_matches() {
5406
0
  // @@protoc_insertion_point(field_mutable_list:mozilla.safebrowsing.FindFullHashesResponse.matches)
5407
0
  return &matches_;
5408
0
}
5409
inline const ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatMatch >&
5410
FindFullHashesResponse::matches() const {
5411
  // @@protoc_insertion_point(field_list:mozilla.safebrowsing.FindFullHashesResponse.matches)
5412
  return matches_;
5413
}
5414
5415
// optional .mozilla.safebrowsing.Duration minimum_wait_duration = 2;
5416
inline bool FindFullHashesResponse::has_minimum_wait_duration() const {
5417
  return (_has_bits_[0] & 0x00000001u) != 0;
5418
}
5419
inline void FindFullHashesResponse::set_has_minimum_wait_duration() {
5420
  _has_bits_[0] |= 0x00000001u;
5421
}
5422
inline void FindFullHashesResponse::clear_has_minimum_wait_duration() {
5423
  _has_bits_[0] &= ~0x00000001u;
5424
}
5425
inline void FindFullHashesResponse::clear_minimum_wait_duration() {
5426
  if (minimum_wait_duration_ != NULL) minimum_wait_duration_->::mozilla::safebrowsing::Duration::Clear();
5427
  clear_has_minimum_wait_duration();
5428
}
5429
inline const ::mozilla::safebrowsing::Duration& FindFullHashesResponse::minimum_wait_duration() const {
5430
  const ::mozilla::safebrowsing::Duration* p = minimum_wait_duration_;
5431
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FindFullHashesResponse.minimum_wait_duration)
5432
  return p != NULL ? *p : *reinterpret_cast<const ::mozilla::safebrowsing::Duration*>(
5433
      &::mozilla::safebrowsing::_Duration_default_instance_);
5434
}
5435
inline ::mozilla::safebrowsing::Duration* FindFullHashesResponse::mutable_minimum_wait_duration() {
5436
  set_has_minimum_wait_duration();
5437
  if (minimum_wait_duration_ == NULL) {
5438
    minimum_wait_duration_ = new ::mozilla::safebrowsing::Duration;
5439
  }
5440
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.FindFullHashesResponse.minimum_wait_duration)
5441
  return minimum_wait_duration_;
5442
}
5443
inline ::mozilla::safebrowsing::Duration* FindFullHashesResponse::release_minimum_wait_duration() {
5444
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.FindFullHashesResponse.minimum_wait_duration)
5445
  clear_has_minimum_wait_duration();
5446
  ::mozilla::safebrowsing::Duration* temp = minimum_wait_duration_;
5447
  minimum_wait_duration_ = NULL;
5448
  return temp;
5449
}
5450
inline void FindFullHashesResponse::set_allocated_minimum_wait_duration(::mozilla::safebrowsing::Duration* minimum_wait_duration) {
5451
  delete minimum_wait_duration_;
5452
  minimum_wait_duration_ = minimum_wait_duration;
5453
  if (minimum_wait_duration) {
5454
    set_has_minimum_wait_duration();
5455
  } else {
5456
    clear_has_minimum_wait_duration();
5457
  }
5458
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.FindFullHashesResponse.minimum_wait_duration)
5459
}
5460
5461
// optional .mozilla.safebrowsing.Duration negative_cache_duration = 3;
5462
inline bool FindFullHashesResponse::has_negative_cache_duration() const {
5463
  return (_has_bits_[0] & 0x00000002u) != 0;
5464
}
5465
inline void FindFullHashesResponse::set_has_negative_cache_duration() {
5466
  _has_bits_[0] |= 0x00000002u;
5467
}
5468
inline void FindFullHashesResponse::clear_has_negative_cache_duration() {
5469
  _has_bits_[0] &= ~0x00000002u;
5470
}
5471
inline void FindFullHashesResponse::clear_negative_cache_duration() {
5472
  if (negative_cache_duration_ != NULL) negative_cache_duration_->::mozilla::safebrowsing::Duration::Clear();
5473
  clear_has_negative_cache_duration();
5474
}
5475
inline const ::mozilla::safebrowsing::Duration& FindFullHashesResponse::negative_cache_duration() const {
5476
  const ::mozilla::safebrowsing::Duration* p = negative_cache_duration_;
5477
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FindFullHashesResponse.negative_cache_duration)
5478
  return p != NULL ? *p : *reinterpret_cast<const ::mozilla::safebrowsing::Duration*>(
5479
      &::mozilla::safebrowsing::_Duration_default_instance_);
5480
}
5481
inline ::mozilla::safebrowsing::Duration* FindFullHashesResponse::mutable_negative_cache_duration() {
5482
  set_has_negative_cache_duration();
5483
  if (negative_cache_duration_ == NULL) {
5484
    negative_cache_duration_ = new ::mozilla::safebrowsing::Duration;
5485
  }
5486
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.FindFullHashesResponse.negative_cache_duration)
5487
  return negative_cache_duration_;
5488
}
5489
inline ::mozilla::safebrowsing::Duration* FindFullHashesResponse::release_negative_cache_duration() {
5490
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.FindFullHashesResponse.negative_cache_duration)
5491
  clear_has_negative_cache_duration();
5492
  ::mozilla::safebrowsing::Duration* temp = negative_cache_duration_;
5493
  negative_cache_duration_ = NULL;
5494
  return temp;
5495
}
5496
inline void FindFullHashesResponse::set_allocated_negative_cache_duration(::mozilla::safebrowsing::Duration* negative_cache_duration) {
5497
  delete negative_cache_duration_;
5498
  negative_cache_duration_ = negative_cache_duration;
5499
  if (negative_cache_duration) {
5500
    set_has_negative_cache_duration();
5501
  } else {
5502
    clear_has_negative_cache_duration();
5503
  }
5504
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.FindFullHashesResponse.negative_cache_duration)
5505
}
5506
5507
// -------------------------------------------------------------------
5508
5509
// ThreatHit_ThreatSource
5510
5511
// optional string url = 1;
5512
inline bool ThreatHit_ThreatSource::has_url() const {
5513
  return (_has_bits_[0] & 0x00000001u) != 0;
5514
}
5515
inline void ThreatHit_ThreatSource::set_has_url() {
5516
  _has_bits_[0] |= 0x00000001u;
5517
}
5518
inline void ThreatHit_ThreatSource::clear_has_url() {
5519
  _has_bits_[0] &= ~0x00000001u;
5520
}
5521
inline void ThreatHit_ThreatSource::clear_url() {
5522
  url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5523
  clear_has_url();
5524
}
5525
inline const ::std::string& ThreatHit_ThreatSource::url() const {
5526
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatHit.ThreatSource.url)
5527
  return url_.GetNoArena();
5528
}
5529
inline void ThreatHit_ThreatSource::set_url(const ::std::string& value) {
5530
  set_has_url();
5531
  url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
5532
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatHit.ThreatSource.url)
5533
}
5534
#if LANG_CXX11
5535
inline void ThreatHit_ThreatSource::set_url(::std::string&& value) {
5536
  set_has_url();
5537
  url_.SetNoArena(
5538
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
5539
  // @@protoc_insertion_point(field_set_rvalue:mozilla.safebrowsing.ThreatHit.ThreatSource.url)
5540
}
5541
#endif
5542
inline void ThreatHit_ThreatSource::set_url(const char* value) {
5543
  GOOGLE_DCHECK(value != NULL);
5544
  set_has_url();
5545
  url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
5546
  // @@protoc_insertion_point(field_set_char:mozilla.safebrowsing.ThreatHit.ThreatSource.url)
5547
}
5548
inline void ThreatHit_ThreatSource::set_url(const char* value, size_t size) {
5549
  set_has_url();
5550
  url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
5551
      ::std::string(reinterpret_cast<const char*>(value), size));
5552
  // @@protoc_insertion_point(field_set_pointer:mozilla.safebrowsing.ThreatHit.ThreatSource.url)
5553
}
5554
inline ::std::string* ThreatHit_ThreatSource::mutable_url() {
5555
  set_has_url();
5556
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatHit.ThreatSource.url)
5557
  return url_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5558
}
5559
inline ::std::string* ThreatHit_ThreatSource::release_url() {
5560
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.ThreatHit.ThreatSource.url)
5561
  clear_has_url();
5562
  return url_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5563
}
5564
inline void ThreatHit_ThreatSource::set_allocated_url(::std::string* url) {
5565
  if (url != NULL) {
5566
    set_has_url();
5567
  } else {
5568
    clear_has_url();
5569
  }
5570
  url_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), url);
5571
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.ThreatHit.ThreatSource.url)
5572
}
5573
5574
// optional .mozilla.safebrowsing.ThreatHit.ThreatSourceType type = 2;
5575
inline bool ThreatHit_ThreatSource::has_type() const {
5576
  return (_has_bits_[0] & 0x00000008u) != 0;
5577
}
5578
inline void ThreatHit_ThreatSource::set_has_type() {
5579
  _has_bits_[0] |= 0x00000008u;
5580
}
5581
inline void ThreatHit_ThreatSource::clear_has_type() {
5582
  _has_bits_[0] &= ~0x00000008u;
5583
}
5584
inline void ThreatHit_ThreatSource::clear_type() {
5585
  type_ = 0;
5586
  clear_has_type();
5587
}
5588
inline ::mozilla::safebrowsing::ThreatHit_ThreatSourceType ThreatHit_ThreatSource::type() const {
5589
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatHit.ThreatSource.type)
5590
  return static_cast< ::mozilla::safebrowsing::ThreatHit_ThreatSourceType >(type_);
5591
}
5592
inline void ThreatHit_ThreatSource::set_type(::mozilla::safebrowsing::ThreatHit_ThreatSourceType value) {
5593
  assert(::mozilla::safebrowsing::ThreatHit_ThreatSourceType_IsValid(value));
5594
  set_has_type();
5595
  type_ = value;
5596
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatHit.ThreatSource.type)
5597
}
5598
5599
// optional string remote_ip = 3;
5600
inline bool ThreatHit_ThreatSource::has_remote_ip() const {
5601
  return (_has_bits_[0] & 0x00000002u) != 0;
5602
}
5603
inline void ThreatHit_ThreatSource::set_has_remote_ip() {
5604
  _has_bits_[0] |= 0x00000002u;
5605
}
5606
inline void ThreatHit_ThreatSource::clear_has_remote_ip() {
5607
  _has_bits_[0] &= ~0x00000002u;
5608
}
5609
inline void ThreatHit_ThreatSource::clear_remote_ip() {
5610
  remote_ip_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5611
  clear_has_remote_ip();
5612
}
5613
inline const ::std::string& ThreatHit_ThreatSource::remote_ip() const {
5614
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatHit.ThreatSource.remote_ip)
5615
  return remote_ip_.GetNoArena();
5616
}
5617
inline void ThreatHit_ThreatSource::set_remote_ip(const ::std::string& value) {
5618
  set_has_remote_ip();
5619
  remote_ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
5620
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatHit.ThreatSource.remote_ip)
5621
}
5622
#if LANG_CXX11
5623
inline void ThreatHit_ThreatSource::set_remote_ip(::std::string&& value) {
5624
  set_has_remote_ip();
5625
  remote_ip_.SetNoArena(
5626
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
5627
  // @@protoc_insertion_point(field_set_rvalue:mozilla.safebrowsing.ThreatHit.ThreatSource.remote_ip)
5628
}
5629
#endif
5630
inline void ThreatHit_ThreatSource::set_remote_ip(const char* value) {
5631
  GOOGLE_DCHECK(value != NULL);
5632
  set_has_remote_ip();
5633
  remote_ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
5634
  // @@protoc_insertion_point(field_set_char:mozilla.safebrowsing.ThreatHit.ThreatSource.remote_ip)
5635
}
5636
inline void ThreatHit_ThreatSource::set_remote_ip(const char* value, size_t size) {
5637
  set_has_remote_ip();
5638
  remote_ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
5639
      ::std::string(reinterpret_cast<const char*>(value), size));
5640
  // @@protoc_insertion_point(field_set_pointer:mozilla.safebrowsing.ThreatHit.ThreatSource.remote_ip)
5641
}
5642
inline ::std::string* ThreatHit_ThreatSource::mutable_remote_ip() {
5643
  set_has_remote_ip();
5644
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatHit.ThreatSource.remote_ip)
5645
  return remote_ip_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5646
}
5647
inline ::std::string* ThreatHit_ThreatSource::release_remote_ip() {
5648
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.ThreatHit.ThreatSource.remote_ip)
5649
  clear_has_remote_ip();
5650
  return remote_ip_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5651
}
5652
inline void ThreatHit_ThreatSource::set_allocated_remote_ip(::std::string* remote_ip) {
5653
  if (remote_ip != NULL) {
5654
    set_has_remote_ip();
5655
  } else {
5656
    clear_has_remote_ip();
5657
  }
5658
  remote_ip_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), remote_ip);
5659
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.ThreatHit.ThreatSource.remote_ip)
5660
}
5661
5662
// optional string referrer = 4;
5663
inline bool ThreatHit_ThreatSource::has_referrer() const {
5664
  return (_has_bits_[0] & 0x00000004u) != 0;
5665
}
5666
inline void ThreatHit_ThreatSource::set_has_referrer() {
5667
  _has_bits_[0] |= 0x00000004u;
5668
}
5669
inline void ThreatHit_ThreatSource::clear_has_referrer() {
5670
  _has_bits_[0] &= ~0x00000004u;
5671
}
5672
inline void ThreatHit_ThreatSource::clear_referrer() {
5673
  referrer_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5674
  clear_has_referrer();
5675
}
5676
inline const ::std::string& ThreatHit_ThreatSource::referrer() const {
5677
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatHit.ThreatSource.referrer)
5678
  return referrer_.GetNoArena();
5679
}
5680
inline void ThreatHit_ThreatSource::set_referrer(const ::std::string& value) {
5681
  set_has_referrer();
5682
  referrer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
5683
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatHit.ThreatSource.referrer)
5684
}
5685
#if LANG_CXX11
5686
inline void ThreatHit_ThreatSource::set_referrer(::std::string&& value) {
5687
  set_has_referrer();
5688
  referrer_.SetNoArena(
5689
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
5690
  // @@protoc_insertion_point(field_set_rvalue:mozilla.safebrowsing.ThreatHit.ThreatSource.referrer)
5691
}
5692
#endif
5693
inline void ThreatHit_ThreatSource::set_referrer(const char* value) {
5694
  GOOGLE_DCHECK(value != NULL);
5695
  set_has_referrer();
5696
  referrer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
5697
  // @@protoc_insertion_point(field_set_char:mozilla.safebrowsing.ThreatHit.ThreatSource.referrer)
5698
}
5699
inline void ThreatHit_ThreatSource::set_referrer(const char* value, size_t size) {
5700
  set_has_referrer();
5701
  referrer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
5702
      ::std::string(reinterpret_cast<const char*>(value), size));
5703
  // @@protoc_insertion_point(field_set_pointer:mozilla.safebrowsing.ThreatHit.ThreatSource.referrer)
5704
}
5705
inline ::std::string* ThreatHit_ThreatSource::mutable_referrer() {
5706
  set_has_referrer();
5707
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatHit.ThreatSource.referrer)
5708
  return referrer_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5709
}
5710
inline ::std::string* ThreatHit_ThreatSource::release_referrer() {
5711
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.ThreatHit.ThreatSource.referrer)
5712
  clear_has_referrer();
5713
  return referrer_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5714
}
5715
inline void ThreatHit_ThreatSource::set_allocated_referrer(::std::string* referrer) {
5716
  if (referrer != NULL) {
5717
    set_has_referrer();
5718
  } else {
5719
    clear_has_referrer();
5720
  }
5721
  referrer_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), referrer);
5722
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.ThreatHit.ThreatSource.referrer)
5723
}
5724
5725
// -------------------------------------------------------------------
5726
5727
// ThreatHit_UserInfo
5728
5729
// optional string region_code = 1;
5730
inline bool ThreatHit_UserInfo::has_region_code() const {
5731
  return (_has_bits_[0] & 0x00000001u) != 0;
5732
}
5733
inline void ThreatHit_UserInfo::set_has_region_code() {
5734
  _has_bits_[0] |= 0x00000001u;
5735
}
5736
inline void ThreatHit_UserInfo::clear_has_region_code() {
5737
  _has_bits_[0] &= ~0x00000001u;
5738
}
5739
inline void ThreatHit_UserInfo::clear_region_code() {
5740
  region_code_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5741
  clear_has_region_code();
5742
}
5743
inline const ::std::string& ThreatHit_UserInfo::region_code() const {
5744
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatHit.UserInfo.region_code)
5745
  return region_code_.GetNoArena();
5746
}
5747
inline void ThreatHit_UserInfo::set_region_code(const ::std::string& value) {
5748
  set_has_region_code();
5749
  region_code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
5750
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatHit.UserInfo.region_code)
5751
}
5752
#if LANG_CXX11
5753
inline void ThreatHit_UserInfo::set_region_code(::std::string&& value) {
5754
  set_has_region_code();
5755
  region_code_.SetNoArena(
5756
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
5757
  // @@protoc_insertion_point(field_set_rvalue:mozilla.safebrowsing.ThreatHit.UserInfo.region_code)
5758
}
5759
#endif
5760
inline void ThreatHit_UserInfo::set_region_code(const char* value) {
5761
  GOOGLE_DCHECK(value != NULL);
5762
  set_has_region_code();
5763
  region_code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
5764
  // @@protoc_insertion_point(field_set_char:mozilla.safebrowsing.ThreatHit.UserInfo.region_code)
5765
}
5766
inline void ThreatHit_UserInfo::set_region_code(const char* value, size_t size) {
5767
  set_has_region_code();
5768
  region_code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
5769
      ::std::string(reinterpret_cast<const char*>(value), size));
5770
  // @@protoc_insertion_point(field_set_pointer:mozilla.safebrowsing.ThreatHit.UserInfo.region_code)
5771
}
5772
inline ::std::string* ThreatHit_UserInfo::mutable_region_code() {
5773
  set_has_region_code();
5774
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatHit.UserInfo.region_code)
5775
  return region_code_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5776
}
5777
inline ::std::string* ThreatHit_UserInfo::release_region_code() {
5778
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.ThreatHit.UserInfo.region_code)
5779
  clear_has_region_code();
5780
  return region_code_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5781
}
5782
inline void ThreatHit_UserInfo::set_allocated_region_code(::std::string* region_code) {
5783
  if (region_code != NULL) {
5784
    set_has_region_code();
5785
  } else {
5786
    clear_has_region_code();
5787
  }
5788
  region_code_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), region_code);
5789
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.ThreatHit.UserInfo.region_code)
5790
}
5791
5792
// optional bytes user_id = 2;
5793
inline bool ThreatHit_UserInfo::has_user_id() const {
5794
  return (_has_bits_[0] & 0x00000002u) != 0;
5795
}
5796
inline void ThreatHit_UserInfo::set_has_user_id() {
5797
  _has_bits_[0] |= 0x00000002u;
5798
}
5799
inline void ThreatHit_UserInfo::clear_has_user_id() {
5800
  _has_bits_[0] &= ~0x00000002u;
5801
}
5802
inline void ThreatHit_UserInfo::clear_user_id() {
5803
  user_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5804
  clear_has_user_id();
5805
}
5806
inline const ::std::string& ThreatHit_UserInfo::user_id() const {
5807
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatHit.UserInfo.user_id)
5808
  return user_id_.GetNoArena();
5809
}
5810
inline void ThreatHit_UserInfo::set_user_id(const ::std::string& value) {
5811
  set_has_user_id();
5812
  user_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
5813
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatHit.UserInfo.user_id)
5814
}
5815
#if LANG_CXX11
5816
inline void ThreatHit_UserInfo::set_user_id(::std::string&& value) {
5817
  set_has_user_id();
5818
  user_id_.SetNoArena(
5819
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
5820
  // @@protoc_insertion_point(field_set_rvalue:mozilla.safebrowsing.ThreatHit.UserInfo.user_id)
5821
}
5822
#endif
5823
inline void ThreatHit_UserInfo::set_user_id(const char* value) {
5824
  GOOGLE_DCHECK(value != NULL);
5825
  set_has_user_id();
5826
  user_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
5827
  // @@protoc_insertion_point(field_set_char:mozilla.safebrowsing.ThreatHit.UserInfo.user_id)
5828
}
5829
inline void ThreatHit_UserInfo::set_user_id(const void* value, size_t size) {
5830
  set_has_user_id();
5831
  user_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
5832
      ::std::string(reinterpret_cast<const char*>(value), size));
5833
  // @@protoc_insertion_point(field_set_pointer:mozilla.safebrowsing.ThreatHit.UserInfo.user_id)
5834
}
5835
inline ::std::string* ThreatHit_UserInfo::mutable_user_id() {
5836
  set_has_user_id();
5837
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatHit.UserInfo.user_id)
5838
  return user_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5839
}
5840
inline ::std::string* ThreatHit_UserInfo::release_user_id() {
5841
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.ThreatHit.UserInfo.user_id)
5842
  clear_has_user_id();
5843
  return user_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5844
}
5845
inline void ThreatHit_UserInfo::set_allocated_user_id(::std::string* user_id) {
5846
  if (user_id != NULL) {
5847
    set_has_user_id();
5848
  } else {
5849
    clear_has_user_id();
5850
  }
5851
  user_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), user_id);
5852
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.ThreatHit.UserInfo.user_id)
5853
}
5854
5855
// -------------------------------------------------------------------
5856
5857
// ThreatHit
5858
5859
// optional .mozilla.safebrowsing.ThreatType threat_type = 1;
5860
inline bool ThreatHit::has_threat_type() const {
5861
  return (_has_bits_[0] & 0x00000008u) != 0;
5862
}
5863
inline void ThreatHit::set_has_threat_type() {
5864
  _has_bits_[0] |= 0x00000008u;
5865
}
5866
inline void ThreatHit::clear_has_threat_type() {
5867
  _has_bits_[0] &= ~0x00000008u;
5868
}
5869
inline void ThreatHit::clear_threat_type() {
5870
  threat_type_ = 0;
5871
  clear_has_threat_type();
5872
}
5873
inline ::mozilla::safebrowsing::ThreatType ThreatHit::threat_type() const {
5874
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatHit.threat_type)
5875
  return static_cast< ::mozilla::safebrowsing::ThreatType >(threat_type_);
5876
}
5877
inline void ThreatHit::set_threat_type(::mozilla::safebrowsing::ThreatType value) {
5878
  assert(::mozilla::safebrowsing::ThreatType_IsValid(value));
5879
  set_has_threat_type();
5880
  threat_type_ = value;
5881
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatHit.threat_type)
5882
}
5883
5884
// optional .mozilla.safebrowsing.PlatformType platform_type = 2;
5885
inline bool ThreatHit::has_platform_type() const {
5886
  return (_has_bits_[0] & 0x00000010u) != 0;
5887
}
5888
inline void ThreatHit::set_has_platform_type() {
5889
  _has_bits_[0] |= 0x00000010u;
5890
}
5891
inline void ThreatHit::clear_has_platform_type() {
5892
  _has_bits_[0] &= ~0x00000010u;
5893
}
5894
inline void ThreatHit::clear_platform_type() {
5895
  platform_type_ = 0;
5896
  clear_has_platform_type();
5897
}
5898
inline ::mozilla::safebrowsing::PlatformType ThreatHit::platform_type() const {
5899
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatHit.platform_type)
5900
  return static_cast< ::mozilla::safebrowsing::PlatformType >(platform_type_);
5901
}
5902
inline void ThreatHit::set_platform_type(::mozilla::safebrowsing::PlatformType value) {
5903
  assert(::mozilla::safebrowsing::PlatformType_IsValid(value));
5904
  set_has_platform_type();
5905
  platform_type_ = value;
5906
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatHit.platform_type)
5907
}
5908
5909
// optional .mozilla.safebrowsing.ThreatEntry entry = 3;
5910
inline bool ThreatHit::has_entry() const {
5911
  return (_has_bits_[0] & 0x00000001u) != 0;
5912
}
5913
inline void ThreatHit::set_has_entry() {
5914
  _has_bits_[0] |= 0x00000001u;
5915
}
5916
inline void ThreatHit::clear_has_entry() {
5917
  _has_bits_[0] &= ~0x00000001u;
5918
}
5919
inline void ThreatHit::clear_entry() {
5920
  if (entry_ != NULL) entry_->::mozilla::safebrowsing::ThreatEntry::Clear();
5921
  clear_has_entry();
5922
}
5923
inline const ::mozilla::safebrowsing::ThreatEntry& ThreatHit::entry() const {
5924
  const ::mozilla::safebrowsing::ThreatEntry* p = entry_;
5925
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatHit.entry)
5926
  return p != NULL ? *p : *reinterpret_cast<const ::mozilla::safebrowsing::ThreatEntry*>(
5927
      &::mozilla::safebrowsing::_ThreatEntry_default_instance_);
5928
}
5929
inline ::mozilla::safebrowsing::ThreatEntry* ThreatHit::mutable_entry() {
5930
  set_has_entry();
5931
  if (entry_ == NULL) {
5932
    entry_ = new ::mozilla::safebrowsing::ThreatEntry;
5933
  }
5934
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatHit.entry)
5935
  return entry_;
5936
}
5937
inline ::mozilla::safebrowsing::ThreatEntry* ThreatHit::release_entry() {
5938
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.ThreatHit.entry)
5939
  clear_has_entry();
5940
  ::mozilla::safebrowsing::ThreatEntry* temp = entry_;
5941
  entry_ = NULL;
5942
  return temp;
5943
}
5944
inline void ThreatHit::set_allocated_entry(::mozilla::safebrowsing::ThreatEntry* entry) {
5945
  delete entry_;
5946
  entry_ = entry;
5947
  if (entry) {
5948
    set_has_entry();
5949
  } else {
5950
    clear_has_entry();
5951
  }
5952
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.ThreatHit.entry)
5953
}
5954
5955
// repeated .mozilla.safebrowsing.ThreatHit.ThreatSource resources = 4;
5956
inline int ThreatHit::resources_size() const {
5957
  return resources_.size();
5958
}
5959
inline void ThreatHit::clear_resources() {
5960
  resources_.Clear();
5961
}
5962
inline const ::mozilla::safebrowsing::ThreatHit_ThreatSource& ThreatHit::resources(int index) const {
5963
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatHit.resources)
5964
  return resources_.Get(index);
5965
}
5966
inline ::mozilla::safebrowsing::ThreatHit_ThreatSource* ThreatHit::mutable_resources(int index) {
5967
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatHit.resources)
5968
  return resources_.Mutable(index);
5969
}
5970
inline ::mozilla::safebrowsing::ThreatHit_ThreatSource* ThreatHit::add_resources() {
5971
  // @@protoc_insertion_point(field_add:mozilla.safebrowsing.ThreatHit.resources)
5972
  return resources_.Add();
5973
}
5974
inline ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatHit_ThreatSource >*
5975
ThreatHit::mutable_resources() {
5976
  // @@protoc_insertion_point(field_mutable_list:mozilla.safebrowsing.ThreatHit.resources)
5977
  return &resources_;
5978
}
5979
inline const ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatHit_ThreatSource >&
5980
ThreatHit::resources() const {
5981
  // @@protoc_insertion_point(field_list:mozilla.safebrowsing.ThreatHit.resources)
5982
  return resources_;
5983
}
5984
5985
// optional .mozilla.safebrowsing.ClientInfo client_info = 5;
5986
inline bool ThreatHit::has_client_info() const {
5987
  return (_has_bits_[0] & 0x00000002u) != 0;
5988
}
5989
inline void ThreatHit::set_has_client_info() {
5990
  _has_bits_[0] |= 0x00000002u;
5991
}
5992
inline void ThreatHit::clear_has_client_info() {
5993
  _has_bits_[0] &= ~0x00000002u;
5994
}
5995
inline void ThreatHit::clear_client_info() {
5996
  if (client_info_ != NULL) client_info_->::mozilla::safebrowsing::ClientInfo::Clear();
5997
  clear_has_client_info();
5998
}
5999
inline const ::mozilla::safebrowsing::ClientInfo& ThreatHit::client_info() const {
6000
  const ::mozilla::safebrowsing::ClientInfo* p = client_info_;
6001
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatHit.client_info)
6002
  return p != NULL ? *p : *reinterpret_cast<const ::mozilla::safebrowsing::ClientInfo*>(
6003
      &::mozilla::safebrowsing::_ClientInfo_default_instance_);
6004
}
6005
inline ::mozilla::safebrowsing::ClientInfo* ThreatHit::mutable_client_info() {
6006
  set_has_client_info();
6007
  if (client_info_ == NULL) {
6008
    client_info_ = new ::mozilla::safebrowsing::ClientInfo;
6009
  }
6010
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatHit.client_info)
6011
  return client_info_;
6012
}
6013
inline ::mozilla::safebrowsing::ClientInfo* ThreatHit::release_client_info() {
6014
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.ThreatHit.client_info)
6015
  clear_has_client_info();
6016
  ::mozilla::safebrowsing::ClientInfo* temp = client_info_;
6017
  client_info_ = NULL;
6018
  return temp;
6019
}
6020
inline void ThreatHit::set_allocated_client_info(::mozilla::safebrowsing::ClientInfo* client_info) {
6021
  delete client_info_;
6022
  client_info_ = client_info;
6023
  if (client_info) {
6024
    set_has_client_info();
6025
  } else {
6026
    clear_has_client_info();
6027
  }
6028
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.ThreatHit.client_info)
6029
}
6030
6031
// optional .mozilla.safebrowsing.ThreatHit.UserInfo user_info = 6;
6032
inline bool ThreatHit::has_user_info() const {
6033
  return (_has_bits_[0] & 0x00000004u) != 0;
6034
}
6035
inline void ThreatHit::set_has_user_info() {
6036
  _has_bits_[0] |= 0x00000004u;
6037
}
6038
inline void ThreatHit::clear_has_user_info() {
6039
  _has_bits_[0] &= ~0x00000004u;
6040
}
6041
inline void ThreatHit::clear_user_info() {
6042
  if (user_info_ != NULL) user_info_->::mozilla::safebrowsing::ThreatHit_UserInfo::Clear();
6043
  clear_has_user_info();
6044
}
6045
inline const ::mozilla::safebrowsing::ThreatHit_UserInfo& ThreatHit::user_info() const {
6046
  const ::mozilla::safebrowsing::ThreatHit_UserInfo* p = user_info_;
6047
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatHit.user_info)
6048
  return p != NULL ? *p : *reinterpret_cast<const ::mozilla::safebrowsing::ThreatHit_UserInfo*>(
6049
      &::mozilla::safebrowsing::_ThreatHit_UserInfo_default_instance_);
6050
}
6051
inline ::mozilla::safebrowsing::ThreatHit_UserInfo* ThreatHit::mutable_user_info() {
6052
  set_has_user_info();
6053
  if (user_info_ == NULL) {
6054
    user_info_ = new ::mozilla::safebrowsing::ThreatHit_UserInfo;
6055
  }
6056
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatHit.user_info)
6057
  return user_info_;
6058
}
6059
inline ::mozilla::safebrowsing::ThreatHit_UserInfo* ThreatHit::release_user_info() {
6060
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.ThreatHit.user_info)
6061
  clear_has_user_info();
6062
  ::mozilla::safebrowsing::ThreatHit_UserInfo* temp = user_info_;
6063
  user_info_ = NULL;
6064
  return temp;
6065
}
6066
inline void ThreatHit::set_allocated_user_info(::mozilla::safebrowsing::ThreatHit_UserInfo* user_info) {
6067
  delete user_info_;
6068
  user_info_ = user_info;
6069
  if (user_info) {
6070
    set_has_user_info();
6071
  } else {
6072
    clear_has_user_info();
6073
  }
6074
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.ThreatHit.user_info)
6075
}
6076
6077
// -------------------------------------------------------------------
6078
6079
// ClientInfo
6080
6081
// optional string client_id = 1;
6082
inline bool ClientInfo::has_client_id() const {
6083
  return (_has_bits_[0] & 0x00000001u) != 0;
6084
}
6085
inline void ClientInfo::set_has_client_id() {
6086
  _has_bits_[0] |= 0x00000001u;
6087
}
6088
inline void ClientInfo::clear_has_client_id() {
6089
  _has_bits_[0] &= ~0x00000001u;
6090
}
6091
inline void ClientInfo::clear_client_id() {
6092
  client_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6093
  clear_has_client_id();
6094
}
6095
inline const ::std::string& ClientInfo::client_id() const {
6096
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ClientInfo.client_id)
6097
  return client_id_.GetNoArena();
6098
}
6099
0
inline void ClientInfo::set_client_id(const ::std::string& value) {
6100
0
  set_has_client_id();
6101
0
  client_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
6102
0
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ClientInfo.client_id)
6103
0
}
6104
#if LANG_CXX11
6105
inline void ClientInfo::set_client_id(::std::string&& value) {
6106
  set_has_client_id();
6107
  client_id_.SetNoArena(
6108
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
6109
  // @@protoc_insertion_point(field_set_rvalue:mozilla.safebrowsing.ClientInfo.client_id)
6110
}
6111
#endif
6112
inline void ClientInfo::set_client_id(const char* value) {
6113
  GOOGLE_DCHECK(value != NULL);
6114
  set_has_client_id();
6115
  client_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
6116
  // @@protoc_insertion_point(field_set_char:mozilla.safebrowsing.ClientInfo.client_id)
6117
}
6118
inline void ClientInfo::set_client_id(const char* value, size_t size) {
6119
  set_has_client_id();
6120
  client_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
6121
      ::std::string(reinterpret_cast<const char*>(value), size));
6122
  // @@protoc_insertion_point(field_set_pointer:mozilla.safebrowsing.ClientInfo.client_id)
6123
}
6124
inline ::std::string* ClientInfo::mutable_client_id() {
6125
  set_has_client_id();
6126
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ClientInfo.client_id)
6127
  return client_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6128
}
6129
inline ::std::string* ClientInfo::release_client_id() {
6130
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.ClientInfo.client_id)
6131
  clear_has_client_id();
6132
  return client_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6133
}
6134
inline void ClientInfo::set_allocated_client_id(::std::string* client_id) {
6135
  if (client_id != NULL) {
6136
    set_has_client_id();
6137
  } else {
6138
    clear_has_client_id();
6139
  }
6140
  client_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), client_id);
6141
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.ClientInfo.client_id)
6142
}
6143
6144
// optional string client_version = 2;
6145
inline bool ClientInfo::has_client_version() const {
6146
  return (_has_bits_[0] & 0x00000002u) != 0;
6147
}
6148
inline void ClientInfo::set_has_client_version() {
6149
  _has_bits_[0] |= 0x00000002u;
6150
}
6151
inline void ClientInfo::clear_has_client_version() {
6152
  _has_bits_[0] &= ~0x00000002u;
6153
}
6154
inline void ClientInfo::clear_client_version() {
6155
  client_version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6156
  clear_has_client_version();
6157
}
6158
inline const ::std::string& ClientInfo::client_version() const {
6159
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ClientInfo.client_version)
6160
  return client_version_.GetNoArena();
6161
}
6162
inline void ClientInfo::set_client_version(const ::std::string& value) {
6163
  set_has_client_version();
6164
  client_version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
6165
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ClientInfo.client_version)
6166
}
6167
#if LANG_CXX11
6168
inline void ClientInfo::set_client_version(::std::string&& value) {
6169
  set_has_client_version();
6170
  client_version_.SetNoArena(
6171
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
6172
  // @@protoc_insertion_point(field_set_rvalue:mozilla.safebrowsing.ClientInfo.client_version)
6173
}
6174
#endif
6175
inline void ClientInfo::set_client_version(const char* value) {
6176
  GOOGLE_DCHECK(value != NULL);
6177
  set_has_client_version();
6178
  client_version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
6179
  // @@protoc_insertion_point(field_set_char:mozilla.safebrowsing.ClientInfo.client_version)
6180
}
6181
inline void ClientInfo::set_client_version(const char* value, size_t size) {
6182
  set_has_client_version();
6183
  client_version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
6184
      ::std::string(reinterpret_cast<const char*>(value), size));
6185
  // @@protoc_insertion_point(field_set_pointer:mozilla.safebrowsing.ClientInfo.client_version)
6186
}
6187
inline ::std::string* ClientInfo::mutable_client_version() {
6188
  set_has_client_version();
6189
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ClientInfo.client_version)
6190
  return client_version_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6191
}
6192
inline ::std::string* ClientInfo::release_client_version() {
6193
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.ClientInfo.client_version)
6194
  clear_has_client_version();
6195
  return client_version_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6196
}
6197
inline void ClientInfo::set_allocated_client_version(::std::string* client_version) {
6198
  if (client_version != NULL) {
6199
    set_has_client_version();
6200
  } else {
6201
    clear_has_client_version();
6202
  }
6203
  client_version_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), client_version);
6204
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.ClientInfo.client_version)
6205
}
6206
6207
// -------------------------------------------------------------------
6208
6209
// ChromeClientInfo
6210
6211
// optional .mozilla.safebrowsing.ChromeClientInfo.SafeBrowsingReportingPopulation reporting_population = 1;
6212
inline bool ChromeClientInfo::has_reporting_population() const {
6213
  return (_has_bits_[0] & 0x00000001u) != 0;
6214
}
6215
inline void ChromeClientInfo::set_has_reporting_population() {
6216
  _has_bits_[0] |= 0x00000001u;
6217
}
6218
inline void ChromeClientInfo::clear_has_reporting_population() {
6219
  _has_bits_[0] &= ~0x00000001u;
6220
}
6221
inline void ChromeClientInfo::clear_reporting_population() {
6222
  reporting_population_ = 0;
6223
  clear_has_reporting_population();
6224
}
6225
inline ::mozilla::safebrowsing::ChromeClientInfo_SafeBrowsingReportingPopulation ChromeClientInfo::reporting_population() const {
6226
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ChromeClientInfo.reporting_population)
6227
  return static_cast< ::mozilla::safebrowsing::ChromeClientInfo_SafeBrowsingReportingPopulation >(reporting_population_);
6228
}
6229
inline void ChromeClientInfo::set_reporting_population(::mozilla::safebrowsing::ChromeClientInfo_SafeBrowsingReportingPopulation value) {
6230
  assert(::mozilla::safebrowsing::ChromeClientInfo_SafeBrowsingReportingPopulation_IsValid(value));
6231
  set_has_reporting_population();
6232
  reporting_population_ = value;
6233
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ChromeClientInfo.reporting_population)
6234
}
6235
6236
// -------------------------------------------------------------------
6237
6238
// Checksum
6239
6240
// optional bytes sha256 = 1;
6241
inline bool Checksum::has_sha256() const {
6242
  return (_has_bits_[0] & 0x00000001u) != 0;
6243
}
6244
inline void Checksum::set_has_sha256() {
6245
  _has_bits_[0] |= 0x00000001u;
6246
}
6247
inline void Checksum::clear_has_sha256() {
6248
  _has_bits_[0] &= ~0x00000001u;
6249
}
6250
inline void Checksum::clear_sha256() {
6251
  sha256_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6252
  clear_has_sha256();
6253
}
6254
inline const ::std::string& Checksum::sha256() const {
6255
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.Checksum.sha256)
6256
  return sha256_.GetNoArena();
6257
}
6258
inline void Checksum::set_sha256(const ::std::string& value) {
6259
  set_has_sha256();
6260
  sha256_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
6261
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.Checksum.sha256)
6262
}
6263
#if LANG_CXX11
6264
inline void Checksum::set_sha256(::std::string&& value) {
6265
  set_has_sha256();
6266
  sha256_.SetNoArena(
6267
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
6268
  // @@protoc_insertion_point(field_set_rvalue:mozilla.safebrowsing.Checksum.sha256)
6269
}
6270
#endif
6271
inline void Checksum::set_sha256(const char* value) {
6272
  GOOGLE_DCHECK(value != NULL);
6273
  set_has_sha256();
6274
  sha256_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
6275
  // @@protoc_insertion_point(field_set_char:mozilla.safebrowsing.Checksum.sha256)
6276
}
6277
0
inline void Checksum::set_sha256(const void* value, size_t size) {
6278
0
  set_has_sha256();
6279
0
  sha256_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
6280
0
      ::std::string(reinterpret_cast<const char*>(value), size));
6281
0
  // @@protoc_insertion_point(field_set_pointer:mozilla.safebrowsing.Checksum.sha256)
6282
0
}
6283
inline ::std::string* Checksum::mutable_sha256() {
6284
  set_has_sha256();
6285
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.Checksum.sha256)
6286
  return sha256_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6287
}
6288
inline ::std::string* Checksum::release_sha256() {
6289
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.Checksum.sha256)
6290
  clear_has_sha256();
6291
  return sha256_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6292
}
6293
inline void Checksum::set_allocated_sha256(::std::string* sha256) {
6294
  if (sha256 != NULL) {
6295
    set_has_sha256();
6296
  } else {
6297
    clear_has_sha256();
6298
  }
6299
  sha256_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), sha256);
6300
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.Checksum.sha256)
6301
}
6302
6303
// -------------------------------------------------------------------
6304
6305
// ThreatEntry
6306
6307
// optional bytes hash = 1;
6308
inline bool ThreatEntry::has_hash() const {
6309
  return (_has_bits_[0] & 0x00000001u) != 0;
6310
}
6311
inline void ThreatEntry::set_has_hash() {
6312
  _has_bits_[0] |= 0x00000001u;
6313
}
6314
inline void ThreatEntry::clear_has_hash() {
6315
  _has_bits_[0] &= ~0x00000001u;
6316
}
6317
inline void ThreatEntry::clear_hash() {
6318
  hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6319
  clear_has_hash();
6320
}
6321
inline const ::std::string& ThreatEntry::hash() const {
6322
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatEntry.hash)
6323
  return hash_.GetNoArena();
6324
}
6325
inline void ThreatEntry::set_hash(const ::std::string& value) {
6326
  set_has_hash();
6327
  hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
6328
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatEntry.hash)
6329
}
6330
#if LANG_CXX11
6331
inline void ThreatEntry::set_hash(::std::string&& value) {
6332
  set_has_hash();
6333
  hash_.SetNoArena(
6334
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
6335
  // @@protoc_insertion_point(field_set_rvalue:mozilla.safebrowsing.ThreatEntry.hash)
6336
}
6337
#endif
6338
inline void ThreatEntry::set_hash(const char* value) {
6339
  GOOGLE_DCHECK(value != NULL);
6340
  set_has_hash();
6341
  hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
6342
  // @@protoc_insertion_point(field_set_char:mozilla.safebrowsing.ThreatEntry.hash)
6343
}
6344
inline void ThreatEntry::set_hash(const void* value, size_t size) {
6345
  set_has_hash();
6346
  hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
6347
      ::std::string(reinterpret_cast<const char*>(value), size));
6348
  // @@protoc_insertion_point(field_set_pointer:mozilla.safebrowsing.ThreatEntry.hash)
6349
}
6350
inline ::std::string* ThreatEntry::mutable_hash() {
6351
  set_has_hash();
6352
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatEntry.hash)
6353
  return hash_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6354
}
6355
inline ::std::string* ThreatEntry::release_hash() {
6356
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.ThreatEntry.hash)
6357
  clear_has_hash();
6358
  return hash_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6359
}
6360
inline void ThreatEntry::set_allocated_hash(::std::string* hash) {
6361
  if (hash != NULL) {
6362
    set_has_hash();
6363
  } else {
6364
    clear_has_hash();
6365
  }
6366
  hash_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), hash);
6367
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.ThreatEntry.hash)
6368
}
6369
6370
// optional string url = 2;
6371
inline bool ThreatEntry::has_url() const {
6372
  return (_has_bits_[0] & 0x00000002u) != 0;
6373
}
6374
inline void ThreatEntry::set_has_url() {
6375
  _has_bits_[0] |= 0x00000002u;
6376
}
6377
inline void ThreatEntry::clear_has_url() {
6378
  _has_bits_[0] &= ~0x00000002u;
6379
}
6380
inline void ThreatEntry::clear_url() {
6381
  url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6382
  clear_has_url();
6383
}
6384
inline const ::std::string& ThreatEntry::url() const {
6385
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatEntry.url)
6386
  return url_.GetNoArena();
6387
}
6388
inline void ThreatEntry::set_url(const ::std::string& value) {
6389
  set_has_url();
6390
  url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
6391
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatEntry.url)
6392
}
6393
#if LANG_CXX11
6394
inline void ThreatEntry::set_url(::std::string&& value) {
6395
  set_has_url();
6396
  url_.SetNoArena(
6397
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
6398
  // @@protoc_insertion_point(field_set_rvalue:mozilla.safebrowsing.ThreatEntry.url)
6399
}
6400
#endif
6401
inline void ThreatEntry::set_url(const char* value) {
6402
  GOOGLE_DCHECK(value != NULL);
6403
  set_has_url();
6404
  url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
6405
  // @@protoc_insertion_point(field_set_char:mozilla.safebrowsing.ThreatEntry.url)
6406
}
6407
inline void ThreatEntry::set_url(const char* value, size_t size) {
6408
  set_has_url();
6409
  url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
6410
      ::std::string(reinterpret_cast<const char*>(value), size));
6411
  // @@protoc_insertion_point(field_set_pointer:mozilla.safebrowsing.ThreatEntry.url)
6412
}
6413
inline ::std::string* ThreatEntry::mutable_url() {
6414
  set_has_url();
6415
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatEntry.url)
6416
  return url_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6417
}
6418
inline ::std::string* ThreatEntry::release_url() {
6419
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.ThreatEntry.url)
6420
  clear_has_url();
6421
  return url_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6422
}
6423
inline void ThreatEntry::set_allocated_url(::std::string* url) {
6424
  if (url != NULL) {
6425
    set_has_url();
6426
  } else {
6427
    clear_has_url();
6428
  }
6429
  url_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), url);
6430
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.ThreatEntry.url)
6431
}
6432
6433
// -------------------------------------------------------------------
6434
6435
// ThreatEntrySet
6436
6437
// optional .mozilla.safebrowsing.CompressionType compression_type = 1;
6438
inline bool ThreatEntrySet::has_compression_type() const {
6439
  return (_has_bits_[0] & 0x00000010u) != 0;
6440
}
6441
inline void ThreatEntrySet::set_has_compression_type() {
6442
  _has_bits_[0] |= 0x00000010u;
6443
}
6444
inline void ThreatEntrySet::clear_has_compression_type() {
6445
  _has_bits_[0] &= ~0x00000010u;
6446
}
6447
inline void ThreatEntrySet::clear_compression_type() {
6448
  compression_type_ = 0;
6449
  clear_has_compression_type();
6450
}
6451
inline ::mozilla::safebrowsing::CompressionType ThreatEntrySet::compression_type() const {
6452
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatEntrySet.compression_type)
6453
  return static_cast< ::mozilla::safebrowsing::CompressionType >(compression_type_);
6454
}
6455
inline void ThreatEntrySet::set_compression_type(::mozilla::safebrowsing::CompressionType value) {
6456
  assert(::mozilla::safebrowsing::CompressionType_IsValid(value));
6457
  set_has_compression_type();
6458
  compression_type_ = value;
6459
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatEntrySet.compression_type)
6460
}
6461
6462
// optional .mozilla.safebrowsing.RawHashes raw_hashes = 2;
6463
inline bool ThreatEntrySet::has_raw_hashes() const {
6464
  return (_has_bits_[0] & 0x00000001u) != 0;
6465
}
6466
inline void ThreatEntrySet::set_has_raw_hashes() {
6467
  _has_bits_[0] |= 0x00000001u;
6468
}
6469
inline void ThreatEntrySet::clear_has_raw_hashes() {
6470
  _has_bits_[0] &= ~0x00000001u;
6471
}
6472
inline void ThreatEntrySet::clear_raw_hashes() {
6473
  if (raw_hashes_ != NULL) raw_hashes_->::mozilla::safebrowsing::RawHashes::Clear();
6474
  clear_has_raw_hashes();
6475
}
6476
inline const ::mozilla::safebrowsing::RawHashes& ThreatEntrySet::raw_hashes() const {
6477
  const ::mozilla::safebrowsing::RawHashes* p = raw_hashes_;
6478
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatEntrySet.raw_hashes)
6479
  return p != NULL ? *p : *reinterpret_cast<const ::mozilla::safebrowsing::RawHashes*>(
6480
      &::mozilla::safebrowsing::_RawHashes_default_instance_);
6481
}
6482
inline ::mozilla::safebrowsing::RawHashes* ThreatEntrySet::mutable_raw_hashes() {
6483
  set_has_raw_hashes();
6484
  if (raw_hashes_ == NULL) {
6485
    raw_hashes_ = new ::mozilla::safebrowsing::RawHashes;
6486
  }
6487
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatEntrySet.raw_hashes)
6488
  return raw_hashes_;
6489
}
6490
inline ::mozilla::safebrowsing::RawHashes* ThreatEntrySet::release_raw_hashes() {
6491
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.ThreatEntrySet.raw_hashes)
6492
  clear_has_raw_hashes();
6493
  ::mozilla::safebrowsing::RawHashes* temp = raw_hashes_;
6494
  raw_hashes_ = NULL;
6495
  return temp;
6496
}
6497
inline void ThreatEntrySet::set_allocated_raw_hashes(::mozilla::safebrowsing::RawHashes* raw_hashes) {
6498
  delete raw_hashes_;
6499
  raw_hashes_ = raw_hashes;
6500
  if (raw_hashes) {
6501
    set_has_raw_hashes();
6502
  } else {
6503
    clear_has_raw_hashes();
6504
  }
6505
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.ThreatEntrySet.raw_hashes)
6506
}
6507
6508
// optional .mozilla.safebrowsing.RawIndices raw_indices = 3;
6509
inline bool ThreatEntrySet::has_raw_indices() const {
6510
  return (_has_bits_[0] & 0x00000002u) != 0;
6511
}
6512
inline void ThreatEntrySet::set_has_raw_indices() {
6513
  _has_bits_[0] |= 0x00000002u;
6514
}
6515
inline void ThreatEntrySet::clear_has_raw_indices() {
6516
  _has_bits_[0] &= ~0x00000002u;
6517
}
6518
inline void ThreatEntrySet::clear_raw_indices() {
6519
  if (raw_indices_ != NULL) raw_indices_->::mozilla::safebrowsing::RawIndices::Clear();
6520
  clear_has_raw_indices();
6521
}
6522
inline const ::mozilla::safebrowsing::RawIndices& ThreatEntrySet::raw_indices() const {
6523
  const ::mozilla::safebrowsing::RawIndices* p = raw_indices_;
6524
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatEntrySet.raw_indices)
6525
  return p != NULL ? *p : *reinterpret_cast<const ::mozilla::safebrowsing::RawIndices*>(
6526
      &::mozilla::safebrowsing::_RawIndices_default_instance_);
6527
}
6528
inline ::mozilla::safebrowsing::RawIndices* ThreatEntrySet::mutable_raw_indices() {
6529
  set_has_raw_indices();
6530
  if (raw_indices_ == NULL) {
6531
    raw_indices_ = new ::mozilla::safebrowsing::RawIndices;
6532
  }
6533
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatEntrySet.raw_indices)
6534
  return raw_indices_;
6535
}
6536
inline ::mozilla::safebrowsing::RawIndices* ThreatEntrySet::release_raw_indices() {
6537
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.ThreatEntrySet.raw_indices)
6538
  clear_has_raw_indices();
6539
  ::mozilla::safebrowsing::RawIndices* temp = raw_indices_;
6540
  raw_indices_ = NULL;
6541
  return temp;
6542
}
6543
inline void ThreatEntrySet::set_allocated_raw_indices(::mozilla::safebrowsing::RawIndices* raw_indices) {
6544
  delete raw_indices_;
6545
  raw_indices_ = raw_indices;
6546
  if (raw_indices) {
6547
    set_has_raw_indices();
6548
  } else {
6549
    clear_has_raw_indices();
6550
  }
6551
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.ThreatEntrySet.raw_indices)
6552
}
6553
6554
// optional .mozilla.safebrowsing.RiceDeltaEncoding rice_hashes = 4;
6555
inline bool ThreatEntrySet::has_rice_hashes() const {
6556
  return (_has_bits_[0] & 0x00000004u) != 0;
6557
}
6558
inline void ThreatEntrySet::set_has_rice_hashes() {
6559
  _has_bits_[0] |= 0x00000004u;
6560
}
6561
inline void ThreatEntrySet::clear_has_rice_hashes() {
6562
  _has_bits_[0] &= ~0x00000004u;
6563
}
6564
inline void ThreatEntrySet::clear_rice_hashes() {
6565
  if (rice_hashes_ != NULL) rice_hashes_->::mozilla::safebrowsing::RiceDeltaEncoding::Clear();
6566
  clear_has_rice_hashes();
6567
}
6568
inline const ::mozilla::safebrowsing::RiceDeltaEncoding& ThreatEntrySet::rice_hashes() const {
6569
  const ::mozilla::safebrowsing::RiceDeltaEncoding* p = rice_hashes_;
6570
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatEntrySet.rice_hashes)
6571
  return p != NULL ? *p : *reinterpret_cast<const ::mozilla::safebrowsing::RiceDeltaEncoding*>(
6572
      &::mozilla::safebrowsing::_RiceDeltaEncoding_default_instance_);
6573
}
6574
inline ::mozilla::safebrowsing::RiceDeltaEncoding* ThreatEntrySet::mutable_rice_hashes() {
6575
  set_has_rice_hashes();
6576
  if (rice_hashes_ == NULL) {
6577
    rice_hashes_ = new ::mozilla::safebrowsing::RiceDeltaEncoding;
6578
  }
6579
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatEntrySet.rice_hashes)
6580
  return rice_hashes_;
6581
}
6582
inline ::mozilla::safebrowsing::RiceDeltaEncoding* ThreatEntrySet::release_rice_hashes() {
6583
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.ThreatEntrySet.rice_hashes)
6584
  clear_has_rice_hashes();
6585
  ::mozilla::safebrowsing::RiceDeltaEncoding* temp = rice_hashes_;
6586
  rice_hashes_ = NULL;
6587
  return temp;
6588
}
6589
inline void ThreatEntrySet::set_allocated_rice_hashes(::mozilla::safebrowsing::RiceDeltaEncoding* rice_hashes) {
6590
  delete rice_hashes_;
6591
  rice_hashes_ = rice_hashes;
6592
  if (rice_hashes) {
6593
    set_has_rice_hashes();
6594
  } else {
6595
    clear_has_rice_hashes();
6596
  }
6597
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.ThreatEntrySet.rice_hashes)
6598
}
6599
6600
// optional .mozilla.safebrowsing.RiceDeltaEncoding rice_indices = 5;
6601
inline bool ThreatEntrySet::has_rice_indices() const {
6602
  return (_has_bits_[0] & 0x00000008u) != 0;
6603
}
6604
inline void ThreatEntrySet::set_has_rice_indices() {
6605
  _has_bits_[0] |= 0x00000008u;
6606
}
6607
inline void ThreatEntrySet::clear_has_rice_indices() {
6608
  _has_bits_[0] &= ~0x00000008u;
6609
}
6610
inline void ThreatEntrySet::clear_rice_indices() {
6611
  if (rice_indices_ != NULL) rice_indices_->::mozilla::safebrowsing::RiceDeltaEncoding::Clear();
6612
  clear_has_rice_indices();
6613
}
6614
inline const ::mozilla::safebrowsing::RiceDeltaEncoding& ThreatEntrySet::rice_indices() const {
6615
  const ::mozilla::safebrowsing::RiceDeltaEncoding* p = rice_indices_;
6616
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatEntrySet.rice_indices)
6617
  return p != NULL ? *p : *reinterpret_cast<const ::mozilla::safebrowsing::RiceDeltaEncoding*>(
6618
      &::mozilla::safebrowsing::_RiceDeltaEncoding_default_instance_);
6619
}
6620
inline ::mozilla::safebrowsing::RiceDeltaEncoding* ThreatEntrySet::mutable_rice_indices() {
6621
  set_has_rice_indices();
6622
  if (rice_indices_ == NULL) {
6623
    rice_indices_ = new ::mozilla::safebrowsing::RiceDeltaEncoding;
6624
  }
6625
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatEntrySet.rice_indices)
6626
  return rice_indices_;
6627
}
6628
inline ::mozilla::safebrowsing::RiceDeltaEncoding* ThreatEntrySet::release_rice_indices() {
6629
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.ThreatEntrySet.rice_indices)
6630
  clear_has_rice_indices();
6631
  ::mozilla::safebrowsing::RiceDeltaEncoding* temp = rice_indices_;
6632
  rice_indices_ = NULL;
6633
  return temp;
6634
}
6635
inline void ThreatEntrySet::set_allocated_rice_indices(::mozilla::safebrowsing::RiceDeltaEncoding* rice_indices) {
6636
  delete rice_indices_;
6637
  rice_indices_ = rice_indices;
6638
  if (rice_indices) {
6639
    set_has_rice_indices();
6640
  } else {
6641
    clear_has_rice_indices();
6642
  }
6643
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.ThreatEntrySet.rice_indices)
6644
}
6645
6646
// -------------------------------------------------------------------
6647
6648
// RawIndices
6649
6650
// repeated int32 indices = 1;
6651
inline int RawIndices::indices_size() const {
6652
  return indices_.size();
6653
}
6654
inline void RawIndices::clear_indices() {
6655
  indices_.Clear();
6656
}
6657
inline ::google::protobuf::int32 RawIndices::indices(int index) const {
6658
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.RawIndices.indices)
6659
  return indices_.Get(index);
6660
}
6661
inline void RawIndices::set_indices(int index, ::google::protobuf::int32 value) {
6662
  indices_.Set(index, value);
6663
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.RawIndices.indices)
6664
}
6665
inline void RawIndices::add_indices(::google::protobuf::int32 value) {
6666
  indices_.Add(value);
6667
  // @@protoc_insertion_point(field_add:mozilla.safebrowsing.RawIndices.indices)
6668
}
6669
inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
6670
RawIndices::indices() const {
6671
  // @@protoc_insertion_point(field_list:mozilla.safebrowsing.RawIndices.indices)
6672
  return indices_;
6673
}
6674
inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
6675
RawIndices::mutable_indices() {
6676
  // @@protoc_insertion_point(field_mutable_list:mozilla.safebrowsing.RawIndices.indices)
6677
  return &indices_;
6678
}
6679
6680
// -------------------------------------------------------------------
6681
6682
// RawHashes
6683
6684
// optional int32 prefix_size = 1;
6685
inline bool RawHashes::has_prefix_size() const {
6686
  return (_has_bits_[0] & 0x00000002u) != 0;
6687
}
6688
inline void RawHashes::set_has_prefix_size() {
6689
  _has_bits_[0] |= 0x00000002u;
6690
}
6691
inline void RawHashes::clear_has_prefix_size() {
6692
  _has_bits_[0] &= ~0x00000002u;
6693
}
6694
inline void RawHashes::clear_prefix_size() {
6695
  prefix_size_ = 0;
6696
  clear_has_prefix_size();
6697
}
6698
inline ::google::protobuf::int32 RawHashes::prefix_size() const {
6699
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.RawHashes.prefix_size)
6700
  return prefix_size_;
6701
}
6702
0
inline void RawHashes::set_prefix_size(::google::protobuf::int32 value) {
6703
0
  set_has_prefix_size();
6704
0
  prefix_size_ = value;
6705
0
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.RawHashes.prefix_size)
6706
0
}
6707
6708
// optional bytes raw_hashes = 2;
6709
inline bool RawHashes::has_raw_hashes() const {
6710
  return (_has_bits_[0] & 0x00000001u) != 0;
6711
}
6712
inline void RawHashes::set_has_raw_hashes() {
6713
  _has_bits_[0] |= 0x00000001u;
6714
}
6715
inline void RawHashes::clear_has_raw_hashes() {
6716
  _has_bits_[0] &= ~0x00000001u;
6717
}
6718
inline void RawHashes::clear_raw_hashes() {
6719
  raw_hashes_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6720
  clear_has_raw_hashes();
6721
}
6722
inline const ::std::string& RawHashes::raw_hashes() const {
6723
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.RawHashes.raw_hashes)
6724
  return raw_hashes_.GetNoArena();
6725
}
6726
inline void RawHashes::set_raw_hashes(const ::std::string& value) {
6727
  set_has_raw_hashes();
6728
  raw_hashes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
6729
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.RawHashes.raw_hashes)
6730
}
6731
#if LANG_CXX11
6732
inline void RawHashes::set_raw_hashes(::std::string&& value) {
6733
  set_has_raw_hashes();
6734
  raw_hashes_.SetNoArena(
6735
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
6736
  // @@protoc_insertion_point(field_set_rvalue:mozilla.safebrowsing.RawHashes.raw_hashes)
6737
}
6738
#endif
6739
inline void RawHashes::set_raw_hashes(const char* value) {
6740
  GOOGLE_DCHECK(value != NULL);
6741
  set_has_raw_hashes();
6742
  raw_hashes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
6743
  // @@protoc_insertion_point(field_set_char:mozilla.safebrowsing.RawHashes.raw_hashes)
6744
}
6745
inline void RawHashes::set_raw_hashes(const void* value, size_t size) {
6746
  set_has_raw_hashes();
6747
  raw_hashes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
6748
      ::std::string(reinterpret_cast<const char*>(value), size));
6749
  // @@protoc_insertion_point(field_set_pointer:mozilla.safebrowsing.RawHashes.raw_hashes)
6750
}
6751
inline ::std::string* RawHashes::mutable_raw_hashes() {
6752
  set_has_raw_hashes();
6753
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.RawHashes.raw_hashes)
6754
  return raw_hashes_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6755
}
6756
inline ::std::string* RawHashes::release_raw_hashes() {
6757
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.RawHashes.raw_hashes)
6758
  clear_has_raw_hashes();
6759
  return raw_hashes_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6760
}
6761
inline void RawHashes::set_allocated_raw_hashes(::std::string* raw_hashes) {
6762
  if (raw_hashes != NULL) {
6763
    set_has_raw_hashes();
6764
  } else {
6765
    clear_has_raw_hashes();
6766
  }
6767
  raw_hashes_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), raw_hashes);
6768
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.RawHashes.raw_hashes)
6769
}
6770
6771
// -------------------------------------------------------------------
6772
6773
// RiceDeltaEncoding
6774
6775
// optional int64 first_value = 1;
6776
inline bool RiceDeltaEncoding::has_first_value() const {
6777
  return (_has_bits_[0] & 0x00000002u) != 0;
6778
}
6779
inline void RiceDeltaEncoding::set_has_first_value() {
6780
  _has_bits_[0] |= 0x00000002u;
6781
}
6782
inline void RiceDeltaEncoding::clear_has_first_value() {
6783
  _has_bits_[0] &= ~0x00000002u;
6784
}
6785
inline void RiceDeltaEncoding::clear_first_value() {
6786
  first_value_ = GOOGLE_LONGLONG(0);
6787
  clear_has_first_value();
6788
}
6789
inline ::google::protobuf::int64 RiceDeltaEncoding::first_value() const {
6790
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.RiceDeltaEncoding.first_value)
6791
  return first_value_;
6792
}
6793
0
inline void RiceDeltaEncoding::set_first_value(::google::protobuf::int64 value) {
6794
0
  set_has_first_value();
6795
0
  first_value_ = value;
6796
0
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.RiceDeltaEncoding.first_value)
6797
0
}
6798
6799
// optional int32 rice_parameter = 2;
6800
inline bool RiceDeltaEncoding::has_rice_parameter() const {
6801
  return (_has_bits_[0] & 0x00000004u) != 0;
6802
}
6803
inline void RiceDeltaEncoding::set_has_rice_parameter() {
6804
  _has_bits_[0] |= 0x00000004u;
6805
}
6806
inline void RiceDeltaEncoding::clear_has_rice_parameter() {
6807
  _has_bits_[0] &= ~0x00000004u;
6808
}
6809
inline void RiceDeltaEncoding::clear_rice_parameter() {
6810
  rice_parameter_ = 0;
6811
  clear_has_rice_parameter();
6812
}
6813
inline ::google::protobuf::int32 RiceDeltaEncoding::rice_parameter() const {
6814
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.RiceDeltaEncoding.rice_parameter)
6815
  return rice_parameter_;
6816
}
6817
inline void RiceDeltaEncoding::set_rice_parameter(::google::protobuf::int32 value) {
6818
  set_has_rice_parameter();
6819
  rice_parameter_ = value;
6820
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.RiceDeltaEncoding.rice_parameter)
6821
}
6822
6823
// optional int32 num_entries = 3;
6824
inline bool RiceDeltaEncoding::has_num_entries() const {
6825
  return (_has_bits_[0] & 0x00000008u) != 0;
6826
}
6827
inline void RiceDeltaEncoding::set_has_num_entries() {
6828
  _has_bits_[0] |= 0x00000008u;
6829
}
6830
inline void RiceDeltaEncoding::clear_has_num_entries() {
6831
  _has_bits_[0] &= ~0x00000008u;
6832
}
6833
inline void RiceDeltaEncoding::clear_num_entries() {
6834
  num_entries_ = 0;
6835
  clear_has_num_entries();
6836
}
6837
inline ::google::protobuf::int32 RiceDeltaEncoding::num_entries() const {
6838
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.RiceDeltaEncoding.num_entries)
6839
  return num_entries_;
6840
}
6841
0
inline void RiceDeltaEncoding::set_num_entries(::google::protobuf::int32 value) {
6842
0
  set_has_num_entries();
6843
0
  num_entries_ = value;
6844
0
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.RiceDeltaEncoding.num_entries)
6845
0
}
6846
6847
// optional bytes encoded_data = 4;
6848
inline bool RiceDeltaEncoding::has_encoded_data() const {
6849
  return (_has_bits_[0] & 0x00000001u) != 0;
6850
}
6851
inline void RiceDeltaEncoding::set_has_encoded_data() {
6852
  _has_bits_[0] |= 0x00000001u;
6853
}
6854
inline void RiceDeltaEncoding::clear_has_encoded_data() {
6855
  _has_bits_[0] &= ~0x00000001u;
6856
}
6857
inline void RiceDeltaEncoding::clear_encoded_data() {
6858
  encoded_data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6859
  clear_has_encoded_data();
6860
}
6861
inline const ::std::string& RiceDeltaEncoding::encoded_data() const {
6862
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.RiceDeltaEncoding.encoded_data)
6863
  return encoded_data_.GetNoArena();
6864
}
6865
inline void RiceDeltaEncoding::set_encoded_data(const ::std::string& value) {
6866
  set_has_encoded_data();
6867
  encoded_data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
6868
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.RiceDeltaEncoding.encoded_data)
6869
}
6870
#if LANG_CXX11
6871
inline void RiceDeltaEncoding::set_encoded_data(::std::string&& value) {
6872
  set_has_encoded_data();
6873
  encoded_data_.SetNoArena(
6874
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
6875
  // @@protoc_insertion_point(field_set_rvalue:mozilla.safebrowsing.RiceDeltaEncoding.encoded_data)
6876
}
6877
#endif
6878
inline void RiceDeltaEncoding::set_encoded_data(const char* value) {
6879
  GOOGLE_DCHECK(value != NULL);
6880
  set_has_encoded_data();
6881
  encoded_data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
6882
  // @@protoc_insertion_point(field_set_char:mozilla.safebrowsing.RiceDeltaEncoding.encoded_data)
6883
}
6884
inline void RiceDeltaEncoding::set_encoded_data(const void* value, size_t size) {
6885
  set_has_encoded_data();
6886
  encoded_data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
6887
      ::std::string(reinterpret_cast<const char*>(value), size));
6888
  // @@protoc_insertion_point(field_set_pointer:mozilla.safebrowsing.RiceDeltaEncoding.encoded_data)
6889
}
6890
inline ::std::string* RiceDeltaEncoding::mutable_encoded_data() {
6891
  set_has_encoded_data();
6892
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.RiceDeltaEncoding.encoded_data)
6893
  return encoded_data_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6894
}
6895
inline ::std::string* RiceDeltaEncoding::release_encoded_data() {
6896
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.RiceDeltaEncoding.encoded_data)
6897
  clear_has_encoded_data();
6898
  return encoded_data_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6899
}
6900
inline void RiceDeltaEncoding::set_allocated_encoded_data(::std::string* encoded_data) {
6901
  if (encoded_data != NULL) {
6902
    set_has_encoded_data();
6903
  } else {
6904
    clear_has_encoded_data();
6905
  }
6906
  encoded_data_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), encoded_data);
6907
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.RiceDeltaEncoding.encoded_data)
6908
}
6909
6910
// -------------------------------------------------------------------
6911
6912
// ThreatEntryMetadata_MetadataEntry
6913
6914
// optional bytes key = 1;
6915
inline bool ThreatEntryMetadata_MetadataEntry::has_key() const {
6916
  return (_has_bits_[0] & 0x00000001u) != 0;
6917
}
6918
inline void ThreatEntryMetadata_MetadataEntry::set_has_key() {
6919
  _has_bits_[0] |= 0x00000001u;
6920
}
6921
inline void ThreatEntryMetadata_MetadataEntry::clear_has_key() {
6922
  _has_bits_[0] &= ~0x00000001u;
6923
}
6924
inline void ThreatEntryMetadata_MetadataEntry::clear_key() {
6925
  key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6926
  clear_has_key();
6927
}
6928
inline const ::std::string& ThreatEntryMetadata_MetadataEntry::key() const {
6929
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry.key)
6930
  return key_.GetNoArena();
6931
}
6932
inline void ThreatEntryMetadata_MetadataEntry::set_key(const ::std::string& value) {
6933
  set_has_key();
6934
  key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
6935
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry.key)
6936
}
6937
#if LANG_CXX11
6938
inline void ThreatEntryMetadata_MetadataEntry::set_key(::std::string&& value) {
6939
  set_has_key();
6940
  key_.SetNoArena(
6941
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
6942
  // @@protoc_insertion_point(field_set_rvalue:mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry.key)
6943
}
6944
#endif
6945
inline void ThreatEntryMetadata_MetadataEntry::set_key(const char* value) {
6946
  GOOGLE_DCHECK(value != NULL);
6947
  set_has_key();
6948
  key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
6949
  // @@protoc_insertion_point(field_set_char:mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry.key)
6950
}
6951
inline void ThreatEntryMetadata_MetadataEntry::set_key(const void* value, size_t size) {
6952
  set_has_key();
6953
  key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
6954
      ::std::string(reinterpret_cast<const char*>(value), size));
6955
  // @@protoc_insertion_point(field_set_pointer:mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry.key)
6956
}
6957
inline ::std::string* ThreatEntryMetadata_MetadataEntry::mutable_key() {
6958
  set_has_key();
6959
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry.key)
6960
  return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6961
}
6962
inline ::std::string* ThreatEntryMetadata_MetadataEntry::release_key() {
6963
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry.key)
6964
  clear_has_key();
6965
  return key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6966
}
6967
inline void ThreatEntryMetadata_MetadataEntry::set_allocated_key(::std::string* key) {
6968
  if (key != NULL) {
6969
    set_has_key();
6970
  } else {
6971
    clear_has_key();
6972
  }
6973
  key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key);
6974
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry.key)
6975
}
6976
6977
// optional bytes value = 2;
6978
inline bool ThreatEntryMetadata_MetadataEntry::has_value() const {
6979
  return (_has_bits_[0] & 0x00000002u) != 0;
6980
}
6981
inline void ThreatEntryMetadata_MetadataEntry::set_has_value() {
6982
  _has_bits_[0] |= 0x00000002u;
6983
}
6984
inline void ThreatEntryMetadata_MetadataEntry::clear_has_value() {
6985
  _has_bits_[0] &= ~0x00000002u;
6986
}
6987
inline void ThreatEntryMetadata_MetadataEntry::clear_value() {
6988
  value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6989
  clear_has_value();
6990
}
6991
inline const ::std::string& ThreatEntryMetadata_MetadataEntry::value() const {
6992
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry.value)
6993
  return value_.GetNoArena();
6994
}
6995
inline void ThreatEntryMetadata_MetadataEntry::set_value(const ::std::string& value) {
6996
  set_has_value();
6997
  value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
6998
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry.value)
6999
}
7000
#if LANG_CXX11
7001
inline void ThreatEntryMetadata_MetadataEntry::set_value(::std::string&& value) {
7002
  set_has_value();
7003
  value_.SetNoArena(
7004
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
7005
  // @@protoc_insertion_point(field_set_rvalue:mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry.value)
7006
}
7007
#endif
7008
inline void ThreatEntryMetadata_MetadataEntry::set_value(const char* value) {
7009
  GOOGLE_DCHECK(value != NULL);
7010
  set_has_value();
7011
  value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
7012
  // @@protoc_insertion_point(field_set_char:mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry.value)
7013
}
7014
inline void ThreatEntryMetadata_MetadataEntry::set_value(const void* value, size_t size) {
7015
  set_has_value();
7016
  value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
7017
      ::std::string(reinterpret_cast<const char*>(value), size));
7018
  // @@protoc_insertion_point(field_set_pointer:mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry.value)
7019
}
7020
inline ::std::string* ThreatEntryMetadata_MetadataEntry::mutable_value() {
7021
  set_has_value();
7022
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry.value)
7023
  return value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7024
}
7025
inline ::std::string* ThreatEntryMetadata_MetadataEntry::release_value() {
7026
  // @@protoc_insertion_point(field_release:mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry.value)
7027
  clear_has_value();
7028
  return value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7029
}
7030
inline void ThreatEntryMetadata_MetadataEntry::set_allocated_value(::std::string* value) {
7031
  if (value != NULL) {
7032
    set_has_value();
7033
  } else {
7034
    clear_has_value();
7035
  }
7036
  value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
7037
  // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry.value)
7038
}
7039
7040
// -------------------------------------------------------------------
7041
7042
// ThreatEntryMetadata
7043
7044
// repeated .mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry entries = 1;
7045
inline int ThreatEntryMetadata::entries_size() const {
7046
  return entries_.size();
7047
}
7048
inline void ThreatEntryMetadata::clear_entries() {
7049
  entries_.Clear();
7050
}
7051
inline const ::mozilla::safebrowsing::ThreatEntryMetadata_MetadataEntry& ThreatEntryMetadata::entries(int index) const {
7052
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatEntryMetadata.entries)
7053
  return entries_.Get(index);
7054
}
7055
inline ::mozilla::safebrowsing::ThreatEntryMetadata_MetadataEntry* ThreatEntryMetadata::mutable_entries(int index) {
7056
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatEntryMetadata.entries)
7057
  return entries_.Mutable(index);
7058
}
7059
inline ::mozilla::safebrowsing::ThreatEntryMetadata_MetadataEntry* ThreatEntryMetadata::add_entries() {
7060
  // @@protoc_insertion_point(field_add:mozilla.safebrowsing.ThreatEntryMetadata.entries)
7061
  return entries_.Add();
7062
}
7063
inline ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatEntryMetadata_MetadataEntry >*
7064
ThreatEntryMetadata::mutable_entries() {
7065
  // @@protoc_insertion_point(field_mutable_list:mozilla.safebrowsing.ThreatEntryMetadata.entries)
7066
  return &entries_;
7067
}
7068
inline const ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatEntryMetadata_MetadataEntry >&
7069
ThreatEntryMetadata::entries() const {
7070
  // @@protoc_insertion_point(field_list:mozilla.safebrowsing.ThreatEntryMetadata.entries)
7071
  return entries_;
7072
}
7073
7074
// -------------------------------------------------------------------
7075
7076
// ThreatListDescriptor
7077
7078
// optional .mozilla.safebrowsing.ThreatType threat_type = 1;
7079
inline bool ThreatListDescriptor::has_threat_type() const {
7080
  return (_has_bits_[0] & 0x00000001u) != 0;
7081
}
7082
inline void ThreatListDescriptor::set_has_threat_type() {
7083
  _has_bits_[0] |= 0x00000001u;
7084
}
7085
inline void ThreatListDescriptor::clear_has_threat_type() {
7086
  _has_bits_[0] &= ~0x00000001u;
7087
}
7088
inline void ThreatListDescriptor::clear_threat_type() {
7089
  threat_type_ = 0;
7090
  clear_has_threat_type();
7091
}
7092
inline ::mozilla::safebrowsing::ThreatType ThreatListDescriptor::threat_type() const {
7093
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatListDescriptor.threat_type)
7094
  return static_cast< ::mozilla::safebrowsing::ThreatType >(threat_type_);
7095
}
7096
inline void ThreatListDescriptor::set_threat_type(::mozilla::safebrowsing::ThreatType value) {
7097
  assert(::mozilla::safebrowsing::ThreatType_IsValid(value));
7098
  set_has_threat_type();
7099
  threat_type_ = value;
7100
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatListDescriptor.threat_type)
7101
}
7102
7103
// optional .mozilla.safebrowsing.PlatformType platform_type = 2;
7104
inline bool ThreatListDescriptor::has_platform_type() const {
7105
  return (_has_bits_[0] & 0x00000002u) != 0;
7106
}
7107
inline void ThreatListDescriptor::set_has_platform_type() {
7108
  _has_bits_[0] |= 0x00000002u;
7109
}
7110
inline void ThreatListDescriptor::clear_has_platform_type() {
7111
  _has_bits_[0] &= ~0x00000002u;
7112
}
7113
inline void ThreatListDescriptor::clear_platform_type() {
7114
  platform_type_ = 0;
7115
  clear_has_platform_type();
7116
}
7117
inline ::mozilla::safebrowsing::PlatformType ThreatListDescriptor::platform_type() const {
7118
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatListDescriptor.platform_type)
7119
  return static_cast< ::mozilla::safebrowsing::PlatformType >(platform_type_);
7120
}
7121
inline void ThreatListDescriptor::set_platform_type(::mozilla::safebrowsing::PlatformType value) {
7122
  assert(::mozilla::safebrowsing::PlatformType_IsValid(value));
7123
  set_has_platform_type();
7124
  platform_type_ = value;
7125
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatListDescriptor.platform_type)
7126
}
7127
7128
// optional .mozilla.safebrowsing.ThreatEntryType threat_entry_type = 3;
7129
inline bool ThreatListDescriptor::has_threat_entry_type() const {
7130
  return (_has_bits_[0] & 0x00000004u) != 0;
7131
}
7132
inline void ThreatListDescriptor::set_has_threat_entry_type() {
7133
  _has_bits_[0] |= 0x00000004u;
7134
}
7135
inline void ThreatListDescriptor::clear_has_threat_entry_type() {
7136
  _has_bits_[0] &= ~0x00000004u;
7137
}
7138
inline void ThreatListDescriptor::clear_threat_entry_type() {
7139
  threat_entry_type_ = 0;
7140
  clear_has_threat_entry_type();
7141
}
7142
inline ::mozilla::safebrowsing::ThreatEntryType ThreatListDescriptor::threat_entry_type() const {
7143
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatListDescriptor.threat_entry_type)
7144
  return static_cast< ::mozilla::safebrowsing::ThreatEntryType >(threat_entry_type_);
7145
}
7146
inline void ThreatListDescriptor::set_threat_entry_type(::mozilla::safebrowsing::ThreatEntryType value) {
7147
  assert(::mozilla::safebrowsing::ThreatEntryType_IsValid(value));
7148
  set_has_threat_entry_type();
7149
  threat_entry_type_ = value;
7150
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatListDescriptor.threat_entry_type)
7151
}
7152
7153
// -------------------------------------------------------------------
7154
7155
// ListThreatListsResponse
7156
7157
// repeated .mozilla.safebrowsing.ThreatListDescriptor threat_lists = 1;
7158
inline int ListThreatListsResponse::threat_lists_size() const {
7159
  return threat_lists_.size();
7160
}
7161
inline void ListThreatListsResponse::clear_threat_lists() {
7162
  threat_lists_.Clear();
7163
}
7164
inline const ::mozilla::safebrowsing::ThreatListDescriptor& ListThreatListsResponse::threat_lists(int index) const {
7165
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ListThreatListsResponse.threat_lists)
7166
  return threat_lists_.Get(index);
7167
}
7168
inline ::mozilla::safebrowsing::ThreatListDescriptor* ListThreatListsResponse::mutable_threat_lists(int index) {
7169
  // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ListThreatListsResponse.threat_lists)
7170
  return threat_lists_.Mutable(index);
7171
}
7172
inline ::mozilla::safebrowsing::ThreatListDescriptor* ListThreatListsResponse::add_threat_lists() {
7173
  // @@protoc_insertion_point(field_add:mozilla.safebrowsing.ListThreatListsResponse.threat_lists)
7174
  return threat_lists_.Add();
7175
}
7176
inline ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatListDescriptor >*
7177
ListThreatListsResponse::mutable_threat_lists() {
7178
  // @@protoc_insertion_point(field_mutable_list:mozilla.safebrowsing.ListThreatListsResponse.threat_lists)
7179
  return &threat_lists_;
7180
}
7181
inline const ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatListDescriptor >&
7182
ListThreatListsResponse::threat_lists() const {
7183
  // @@protoc_insertion_point(field_list:mozilla.safebrowsing.ListThreatListsResponse.threat_lists)
7184
  return threat_lists_;
7185
}
7186
7187
// -------------------------------------------------------------------
7188
7189
// Duration
7190
7191
// optional int64 seconds = 1;
7192
inline bool Duration::has_seconds() const {
7193
  return (_has_bits_[0] & 0x00000001u) != 0;
7194
}
7195
inline void Duration::set_has_seconds() {
7196
  _has_bits_[0] |= 0x00000001u;
7197
}
7198
inline void Duration::clear_has_seconds() {
7199
  _has_bits_[0] &= ~0x00000001u;
7200
}
7201
inline void Duration::clear_seconds() {
7202
  seconds_ = GOOGLE_LONGLONG(0);
7203
  clear_has_seconds();
7204
}
7205
inline ::google::protobuf::int64 Duration::seconds() const {
7206
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.Duration.seconds)
7207
  return seconds_;
7208
}
7209
0
inline void Duration::set_seconds(::google::protobuf::int64 value) {
7210
0
  set_has_seconds();
7211
0
  seconds_ = value;
7212
0
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.Duration.seconds)
7213
0
}
7214
7215
// optional int32 nanos = 2;
7216
inline bool Duration::has_nanos() const {
7217
  return (_has_bits_[0] & 0x00000002u) != 0;
7218
}
7219
inline void Duration::set_has_nanos() {
7220
  _has_bits_[0] |= 0x00000002u;
7221
}
7222
inline void Duration::clear_has_nanos() {
7223
  _has_bits_[0] &= ~0x00000002u;
7224
}
7225
inline void Duration::clear_nanos() {
7226
  nanos_ = 0;
7227
  clear_has_nanos();
7228
}
7229
inline ::google::protobuf::int32 Duration::nanos() const {
7230
  // @@protoc_insertion_point(field_get:mozilla.safebrowsing.Duration.nanos)
7231
  return nanos_;
7232
}
7233
0
inline void Duration::set_nanos(::google::protobuf::int32 value) {
7234
0
  set_has_nanos();
7235
0
  nanos_ = value;
7236
0
  // @@protoc_insertion_point(field_set:mozilla.safebrowsing.Duration.nanos)
7237
0
}
7238
7239
#ifdef __GNUC__
7240
  #pragma GCC diagnostic pop
7241
#endif  // __GNUC__
7242
#endif  // !PROTOBUF_INLINE_NOT_IN_HEADERS
7243
// -------------------------------------------------------------------
7244
7245
// -------------------------------------------------------------------
7246
7247
// -------------------------------------------------------------------
7248
7249
// -------------------------------------------------------------------
7250
7251
// -------------------------------------------------------------------
7252
7253
// -------------------------------------------------------------------
7254
7255
// -------------------------------------------------------------------
7256
7257
// -------------------------------------------------------------------
7258
7259
// -------------------------------------------------------------------
7260
7261
// -------------------------------------------------------------------
7262
7263
// -------------------------------------------------------------------
7264
7265
// -------------------------------------------------------------------
7266
7267
// -------------------------------------------------------------------
7268
7269
// -------------------------------------------------------------------
7270
7271
// -------------------------------------------------------------------
7272
7273
// -------------------------------------------------------------------
7274
7275
// -------------------------------------------------------------------
7276
7277
// -------------------------------------------------------------------
7278
7279
// -------------------------------------------------------------------
7280
7281
// -------------------------------------------------------------------
7282
7283
// -------------------------------------------------------------------
7284
7285
// -------------------------------------------------------------------
7286
7287
// -------------------------------------------------------------------
7288
7289
// -------------------------------------------------------------------
7290
7291
// -------------------------------------------------------------------
7292
7293
// -------------------------------------------------------------------
7294
7295
7296
// @@protoc_insertion_point(namespace_scope)
7297
7298
7299
}  // namespace safebrowsing
7300
}  // namespace mozilla
7301
7302
namespace google {
7303
namespace protobuf {
7304
7305
template <> struct is_proto_enum< ::mozilla::safebrowsing::FetchThreatListUpdatesResponse_ListUpdateResponse_ResponseType> : ::google::protobuf::internal::true_type {};
7306
template <> struct is_proto_enum< ::mozilla::safebrowsing::ThreatHit_ThreatSourceType> : ::google::protobuf::internal::true_type {};
7307
template <> struct is_proto_enum< ::mozilla::safebrowsing::ChromeClientInfo_SafeBrowsingReportingPopulation> : ::google::protobuf::internal::true_type {};
7308
template <> struct is_proto_enum< ::mozilla::safebrowsing::ThreatType> : ::google::protobuf::internal::true_type {};
7309
template <> struct is_proto_enum< ::mozilla::safebrowsing::PlatformType> : ::google::protobuf::internal::true_type {};
7310
template <> struct is_proto_enum< ::mozilla::safebrowsing::CompressionType> : ::google::protobuf::internal::true_type {};
7311
template <> struct is_proto_enum< ::mozilla::safebrowsing::ThreatEntryType> : ::google::protobuf::internal::true_type {};
7312
7313
}  // namespace protobuf
7314
}  // namespace google
7315
7316
// @@protoc_insertion_point(global_scope)
7317
7318
#endif  // PROTOBUF_safebrowsing_2eproto__INCLUDED