/src/mozilla-central/toolkit/components/url-classifier/chromium/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 | 0 | inline ThreatInfo& operator=(const ThreatInfo& from) { |
239 | 0 | CopyFrom(from); |
240 | 0 | return *this; |
241 | 0 | } |
242 | | #if LANG_CXX11 |
243 | | ThreatInfo(ThreatInfo&& from) noexcept |
244 | 0 | : ThreatInfo() { |
245 | 0 | *this = ::std::move(from); |
246 | 0 | } |
247 | | |
248 | 0 | inline ThreatInfo& operator=(ThreatInfo&& from) noexcept { |
249 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
250 | 0 | if (this != &from) InternalSwap(&from); |
251 | 0 | } else { |
252 | 0 | CopyFrom(from); |
253 | 0 | } |
254 | 0 | return *this; |
255 | 0 | } |
256 | | #endif |
257 | 0 | inline const ::std::string& unknown_fields() const { |
258 | 0 | return _internal_metadata_.unknown_fields(); |
259 | 0 | } |
260 | 0 | inline ::std::string* mutable_unknown_fields() { |
261 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
262 | 0 | } |
263 | | |
264 | | static const ThreatInfo& default_instance(); |
265 | | |
266 | 0 | static inline const ThreatInfo* internal_default_instance() { |
267 | 0 | return reinterpret_cast<const ThreatInfo*>( |
268 | 0 | &_ThreatInfo_default_instance_); |
269 | 0 | } |
270 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
271 | | 0; |
272 | | |
273 | | void Swap(ThreatInfo* other); |
274 | 0 | friend void swap(ThreatInfo& a, ThreatInfo& b) { |
275 | 0 | a.Swap(&b); |
276 | 0 | } |
277 | | |
278 | | // implements Message ---------------------------------------------- |
279 | | |
280 | 0 | 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 | 0 | 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 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
304 | 0 | return NULL; |
305 | 0 | } |
306 | 0 | inline void* MaybeArenaPtr() const { |
307 | 0 | return NULL; |
308 | 0 | } |
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 | 0 | inline ThreatMatch& operator=(const ThreatMatch& from) { |
381 | 0 | CopyFrom(from); |
382 | 0 | return *this; |
383 | 0 | } |
384 | | #if LANG_CXX11 |
385 | | ThreatMatch(ThreatMatch&& from) noexcept |
386 | 0 | : ThreatMatch() { |
387 | 0 | *this = ::std::move(from); |
388 | 0 | } |
389 | | |
390 | 0 | inline ThreatMatch& operator=(ThreatMatch&& from) noexcept { |
391 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
392 | 0 | if (this != &from) InternalSwap(&from); |
393 | 0 | } else { |
394 | 0 | CopyFrom(from); |
395 | 0 | } |
396 | 0 | return *this; |
397 | 0 | } |
398 | | #endif |
399 | 0 | inline const ::std::string& unknown_fields() const { |
400 | 0 | return _internal_metadata_.unknown_fields(); |
401 | 0 | } |
402 | 0 | inline ::std::string* mutable_unknown_fields() { |
403 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
404 | 0 | } |
405 | | |
406 | | static const ThreatMatch& default_instance(); |
407 | | |
408 | 0 | static inline const ThreatMatch* internal_default_instance() { |
409 | 0 | return reinterpret_cast<const ThreatMatch*>( |
410 | 0 | &_ThreatMatch_default_instance_); |
411 | 0 | } |
412 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
413 | | 1; |
414 | | |
415 | | void Swap(ThreatMatch* other); |
416 | 0 | friend void swap(ThreatMatch& a, ThreatMatch& b) { |
417 | 0 | a.Swap(&b); |
418 | 0 | } |
419 | | |
420 | | // implements Message ---------------------------------------------- |
421 | | |
422 | 0 | 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 | 0 | 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 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
446 | 0 | return NULL; |
447 | 0 | } |
448 | 0 | inline void* MaybeArenaPtr() const { |
449 | 0 | return NULL; |
450 | 0 | } |
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 | 0 | inline FindThreatMatchesRequest& operator=(const FindThreatMatchesRequest& from) { |
543 | 0 | CopyFrom(from); |
544 | 0 | return *this; |
545 | 0 | } |
546 | | #if LANG_CXX11 |
547 | | FindThreatMatchesRequest(FindThreatMatchesRequest&& from) noexcept |
548 | 0 | : FindThreatMatchesRequest() { |
549 | 0 | *this = ::std::move(from); |
550 | 0 | } |
551 | | |
552 | 0 | inline FindThreatMatchesRequest& operator=(FindThreatMatchesRequest&& from) noexcept { |
553 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
554 | 0 | if (this != &from) InternalSwap(&from); |
555 | 0 | } else { |
556 | 0 | CopyFrom(from); |
557 | 0 | } |
558 | 0 | return *this; |
559 | 0 | } |
560 | | #endif |
561 | 0 | inline const ::std::string& unknown_fields() const { |
562 | 0 | return _internal_metadata_.unknown_fields(); |
563 | 0 | } |
564 | 0 | inline ::std::string* mutable_unknown_fields() { |
565 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
566 | 0 | } |
567 | | |
568 | | static const FindThreatMatchesRequest& default_instance(); |
569 | | |
570 | 0 | static inline const FindThreatMatchesRequest* internal_default_instance() { |
571 | 0 | return reinterpret_cast<const FindThreatMatchesRequest*>( |
572 | 0 | &_FindThreatMatchesRequest_default_instance_); |
573 | 0 | } |
574 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
575 | | 2; |
576 | | |
577 | | void Swap(FindThreatMatchesRequest* other); |
578 | 0 | friend void swap(FindThreatMatchesRequest& a, FindThreatMatchesRequest& b) { |
579 | 0 | a.Swap(&b); |
580 | 0 | } |
581 | | |
582 | | // implements Message ---------------------------------------------- |
583 | | |
584 | 0 | 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 | 0 | 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 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
608 | 0 | return NULL; |
609 | 0 | } |
610 | 0 | inline void* MaybeArenaPtr() const { |
611 | 0 | return NULL; |
612 | 0 | } |
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 | 0 | inline FindThreatMatchesResponse& operator=(const FindThreatMatchesResponse& from) { |
663 | 0 | CopyFrom(from); |
664 | 0 | return *this; |
665 | 0 | } |
666 | | #if LANG_CXX11 |
667 | | FindThreatMatchesResponse(FindThreatMatchesResponse&& from) noexcept |
668 | 0 | : FindThreatMatchesResponse() { |
669 | 0 | *this = ::std::move(from); |
670 | 0 | } |
671 | | |
672 | 0 | inline FindThreatMatchesResponse& operator=(FindThreatMatchesResponse&& from) noexcept { |
673 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
674 | 0 | if (this != &from) InternalSwap(&from); |
675 | 0 | } else { |
676 | 0 | CopyFrom(from); |
677 | 0 | } |
678 | 0 | return *this; |
679 | 0 | } |
680 | | #endif |
681 | 0 | inline const ::std::string& unknown_fields() const { |
682 | 0 | return _internal_metadata_.unknown_fields(); |
683 | 0 | } |
684 | 0 | inline ::std::string* mutable_unknown_fields() { |
685 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
686 | 0 | } |
687 | | |
688 | | static const FindThreatMatchesResponse& default_instance(); |
689 | | |
690 | 0 | static inline const FindThreatMatchesResponse* internal_default_instance() { |
691 | 0 | return reinterpret_cast<const FindThreatMatchesResponse*>( |
692 | 0 | &_FindThreatMatchesResponse_default_instance_); |
693 | 0 | } |
694 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
695 | | 3; |
696 | | |
697 | | void Swap(FindThreatMatchesResponse* other); |
698 | 0 | friend void swap(FindThreatMatchesResponse& a, FindThreatMatchesResponse& b) { |
699 | 0 | a.Swap(&b); |
700 | 0 | } |
701 | | |
702 | | // implements Message ---------------------------------------------- |
703 | | |
704 | 0 | 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 | 0 | 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 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
728 | 0 | return NULL; |
729 | 0 | } |
730 | 0 | inline void* MaybeArenaPtr() const { |
731 | 0 | return NULL; |
732 | 0 | } |
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 | 0 | inline FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints& operator=(const FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints& from) { |
772 | 0 | CopyFrom(from); |
773 | 0 | return *this; |
774 | 0 | } |
775 | | #if LANG_CXX11 |
776 | | FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints(FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints&& from) noexcept |
777 | 0 | : FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints() { |
778 | 0 | *this = ::std::move(from); |
779 | 0 | } |
780 | | |
781 | 0 | inline FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints& operator=(FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints&& from) noexcept { |
782 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
783 | 0 | if (this != &from) InternalSwap(&from); |
784 | 0 | } else { |
785 | 0 | CopyFrom(from); |
786 | 0 | } |
787 | 0 | return *this; |
788 | 0 | } |
789 | | #endif |
790 | 0 | inline const ::std::string& unknown_fields() const { |
791 | 0 | return _internal_metadata_.unknown_fields(); |
792 | 0 | } |
793 | 0 | inline ::std::string* mutable_unknown_fields() { |
794 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
795 | 0 | } |
796 | | |
797 | | static const FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints& default_instance(); |
798 | | |
799 | 0 | static inline const FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints* internal_default_instance() { |
800 | 0 | return reinterpret_cast<const FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints*>( |
801 | 0 | &_FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints_default_instance_); |
802 | 0 | } |
803 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
804 | | 4; |
805 | | |
806 | | void Swap(FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints* other); |
807 | 0 | friend void swap(FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints& a, FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints& b) { |
808 | 0 | a.Swap(&b); |
809 | 0 | } |
810 | | |
811 | | // implements Message ---------------------------------------------- |
812 | | |
813 | 0 | 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 | 0 | 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 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
837 | 0 | return NULL; |
838 | 0 | } |
839 | 0 | inline void* MaybeArenaPtr() const { |
840 | 0 | return NULL; |
841 | 0 | } |
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 | 0 | inline FetchThreatListUpdatesRequest_ListUpdateRequest& operator=(const FetchThreatListUpdatesRequest_ListUpdateRequest& from) { |
917 | 0 | CopyFrom(from); |
918 | 0 | return *this; |
919 | 0 | } |
920 | | #if LANG_CXX11 |
921 | | FetchThreatListUpdatesRequest_ListUpdateRequest(FetchThreatListUpdatesRequest_ListUpdateRequest&& from) noexcept |
922 | 0 | : FetchThreatListUpdatesRequest_ListUpdateRequest() { |
923 | 0 | *this = ::std::move(from); |
924 | 0 | } |
925 | | |
926 | 0 | inline FetchThreatListUpdatesRequest_ListUpdateRequest& operator=(FetchThreatListUpdatesRequest_ListUpdateRequest&& from) noexcept { |
927 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
928 | 0 | if (this != &from) InternalSwap(&from); |
929 | 0 | } else { |
930 | 0 | CopyFrom(from); |
931 | 0 | } |
932 | 0 | return *this; |
933 | 0 | } |
934 | | #endif |
935 | 0 | inline const ::std::string& unknown_fields() const { |
936 | 0 | return _internal_metadata_.unknown_fields(); |
937 | 0 | } |
938 | 0 | inline ::std::string* mutable_unknown_fields() { |
939 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
940 | 0 | } |
941 | | |
942 | | static const FetchThreatListUpdatesRequest_ListUpdateRequest& default_instance(); |
943 | | |
944 | 0 | static inline const FetchThreatListUpdatesRequest_ListUpdateRequest* internal_default_instance() { |
945 | 0 | return reinterpret_cast<const FetchThreatListUpdatesRequest_ListUpdateRequest*>( |
946 | 0 | &_FetchThreatListUpdatesRequest_ListUpdateRequest_default_instance_); |
947 | 0 | } |
948 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
949 | | 5; |
950 | | |
951 | | void Swap(FetchThreatListUpdatesRequest_ListUpdateRequest* other); |
952 | 0 | friend void swap(FetchThreatListUpdatesRequest_ListUpdateRequest& a, FetchThreatListUpdatesRequest_ListUpdateRequest& b) { |
953 | 0 | a.Swap(&b); |
954 | 0 | } |
955 | | |
956 | | // implements Message ---------------------------------------------- |
957 | | |
958 | 0 | 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 | 0 | 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 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
982 | 0 | return NULL; |
983 | 0 | } |
984 | 0 | inline void* MaybeArenaPtr() const { |
985 | 0 | return NULL; |
986 | 0 | } |
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 | 0 | inline FetchThreatListUpdatesRequest& operator=(const FetchThreatListUpdatesRequest& from) { |
1075 | 0 | CopyFrom(from); |
1076 | 0 | return *this; |
1077 | 0 | } |
1078 | | #if LANG_CXX11 |
1079 | | FetchThreatListUpdatesRequest(FetchThreatListUpdatesRequest&& from) noexcept |
1080 | 0 | : FetchThreatListUpdatesRequest() { |
1081 | 0 | *this = ::std::move(from); |
1082 | 0 | } |
1083 | | |
1084 | 0 | inline FetchThreatListUpdatesRequest& operator=(FetchThreatListUpdatesRequest&& from) noexcept { |
1085 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
1086 | 0 | if (this != &from) InternalSwap(&from); |
1087 | 0 | } else { |
1088 | 0 | CopyFrom(from); |
1089 | 0 | } |
1090 | 0 | return *this; |
1091 | 0 | } |
1092 | | #endif |
1093 | 0 | inline const ::std::string& unknown_fields() const { |
1094 | 0 | return _internal_metadata_.unknown_fields(); |
1095 | 0 | } |
1096 | 0 | inline ::std::string* mutable_unknown_fields() { |
1097 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
1098 | 0 | } |
1099 | | |
1100 | | static const FetchThreatListUpdatesRequest& default_instance(); |
1101 | | |
1102 | 0 | static inline const FetchThreatListUpdatesRequest* internal_default_instance() { |
1103 | 0 | return reinterpret_cast<const FetchThreatListUpdatesRequest*>( |
1104 | 0 | &_FetchThreatListUpdatesRequest_default_instance_); |
1105 | 0 | } |
1106 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
1107 | | 6; |
1108 | | |
1109 | | void Swap(FetchThreatListUpdatesRequest* other); |
1110 | 0 | friend void swap(FetchThreatListUpdatesRequest& a, FetchThreatListUpdatesRequest& b) { |
1111 | 0 | a.Swap(&b); |
1112 | 0 | } |
1113 | | |
1114 | | // implements Message ---------------------------------------------- |
1115 | | |
1116 | 0 | 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 | 0 | 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 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
1140 | 0 | return NULL; |
1141 | 0 | } |
1142 | 0 | inline void* MaybeArenaPtr() const { |
1143 | 0 | return NULL; |
1144 | 0 | } |
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 | 0 | inline FetchThreatListUpdatesResponse_ListUpdateResponse& operator=(const FetchThreatListUpdatesResponse_ListUpdateResponse& from) { |
1210 | 0 | CopyFrom(from); |
1211 | 0 | return *this; |
1212 | 0 | } |
1213 | | #if LANG_CXX11 |
1214 | | FetchThreatListUpdatesResponse_ListUpdateResponse(FetchThreatListUpdatesResponse_ListUpdateResponse&& from) noexcept |
1215 | 0 | : FetchThreatListUpdatesResponse_ListUpdateResponse() { |
1216 | 0 | *this = ::std::move(from); |
1217 | 0 | } |
1218 | | |
1219 | 0 | inline FetchThreatListUpdatesResponse_ListUpdateResponse& operator=(FetchThreatListUpdatesResponse_ListUpdateResponse&& from) noexcept { |
1220 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
1221 | 0 | if (this != &from) InternalSwap(&from); |
1222 | 0 | } else { |
1223 | 0 | CopyFrom(from); |
1224 | 0 | } |
1225 | 0 | return *this; |
1226 | 0 | } |
1227 | | #endif |
1228 | 0 | inline const ::std::string& unknown_fields() const { |
1229 | 0 | return _internal_metadata_.unknown_fields(); |
1230 | 0 | } |
1231 | 0 | inline ::std::string* mutable_unknown_fields() { |
1232 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
1233 | 0 | } |
1234 | | |
1235 | | static const FetchThreatListUpdatesResponse_ListUpdateResponse& default_instance(); |
1236 | | |
1237 | 0 | static inline const FetchThreatListUpdatesResponse_ListUpdateResponse* internal_default_instance() { |
1238 | 0 | return reinterpret_cast<const FetchThreatListUpdatesResponse_ListUpdateResponse*>( |
1239 | 0 | &_FetchThreatListUpdatesResponse_ListUpdateResponse_default_instance_); |
1240 | 0 | } |
1241 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
1242 | | 7; |
1243 | | |
1244 | | void Swap(FetchThreatListUpdatesResponse_ListUpdateResponse* other); |
1245 | 0 | friend void swap(FetchThreatListUpdatesResponse_ListUpdateResponse& a, FetchThreatListUpdatesResponse_ListUpdateResponse& b) { |
1246 | 0 | a.Swap(&b); |
1247 | 0 | } |
1248 | | |
1249 | | // implements Message ---------------------------------------------- |
1250 | | |
1251 | 0 | 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 | 0 | 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 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
1275 | 0 | return NULL; |
1276 | 0 | } |
1277 | 0 | inline void* MaybeArenaPtr() const { |
1278 | 0 | return NULL; |
1279 | 0 | } |
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 | 0 | static inline bool ResponseType_IsValid(int value) { |
1294 | 0 | return FetchThreatListUpdatesResponse_ListUpdateResponse_ResponseType_IsValid(value); |
1295 | 0 | } |
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 | 0 | inline FetchThreatListUpdatesResponse& operator=(const FetchThreatListUpdatesResponse& from) { |
1419 | 0 | CopyFrom(from); |
1420 | 0 | return *this; |
1421 | 0 | } |
1422 | | #if LANG_CXX11 |
1423 | | FetchThreatListUpdatesResponse(FetchThreatListUpdatesResponse&& from) noexcept |
1424 | 0 | : FetchThreatListUpdatesResponse() { |
1425 | 0 | *this = ::std::move(from); |
1426 | 0 | } |
1427 | | |
1428 | 0 | inline FetchThreatListUpdatesResponse& operator=(FetchThreatListUpdatesResponse&& from) noexcept { |
1429 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
1430 | 0 | if (this != &from) InternalSwap(&from); |
1431 | 0 | } else { |
1432 | 0 | CopyFrom(from); |
1433 | 0 | } |
1434 | 0 | return *this; |
1435 | 0 | } |
1436 | | #endif |
1437 | 0 | inline const ::std::string& unknown_fields() const { |
1438 | 0 | return _internal_metadata_.unknown_fields(); |
1439 | 0 | } |
1440 | 0 | inline ::std::string* mutable_unknown_fields() { |
1441 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
1442 | 0 | } |
1443 | | |
1444 | | static const FetchThreatListUpdatesResponse& default_instance(); |
1445 | | |
1446 | 0 | static inline const FetchThreatListUpdatesResponse* internal_default_instance() { |
1447 | 0 | return reinterpret_cast<const FetchThreatListUpdatesResponse*>( |
1448 | 0 | &_FetchThreatListUpdatesResponse_default_instance_); |
1449 | 0 | } |
1450 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
1451 | | 8; |
1452 | | |
1453 | | void Swap(FetchThreatListUpdatesResponse* other); |
1454 | 0 | friend void swap(FetchThreatListUpdatesResponse& a, FetchThreatListUpdatesResponse& b) { |
1455 | 0 | a.Swap(&b); |
1456 | 0 | } |
1457 | | |
1458 | | // implements Message ---------------------------------------------- |
1459 | | |
1460 | 0 | 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 | 0 | 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 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
1484 | 0 | return NULL; |
1485 | 0 | } |
1486 | 0 | inline void* MaybeArenaPtr() const { |
1487 | 0 | return NULL; |
1488 | 0 | } |
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 | 0 | inline FindFullHashesRequest& operator=(const FindFullHashesRequest& from) { |
1542 | 0 | CopyFrom(from); |
1543 | 0 | return *this; |
1544 | 0 | } |
1545 | | #if LANG_CXX11 |
1546 | | FindFullHashesRequest(FindFullHashesRequest&& from) noexcept |
1547 | 0 | : FindFullHashesRequest() { |
1548 | 0 | *this = ::std::move(from); |
1549 | 0 | } |
1550 | | |
1551 | 0 | inline FindFullHashesRequest& operator=(FindFullHashesRequest&& from) noexcept { |
1552 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
1553 | 0 | if (this != &from) InternalSwap(&from); |
1554 | 0 | } else { |
1555 | 0 | CopyFrom(from); |
1556 | 0 | } |
1557 | 0 | return *this; |
1558 | 0 | } |
1559 | | #endif |
1560 | 0 | inline const ::std::string& unknown_fields() const { |
1561 | 0 | return _internal_metadata_.unknown_fields(); |
1562 | 0 | } |
1563 | 0 | inline ::std::string* mutable_unknown_fields() { |
1564 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
1565 | 0 | } |
1566 | | |
1567 | | static const FindFullHashesRequest& default_instance(); |
1568 | | |
1569 | 0 | static inline const FindFullHashesRequest* internal_default_instance() { |
1570 | 0 | return reinterpret_cast<const FindFullHashesRequest*>( |
1571 | 0 | &_FindFullHashesRequest_default_instance_); |
1572 | 0 | } |
1573 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
1574 | | 9; |
1575 | | |
1576 | | void Swap(FindFullHashesRequest* other); |
1577 | 0 | friend void swap(FindFullHashesRequest& a, FindFullHashesRequest& b) { |
1578 | 0 | a.Swap(&b); |
1579 | 0 | } |
1580 | | |
1581 | | // implements Message ---------------------------------------------- |
1582 | | |
1583 | 0 | 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 | 0 | 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 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
1607 | 0 | return NULL; |
1608 | 0 | } |
1609 | 0 | inline void* MaybeArenaPtr() const { |
1610 | 0 | return NULL; |
1611 | 0 | } |
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 | 0 | inline FindFullHashesResponse& operator=(const FindFullHashesResponse& from) { |
1685 | 0 | CopyFrom(from); |
1686 | 0 | return *this; |
1687 | 0 | } |
1688 | | #if LANG_CXX11 |
1689 | | FindFullHashesResponse(FindFullHashesResponse&& from) noexcept |
1690 | 0 | : FindFullHashesResponse() { |
1691 | 0 | *this = ::std::move(from); |
1692 | 0 | } |
1693 | | |
1694 | 0 | inline FindFullHashesResponse& operator=(FindFullHashesResponse&& from) noexcept { |
1695 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
1696 | 0 | if (this != &from) InternalSwap(&from); |
1697 | 0 | } else { |
1698 | 0 | CopyFrom(from); |
1699 | 0 | } |
1700 | 0 | return *this; |
1701 | 0 | } |
1702 | | #endif |
1703 | 0 | inline const ::std::string& unknown_fields() const { |
1704 | 0 | return _internal_metadata_.unknown_fields(); |
1705 | 0 | } |
1706 | 0 | inline ::std::string* mutable_unknown_fields() { |
1707 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
1708 | 0 | } |
1709 | | |
1710 | | static const FindFullHashesResponse& default_instance(); |
1711 | | |
1712 | 0 | static inline const FindFullHashesResponse* internal_default_instance() { |
1713 | 0 | return reinterpret_cast<const FindFullHashesResponse*>( |
1714 | 0 | &_FindFullHashesResponse_default_instance_); |
1715 | 0 | } |
1716 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
1717 | | 10; |
1718 | | |
1719 | | void Swap(FindFullHashesResponse* other); |
1720 | 0 | friend void swap(FindFullHashesResponse& a, FindFullHashesResponse& b) { |
1721 | 0 | a.Swap(&b); |
1722 | 0 | } |
1723 | | |
1724 | | // implements Message ---------------------------------------------- |
1725 | | |
1726 | 0 | 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 | 0 | 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 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
1750 | 0 | return NULL; |
1751 | 0 | } |
1752 | 0 | inline void* MaybeArenaPtr() const { |
1753 | 0 | return NULL; |
1754 | 0 | } |
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 | 0 | inline ThreatHit_ThreatSource& operator=(const ThreatHit_ThreatSource& from) { |
1818 | 0 | CopyFrom(from); |
1819 | 0 | return *this; |
1820 | 0 | } |
1821 | | #if LANG_CXX11 |
1822 | | ThreatHit_ThreatSource(ThreatHit_ThreatSource&& from) noexcept |
1823 | 0 | : ThreatHit_ThreatSource() { |
1824 | 0 | *this = ::std::move(from); |
1825 | 0 | } |
1826 | | |
1827 | 0 | inline ThreatHit_ThreatSource& operator=(ThreatHit_ThreatSource&& from) noexcept { |
1828 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
1829 | 0 | if (this != &from) InternalSwap(&from); |
1830 | 0 | } else { |
1831 | 0 | CopyFrom(from); |
1832 | 0 | } |
1833 | 0 | return *this; |
1834 | 0 | } |
1835 | | #endif |
1836 | 0 | inline const ::std::string& unknown_fields() const { |
1837 | 0 | return _internal_metadata_.unknown_fields(); |
1838 | 0 | } |
1839 | 0 | inline ::std::string* mutable_unknown_fields() { |
1840 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
1841 | 0 | } |
1842 | | |
1843 | | static const ThreatHit_ThreatSource& default_instance(); |
1844 | | |
1845 | 0 | static inline const ThreatHit_ThreatSource* internal_default_instance() { |
1846 | 0 | return reinterpret_cast<const ThreatHit_ThreatSource*>( |
1847 | 0 | &_ThreatHit_ThreatSource_default_instance_); |
1848 | 0 | } |
1849 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
1850 | | 11; |
1851 | | |
1852 | | void Swap(ThreatHit_ThreatSource* other); |
1853 | 0 | friend void swap(ThreatHit_ThreatSource& a, ThreatHit_ThreatSource& b) { |
1854 | 0 | a.Swap(&b); |
1855 | 0 | } |
1856 | | |
1857 | | // implements Message ---------------------------------------------- |
1858 | | |
1859 | 0 | 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 | 0 | 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 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
1883 | 0 | return NULL; |
1884 | 0 | } |
1885 | 0 | inline void* MaybeArenaPtr() const { |
1886 | 0 | return NULL; |
1887 | 0 | } |
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 | 0 | inline ThreatHit_UserInfo& operator=(const ThreatHit_UserInfo& from) { |
1978 | 0 | CopyFrom(from); |
1979 | 0 | return *this; |
1980 | 0 | } |
1981 | | #if LANG_CXX11 |
1982 | | ThreatHit_UserInfo(ThreatHit_UserInfo&& from) noexcept |
1983 | 0 | : ThreatHit_UserInfo() { |
1984 | 0 | *this = ::std::move(from); |
1985 | 0 | } |
1986 | | |
1987 | 0 | inline ThreatHit_UserInfo& operator=(ThreatHit_UserInfo&& from) noexcept { |
1988 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
1989 | 0 | if (this != &from) InternalSwap(&from); |
1990 | 0 | } else { |
1991 | 0 | CopyFrom(from); |
1992 | 0 | } |
1993 | 0 | return *this; |
1994 | 0 | } |
1995 | | #endif |
1996 | 0 | inline const ::std::string& unknown_fields() const { |
1997 | 0 | return _internal_metadata_.unknown_fields(); |
1998 | 0 | } |
1999 | 0 | inline ::std::string* mutable_unknown_fields() { |
2000 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
2001 | 0 | } |
2002 | | |
2003 | | static const ThreatHit_UserInfo& default_instance(); |
2004 | | |
2005 | 0 | static inline const ThreatHit_UserInfo* internal_default_instance() { |
2006 | 0 | return reinterpret_cast<const ThreatHit_UserInfo*>( |
2007 | 0 | &_ThreatHit_UserInfo_default_instance_); |
2008 | 0 | } |
2009 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
2010 | | 12; |
2011 | | |
2012 | | void Swap(ThreatHit_UserInfo* other); |
2013 | 0 | friend void swap(ThreatHit_UserInfo& a, ThreatHit_UserInfo& b) { |
2014 | 0 | a.Swap(&b); |
2015 | 0 | } |
2016 | | |
2017 | | // implements Message ---------------------------------------------- |
2018 | | |
2019 | 0 | 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 | 0 | 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 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
2043 | 0 | return NULL; |
2044 | 0 | } |
2045 | 0 | inline void* MaybeArenaPtr() const { |
2046 | 0 | return NULL; |
2047 | 0 | } |
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 | 0 | inline ThreatHit& operator=(const ThreatHit& from) { |
2110 | 0 | CopyFrom(from); |
2111 | 0 | return *this; |
2112 | 0 | } |
2113 | | #if LANG_CXX11 |
2114 | | ThreatHit(ThreatHit&& from) noexcept |
2115 | 0 | : ThreatHit() { |
2116 | 0 | *this = ::std::move(from); |
2117 | 0 | } |
2118 | | |
2119 | 0 | inline ThreatHit& operator=(ThreatHit&& from) noexcept { |
2120 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
2121 | 0 | if (this != &from) InternalSwap(&from); |
2122 | 0 | } else { |
2123 | 0 | CopyFrom(from); |
2124 | 0 | } |
2125 | 0 | return *this; |
2126 | 0 | } |
2127 | | #endif |
2128 | 0 | inline const ::std::string& unknown_fields() const { |
2129 | 0 | return _internal_metadata_.unknown_fields(); |
2130 | 0 | } |
2131 | 0 | inline ::std::string* mutable_unknown_fields() { |
2132 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
2133 | 0 | } |
2134 | | |
2135 | | static const ThreatHit& default_instance(); |
2136 | | |
2137 | 0 | static inline const ThreatHit* internal_default_instance() { |
2138 | 0 | return reinterpret_cast<const ThreatHit*>( |
2139 | 0 | &_ThreatHit_default_instance_); |
2140 | 0 | } |
2141 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
2142 | | 13; |
2143 | | |
2144 | | void Swap(ThreatHit* other); |
2145 | 0 | friend void swap(ThreatHit& a, ThreatHit& b) { |
2146 | 0 | a.Swap(&b); |
2147 | 0 | } |
2148 | | |
2149 | | // implements Message ---------------------------------------------- |
2150 | | |
2151 | 0 | 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 | 0 | 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 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
2175 | 0 | return NULL; |
2176 | 0 | } |
2177 | 0 | inline void* MaybeArenaPtr() const { |
2178 | 0 | return NULL; |
2179 | 0 | } |
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 | 0 | static inline bool ThreatSourceType_IsValid(int value) { |
2201 | 0 | return ThreatHit_ThreatSourceType_IsValid(value); |
2202 | 0 | } |
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 | 0 | inline ClientInfo& operator=(const ClientInfo& from) { |
2299 | 0 | CopyFrom(from); |
2300 | 0 | return *this; |
2301 | 0 | } |
2302 | | #if LANG_CXX11 |
2303 | | ClientInfo(ClientInfo&& from) noexcept |
2304 | 0 | : ClientInfo() { |
2305 | 0 | *this = ::std::move(from); |
2306 | 0 | } |
2307 | | |
2308 | 0 | inline ClientInfo& operator=(ClientInfo&& from) noexcept { |
2309 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
2310 | 0 | if (this != &from) InternalSwap(&from); |
2311 | 0 | } else { |
2312 | 0 | CopyFrom(from); |
2313 | 0 | } |
2314 | 0 | return *this; |
2315 | 0 | } |
2316 | | #endif |
2317 | 0 | inline const ::std::string& unknown_fields() const { |
2318 | 0 | return _internal_metadata_.unknown_fields(); |
2319 | 0 | } |
2320 | 0 | inline ::std::string* mutable_unknown_fields() { |
2321 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
2322 | 0 | } |
2323 | | |
2324 | | static const ClientInfo& default_instance(); |
2325 | | |
2326 | 0 | static inline const ClientInfo* internal_default_instance() { |
2327 | 0 | return reinterpret_cast<const ClientInfo*>( |
2328 | 0 | &_ClientInfo_default_instance_); |
2329 | 0 | } |
2330 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
2331 | | 14; |
2332 | | |
2333 | | void Swap(ClientInfo* other); |
2334 | 0 | friend void swap(ClientInfo& a, ClientInfo& b) { |
2335 | 0 | a.Swap(&b); |
2336 | 0 | } |
2337 | | |
2338 | | // implements Message ---------------------------------------------- |
2339 | | |
2340 | 0 | 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 | 0 | 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 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
2364 | 0 | return NULL; |
2365 | 0 | } |
2366 | 0 | inline void* MaybeArenaPtr() const { |
2367 | 0 | return NULL; |
2368 | 0 | } |
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 | 0 | inline ChromeClientInfo& operator=(const ChromeClientInfo& from) { |
2431 | 0 | CopyFrom(from); |
2432 | 0 | return *this; |
2433 | 0 | } |
2434 | | #if LANG_CXX11 |
2435 | | ChromeClientInfo(ChromeClientInfo&& from) noexcept |
2436 | 0 | : ChromeClientInfo() { |
2437 | 0 | *this = ::std::move(from); |
2438 | 0 | } |
2439 | | |
2440 | 0 | inline ChromeClientInfo& operator=(ChromeClientInfo&& from) noexcept { |
2441 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
2442 | 0 | if (this != &from) InternalSwap(&from); |
2443 | 0 | } else { |
2444 | 0 | CopyFrom(from); |
2445 | 0 | } |
2446 | 0 | return *this; |
2447 | 0 | } |
2448 | | #endif |
2449 | 0 | inline const ::std::string& unknown_fields() const { |
2450 | 0 | return _internal_metadata_.unknown_fields(); |
2451 | 0 | } |
2452 | 0 | inline ::std::string* mutable_unknown_fields() { |
2453 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
2454 | 0 | } |
2455 | | |
2456 | | static const ChromeClientInfo& default_instance(); |
2457 | | |
2458 | 0 | static inline const ChromeClientInfo* internal_default_instance() { |
2459 | 0 | return reinterpret_cast<const ChromeClientInfo*>( |
2460 | 0 | &_ChromeClientInfo_default_instance_); |
2461 | 0 | } |
2462 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
2463 | | 15; |
2464 | | |
2465 | | void Swap(ChromeClientInfo* other); |
2466 | 0 | friend void swap(ChromeClientInfo& a, ChromeClientInfo& b) { |
2467 | 0 | a.Swap(&b); |
2468 | 0 | } |
2469 | | |
2470 | | // implements Message ---------------------------------------------- |
2471 | | |
2472 | 0 | 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 | 0 | 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 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
2496 | 0 | return NULL; |
2497 | 0 | } |
2498 | 0 | inline void* MaybeArenaPtr() const { |
2499 | 0 | return NULL; |
2500 | 0 | } |
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 | 0 | static inline bool SafeBrowsingReportingPopulation_IsValid(int value) { |
2517 | 0 | return ChromeClientInfo_SafeBrowsingReportingPopulation_IsValid(value); |
2518 | 0 | } |
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 | 0 | inline Checksum& operator=(const Checksum& from) { |
2556 | 0 | CopyFrom(from); |
2557 | 0 | return *this; |
2558 | 0 | } |
2559 | | #if LANG_CXX11 |
2560 | | Checksum(Checksum&& from) noexcept |
2561 | 0 | : Checksum() { |
2562 | 0 | *this = ::std::move(from); |
2563 | 0 | } |
2564 | | |
2565 | 0 | inline Checksum& operator=(Checksum&& from) noexcept { |
2566 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
2567 | 0 | if (this != &from) InternalSwap(&from); |
2568 | 0 | } else { |
2569 | 0 | CopyFrom(from); |
2570 | 0 | } |
2571 | 0 | return *this; |
2572 | 0 | } |
2573 | | #endif |
2574 | 0 | inline const ::std::string& unknown_fields() const { |
2575 | 0 | return _internal_metadata_.unknown_fields(); |
2576 | 0 | } |
2577 | 0 | inline ::std::string* mutable_unknown_fields() { |
2578 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
2579 | 0 | } |
2580 | | |
2581 | | static const Checksum& default_instance(); |
2582 | | |
2583 | 0 | static inline const Checksum* internal_default_instance() { |
2584 | 0 | return reinterpret_cast<const Checksum*>( |
2585 | 0 | &_Checksum_default_instance_); |
2586 | 0 | } |
2587 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
2588 | | 16; |
2589 | | |
2590 | | void Swap(Checksum* other); |
2591 | 0 | friend void swap(Checksum& a, Checksum& b) { |
2592 | 0 | a.Swap(&b); |
2593 | 0 | } |
2594 | | |
2595 | | // implements Message ---------------------------------------------- |
2596 | | |
2597 | 0 | 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 | 0 | 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 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
2621 | 0 | return NULL; |
2622 | 0 | } |
2623 | 0 | inline void* MaybeArenaPtr() const { |
2624 | 0 | return NULL; |
2625 | 0 | } |
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 | 0 | inline ThreatEntry& operator=(const ThreatEntry& from) { |
2670 | 0 | CopyFrom(from); |
2671 | 0 | return *this; |
2672 | 0 | } |
2673 | | #if LANG_CXX11 |
2674 | | ThreatEntry(ThreatEntry&& from) noexcept |
2675 | 0 | : ThreatEntry() { |
2676 | 0 | *this = ::std::move(from); |
2677 | 0 | } |
2678 | | |
2679 | 0 | inline ThreatEntry& operator=(ThreatEntry&& from) noexcept { |
2680 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
2681 | 0 | if (this != &from) InternalSwap(&from); |
2682 | 0 | } else { |
2683 | 0 | CopyFrom(from); |
2684 | 0 | } |
2685 | 0 | return *this; |
2686 | 0 | } |
2687 | | #endif |
2688 | 0 | inline const ::std::string& unknown_fields() const { |
2689 | 0 | return _internal_metadata_.unknown_fields(); |
2690 | 0 | } |
2691 | 0 | inline ::std::string* mutable_unknown_fields() { |
2692 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
2693 | 0 | } |
2694 | | |
2695 | | static const ThreatEntry& default_instance(); |
2696 | | |
2697 | 0 | static inline const ThreatEntry* internal_default_instance() { |
2698 | 0 | return reinterpret_cast<const ThreatEntry*>( |
2699 | 0 | &_ThreatEntry_default_instance_); |
2700 | 0 | } |
2701 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
2702 | | 17; |
2703 | | |
2704 | | void Swap(ThreatEntry* other); |
2705 | 0 | friend void swap(ThreatEntry& a, ThreatEntry& b) { |
2706 | 0 | a.Swap(&b); |
2707 | 0 | } |
2708 | | |
2709 | | // implements Message ---------------------------------------------- |
2710 | | |
2711 | 0 | 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 | 0 | 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 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
2735 | 0 | return NULL; |
2736 | 0 | } |
2737 | 0 | inline void* MaybeArenaPtr() const { |
2738 | 0 | return NULL; |
2739 | 0 | } |
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 | 0 | inline ThreatEntrySet& operator=(const ThreatEntrySet& from) { |
2802 | 0 | CopyFrom(from); |
2803 | 0 | return *this; |
2804 | 0 | } |
2805 | | #if LANG_CXX11 |
2806 | | ThreatEntrySet(ThreatEntrySet&& from) noexcept |
2807 | 0 | : ThreatEntrySet() { |
2808 | 0 | *this = ::std::move(from); |
2809 | 0 | } |
2810 | | |
2811 | 0 | inline ThreatEntrySet& operator=(ThreatEntrySet&& from) noexcept { |
2812 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
2813 | 0 | if (this != &from) InternalSwap(&from); |
2814 | 0 | } else { |
2815 | 0 | CopyFrom(from); |
2816 | 0 | } |
2817 | 0 | return *this; |
2818 | 0 | } |
2819 | | #endif |
2820 | 0 | inline const ::std::string& unknown_fields() const { |
2821 | 0 | return _internal_metadata_.unknown_fields(); |
2822 | 0 | } |
2823 | 0 | inline ::std::string* mutable_unknown_fields() { |
2824 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
2825 | 0 | } |
2826 | | |
2827 | | static const ThreatEntrySet& default_instance(); |
2828 | | |
2829 | 0 | static inline const ThreatEntrySet* internal_default_instance() { |
2830 | 0 | return reinterpret_cast<const ThreatEntrySet*>( |
2831 | 0 | &_ThreatEntrySet_default_instance_); |
2832 | 0 | } |
2833 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
2834 | | 18; |
2835 | | |
2836 | | void Swap(ThreatEntrySet* other); |
2837 | 0 | friend void swap(ThreatEntrySet& a, ThreatEntrySet& b) { |
2838 | 0 | a.Swap(&b); |
2839 | 0 | } |
2840 | | |
2841 | | // implements Message ---------------------------------------------- |
2842 | | |
2843 | 0 | 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 | 0 | 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 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
2867 | 0 | return NULL; |
2868 | 0 | } |
2869 | 0 | inline void* MaybeArenaPtr() const { |
2870 | 0 | return NULL; |
2871 | 0 | } |
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 | 0 | inline RawIndices& operator=(const RawIndices& from) { |
2956 | 0 | CopyFrom(from); |
2957 | 0 | return *this; |
2958 | 0 | } |
2959 | | #if LANG_CXX11 |
2960 | | RawIndices(RawIndices&& from) noexcept |
2961 | 0 | : RawIndices() { |
2962 | 0 | *this = ::std::move(from); |
2963 | 0 | } |
2964 | | |
2965 | 0 | inline RawIndices& operator=(RawIndices&& from) noexcept { |
2966 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
2967 | 0 | if (this != &from) InternalSwap(&from); |
2968 | 0 | } else { |
2969 | 0 | CopyFrom(from); |
2970 | 0 | } |
2971 | 0 | return *this; |
2972 | 0 | } |
2973 | | #endif |
2974 | 0 | inline const ::std::string& unknown_fields() const { |
2975 | 0 | return _internal_metadata_.unknown_fields(); |
2976 | 0 | } |
2977 | 0 | inline ::std::string* mutable_unknown_fields() { |
2978 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
2979 | 0 | } |
2980 | | |
2981 | | static const RawIndices& default_instance(); |
2982 | | |
2983 | 0 | static inline const RawIndices* internal_default_instance() { |
2984 | 0 | return reinterpret_cast<const RawIndices*>( |
2985 | 0 | &_RawIndices_default_instance_); |
2986 | 0 | } |
2987 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
2988 | | 19; |
2989 | | |
2990 | | void Swap(RawIndices* other); |
2991 | 0 | friend void swap(RawIndices& a, RawIndices& b) { |
2992 | 0 | a.Swap(&b); |
2993 | 0 | } |
2994 | | |
2995 | | // implements Message ---------------------------------------------- |
2996 | | |
2997 | 0 | 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 | 0 | 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 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
3021 | 0 | return NULL; |
3022 | 0 | } |
3023 | 0 | inline void* MaybeArenaPtr() const { |
3024 | 0 | return NULL; |
3025 | 0 | } |
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 | 0 | inline RawHashes& operator=(const RawHashes& from) { |
3065 | 0 | CopyFrom(from); |
3066 | 0 | return *this; |
3067 | 0 | } |
3068 | | #if LANG_CXX11 |
3069 | | RawHashes(RawHashes&& from) noexcept |
3070 | 0 | : RawHashes() { |
3071 | 0 | *this = ::std::move(from); |
3072 | 0 | } |
3073 | | |
3074 | 0 | inline RawHashes& operator=(RawHashes&& from) noexcept { |
3075 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
3076 | 0 | if (this != &from) InternalSwap(&from); |
3077 | 0 | } else { |
3078 | 0 | CopyFrom(from); |
3079 | 0 | } |
3080 | 0 | return *this; |
3081 | 0 | } |
3082 | | #endif |
3083 | 0 | inline const ::std::string& unknown_fields() const { |
3084 | 0 | return _internal_metadata_.unknown_fields(); |
3085 | 0 | } |
3086 | 0 | inline ::std::string* mutable_unknown_fields() { |
3087 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
3088 | 0 | } |
3089 | | |
3090 | | static const RawHashes& default_instance(); |
3091 | | |
3092 | 0 | static inline const RawHashes* internal_default_instance() { |
3093 | 0 | return reinterpret_cast<const RawHashes*>( |
3094 | 0 | &_RawHashes_default_instance_); |
3095 | 0 | } |
3096 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
3097 | | 20; |
3098 | | |
3099 | | void Swap(RawHashes* other); |
3100 | 0 | friend void swap(RawHashes& a, RawHashes& b) { |
3101 | 0 | a.Swap(&b); |
3102 | 0 | } |
3103 | | |
3104 | | // implements Message ---------------------------------------------- |
3105 | | |
3106 | 0 | 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 | 0 | 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 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
3130 | 0 | return NULL; |
3131 | 0 | } |
3132 | 0 | inline void* MaybeArenaPtr() const { |
3133 | 0 | return NULL; |
3134 | 0 | } |
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 | 0 | inline RiceDeltaEncoding& operator=(const RiceDeltaEncoding& from) { |
3189 | 0 | CopyFrom(from); |
3190 | 0 | return *this; |
3191 | 0 | } |
3192 | | #if LANG_CXX11 |
3193 | | RiceDeltaEncoding(RiceDeltaEncoding&& from) noexcept |
3194 | 0 | : RiceDeltaEncoding() { |
3195 | 0 | *this = ::std::move(from); |
3196 | 0 | } |
3197 | | |
3198 | 0 | inline RiceDeltaEncoding& operator=(RiceDeltaEncoding&& from) noexcept { |
3199 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
3200 | 0 | if (this != &from) InternalSwap(&from); |
3201 | 0 | } else { |
3202 | 0 | CopyFrom(from); |
3203 | 0 | } |
3204 | 0 | return *this; |
3205 | 0 | } |
3206 | | #endif |
3207 | 0 | inline const ::std::string& unknown_fields() const { |
3208 | 0 | return _internal_metadata_.unknown_fields(); |
3209 | 0 | } |
3210 | 0 | inline ::std::string* mutable_unknown_fields() { |
3211 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
3212 | 0 | } |
3213 | | |
3214 | | static const RiceDeltaEncoding& default_instance(); |
3215 | | |
3216 | 0 | static inline const RiceDeltaEncoding* internal_default_instance() { |
3217 | 0 | return reinterpret_cast<const RiceDeltaEncoding*>( |
3218 | 0 | &_RiceDeltaEncoding_default_instance_); |
3219 | 0 | } |
3220 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
3221 | | 21; |
3222 | | |
3223 | | void Swap(RiceDeltaEncoding* other); |
3224 | 0 | friend void swap(RiceDeltaEncoding& a, RiceDeltaEncoding& b) { |
3225 | 0 | a.Swap(&b); |
3226 | 0 | } |
3227 | | |
3228 | | // implements Message ---------------------------------------------- |
3229 | | |
3230 | 0 | 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 | 0 | 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 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
3254 | 0 | return NULL; |
3255 | 0 | } |
3256 | 0 | inline void* MaybeArenaPtr() const { |
3257 | 0 | return NULL; |
3258 | 0 | } |
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 | 0 | inline ThreatEntryMetadata_MetadataEntry& operator=(const ThreatEntryMetadata_MetadataEntry& from) { |
3333 | 0 | CopyFrom(from); |
3334 | 0 | return *this; |
3335 | 0 | } |
3336 | | #if LANG_CXX11 |
3337 | | ThreatEntryMetadata_MetadataEntry(ThreatEntryMetadata_MetadataEntry&& from) noexcept |
3338 | 0 | : ThreatEntryMetadata_MetadataEntry() { |
3339 | 0 | *this = ::std::move(from); |
3340 | 0 | } |
3341 | | |
3342 | 0 | inline ThreatEntryMetadata_MetadataEntry& operator=(ThreatEntryMetadata_MetadataEntry&& from) noexcept { |
3343 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
3344 | 0 | if (this != &from) InternalSwap(&from); |
3345 | 0 | } else { |
3346 | 0 | CopyFrom(from); |
3347 | 0 | } |
3348 | 0 | return *this; |
3349 | 0 | } |
3350 | | #endif |
3351 | 0 | inline const ::std::string& unknown_fields() const { |
3352 | 0 | return _internal_metadata_.unknown_fields(); |
3353 | 0 | } |
3354 | 0 | inline ::std::string* mutable_unknown_fields() { |
3355 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
3356 | 0 | } |
3357 | | |
3358 | | static const ThreatEntryMetadata_MetadataEntry& default_instance(); |
3359 | | |
3360 | 0 | static inline const ThreatEntryMetadata_MetadataEntry* internal_default_instance() { |
3361 | 0 | return reinterpret_cast<const ThreatEntryMetadata_MetadataEntry*>( |
3362 | 0 | &_ThreatEntryMetadata_MetadataEntry_default_instance_); |
3363 | 0 | } |
3364 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
3365 | | 22; |
3366 | | |
3367 | | void Swap(ThreatEntryMetadata_MetadataEntry* other); |
3368 | 0 | friend void swap(ThreatEntryMetadata_MetadataEntry& a, ThreatEntryMetadata_MetadataEntry& b) { |
3369 | 0 | a.Swap(&b); |
3370 | 0 | } |
3371 | | |
3372 | | // implements Message ---------------------------------------------- |
3373 | | |
3374 | 0 | 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 | 0 | 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 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
3398 | 0 | return NULL; |
3399 | 0 | } |
3400 | 0 | inline void* MaybeArenaPtr() const { |
3401 | 0 | return NULL; |
3402 | 0 | } |
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 | 0 | inline ThreatEntryMetadata& operator=(const ThreatEntryMetadata& from) { |
3465 | 0 | CopyFrom(from); |
3466 | 0 | return *this; |
3467 | 0 | } |
3468 | | #if LANG_CXX11 |
3469 | | ThreatEntryMetadata(ThreatEntryMetadata&& from) noexcept |
3470 | 0 | : ThreatEntryMetadata() { |
3471 | 0 | *this = ::std::move(from); |
3472 | 0 | } |
3473 | | |
3474 | 0 | inline ThreatEntryMetadata& operator=(ThreatEntryMetadata&& from) noexcept { |
3475 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
3476 | 0 | if (this != &from) InternalSwap(&from); |
3477 | 0 | } else { |
3478 | 0 | CopyFrom(from); |
3479 | 0 | } |
3480 | 0 | return *this; |
3481 | 0 | } |
3482 | | #endif |
3483 | 0 | inline const ::std::string& unknown_fields() const { |
3484 | 0 | return _internal_metadata_.unknown_fields(); |
3485 | 0 | } |
3486 | 0 | inline ::std::string* mutable_unknown_fields() { |
3487 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
3488 | 0 | } |
3489 | | |
3490 | | static const ThreatEntryMetadata& default_instance(); |
3491 | | |
3492 | 0 | static inline const ThreatEntryMetadata* internal_default_instance() { |
3493 | 0 | return reinterpret_cast<const ThreatEntryMetadata*>( |
3494 | 0 | &_ThreatEntryMetadata_default_instance_); |
3495 | 0 | } |
3496 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
3497 | | 23; |
3498 | | |
3499 | | void Swap(ThreatEntryMetadata* other); |
3500 | 0 | friend void swap(ThreatEntryMetadata& a, ThreatEntryMetadata& b) { |
3501 | 0 | a.Swap(&b); |
3502 | 0 | } |
3503 | | |
3504 | | // implements Message ---------------------------------------------- |
3505 | | |
3506 | 0 | 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 | 0 | 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 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
3530 | 0 | return NULL; |
3531 | 0 | } |
3532 | 0 | inline void* MaybeArenaPtr() const { |
3533 | 0 | return NULL; |
3534 | 0 | } |
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 | 0 | inline ThreatListDescriptor& operator=(const ThreatListDescriptor& from) { |
3576 | 0 | CopyFrom(from); |
3577 | 0 | return *this; |
3578 | 0 | } |
3579 | | #if LANG_CXX11 |
3580 | | ThreatListDescriptor(ThreatListDescriptor&& from) noexcept |
3581 | 0 | : ThreatListDescriptor() { |
3582 | 0 | *this = ::std::move(from); |
3583 | 0 | } |
3584 | | |
3585 | 0 | inline ThreatListDescriptor& operator=(ThreatListDescriptor&& from) noexcept { |
3586 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
3587 | 0 | if (this != &from) InternalSwap(&from); |
3588 | 0 | } else { |
3589 | 0 | CopyFrom(from); |
3590 | 0 | } |
3591 | 0 | return *this; |
3592 | 0 | } |
3593 | | #endif |
3594 | 0 | inline const ::std::string& unknown_fields() const { |
3595 | 0 | return _internal_metadata_.unknown_fields(); |
3596 | 0 | } |
3597 | 0 | inline ::std::string* mutable_unknown_fields() { |
3598 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
3599 | 0 | } |
3600 | | |
3601 | | static const ThreatListDescriptor& default_instance(); |
3602 | | |
3603 | 0 | static inline const ThreatListDescriptor* internal_default_instance() { |
3604 | 0 | return reinterpret_cast<const ThreatListDescriptor*>( |
3605 | 0 | &_ThreatListDescriptor_default_instance_); |
3606 | 0 | } |
3607 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
3608 | | 24; |
3609 | | |
3610 | | void Swap(ThreatListDescriptor* other); |
3611 | 0 | friend void swap(ThreatListDescriptor& a, ThreatListDescriptor& b) { |
3612 | 0 | a.Swap(&b); |
3613 | 0 | } |
3614 | | |
3615 | | // implements Message ---------------------------------------------- |
3616 | | |
3617 | 0 | 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 | 0 | 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 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
3641 | 0 | return NULL; |
3642 | 0 | } |
3643 | 0 | inline void* MaybeArenaPtr() const { |
3644 | 0 | return NULL; |
3645 | 0 | } |
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 | 0 | inline ListThreatListsResponse& operator=(const ListThreatListsResponse& from) { |
3702 | 0 | CopyFrom(from); |
3703 | 0 | return *this; |
3704 | 0 | } |
3705 | | #if LANG_CXX11 |
3706 | | ListThreatListsResponse(ListThreatListsResponse&& from) noexcept |
3707 | 0 | : ListThreatListsResponse() { |
3708 | 0 | *this = ::std::move(from); |
3709 | 0 | } |
3710 | | |
3711 | 0 | inline ListThreatListsResponse& operator=(ListThreatListsResponse&& from) noexcept { |
3712 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
3713 | 0 | if (this != &from) InternalSwap(&from); |
3714 | 0 | } else { |
3715 | 0 | CopyFrom(from); |
3716 | 0 | } |
3717 | 0 | return *this; |
3718 | 0 | } |
3719 | | #endif |
3720 | 0 | inline const ::std::string& unknown_fields() const { |
3721 | 0 | return _internal_metadata_.unknown_fields(); |
3722 | 0 | } |
3723 | 0 | inline ::std::string* mutable_unknown_fields() { |
3724 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
3725 | 0 | } |
3726 | | |
3727 | | static const ListThreatListsResponse& default_instance(); |
3728 | | |
3729 | 0 | static inline const ListThreatListsResponse* internal_default_instance() { |
3730 | 0 | return reinterpret_cast<const ListThreatListsResponse*>( |
3731 | 0 | &_ListThreatListsResponse_default_instance_); |
3732 | 0 | } |
3733 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
3734 | | 25; |
3735 | | |
3736 | | void Swap(ListThreatListsResponse* other); |
3737 | 0 | friend void swap(ListThreatListsResponse& a, ListThreatListsResponse& b) { |
3738 | 0 | a.Swap(&b); |
3739 | 0 | } |
3740 | | |
3741 | | // implements Message ---------------------------------------------- |
3742 | | |
3743 | 0 | 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 | 0 | 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 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
3767 | 0 | return NULL; |
3768 | 0 | } |
3769 | 0 | inline void* MaybeArenaPtr() const { |
3770 | 0 | return NULL; |
3771 | 0 | } |
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 | 0 | inline Duration& operator=(const Duration& from) { |
3811 | 0 | CopyFrom(from); |
3812 | 0 | return *this; |
3813 | 0 | } |
3814 | | #if LANG_CXX11 |
3815 | | Duration(Duration&& from) noexcept |
3816 | 0 | : Duration() { |
3817 | 0 | *this = ::std::move(from); |
3818 | 0 | } |
3819 | | |
3820 | 0 | inline Duration& operator=(Duration&& from) noexcept { |
3821 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
3822 | 0 | if (this != &from) InternalSwap(&from); |
3823 | 0 | } else { |
3824 | 0 | CopyFrom(from); |
3825 | 0 | } |
3826 | 0 | return *this; |
3827 | 0 | } |
3828 | | #endif |
3829 | 0 | inline const ::std::string& unknown_fields() const { |
3830 | 0 | return _internal_metadata_.unknown_fields(); |
3831 | 0 | } |
3832 | 0 | inline ::std::string* mutable_unknown_fields() { |
3833 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
3834 | 0 | } |
3835 | | |
3836 | | static const Duration& default_instance(); |
3837 | | |
3838 | 0 | static inline const Duration* internal_default_instance() { |
3839 | 0 | return reinterpret_cast<const Duration*>( |
3840 | 0 | &_Duration_default_instance_); |
3841 | 0 | } |
3842 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
3843 | | 26; |
3844 | | |
3845 | | void Swap(Duration* other); |
3846 | 0 | friend void swap(Duration& a, Duration& b) { |
3847 | 0 | a.Swap(&b); |
3848 | 0 | } |
3849 | | |
3850 | | // implements Message ---------------------------------------------- |
3851 | | |
3852 | 0 | 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 | 0 | 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 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
3876 | 0 | return NULL; |
3877 | 0 | } |
3878 | 0 | inline void* MaybeArenaPtr() const { |
3879 | 0 | return NULL; |
3880 | 0 | } |
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 | 0 | inline int ThreatInfo::threat_types_size() const { |
3931 | 0 | return threat_types_.size(); |
3932 | 0 | } |
3933 | 0 | inline void ThreatInfo::clear_threat_types() { |
3934 | 0 | threat_types_.Clear(); |
3935 | 0 | } |
3936 | 0 | inline ::mozilla::safebrowsing::ThreatType ThreatInfo::threat_types(int index) const { |
3937 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatInfo.threat_types) |
3938 | 0 | return static_cast< ::mozilla::safebrowsing::ThreatType >(threat_types_.Get(index)); |
3939 | 0 | } |
3940 | 0 | inline void ThreatInfo::set_threat_types(int index, ::mozilla::safebrowsing::ThreatType value) { |
3941 | 0 | assert(::mozilla::safebrowsing::ThreatType_IsValid(value)); |
3942 | 0 | threat_types_.Set(index, value); |
3943 | 0 | // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatInfo.threat_types) |
3944 | 0 | } |
3945 | 0 | inline void ThreatInfo::add_threat_types(::mozilla::safebrowsing::ThreatType value) { |
3946 | 0 | assert(::mozilla::safebrowsing::ThreatType_IsValid(value)); |
3947 | 0 | threat_types_.Add(value); |
3948 | 0 | // @@protoc_insertion_point(field_add:mozilla.safebrowsing.ThreatInfo.threat_types) |
3949 | 0 | } |
3950 | | inline const ::google::protobuf::RepeatedField<int>& |
3951 | 0 | ThreatInfo::threat_types() const { |
3952 | 0 | // @@protoc_insertion_point(field_list:mozilla.safebrowsing.ThreatInfo.threat_types) |
3953 | 0 | return threat_types_; |
3954 | 0 | } |
3955 | | inline ::google::protobuf::RepeatedField<int>* |
3956 | 0 | ThreatInfo::mutable_threat_types() { |
3957 | 0 | // @@protoc_insertion_point(field_mutable_list:mozilla.safebrowsing.ThreatInfo.threat_types) |
3958 | 0 | return &threat_types_; |
3959 | 0 | } |
3960 | | |
3961 | | // repeated .mozilla.safebrowsing.PlatformType platform_types = 2; |
3962 | 0 | inline int ThreatInfo::platform_types_size() const { |
3963 | 0 | return platform_types_.size(); |
3964 | 0 | } |
3965 | 0 | inline void ThreatInfo::clear_platform_types() { |
3966 | 0 | platform_types_.Clear(); |
3967 | 0 | } |
3968 | 0 | inline ::mozilla::safebrowsing::PlatformType ThreatInfo::platform_types(int index) const { |
3969 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatInfo.platform_types) |
3970 | 0 | return static_cast< ::mozilla::safebrowsing::PlatformType >(platform_types_.Get(index)); |
3971 | 0 | } |
3972 | 0 | inline void ThreatInfo::set_platform_types(int index, ::mozilla::safebrowsing::PlatformType value) { |
3973 | 0 | assert(::mozilla::safebrowsing::PlatformType_IsValid(value)); |
3974 | 0 | platform_types_.Set(index, value); |
3975 | 0 | // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatInfo.platform_types) |
3976 | 0 | } |
3977 | 0 | inline void ThreatInfo::add_platform_types(::mozilla::safebrowsing::PlatformType value) { |
3978 | 0 | assert(::mozilla::safebrowsing::PlatformType_IsValid(value)); |
3979 | 0 | platform_types_.Add(value); |
3980 | 0 | // @@protoc_insertion_point(field_add:mozilla.safebrowsing.ThreatInfo.platform_types) |
3981 | 0 | } |
3982 | | inline const ::google::protobuf::RepeatedField<int>& |
3983 | 0 | ThreatInfo::platform_types() const { |
3984 | 0 | // @@protoc_insertion_point(field_list:mozilla.safebrowsing.ThreatInfo.platform_types) |
3985 | 0 | return platform_types_; |
3986 | 0 | } |
3987 | | inline ::google::protobuf::RepeatedField<int>* |
3988 | 0 | ThreatInfo::mutable_platform_types() { |
3989 | 0 | // @@protoc_insertion_point(field_mutable_list:mozilla.safebrowsing.ThreatInfo.platform_types) |
3990 | 0 | return &platform_types_; |
3991 | 0 | } |
3992 | | |
3993 | | // repeated .mozilla.safebrowsing.ThreatEntryType threat_entry_types = 4; |
3994 | 0 | inline int ThreatInfo::threat_entry_types_size() const { |
3995 | 0 | return threat_entry_types_.size(); |
3996 | 0 | } |
3997 | 0 | inline void ThreatInfo::clear_threat_entry_types() { |
3998 | 0 | threat_entry_types_.Clear(); |
3999 | 0 | } |
4000 | 0 | inline ::mozilla::safebrowsing::ThreatEntryType ThreatInfo::threat_entry_types(int index) const { |
4001 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatInfo.threat_entry_types) |
4002 | 0 | return static_cast< ::mozilla::safebrowsing::ThreatEntryType >(threat_entry_types_.Get(index)); |
4003 | 0 | } |
4004 | 0 | inline void ThreatInfo::set_threat_entry_types(int index, ::mozilla::safebrowsing::ThreatEntryType value) { |
4005 | 0 | assert(::mozilla::safebrowsing::ThreatEntryType_IsValid(value)); |
4006 | 0 | threat_entry_types_.Set(index, value); |
4007 | 0 | // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatInfo.threat_entry_types) |
4008 | 0 | } |
4009 | 0 | inline void ThreatInfo::add_threat_entry_types(::mozilla::safebrowsing::ThreatEntryType value) { |
4010 | 0 | assert(::mozilla::safebrowsing::ThreatEntryType_IsValid(value)); |
4011 | 0 | threat_entry_types_.Add(value); |
4012 | 0 | // @@protoc_insertion_point(field_add:mozilla.safebrowsing.ThreatInfo.threat_entry_types) |
4013 | 0 | } |
4014 | | inline const ::google::protobuf::RepeatedField<int>& |
4015 | 0 | ThreatInfo::threat_entry_types() const { |
4016 | 0 | // @@protoc_insertion_point(field_list:mozilla.safebrowsing.ThreatInfo.threat_entry_types) |
4017 | 0 | return threat_entry_types_; |
4018 | 0 | } |
4019 | | inline ::google::protobuf::RepeatedField<int>* |
4020 | 0 | ThreatInfo::mutable_threat_entry_types() { |
4021 | 0 | // @@protoc_insertion_point(field_mutable_list:mozilla.safebrowsing.ThreatInfo.threat_entry_types) |
4022 | 0 | return &threat_entry_types_; |
4023 | 0 | } |
4024 | | |
4025 | | // repeated .mozilla.safebrowsing.ThreatEntry threat_entries = 3; |
4026 | 0 | inline int ThreatInfo::threat_entries_size() const { |
4027 | 0 | return threat_entries_.size(); |
4028 | 0 | } |
4029 | 0 | inline void ThreatInfo::clear_threat_entries() { |
4030 | 0 | threat_entries_.Clear(); |
4031 | 0 | } |
4032 | 0 | inline const ::mozilla::safebrowsing::ThreatEntry& ThreatInfo::threat_entries(int index) const { |
4033 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatInfo.threat_entries) |
4034 | 0 | return threat_entries_.Get(index); |
4035 | 0 | } |
4036 | 0 | inline ::mozilla::safebrowsing::ThreatEntry* ThreatInfo::mutable_threat_entries(int index) { |
4037 | 0 | // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatInfo.threat_entries) |
4038 | 0 | return threat_entries_.Mutable(index); |
4039 | 0 | } |
4040 | 0 | inline ::mozilla::safebrowsing::ThreatEntry* ThreatInfo::add_threat_entries() { |
4041 | 0 | // @@protoc_insertion_point(field_add:mozilla.safebrowsing.ThreatInfo.threat_entries) |
4042 | 0 | return threat_entries_.Add(); |
4043 | 0 | } |
4044 | | inline ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatEntry >* |
4045 | 0 | ThreatInfo::mutable_threat_entries() { |
4046 | 0 | // @@protoc_insertion_point(field_mutable_list:mozilla.safebrowsing.ThreatInfo.threat_entries) |
4047 | 0 | return &threat_entries_; |
4048 | 0 | } |
4049 | | inline const ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatEntry >& |
4050 | 0 | ThreatInfo::threat_entries() const { |
4051 | 0 | // @@protoc_insertion_point(field_list:mozilla.safebrowsing.ThreatInfo.threat_entries) |
4052 | 0 | return threat_entries_; |
4053 | 0 | } |
4054 | | |
4055 | | // ------------------------------------------------------------------- |
4056 | | |
4057 | | // ThreatMatch |
4058 | | |
4059 | | // optional .mozilla.safebrowsing.ThreatType threat_type = 1; |
4060 | 0 | inline bool ThreatMatch::has_threat_type() const { |
4061 | 0 | return (_has_bits_[0] & 0x00000008u) != 0; |
4062 | 0 | } |
4063 | 0 | inline void ThreatMatch::set_has_threat_type() { |
4064 | 0 | _has_bits_[0] |= 0x00000008u; |
4065 | 0 | } |
4066 | 0 | inline void ThreatMatch::clear_has_threat_type() { |
4067 | 0 | _has_bits_[0] &= ~0x00000008u; |
4068 | 0 | } |
4069 | 0 | inline void ThreatMatch::clear_threat_type() { |
4070 | 0 | threat_type_ = 0; |
4071 | 0 | clear_has_threat_type(); |
4072 | 0 | } |
4073 | 0 | inline ::mozilla::safebrowsing::ThreatType ThreatMatch::threat_type() const { |
4074 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatMatch.threat_type) |
4075 | 0 | return static_cast< ::mozilla::safebrowsing::ThreatType >(threat_type_); |
4076 | 0 | } |
4077 | 0 | inline void ThreatMatch::set_threat_type(::mozilla::safebrowsing::ThreatType value) { |
4078 | 0 | assert(::mozilla::safebrowsing::ThreatType_IsValid(value)); |
4079 | 0 | set_has_threat_type(); |
4080 | 0 | threat_type_ = value; |
4081 | 0 | // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatMatch.threat_type) |
4082 | 0 | } |
4083 | | |
4084 | | // optional .mozilla.safebrowsing.PlatformType platform_type = 2; |
4085 | 0 | inline bool ThreatMatch::has_platform_type() const { |
4086 | 0 | return (_has_bits_[0] & 0x00000010u) != 0; |
4087 | 0 | } |
4088 | 0 | inline void ThreatMatch::set_has_platform_type() { |
4089 | 0 | _has_bits_[0] |= 0x00000010u; |
4090 | 0 | } |
4091 | 0 | inline void ThreatMatch::clear_has_platform_type() { |
4092 | 0 | _has_bits_[0] &= ~0x00000010u; |
4093 | 0 | } |
4094 | 0 | inline void ThreatMatch::clear_platform_type() { |
4095 | 0 | platform_type_ = 0; |
4096 | 0 | clear_has_platform_type(); |
4097 | 0 | } |
4098 | 0 | inline ::mozilla::safebrowsing::PlatformType ThreatMatch::platform_type() const { |
4099 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatMatch.platform_type) |
4100 | 0 | return static_cast< ::mozilla::safebrowsing::PlatformType >(platform_type_); |
4101 | 0 | } |
4102 | 0 | inline void ThreatMatch::set_platform_type(::mozilla::safebrowsing::PlatformType value) { |
4103 | 0 | assert(::mozilla::safebrowsing::PlatformType_IsValid(value)); |
4104 | 0 | set_has_platform_type(); |
4105 | 0 | platform_type_ = value; |
4106 | 0 | // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatMatch.platform_type) |
4107 | 0 | } |
4108 | | |
4109 | | // optional .mozilla.safebrowsing.ThreatEntryType threat_entry_type = 6; |
4110 | 0 | inline bool ThreatMatch::has_threat_entry_type() const { |
4111 | 0 | return (_has_bits_[0] & 0x00000020u) != 0; |
4112 | 0 | } |
4113 | 0 | inline void ThreatMatch::set_has_threat_entry_type() { |
4114 | 0 | _has_bits_[0] |= 0x00000020u; |
4115 | 0 | } |
4116 | 0 | inline void ThreatMatch::clear_has_threat_entry_type() { |
4117 | 0 | _has_bits_[0] &= ~0x00000020u; |
4118 | 0 | } |
4119 | 0 | inline void ThreatMatch::clear_threat_entry_type() { |
4120 | 0 | threat_entry_type_ = 0; |
4121 | 0 | clear_has_threat_entry_type(); |
4122 | 0 | } |
4123 | 0 | inline ::mozilla::safebrowsing::ThreatEntryType ThreatMatch::threat_entry_type() const { |
4124 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatMatch.threat_entry_type) |
4125 | 0 | return static_cast< ::mozilla::safebrowsing::ThreatEntryType >(threat_entry_type_); |
4126 | 0 | } |
4127 | 0 | inline void ThreatMatch::set_threat_entry_type(::mozilla::safebrowsing::ThreatEntryType value) { |
4128 | 0 | assert(::mozilla::safebrowsing::ThreatEntryType_IsValid(value)); |
4129 | 0 | set_has_threat_entry_type(); |
4130 | 0 | threat_entry_type_ = value; |
4131 | 0 | // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatMatch.threat_entry_type) |
4132 | 0 | } |
4133 | | |
4134 | | // optional .mozilla.safebrowsing.ThreatEntry threat = 3; |
4135 | 0 | inline bool ThreatMatch::has_threat() const { |
4136 | 0 | return (_has_bits_[0] & 0x00000001u) != 0; |
4137 | 0 | } |
4138 | 0 | inline void ThreatMatch::set_has_threat() { |
4139 | 0 | _has_bits_[0] |= 0x00000001u; |
4140 | 0 | } |
4141 | 0 | inline void ThreatMatch::clear_has_threat() { |
4142 | 0 | _has_bits_[0] &= ~0x00000001u; |
4143 | 0 | } |
4144 | 0 | inline void ThreatMatch::clear_threat() { |
4145 | 0 | if (threat_ != NULL) threat_->::mozilla::safebrowsing::ThreatEntry::Clear(); |
4146 | 0 | clear_has_threat(); |
4147 | 0 | } |
4148 | 0 | inline const ::mozilla::safebrowsing::ThreatEntry& ThreatMatch::threat() const { |
4149 | 0 | const ::mozilla::safebrowsing::ThreatEntry* p = threat_; |
4150 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatMatch.threat) |
4151 | 0 | return p != NULL ? *p : *reinterpret_cast<const ::mozilla::safebrowsing::ThreatEntry*>( |
4152 | 0 | &::mozilla::safebrowsing::_ThreatEntry_default_instance_); |
4153 | 0 | } |
4154 | 0 | inline ::mozilla::safebrowsing::ThreatEntry* ThreatMatch::mutable_threat() { |
4155 | 0 | set_has_threat(); |
4156 | 0 | if (threat_ == NULL) { |
4157 | 0 | threat_ = new ::mozilla::safebrowsing::ThreatEntry; |
4158 | 0 | } |
4159 | 0 | // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatMatch.threat) |
4160 | 0 | return threat_; |
4161 | 0 | } |
4162 | 0 | inline ::mozilla::safebrowsing::ThreatEntry* ThreatMatch::release_threat() { |
4163 | 0 | // @@protoc_insertion_point(field_release:mozilla.safebrowsing.ThreatMatch.threat) |
4164 | 0 | clear_has_threat(); |
4165 | 0 | ::mozilla::safebrowsing::ThreatEntry* temp = threat_; |
4166 | 0 | threat_ = NULL; |
4167 | 0 | return temp; |
4168 | 0 | } |
4169 | 0 | inline void ThreatMatch::set_allocated_threat(::mozilla::safebrowsing::ThreatEntry* threat) { |
4170 | 0 | delete threat_; |
4171 | 0 | threat_ = threat; |
4172 | 0 | if (threat) { |
4173 | 0 | set_has_threat(); |
4174 | 0 | } else { |
4175 | 0 | clear_has_threat(); |
4176 | 0 | } |
4177 | 0 | // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.ThreatMatch.threat) |
4178 | 0 | } |
4179 | | |
4180 | | // optional .mozilla.safebrowsing.ThreatEntryMetadata threat_entry_metadata = 4; |
4181 | 0 | inline bool ThreatMatch::has_threat_entry_metadata() const { |
4182 | 0 | return (_has_bits_[0] & 0x00000002u) != 0; |
4183 | 0 | } |
4184 | 0 | inline void ThreatMatch::set_has_threat_entry_metadata() { |
4185 | 0 | _has_bits_[0] |= 0x00000002u; |
4186 | 0 | } |
4187 | 0 | inline void ThreatMatch::clear_has_threat_entry_metadata() { |
4188 | 0 | _has_bits_[0] &= ~0x00000002u; |
4189 | 0 | } |
4190 | 0 | inline void ThreatMatch::clear_threat_entry_metadata() { |
4191 | 0 | if (threat_entry_metadata_ != NULL) threat_entry_metadata_->::mozilla::safebrowsing::ThreatEntryMetadata::Clear(); |
4192 | 0 | clear_has_threat_entry_metadata(); |
4193 | 0 | } |
4194 | 0 | inline const ::mozilla::safebrowsing::ThreatEntryMetadata& ThreatMatch::threat_entry_metadata() const { |
4195 | 0 | const ::mozilla::safebrowsing::ThreatEntryMetadata* p = threat_entry_metadata_; |
4196 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatMatch.threat_entry_metadata) |
4197 | 0 | return p != NULL ? *p : *reinterpret_cast<const ::mozilla::safebrowsing::ThreatEntryMetadata*>( |
4198 | 0 | &::mozilla::safebrowsing::_ThreatEntryMetadata_default_instance_); |
4199 | 0 | } |
4200 | 0 | inline ::mozilla::safebrowsing::ThreatEntryMetadata* ThreatMatch::mutable_threat_entry_metadata() { |
4201 | 0 | set_has_threat_entry_metadata(); |
4202 | 0 | if (threat_entry_metadata_ == NULL) { |
4203 | 0 | threat_entry_metadata_ = new ::mozilla::safebrowsing::ThreatEntryMetadata; |
4204 | 0 | } |
4205 | 0 | // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatMatch.threat_entry_metadata) |
4206 | 0 | return threat_entry_metadata_; |
4207 | 0 | } |
4208 | 0 | inline ::mozilla::safebrowsing::ThreatEntryMetadata* ThreatMatch::release_threat_entry_metadata() { |
4209 | 0 | // @@protoc_insertion_point(field_release:mozilla.safebrowsing.ThreatMatch.threat_entry_metadata) |
4210 | 0 | clear_has_threat_entry_metadata(); |
4211 | 0 | ::mozilla::safebrowsing::ThreatEntryMetadata* temp = threat_entry_metadata_; |
4212 | 0 | threat_entry_metadata_ = NULL; |
4213 | 0 | return temp; |
4214 | 0 | } |
4215 | 0 | inline void ThreatMatch::set_allocated_threat_entry_metadata(::mozilla::safebrowsing::ThreatEntryMetadata* threat_entry_metadata) { |
4216 | 0 | delete threat_entry_metadata_; |
4217 | 0 | threat_entry_metadata_ = threat_entry_metadata; |
4218 | 0 | if (threat_entry_metadata) { |
4219 | 0 | set_has_threat_entry_metadata(); |
4220 | 0 | } else { |
4221 | 0 | clear_has_threat_entry_metadata(); |
4222 | 0 | } |
4223 | 0 | // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.ThreatMatch.threat_entry_metadata) |
4224 | 0 | } |
4225 | | |
4226 | | // optional .mozilla.safebrowsing.Duration cache_duration = 5; |
4227 | 0 | inline bool ThreatMatch::has_cache_duration() const { |
4228 | 0 | return (_has_bits_[0] & 0x00000004u) != 0; |
4229 | 0 | } |
4230 | 0 | inline void ThreatMatch::set_has_cache_duration() { |
4231 | 0 | _has_bits_[0] |= 0x00000004u; |
4232 | 0 | } |
4233 | 0 | inline void ThreatMatch::clear_has_cache_duration() { |
4234 | 0 | _has_bits_[0] &= ~0x00000004u; |
4235 | 0 | } |
4236 | 0 | inline void ThreatMatch::clear_cache_duration() { |
4237 | 0 | if (cache_duration_ != NULL) cache_duration_->::mozilla::safebrowsing::Duration::Clear(); |
4238 | 0 | clear_has_cache_duration(); |
4239 | 0 | } |
4240 | 0 | inline const ::mozilla::safebrowsing::Duration& ThreatMatch::cache_duration() const { |
4241 | 0 | const ::mozilla::safebrowsing::Duration* p = cache_duration_; |
4242 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatMatch.cache_duration) |
4243 | 0 | return p != NULL ? *p : *reinterpret_cast<const ::mozilla::safebrowsing::Duration*>( |
4244 | 0 | &::mozilla::safebrowsing::_Duration_default_instance_); |
4245 | 0 | } |
4246 | 0 | inline ::mozilla::safebrowsing::Duration* ThreatMatch::mutable_cache_duration() { |
4247 | 0 | set_has_cache_duration(); |
4248 | 0 | if (cache_duration_ == NULL) { |
4249 | 0 | cache_duration_ = new ::mozilla::safebrowsing::Duration; |
4250 | 0 | } |
4251 | 0 | // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatMatch.cache_duration) |
4252 | 0 | return cache_duration_; |
4253 | 0 | } |
4254 | 0 | inline ::mozilla::safebrowsing::Duration* ThreatMatch::release_cache_duration() { |
4255 | 0 | // @@protoc_insertion_point(field_release:mozilla.safebrowsing.ThreatMatch.cache_duration) |
4256 | 0 | clear_has_cache_duration(); |
4257 | 0 | ::mozilla::safebrowsing::Duration* temp = cache_duration_; |
4258 | 0 | cache_duration_ = NULL; |
4259 | 0 | return temp; |
4260 | 0 | } |
4261 | 0 | inline void ThreatMatch::set_allocated_cache_duration(::mozilla::safebrowsing::Duration* cache_duration) { |
4262 | 0 | delete cache_duration_; |
4263 | 0 | cache_duration_ = cache_duration; |
4264 | 0 | if (cache_duration) { |
4265 | 0 | set_has_cache_duration(); |
4266 | 0 | } else { |
4267 | 0 | clear_has_cache_duration(); |
4268 | 0 | } |
4269 | 0 | // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.ThreatMatch.cache_duration) |
4270 | 0 | } |
4271 | | |
4272 | | // ------------------------------------------------------------------- |
4273 | | |
4274 | | // FindThreatMatchesRequest |
4275 | | |
4276 | | // optional .mozilla.safebrowsing.ClientInfo client = 1; |
4277 | 0 | inline bool FindThreatMatchesRequest::has_client() const { |
4278 | 0 | return (_has_bits_[0] & 0x00000001u) != 0; |
4279 | 0 | } |
4280 | 0 | inline void FindThreatMatchesRequest::set_has_client() { |
4281 | 0 | _has_bits_[0] |= 0x00000001u; |
4282 | 0 | } |
4283 | 0 | inline void FindThreatMatchesRequest::clear_has_client() { |
4284 | 0 | _has_bits_[0] &= ~0x00000001u; |
4285 | 0 | } |
4286 | 0 | inline void FindThreatMatchesRequest::clear_client() { |
4287 | 0 | if (client_ != NULL) client_->::mozilla::safebrowsing::ClientInfo::Clear(); |
4288 | 0 | clear_has_client(); |
4289 | 0 | } |
4290 | 0 | inline const ::mozilla::safebrowsing::ClientInfo& FindThreatMatchesRequest::client() const { |
4291 | 0 | const ::mozilla::safebrowsing::ClientInfo* p = client_; |
4292 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FindThreatMatchesRequest.client) |
4293 | 0 | return p != NULL ? *p : *reinterpret_cast<const ::mozilla::safebrowsing::ClientInfo*>( |
4294 | 0 | &::mozilla::safebrowsing::_ClientInfo_default_instance_); |
4295 | 0 | } |
4296 | 0 | inline ::mozilla::safebrowsing::ClientInfo* FindThreatMatchesRequest::mutable_client() { |
4297 | 0 | set_has_client(); |
4298 | 0 | if (client_ == NULL) { |
4299 | 0 | client_ = new ::mozilla::safebrowsing::ClientInfo; |
4300 | 0 | } |
4301 | 0 | // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.FindThreatMatchesRequest.client) |
4302 | 0 | return client_; |
4303 | 0 | } |
4304 | 0 | inline ::mozilla::safebrowsing::ClientInfo* FindThreatMatchesRequest::release_client() { |
4305 | 0 | // @@protoc_insertion_point(field_release:mozilla.safebrowsing.FindThreatMatchesRequest.client) |
4306 | 0 | clear_has_client(); |
4307 | 0 | ::mozilla::safebrowsing::ClientInfo* temp = client_; |
4308 | 0 | client_ = NULL; |
4309 | 0 | return temp; |
4310 | 0 | } |
4311 | 0 | inline void FindThreatMatchesRequest::set_allocated_client(::mozilla::safebrowsing::ClientInfo* client) { |
4312 | 0 | delete client_; |
4313 | 0 | client_ = client; |
4314 | 0 | if (client) { |
4315 | 0 | set_has_client(); |
4316 | 0 | } else { |
4317 | 0 | clear_has_client(); |
4318 | 0 | } |
4319 | 0 | // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.FindThreatMatchesRequest.client) |
4320 | 0 | } |
4321 | | |
4322 | | // optional .mozilla.safebrowsing.ThreatInfo threat_info = 2; |
4323 | 0 | inline bool FindThreatMatchesRequest::has_threat_info() const { |
4324 | 0 | return (_has_bits_[0] & 0x00000002u) != 0; |
4325 | 0 | } |
4326 | 0 | inline void FindThreatMatchesRequest::set_has_threat_info() { |
4327 | 0 | _has_bits_[0] |= 0x00000002u; |
4328 | 0 | } |
4329 | 0 | inline void FindThreatMatchesRequest::clear_has_threat_info() { |
4330 | 0 | _has_bits_[0] &= ~0x00000002u; |
4331 | 0 | } |
4332 | 0 | inline void FindThreatMatchesRequest::clear_threat_info() { |
4333 | 0 | if (threat_info_ != NULL) threat_info_->::mozilla::safebrowsing::ThreatInfo::Clear(); |
4334 | 0 | clear_has_threat_info(); |
4335 | 0 | } |
4336 | 0 | inline const ::mozilla::safebrowsing::ThreatInfo& FindThreatMatchesRequest::threat_info() const { |
4337 | 0 | const ::mozilla::safebrowsing::ThreatInfo* p = threat_info_; |
4338 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FindThreatMatchesRequest.threat_info) |
4339 | 0 | return p != NULL ? *p : *reinterpret_cast<const ::mozilla::safebrowsing::ThreatInfo*>( |
4340 | 0 | &::mozilla::safebrowsing::_ThreatInfo_default_instance_); |
4341 | 0 | } |
4342 | 0 | inline ::mozilla::safebrowsing::ThreatInfo* FindThreatMatchesRequest::mutable_threat_info() { |
4343 | 0 | set_has_threat_info(); |
4344 | 0 | if (threat_info_ == NULL) { |
4345 | 0 | threat_info_ = new ::mozilla::safebrowsing::ThreatInfo; |
4346 | 0 | } |
4347 | 0 | // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.FindThreatMatchesRequest.threat_info) |
4348 | 0 | return threat_info_; |
4349 | 0 | } |
4350 | 0 | inline ::mozilla::safebrowsing::ThreatInfo* FindThreatMatchesRequest::release_threat_info() { |
4351 | 0 | // @@protoc_insertion_point(field_release:mozilla.safebrowsing.FindThreatMatchesRequest.threat_info) |
4352 | 0 | clear_has_threat_info(); |
4353 | 0 | ::mozilla::safebrowsing::ThreatInfo* temp = threat_info_; |
4354 | 0 | threat_info_ = NULL; |
4355 | 0 | return temp; |
4356 | 0 | } |
4357 | 0 | inline void FindThreatMatchesRequest::set_allocated_threat_info(::mozilla::safebrowsing::ThreatInfo* threat_info) { |
4358 | 0 | delete threat_info_; |
4359 | 0 | threat_info_ = threat_info; |
4360 | 0 | if (threat_info) { |
4361 | 0 | set_has_threat_info(); |
4362 | 0 | } else { |
4363 | 0 | clear_has_threat_info(); |
4364 | 0 | } |
4365 | 0 | // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.FindThreatMatchesRequest.threat_info) |
4366 | 0 | } |
4367 | | |
4368 | | // ------------------------------------------------------------------- |
4369 | | |
4370 | | // FindThreatMatchesResponse |
4371 | | |
4372 | | // repeated .mozilla.safebrowsing.ThreatMatch matches = 1; |
4373 | 0 | inline int FindThreatMatchesResponse::matches_size() const { |
4374 | 0 | return matches_.size(); |
4375 | 0 | } |
4376 | 0 | inline void FindThreatMatchesResponse::clear_matches() { |
4377 | 0 | matches_.Clear(); |
4378 | 0 | } |
4379 | 0 | inline const ::mozilla::safebrowsing::ThreatMatch& FindThreatMatchesResponse::matches(int index) const { |
4380 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FindThreatMatchesResponse.matches) |
4381 | 0 | return matches_.Get(index); |
4382 | 0 | } |
4383 | 0 | inline ::mozilla::safebrowsing::ThreatMatch* FindThreatMatchesResponse::mutable_matches(int index) { |
4384 | 0 | // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.FindThreatMatchesResponse.matches) |
4385 | 0 | return matches_.Mutable(index); |
4386 | 0 | } |
4387 | 0 | inline ::mozilla::safebrowsing::ThreatMatch* FindThreatMatchesResponse::add_matches() { |
4388 | 0 | // @@protoc_insertion_point(field_add:mozilla.safebrowsing.FindThreatMatchesResponse.matches) |
4389 | 0 | return matches_.Add(); |
4390 | 0 | } |
4391 | | inline ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatMatch >* |
4392 | 0 | FindThreatMatchesResponse::mutable_matches() { |
4393 | 0 | // @@protoc_insertion_point(field_mutable_list:mozilla.safebrowsing.FindThreatMatchesResponse.matches) |
4394 | 0 | return &matches_; |
4395 | 0 | } |
4396 | | inline const ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatMatch >& |
4397 | 0 | FindThreatMatchesResponse::matches() const { |
4398 | 0 | // @@protoc_insertion_point(field_list:mozilla.safebrowsing.FindThreatMatchesResponse.matches) |
4399 | 0 | return matches_; |
4400 | 0 | } |
4401 | | |
4402 | | // ------------------------------------------------------------------- |
4403 | | |
4404 | | // FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints |
4405 | | |
4406 | | // optional int32 max_update_entries = 1; |
4407 | 0 | inline bool FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::has_max_update_entries() const { |
4408 | 0 | return (_has_bits_[0] & 0x00000002u) != 0; |
4409 | 0 | } |
4410 | 0 | inline void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::set_has_max_update_entries() { |
4411 | 0 | _has_bits_[0] |= 0x00000002u; |
4412 | 0 | } |
4413 | 0 | inline void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::clear_has_max_update_entries() { |
4414 | 0 | _has_bits_[0] &= ~0x00000002u; |
4415 | 0 | } |
4416 | 0 | inline void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::clear_max_update_entries() { |
4417 | 0 | max_update_entries_ = 0; |
4418 | 0 | clear_has_max_update_entries(); |
4419 | 0 | } |
4420 | 0 | inline ::google::protobuf::int32 FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::max_update_entries() const { |
4421 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints.max_update_entries) |
4422 | 0 | return max_update_entries_; |
4423 | 0 | } |
4424 | 0 | inline void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::set_max_update_entries(::google::protobuf::int32 value) { |
4425 | 0 | set_has_max_update_entries(); |
4426 | 0 | max_update_entries_ = value; |
4427 | 0 | // @@protoc_insertion_point(field_set:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints.max_update_entries) |
4428 | 0 | } |
4429 | | |
4430 | | // optional int32 max_database_entries = 2; |
4431 | 0 | inline bool FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::has_max_database_entries() const { |
4432 | 0 | return (_has_bits_[0] & 0x00000004u) != 0; |
4433 | 0 | } |
4434 | 0 | inline void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::set_has_max_database_entries() { |
4435 | 0 | _has_bits_[0] |= 0x00000004u; |
4436 | 0 | } |
4437 | 0 | inline void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::clear_has_max_database_entries() { |
4438 | 0 | _has_bits_[0] &= ~0x00000004u; |
4439 | 0 | } |
4440 | 0 | inline void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::clear_max_database_entries() { |
4441 | 0 | max_database_entries_ = 0; |
4442 | 0 | clear_has_max_database_entries(); |
4443 | 0 | } |
4444 | 0 | inline ::google::protobuf::int32 FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::max_database_entries() const { |
4445 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints.max_database_entries) |
4446 | 0 | return max_database_entries_; |
4447 | 0 | } |
4448 | 0 | inline void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::set_max_database_entries(::google::protobuf::int32 value) { |
4449 | 0 | set_has_max_database_entries(); |
4450 | 0 | max_database_entries_ = value; |
4451 | 0 | // @@protoc_insertion_point(field_set:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints.max_database_entries) |
4452 | 0 | } |
4453 | | |
4454 | | // optional string region = 3; |
4455 | 0 | inline bool FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::has_region() const { |
4456 | 0 | return (_has_bits_[0] & 0x00000001u) != 0; |
4457 | 0 | } |
4458 | 0 | inline void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::set_has_region() { |
4459 | 0 | _has_bits_[0] |= 0x00000001u; |
4460 | 0 | } |
4461 | 0 | inline void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::clear_has_region() { |
4462 | 0 | _has_bits_[0] &= ~0x00000001u; |
4463 | 0 | } |
4464 | 0 | inline void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::clear_region() { |
4465 | 0 | region_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
4466 | 0 | clear_has_region(); |
4467 | 0 | } |
4468 | 0 | inline const ::std::string& FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::region() const { |
4469 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints.region) |
4470 | 0 | return region_.GetNoArena(); |
4471 | 0 | } |
4472 | 0 | inline void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::set_region(const ::std::string& value) { |
4473 | 0 | set_has_region(); |
4474 | 0 | region_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
4475 | 0 | // @@protoc_insertion_point(field_set:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints.region) |
4476 | 0 | } |
4477 | | #if LANG_CXX11 |
4478 | 0 | inline void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::set_region(::std::string&& value) { |
4479 | 0 | set_has_region(); |
4480 | 0 | region_.SetNoArena( |
4481 | 0 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
4482 | 0 | // @@protoc_insertion_point(field_set_rvalue:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints.region) |
4483 | 0 | } |
4484 | | #endif |
4485 | 0 | inline void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::set_region(const char* value) { |
4486 | 0 | GOOGLE_DCHECK(value != NULL); |
4487 | 0 | set_has_region(); |
4488 | 0 | region_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
4489 | 0 | // @@protoc_insertion_point(field_set_char:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints.region) |
4490 | 0 | } |
4491 | 0 | inline void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::set_region(const char* value, size_t size) { |
4492 | 0 | set_has_region(); |
4493 | 0 | region_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
4494 | 0 | ::std::string(reinterpret_cast<const char*>(value), size)); |
4495 | 0 | // @@protoc_insertion_point(field_set_pointer:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints.region) |
4496 | 0 | } |
4497 | 0 | inline ::std::string* FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::mutable_region() { |
4498 | 0 | set_has_region(); |
4499 | 0 | // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints.region) |
4500 | 0 | return region_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
4501 | 0 | } |
4502 | 0 | inline ::std::string* FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::release_region() { |
4503 | 0 | // @@protoc_insertion_point(field_release:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints.region) |
4504 | 0 | clear_has_region(); |
4505 | 0 | return region_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
4506 | 0 | } |
4507 | 0 | inline void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::set_allocated_region(::std::string* region) { |
4508 | 0 | if (region != NULL) { |
4509 | 0 | set_has_region(); |
4510 | 0 | } else { |
4511 | 0 | clear_has_region(); |
4512 | 0 | } |
4513 | 0 | region_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), region); |
4514 | 0 | // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints.region) |
4515 | 0 | } |
4516 | | |
4517 | | // repeated .mozilla.safebrowsing.CompressionType supported_compressions = 4; |
4518 | 0 | inline int FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::supported_compressions_size() const { |
4519 | 0 | return supported_compressions_.size(); |
4520 | 0 | } |
4521 | 0 | inline void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::clear_supported_compressions() { |
4522 | 0 | supported_compressions_.Clear(); |
4523 | 0 | } |
4524 | 0 | inline ::mozilla::safebrowsing::CompressionType FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::supported_compressions(int index) const { |
4525 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints.supported_compressions) |
4526 | 0 | return static_cast< ::mozilla::safebrowsing::CompressionType >(supported_compressions_.Get(index)); |
4527 | 0 | } |
4528 | 0 | inline void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::set_supported_compressions(int index, ::mozilla::safebrowsing::CompressionType value) { |
4529 | 0 | assert(::mozilla::safebrowsing::CompressionType_IsValid(value)); |
4530 | 0 | supported_compressions_.Set(index, value); |
4531 | 0 | // @@protoc_insertion_point(field_set:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints.supported_compressions) |
4532 | 0 | } |
4533 | 0 | inline void FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::add_supported_compressions(::mozilla::safebrowsing::CompressionType value) { |
4534 | 0 | assert(::mozilla::safebrowsing::CompressionType_IsValid(value)); |
4535 | 0 | supported_compressions_.Add(value); |
4536 | 0 | // @@protoc_insertion_point(field_add:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints.supported_compressions) |
4537 | 0 | } |
4538 | | inline const ::google::protobuf::RepeatedField<int>& |
4539 | 0 | FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::supported_compressions() const { |
4540 | 0 | // @@protoc_insertion_point(field_list:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints.supported_compressions) |
4541 | 0 | return supported_compressions_; |
4542 | 0 | } |
4543 | | inline ::google::protobuf::RepeatedField<int>* |
4544 | 0 | FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::mutable_supported_compressions() { |
4545 | 0 | // @@protoc_insertion_point(field_mutable_list:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints.supported_compressions) |
4546 | 0 | return &supported_compressions_; |
4547 | 0 | } |
4548 | | |
4549 | | // ------------------------------------------------------------------- |
4550 | | |
4551 | | // FetchThreatListUpdatesRequest_ListUpdateRequest |
4552 | | |
4553 | | // optional .mozilla.safebrowsing.ThreatType threat_type = 1; |
4554 | 0 | inline bool FetchThreatListUpdatesRequest_ListUpdateRequest::has_threat_type() const { |
4555 | 0 | return (_has_bits_[0] & 0x00000004u) != 0; |
4556 | 0 | } |
4557 | 0 | inline void FetchThreatListUpdatesRequest_ListUpdateRequest::set_has_threat_type() { |
4558 | 0 | _has_bits_[0] |= 0x00000004u; |
4559 | 0 | } |
4560 | 0 | inline void FetchThreatListUpdatesRequest_ListUpdateRequest::clear_has_threat_type() { |
4561 | 0 | _has_bits_[0] &= ~0x00000004u; |
4562 | 0 | } |
4563 | 0 | inline void FetchThreatListUpdatesRequest_ListUpdateRequest::clear_threat_type() { |
4564 | 0 | threat_type_ = 0; |
4565 | 0 | clear_has_threat_type(); |
4566 | 0 | } |
4567 | 0 | inline ::mozilla::safebrowsing::ThreatType FetchThreatListUpdatesRequest_ListUpdateRequest::threat_type() const { |
4568 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.threat_type) |
4569 | 0 | return static_cast< ::mozilla::safebrowsing::ThreatType >(threat_type_); |
4570 | 0 | } |
4571 | 0 | inline void FetchThreatListUpdatesRequest_ListUpdateRequest::set_threat_type(::mozilla::safebrowsing::ThreatType value) { |
4572 | 0 | assert(::mozilla::safebrowsing::ThreatType_IsValid(value)); |
4573 | 0 | set_has_threat_type(); |
4574 | 0 | threat_type_ = value; |
4575 | 0 | // @@protoc_insertion_point(field_set:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.threat_type) |
4576 | 0 | } |
4577 | | |
4578 | | // optional .mozilla.safebrowsing.PlatformType platform_type = 2; |
4579 | 0 | inline bool FetchThreatListUpdatesRequest_ListUpdateRequest::has_platform_type() const { |
4580 | 0 | return (_has_bits_[0] & 0x00000008u) != 0; |
4581 | 0 | } |
4582 | 0 | inline void FetchThreatListUpdatesRequest_ListUpdateRequest::set_has_platform_type() { |
4583 | 0 | _has_bits_[0] |= 0x00000008u; |
4584 | 0 | } |
4585 | 0 | inline void FetchThreatListUpdatesRequest_ListUpdateRequest::clear_has_platform_type() { |
4586 | 0 | _has_bits_[0] &= ~0x00000008u; |
4587 | 0 | } |
4588 | 0 | inline void FetchThreatListUpdatesRequest_ListUpdateRequest::clear_platform_type() { |
4589 | 0 | platform_type_ = 0; |
4590 | 0 | clear_has_platform_type(); |
4591 | 0 | } |
4592 | 0 | inline ::mozilla::safebrowsing::PlatformType FetchThreatListUpdatesRequest_ListUpdateRequest::platform_type() const { |
4593 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.platform_type) |
4594 | 0 | return static_cast< ::mozilla::safebrowsing::PlatformType >(platform_type_); |
4595 | 0 | } |
4596 | 0 | inline void FetchThreatListUpdatesRequest_ListUpdateRequest::set_platform_type(::mozilla::safebrowsing::PlatformType value) { |
4597 | 0 | assert(::mozilla::safebrowsing::PlatformType_IsValid(value)); |
4598 | 0 | set_has_platform_type(); |
4599 | 0 | platform_type_ = value; |
4600 | 0 | // @@protoc_insertion_point(field_set:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.platform_type) |
4601 | 0 | } |
4602 | | |
4603 | | // optional .mozilla.safebrowsing.ThreatEntryType threat_entry_type = 5; |
4604 | 0 | inline bool FetchThreatListUpdatesRequest_ListUpdateRequest::has_threat_entry_type() const { |
4605 | 0 | return (_has_bits_[0] & 0x00000010u) != 0; |
4606 | 0 | } |
4607 | 0 | inline void FetchThreatListUpdatesRequest_ListUpdateRequest::set_has_threat_entry_type() { |
4608 | 0 | _has_bits_[0] |= 0x00000010u; |
4609 | 0 | } |
4610 | 0 | inline void FetchThreatListUpdatesRequest_ListUpdateRequest::clear_has_threat_entry_type() { |
4611 | 0 | _has_bits_[0] &= ~0x00000010u; |
4612 | 0 | } |
4613 | 0 | inline void FetchThreatListUpdatesRequest_ListUpdateRequest::clear_threat_entry_type() { |
4614 | 0 | threat_entry_type_ = 0; |
4615 | 0 | clear_has_threat_entry_type(); |
4616 | 0 | } |
4617 | 0 | inline ::mozilla::safebrowsing::ThreatEntryType FetchThreatListUpdatesRequest_ListUpdateRequest::threat_entry_type() const { |
4618 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.threat_entry_type) |
4619 | 0 | return static_cast< ::mozilla::safebrowsing::ThreatEntryType >(threat_entry_type_); |
4620 | 0 | } |
4621 | 0 | inline void FetchThreatListUpdatesRequest_ListUpdateRequest::set_threat_entry_type(::mozilla::safebrowsing::ThreatEntryType value) { |
4622 | 0 | assert(::mozilla::safebrowsing::ThreatEntryType_IsValid(value)); |
4623 | 0 | set_has_threat_entry_type(); |
4624 | 0 | threat_entry_type_ = value; |
4625 | 0 | // @@protoc_insertion_point(field_set:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.threat_entry_type) |
4626 | 0 | } |
4627 | | |
4628 | | // optional bytes state = 3; |
4629 | 0 | inline bool FetchThreatListUpdatesRequest_ListUpdateRequest::has_state() const { |
4630 | 0 | return (_has_bits_[0] & 0x00000001u) != 0; |
4631 | 0 | } |
4632 | 0 | inline void FetchThreatListUpdatesRequest_ListUpdateRequest::set_has_state() { |
4633 | 0 | _has_bits_[0] |= 0x00000001u; |
4634 | 0 | } |
4635 | 0 | inline void FetchThreatListUpdatesRequest_ListUpdateRequest::clear_has_state() { |
4636 | 0 | _has_bits_[0] &= ~0x00000001u; |
4637 | 0 | } |
4638 | 0 | inline void FetchThreatListUpdatesRequest_ListUpdateRequest::clear_state() { |
4639 | 0 | state_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
4640 | 0 | clear_has_state(); |
4641 | 0 | } |
4642 | 0 | inline const ::std::string& FetchThreatListUpdatesRequest_ListUpdateRequest::state() const { |
4643 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.state) |
4644 | 0 | return state_.GetNoArena(); |
4645 | 0 | } |
4646 | 0 | inline void FetchThreatListUpdatesRequest_ListUpdateRequest::set_state(const ::std::string& value) { |
4647 | 0 | set_has_state(); |
4648 | 0 | state_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
4649 | 0 | // @@protoc_insertion_point(field_set:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.state) |
4650 | 0 | } |
4651 | | #if LANG_CXX11 |
4652 | 0 | inline void FetchThreatListUpdatesRequest_ListUpdateRequest::set_state(::std::string&& value) { |
4653 | 0 | set_has_state(); |
4654 | 0 | state_.SetNoArena( |
4655 | 0 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
4656 | 0 | // @@protoc_insertion_point(field_set_rvalue:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.state) |
4657 | 0 | } |
4658 | | #endif |
4659 | 0 | inline void FetchThreatListUpdatesRequest_ListUpdateRequest::set_state(const char* value) { |
4660 | 0 | GOOGLE_DCHECK(value != NULL); |
4661 | 0 | set_has_state(); |
4662 | 0 | state_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
4663 | 0 | // @@protoc_insertion_point(field_set_char:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.state) |
4664 | 0 | } |
4665 | 0 | inline void FetchThreatListUpdatesRequest_ListUpdateRequest::set_state(const void* value, size_t size) { |
4666 | 0 | set_has_state(); |
4667 | 0 | state_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
4668 | 0 | ::std::string(reinterpret_cast<const char*>(value), size)); |
4669 | 0 | // @@protoc_insertion_point(field_set_pointer:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.state) |
4670 | 0 | } |
4671 | 0 | inline ::std::string* FetchThreatListUpdatesRequest_ListUpdateRequest::mutable_state() { |
4672 | 0 | set_has_state(); |
4673 | 0 | // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.state) |
4674 | 0 | return state_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
4675 | 0 | } |
4676 | 0 | inline ::std::string* FetchThreatListUpdatesRequest_ListUpdateRequest::release_state() { |
4677 | 0 | // @@protoc_insertion_point(field_release:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.state) |
4678 | 0 | clear_has_state(); |
4679 | 0 | return state_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
4680 | 0 | } |
4681 | 0 | inline void FetchThreatListUpdatesRequest_ListUpdateRequest::set_allocated_state(::std::string* state) { |
4682 | 0 | if (state != NULL) { |
4683 | 0 | set_has_state(); |
4684 | 0 | } else { |
4685 | 0 | clear_has_state(); |
4686 | 0 | } |
4687 | 0 | state_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), state); |
4688 | 0 | // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.state) |
4689 | 0 | } |
4690 | | |
4691 | | // optional .mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.Constraints constraints = 4; |
4692 | 0 | inline bool FetchThreatListUpdatesRequest_ListUpdateRequest::has_constraints() const { |
4693 | 0 | return (_has_bits_[0] & 0x00000002u) != 0; |
4694 | 0 | } |
4695 | 0 | inline void FetchThreatListUpdatesRequest_ListUpdateRequest::set_has_constraints() { |
4696 | 0 | _has_bits_[0] |= 0x00000002u; |
4697 | 0 | } |
4698 | 0 | inline void FetchThreatListUpdatesRequest_ListUpdateRequest::clear_has_constraints() { |
4699 | 0 | _has_bits_[0] &= ~0x00000002u; |
4700 | 0 | } |
4701 | 0 | inline void FetchThreatListUpdatesRequest_ListUpdateRequest::clear_constraints() { |
4702 | 0 | if (constraints_ != NULL) constraints_->::mozilla::safebrowsing::FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints::Clear(); |
4703 | 0 | clear_has_constraints(); |
4704 | 0 | } |
4705 | 0 | inline const ::mozilla::safebrowsing::FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints& FetchThreatListUpdatesRequest_ListUpdateRequest::constraints() const { |
4706 | 0 | const ::mozilla::safebrowsing::FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints* p = constraints_; |
4707 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.constraints) |
4708 | 0 | return p != NULL ? *p : *reinterpret_cast<const ::mozilla::safebrowsing::FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints*>( |
4709 | 0 | &::mozilla::safebrowsing::_FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints_default_instance_); |
4710 | 0 | } |
4711 | 0 | inline ::mozilla::safebrowsing::FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints* FetchThreatListUpdatesRequest_ListUpdateRequest::mutable_constraints() { |
4712 | 0 | set_has_constraints(); |
4713 | 0 | if (constraints_ == NULL) { |
4714 | 0 | constraints_ = new ::mozilla::safebrowsing::FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints; |
4715 | 0 | } |
4716 | 0 | // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.constraints) |
4717 | 0 | return constraints_; |
4718 | 0 | } |
4719 | 0 | inline ::mozilla::safebrowsing::FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints* FetchThreatListUpdatesRequest_ListUpdateRequest::release_constraints() { |
4720 | 0 | // @@protoc_insertion_point(field_release:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.constraints) |
4721 | 0 | clear_has_constraints(); |
4722 | 0 | ::mozilla::safebrowsing::FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints* temp = constraints_; |
4723 | 0 | constraints_ = NULL; |
4724 | 0 | return temp; |
4725 | 0 | } |
4726 | 0 | inline void FetchThreatListUpdatesRequest_ListUpdateRequest::set_allocated_constraints(::mozilla::safebrowsing::FetchThreatListUpdatesRequest_ListUpdateRequest_Constraints* constraints) { |
4727 | 0 | delete constraints_; |
4728 | 0 | constraints_ = constraints; |
4729 | 0 | if (constraints) { |
4730 | 0 | set_has_constraints(); |
4731 | 0 | } else { |
4732 | 0 | clear_has_constraints(); |
4733 | 0 | } |
4734 | 0 | // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest.constraints) |
4735 | 0 | } |
4736 | | |
4737 | | // ------------------------------------------------------------------- |
4738 | | |
4739 | | // FetchThreatListUpdatesRequest |
4740 | | |
4741 | | // optional .mozilla.safebrowsing.ClientInfo client = 1; |
4742 | 0 | inline bool FetchThreatListUpdatesRequest::has_client() const { |
4743 | 0 | return (_has_bits_[0] & 0x00000001u) != 0; |
4744 | 0 | } |
4745 | 0 | inline void FetchThreatListUpdatesRequest::set_has_client() { |
4746 | 0 | _has_bits_[0] |= 0x00000001u; |
4747 | 0 | } |
4748 | 0 | inline void FetchThreatListUpdatesRequest::clear_has_client() { |
4749 | 0 | _has_bits_[0] &= ~0x00000001u; |
4750 | 0 | } |
4751 | 0 | inline void FetchThreatListUpdatesRequest::clear_client() { |
4752 | 0 | if (client_ != NULL) client_->::mozilla::safebrowsing::ClientInfo::Clear(); |
4753 | 0 | clear_has_client(); |
4754 | 0 | } |
4755 | 0 | inline const ::mozilla::safebrowsing::ClientInfo& FetchThreatListUpdatesRequest::client() const { |
4756 | 0 | const ::mozilla::safebrowsing::ClientInfo* p = client_; |
4757 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesRequest.client) |
4758 | 0 | return p != NULL ? *p : *reinterpret_cast<const ::mozilla::safebrowsing::ClientInfo*>( |
4759 | 0 | &::mozilla::safebrowsing::_ClientInfo_default_instance_); |
4760 | 0 | } |
4761 | 0 | inline ::mozilla::safebrowsing::ClientInfo* FetchThreatListUpdatesRequest::mutable_client() { |
4762 | 0 | set_has_client(); |
4763 | 0 | if (client_ == NULL) { |
4764 | 0 | client_ = new ::mozilla::safebrowsing::ClientInfo; |
4765 | 0 | } |
4766 | 0 | // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.FetchThreatListUpdatesRequest.client) |
4767 | 0 | return client_; |
4768 | 0 | } |
4769 | 0 | inline ::mozilla::safebrowsing::ClientInfo* FetchThreatListUpdatesRequest::release_client() { |
4770 | 0 | // @@protoc_insertion_point(field_release:mozilla.safebrowsing.FetchThreatListUpdatesRequest.client) |
4771 | 0 | clear_has_client(); |
4772 | 0 | ::mozilla::safebrowsing::ClientInfo* temp = client_; |
4773 | 0 | client_ = NULL; |
4774 | 0 | return temp; |
4775 | 0 | } |
4776 | 0 | inline void FetchThreatListUpdatesRequest::set_allocated_client(::mozilla::safebrowsing::ClientInfo* client) { |
4777 | 0 | delete client_; |
4778 | 0 | client_ = client; |
4779 | 0 | if (client) { |
4780 | 0 | set_has_client(); |
4781 | 0 | } else { |
4782 | 0 | clear_has_client(); |
4783 | 0 | } |
4784 | 0 | // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.FetchThreatListUpdatesRequest.client) |
4785 | 0 | } |
4786 | | |
4787 | | // repeated .mozilla.safebrowsing.FetchThreatListUpdatesRequest.ListUpdateRequest list_update_requests = 3; |
4788 | 0 | inline int FetchThreatListUpdatesRequest::list_update_requests_size() const { |
4789 | 0 | return list_update_requests_.size(); |
4790 | 0 | } |
4791 | 0 | inline void FetchThreatListUpdatesRequest::clear_list_update_requests() { |
4792 | 0 | list_update_requests_.Clear(); |
4793 | 0 | } |
4794 | 0 | inline const ::mozilla::safebrowsing::FetchThreatListUpdatesRequest_ListUpdateRequest& FetchThreatListUpdatesRequest::list_update_requests(int index) const { |
4795 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesRequest.list_update_requests) |
4796 | 0 | return list_update_requests_.Get(index); |
4797 | 0 | } |
4798 | 0 | inline ::mozilla::safebrowsing::FetchThreatListUpdatesRequest_ListUpdateRequest* FetchThreatListUpdatesRequest::mutable_list_update_requests(int index) { |
4799 | 0 | // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.FetchThreatListUpdatesRequest.list_update_requests) |
4800 | 0 | return list_update_requests_.Mutable(index); |
4801 | 0 | } |
4802 | 0 | inline ::mozilla::safebrowsing::FetchThreatListUpdatesRequest_ListUpdateRequest* FetchThreatListUpdatesRequest::add_list_update_requests() { |
4803 | 0 | // @@protoc_insertion_point(field_add:mozilla.safebrowsing.FetchThreatListUpdatesRequest.list_update_requests) |
4804 | 0 | return list_update_requests_.Add(); |
4805 | 0 | } |
4806 | | inline ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::FetchThreatListUpdatesRequest_ListUpdateRequest >* |
4807 | 0 | FetchThreatListUpdatesRequest::mutable_list_update_requests() { |
4808 | 0 | // @@protoc_insertion_point(field_mutable_list:mozilla.safebrowsing.FetchThreatListUpdatesRequest.list_update_requests) |
4809 | 0 | return &list_update_requests_; |
4810 | 0 | } |
4811 | | inline const ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::FetchThreatListUpdatesRequest_ListUpdateRequest >& |
4812 | 0 | FetchThreatListUpdatesRequest::list_update_requests() const { |
4813 | 0 | // @@protoc_insertion_point(field_list:mozilla.safebrowsing.FetchThreatListUpdatesRequest.list_update_requests) |
4814 | 0 | return list_update_requests_; |
4815 | 0 | } |
4816 | | |
4817 | | // optional .mozilla.safebrowsing.ChromeClientInfo chrome_client_info = 4; |
4818 | 0 | inline bool FetchThreatListUpdatesRequest::has_chrome_client_info() const { |
4819 | 0 | return (_has_bits_[0] & 0x00000002u) != 0; |
4820 | 0 | } |
4821 | 0 | inline void FetchThreatListUpdatesRequest::set_has_chrome_client_info() { |
4822 | 0 | _has_bits_[0] |= 0x00000002u; |
4823 | 0 | } |
4824 | 0 | inline void FetchThreatListUpdatesRequest::clear_has_chrome_client_info() { |
4825 | 0 | _has_bits_[0] &= ~0x00000002u; |
4826 | 0 | } |
4827 | 0 | inline void FetchThreatListUpdatesRequest::clear_chrome_client_info() { |
4828 | 0 | if (chrome_client_info_ != NULL) chrome_client_info_->::mozilla::safebrowsing::ChromeClientInfo::Clear(); |
4829 | 0 | clear_has_chrome_client_info(); |
4830 | 0 | } |
4831 | 0 | inline const ::mozilla::safebrowsing::ChromeClientInfo& FetchThreatListUpdatesRequest::chrome_client_info() const { |
4832 | 0 | const ::mozilla::safebrowsing::ChromeClientInfo* p = chrome_client_info_; |
4833 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesRequest.chrome_client_info) |
4834 | 0 | return p != NULL ? *p : *reinterpret_cast<const ::mozilla::safebrowsing::ChromeClientInfo*>( |
4835 | 0 | &::mozilla::safebrowsing::_ChromeClientInfo_default_instance_); |
4836 | 0 | } |
4837 | 0 | inline ::mozilla::safebrowsing::ChromeClientInfo* FetchThreatListUpdatesRequest::mutable_chrome_client_info() { |
4838 | 0 | set_has_chrome_client_info(); |
4839 | 0 | if (chrome_client_info_ == NULL) { |
4840 | 0 | chrome_client_info_ = new ::mozilla::safebrowsing::ChromeClientInfo; |
4841 | 0 | } |
4842 | 0 | // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.FetchThreatListUpdatesRequest.chrome_client_info) |
4843 | 0 | return chrome_client_info_; |
4844 | 0 | } |
4845 | 0 | inline ::mozilla::safebrowsing::ChromeClientInfo* FetchThreatListUpdatesRequest::release_chrome_client_info() { |
4846 | 0 | // @@protoc_insertion_point(field_release:mozilla.safebrowsing.FetchThreatListUpdatesRequest.chrome_client_info) |
4847 | 0 | clear_has_chrome_client_info(); |
4848 | 0 | ::mozilla::safebrowsing::ChromeClientInfo* temp = chrome_client_info_; |
4849 | 0 | chrome_client_info_ = NULL; |
4850 | 0 | return temp; |
4851 | 0 | } |
4852 | 0 | inline void FetchThreatListUpdatesRequest::set_allocated_chrome_client_info(::mozilla::safebrowsing::ChromeClientInfo* chrome_client_info) { |
4853 | 0 | delete chrome_client_info_; |
4854 | 0 | chrome_client_info_ = chrome_client_info; |
4855 | 0 | if (chrome_client_info) { |
4856 | 0 | set_has_chrome_client_info(); |
4857 | 0 | } else { |
4858 | 0 | clear_has_chrome_client_info(); |
4859 | 0 | } |
4860 | 0 | // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.FetchThreatListUpdatesRequest.chrome_client_info) |
4861 | 0 | } |
4862 | | |
4863 | | // ------------------------------------------------------------------- |
4864 | | |
4865 | | // FetchThreatListUpdatesResponse_ListUpdateResponse |
4866 | | |
4867 | | // optional .mozilla.safebrowsing.ThreatType threat_type = 1; |
4868 | 0 | inline bool FetchThreatListUpdatesResponse_ListUpdateResponse::has_threat_type() const { |
4869 | 0 | return (_has_bits_[0] & 0x00000004u) != 0; |
4870 | 0 | } |
4871 | 0 | inline void FetchThreatListUpdatesResponse_ListUpdateResponse::set_has_threat_type() { |
4872 | 0 | _has_bits_[0] |= 0x00000004u; |
4873 | 0 | } |
4874 | 0 | inline void FetchThreatListUpdatesResponse_ListUpdateResponse::clear_has_threat_type() { |
4875 | 0 | _has_bits_[0] &= ~0x00000004u; |
4876 | 0 | } |
4877 | 0 | inline void FetchThreatListUpdatesResponse_ListUpdateResponse::clear_threat_type() { |
4878 | 0 | threat_type_ = 0; |
4879 | 0 | clear_has_threat_type(); |
4880 | 0 | } |
4881 | 0 | inline ::mozilla::safebrowsing::ThreatType FetchThreatListUpdatesResponse_ListUpdateResponse::threat_type() const { |
4882 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.threat_type) |
4883 | 0 | return static_cast< ::mozilla::safebrowsing::ThreatType >(threat_type_); |
4884 | 0 | } |
4885 | 0 | inline void FetchThreatListUpdatesResponse_ListUpdateResponse::set_threat_type(::mozilla::safebrowsing::ThreatType value) { |
4886 | 0 | assert(::mozilla::safebrowsing::ThreatType_IsValid(value)); |
4887 | 0 | set_has_threat_type(); |
4888 | 0 | threat_type_ = value; |
4889 | 0 | // @@protoc_insertion_point(field_set:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.threat_type) |
4890 | 0 | } |
4891 | | |
4892 | | // optional .mozilla.safebrowsing.ThreatEntryType threat_entry_type = 2; |
4893 | 0 | inline bool FetchThreatListUpdatesResponse_ListUpdateResponse::has_threat_entry_type() const { |
4894 | 0 | return (_has_bits_[0] & 0x00000008u) != 0; |
4895 | 0 | } |
4896 | 0 | inline void FetchThreatListUpdatesResponse_ListUpdateResponse::set_has_threat_entry_type() { |
4897 | 0 | _has_bits_[0] |= 0x00000008u; |
4898 | 0 | } |
4899 | 0 | inline void FetchThreatListUpdatesResponse_ListUpdateResponse::clear_has_threat_entry_type() { |
4900 | 0 | _has_bits_[0] &= ~0x00000008u; |
4901 | 0 | } |
4902 | 0 | inline void FetchThreatListUpdatesResponse_ListUpdateResponse::clear_threat_entry_type() { |
4903 | 0 | threat_entry_type_ = 0; |
4904 | 0 | clear_has_threat_entry_type(); |
4905 | 0 | } |
4906 | 0 | inline ::mozilla::safebrowsing::ThreatEntryType FetchThreatListUpdatesResponse_ListUpdateResponse::threat_entry_type() const { |
4907 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.threat_entry_type) |
4908 | 0 | return static_cast< ::mozilla::safebrowsing::ThreatEntryType >(threat_entry_type_); |
4909 | 0 | } |
4910 | 0 | inline void FetchThreatListUpdatesResponse_ListUpdateResponse::set_threat_entry_type(::mozilla::safebrowsing::ThreatEntryType value) { |
4911 | 0 | assert(::mozilla::safebrowsing::ThreatEntryType_IsValid(value)); |
4912 | 0 | set_has_threat_entry_type(); |
4913 | 0 | threat_entry_type_ = value; |
4914 | 0 | // @@protoc_insertion_point(field_set:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.threat_entry_type) |
4915 | 0 | } |
4916 | | |
4917 | | // optional .mozilla.safebrowsing.PlatformType platform_type = 3; |
4918 | 0 | inline bool FetchThreatListUpdatesResponse_ListUpdateResponse::has_platform_type() const { |
4919 | 0 | return (_has_bits_[0] & 0x00000010u) != 0; |
4920 | 0 | } |
4921 | 0 | inline void FetchThreatListUpdatesResponse_ListUpdateResponse::set_has_platform_type() { |
4922 | 0 | _has_bits_[0] |= 0x00000010u; |
4923 | 0 | } |
4924 | 0 | inline void FetchThreatListUpdatesResponse_ListUpdateResponse::clear_has_platform_type() { |
4925 | 0 | _has_bits_[0] &= ~0x00000010u; |
4926 | 0 | } |
4927 | 0 | inline void FetchThreatListUpdatesResponse_ListUpdateResponse::clear_platform_type() { |
4928 | 0 | platform_type_ = 0; |
4929 | 0 | clear_has_platform_type(); |
4930 | 0 | } |
4931 | 0 | inline ::mozilla::safebrowsing::PlatformType FetchThreatListUpdatesResponse_ListUpdateResponse::platform_type() const { |
4932 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.platform_type) |
4933 | 0 | return static_cast< ::mozilla::safebrowsing::PlatformType >(platform_type_); |
4934 | 0 | } |
4935 | 0 | inline void FetchThreatListUpdatesResponse_ListUpdateResponse::set_platform_type(::mozilla::safebrowsing::PlatformType value) { |
4936 | 0 | assert(::mozilla::safebrowsing::PlatformType_IsValid(value)); |
4937 | 0 | set_has_platform_type(); |
4938 | 0 | platform_type_ = value; |
4939 | 0 | // @@protoc_insertion_point(field_set:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.platform_type) |
4940 | 0 | } |
4941 | | |
4942 | | // optional .mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.ResponseType response_type = 4; |
4943 | 0 | inline bool FetchThreatListUpdatesResponse_ListUpdateResponse::has_response_type() const { |
4944 | 0 | return (_has_bits_[0] & 0x00000020u) != 0; |
4945 | 0 | } |
4946 | 0 | inline void FetchThreatListUpdatesResponse_ListUpdateResponse::set_has_response_type() { |
4947 | 0 | _has_bits_[0] |= 0x00000020u; |
4948 | 0 | } |
4949 | 0 | inline void FetchThreatListUpdatesResponse_ListUpdateResponse::clear_has_response_type() { |
4950 | 0 | _has_bits_[0] &= ~0x00000020u; |
4951 | 0 | } |
4952 | 0 | inline void FetchThreatListUpdatesResponse_ListUpdateResponse::clear_response_type() { |
4953 | 0 | response_type_ = 0; |
4954 | 0 | clear_has_response_type(); |
4955 | 0 | } |
4956 | 0 | inline ::mozilla::safebrowsing::FetchThreatListUpdatesResponse_ListUpdateResponse_ResponseType FetchThreatListUpdatesResponse_ListUpdateResponse::response_type() const { |
4957 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.response_type) |
4958 | 0 | return static_cast< ::mozilla::safebrowsing::FetchThreatListUpdatesResponse_ListUpdateResponse_ResponseType >(response_type_); |
4959 | 0 | } |
4960 | 0 | inline void FetchThreatListUpdatesResponse_ListUpdateResponse::set_response_type(::mozilla::safebrowsing::FetchThreatListUpdatesResponse_ListUpdateResponse_ResponseType value) { |
4961 | 0 | assert(::mozilla::safebrowsing::FetchThreatListUpdatesResponse_ListUpdateResponse_ResponseType_IsValid(value)); |
4962 | 0 | set_has_response_type(); |
4963 | 0 | response_type_ = value; |
4964 | 0 | // @@protoc_insertion_point(field_set:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.response_type) |
4965 | 0 | } |
4966 | | |
4967 | | // repeated .mozilla.safebrowsing.ThreatEntrySet additions = 5; |
4968 | 0 | inline int FetchThreatListUpdatesResponse_ListUpdateResponse::additions_size() const { |
4969 | 0 | return additions_.size(); |
4970 | 0 | } |
4971 | 0 | inline void FetchThreatListUpdatesResponse_ListUpdateResponse::clear_additions() { |
4972 | 0 | additions_.Clear(); |
4973 | 0 | } |
4974 | 0 | inline const ::mozilla::safebrowsing::ThreatEntrySet& FetchThreatListUpdatesResponse_ListUpdateResponse::additions(int index) const { |
4975 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.additions) |
4976 | 0 | return additions_.Get(index); |
4977 | 0 | } |
4978 | 0 | inline ::mozilla::safebrowsing::ThreatEntrySet* FetchThreatListUpdatesResponse_ListUpdateResponse::mutable_additions(int index) { |
4979 | 0 | // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.additions) |
4980 | 0 | return additions_.Mutable(index); |
4981 | 0 | } |
4982 | 0 | inline ::mozilla::safebrowsing::ThreatEntrySet* FetchThreatListUpdatesResponse_ListUpdateResponse::add_additions() { |
4983 | 0 | // @@protoc_insertion_point(field_add:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.additions) |
4984 | 0 | return additions_.Add(); |
4985 | 0 | } |
4986 | | inline ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatEntrySet >* |
4987 | | FetchThreatListUpdatesResponse_ListUpdateResponse::mutable_additions() { |
4988 | | // @@protoc_insertion_point(field_mutable_list:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.additions) |
4989 | | return &additions_; |
4990 | | } |
4991 | | inline const ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatEntrySet >& |
4992 | 0 | FetchThreatListUpdatesResponse_ListUpdateResponse::additions() const { |
4993 | 0 | // @@protoc_insertion_point(field_list:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.additions) |
4994 | 0 | return additions_; |
4995 | 0 | } |
4996 | | |
4997 | | // repeated .mozilla.safebrowsing.ThreatEntrySet removals = 6; |
4998 | 0 | inline int FetchThreatListUpdatesResponse_ListUpdateResponse::removals_size() const { |
4999 | 0 | return removals_.size(); |
5000 | 0 | } |
5001 | 0 | inline void FetchThreatListUpdatesResponse_ListUpdateResponse::clear_removals() { |
5002 | 0 | removals_.Clear(); |
5003 | 0 | } |
5004 | 0 | inline const ::mozilla::safebrowsing::ThreatEntrySet& FetchThreatListUpdatesResponse_ListUpdateResponse::removals(int index) const { |
5005 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.removals) |
5006 | 0 | return removals_.Get(index); |
5007 | 0 | } |
5008 | 0 | inline ::mozilla::safebrowsing::ThreatEntrySet* FetchThreatListUpdatesResponse_ListUpdateResponse::mutable_removals(int index) { |
5009 | 0 | // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.removals) |
5010 | 0 | return removals_.Mutable(index); |
5011 | 0 | } |
5012 | 0 | inline ::mozilla::safebrowsing::ThreatEntrySet* FetchThreatListUpdatesResponse_ListUpdateResponse::add_removals() { |
5013 | 0 | // @@protoc_insertion_point(field_add:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.removals) |
5014 | 0 | return removals_.Add(); |
5015 | 0 | } |
5016 | | inline ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatEntrySet >* |
5017 | 0 | FetchThreatListUpdatesResponse_ListUpdateResponse::mutable_removals() { |
5018 | 0 | // @@protoc_insertion_point(field_mutable_list:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.removals) |
5019 | 0 | return &removals_; |
5020 | 0 | } |
5021 | | inline const ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatEntrySet >& |
5022 | 0 | FetchThreatListUpdatesResponse_ListUpdateResponse::removals() const { |
5023 | 0 | // @@protoc_insertion_point(field_list:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.removals) |
5024 | 0 | return removals_; |
5025 | 0 | } |
5026 | | |
5027 | | // optional bytes new_client_state = 7; |
5028 | 0 | inline bool FetchThreatListUpdatesResponse_ListUpdateResponse::has_new_client_state() const { |
5029 | 0 | return (_has_bits_[0] & 0x00000001u) != 0; |
5030 | 0 | } |
5031 | 0 | inline void FetchThreatListUpdatesResponse_ListUpdateResponse::set_has_new_client_state() { |
5032 | 0 | _has_bits_[0] |= 0x00000001u; |
5033 | 0 | } |
5034 | 0 | inline void FetchThreatListUpdatesResponse_ListUpdateResponse::clear_has_new_client_state() { |
5035 | 0 | _has_bits_[0] &= ~0x00000001u; |
5036 | 0 | } |
5037 | 0 | inline void FetchThreatListUpdatesResponse_ListUpdateResponse::clear_new_client_state() { |
5038 | 0 | new_client_state_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5039 | 0 | clear_has_new_client_state(); |
5040 | 0 | } |
5041 | 0 | inline const ::std::string& FetchThreatListUpdatesResponse_ListUpdateResponse::new_client_state() const { |
5042 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.new_client_state) |
5043 | 0 | return new_client_state_.GetNoArena(); |
5044 | 0 | } |
5045 | 0 | inline void FetchThreatListUpdatesResponse_ListUpdateResponse::set_new_client_state(const ::std::string& value) { |
5046 | 0 | set_has_new_client_state(); |
5047 | 0 | new_client_state_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
5048 | 0 | // @@protoc_insertion_point(field_set:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.new_client_state) |
5049 | 0 | } |
5050 | | #if LANG_CXX11 |
5051 | 0 | inline void FetchThreatListUpdatesResponse_ListUpdateResponse::set_new_client_state(::std::string&& value) { |
5052 | 0 | set_has_new_client_state(); |
5053 | 0 | new_client_state_.SetNoArena( |
5054 | 0 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
5055 | 0 | // @@protoc_insertion_point(field_set_rvalue:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.new_client_state) |
5056 | 0 | } |
5057 | | #endif |
5058 | 0 | inline void FetchThreatListUpdatesResponse_ListUpdateResponse::set_new_client_state(const char* value) { |
5059 | 0 | GOOGLE_DCHECK(value != NULL); |
5060 | 0 | set_has_new_client_state(); |
5061 | 0 | new_client_state_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
5062 | 0 | // @@protoc_insertion_point(field_set_char:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.new_client_state) |
5063 | 0 | } |
5064 | | inline void FetchThreatListUpdatesResponse_ListUpdateResponse::set_new_client_state(const void* value, size_t size) { |
5065 | | set_has_new_client_state(); |
5066 | | new_client_state_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
5067 | | ::std::string(reinterpret_cast<const char*>(value), size)); |
5068 | | // @@protoc_insertion_point(field_set_pointer:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.new_client_state) |
5069 | | } |
5070 | 0 | inline ::std::string* FetchThreatListUpdatesResponse_ListUpdateResponse::mutable_new_client_state() { |
5071 | 0 | set_has_new_client_state(); |
5072 | 0 | // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.new_client_state) |
5073 | 0 | return new_client_state_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5074 | 0 | } |
5075 | 0 | inline ::std::string* FetchThreatListUpdatesResponse_ListUpdateResponse::release_new_client_state() { |
5076 | 0 | // @@protoc_insertion_point(field_release:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.new_client_state) |
5077 | 0 | clear_has_new_client_state(); |
5078 | 0 | return new_client_state_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5079 | 0 | } |
5080 | 0 | inline void FetchThreatListUpdatesResponse_ListUpdateResponse::set_allocated_new_client_state(::std::string* new_client_state) { |
5081 | 0 | if (new_client_state != NULL) { |
5082 | 0 | set_has_new_client_state(); |
5083 | 0 | } else { |
5084 | 0 | clear_has_new_client_state(); |
5085 | 0 | } |
5086 | 0 | new_client_state_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), new_client_state); |
5087 | 0 | // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.new_client_state) |
5088 | 0 | } |
5089 | | |
5090 | | // optional .mozilla.safebrowsing.Checksum checksum = 8; |
5091 | 0 | inline bool FetchThreatListUpdatesResponse_ListUpdateResponse::has_checksum() const { |
5092 | 0 | return (_has_bits_[0] & 0x00000002u) != 0; |
5093 | 0 | } |
5094 | 0 | inline void FetchThreatListUpdatesResponse_ListUpdateResponse::set_has_checksum() { |
5095 | 0 | _has_bits_[0] |= 0x00000002u; |
5096 | 0 | } |
5097 | 0 | inline void FetchThreatListUpdatesResponse_ListUpdateResponse::clear_has_checksum() { |
5098 | 0 | _has_bits_[0] &= ~0x00000002u; |
5099 | 0 | } |
5100 | 0 | inline void FetchThreatListUpdatesResponse_ListUpdateResponse::clear_checksum() { |
5101 | 0 | if (checksum_ != NULL) checksum_->::mozilla::safebrowsing::Checksum::Clear(); |
5102 | 0 | clear_has_checksum(); |
5103 | 0 | } |
5104 | 0 | inline const ::mozilla::safebrowsing::Checksum& FetchThreatListUpdatesResponse_ListUpdateResponse::checksum() const { |
5105 | 0 | const ::mozilla::safebrowsing::Checksum* p = checksum_; |
5106 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.checksum) |
5107 | 0 | return p != NULL ? *p : *reinterpret_cast<const ::mozilla::safebrowsing::Checksum*>( |
5108 | 0 | &::mozilla::safebrowsing::_Checksum_default_instance_); |
5109 | 0 | } |
5110 | 0 | inline ::mozilla::safebrowsing::Checksum* FetchThreatListUpdatesResponse_ListUpdateResponse::mutable_checksum() { |
5111 | 0 | set_has_checksum(); |
5112 | 0 | if (checksum_ == NULL) { |
5113 | 0 | checksum_ = new ::mozilla::safebrowsing::Checksum; |
5114 | 0 | } |
5115 | 0 | // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.checksum) |
5116 | 0 | return checksum_; |
5117 | 0 | } |
5118 | 0 | inline ::mozilla::safebrowsing::Checksum* FetchThreatListUpdatesResponse_ListUpdateResponse::release_checksum() { |
5119 | 0 | // @@protoc_insertion_point(field_release:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.checksum) |
5120 | 0 | clear_has_checksum(); |
5121 | 0 | ::mozilla::safebrowsing::Checksum* temp = checksum_; |
5122 | 0 | checksum_ = NULL; |
5123 | 0 | return temp; |
5124 | 0 | } |
5125 | 0 | inline void FetchThreatListUpdatesResponse_ListUpdateResponse::set_allocated_checksum(::mozilla::safebrowsing::Checksum* checksum) { |
5126 | 0 | delete checksum_; |
5127 | 0 | checksum_ = checksum; |
5128 | 0 | if (checksum) { |
5129 | 0 | set_has_checksum(); |
5130 | 0 | } else { |
5131 | 0 | clear_has_checksum(); |
5132 | 0 | } |
5133 | 0 | // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse.checksum) |
5134 | 0 | } |
5135 | | |
5136 | | // ------------------------------------------------------------------- |
5137 | | |
5138 | | // FetchThreatListUpdatesResponse |
5139 | | |
5140 | | // repeated .mozilla.safebrowsing.FetchThreatListUpdatesResponse.ListUpdateResponse list_update_responses = 1; |
5141 | 0 | inline int FetchThreatListUpdatesResponse::list_update_responses_size() const { |
5142 | 0 | return list_update_responses_.size(); |
5143 | 0 | } |
5144 | 0 | inline void FetchThreatListUpdatesResponse::clear_list_update_responses() { |
5145 | 0 | list_update_responses_.Clear(); |
5146 | 0 | } |
5147 | 0 | inline const ::mozilla::safebrowsing::FetchThreatListUpdatesResponse_ListUpdateResponse& FetchThreatListUpdatesResponse::list_update_responses(int index) const { |
5148 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesResponse.list_update_responses) |
5149 | 0 | return list_update_responses_.Get(index); |
5150 | 0 | } |
5151 | 0 | inline ::mozilla::safebrowsing::FetchThreatListUpdatesResponse_ListUpdateResponse* FetchThreatListUpdatesResponse::mutable_list_update_responses(int index) { |
5152 | 0 | // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.FetchThreatListUpdatesResponse.list_update_responses) |
5153 | 0 | return list_update_responses_.Mutable(index); |
5154 | 0 | } |
5155 | 0 | inline ::mozilla::safebrowsing::FetchThreatListUpdatesResponse_ListUpdateResponse* FetchThreatListUpdatesResponse::add_list_update_responses() { |
5156 | 0 | // @@protoc_insertion_point(field_add:mozilla.safebrowsing.FetchThreatListUpdatesResponse.list_update_responses) |
5157 | 0 | return list_update_responses_.Add(); |
5158 | 0 | } |
5159 | | inline ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::FetchThreatListUpdatesResponse_ListUpdateResponse >* |
5160 | | FetchThreatListUpdatesResponse::mutable_list_update_responses() { |
5161 | | // @@protoc_insertion_point(field_mutable_list:mozilla.safebrowsing.FetchThreatListUpdatesResponse.list_update_responses) |
5162 | | return &list_update_responses_; |
5163 | | } |
5164 | | inline const ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::FetchThreatListUpdatesResponse_ListUpdateResponse >& |
5165 | 0 | FetchThreatListUpdatesResponse::list_update_responses() const { |
5166 | 0 | // @@protoc_insertion_point(field_list:mozilla.safebrowsing.FetchThreatListUpdatesResponse.list_update_responses) |
5167 | 0 | return list_update_responses_; |
5168 | 0 | } |
5169 | | |
5170 | | // optional .mozilla.safebrowsing.Duration minimum_wait_duration = 2; |
5171 | 0 | inline bool FetchThreatListUpdatesResponse::has_minimum_wait_duration() const { |
5172 | 0 | return (_has_bits_[0] & 0x00000001u) != 0; |
5173 | 0 | } |
5174 | 0 | inline void FetchThreatListUpdatesResponse::set_has_minimum_wait_duration() { |
5175 | 0 | _has_bits_[0] |= 0x00000001u; |
5176 | 0 | } |
5177 | 0 | inline void FetchThreatListUpdatesResponse::clear_has_minimum_wait_duration() { |
5178 | 0 | _has_bits_[0] &= ~0x00000001u; |
5179 | 0 | } |
5180 | 0 | inline void FetchThreatListUpdatesResponse::clear_minimum_wait_duration() { |
5181 | 0 | if (minimum_wait_duration_ != NULL) minimum_wait_duration_->::mozilla::safebrowsing::Duration::Clear(); |
5182 | 0 | clear_has_minimum_wait_duration(); |
5183 | 0 | } |
5184 | 0 | inline const ::mozilla::safebrowsing::Duration& FetchThreatListUpdatesResponse::minimum_wait_duration() const { |
5185 | 0 | const ::mozilla::safebrowsing::Duration* p = minimum_wait_duration_; |
5186 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FetchThreatListUpdatesResponse.minimum_wait_duration) |
5187 | 0 | return p != NULL ? *p : *reinterpret_cast<const ::mozilla::safebrowsing::Duration*>( |
5188 | 0 | &::mozilla::safebrowsing::_Duration_default_instance_); |
5189 | 0 | } |
5190 | 0 | inline ::mozilla::safebrowsing::Duration* FetchThreatListUpdatesResponse::mutable_minimum_wait_duration() { |
5191 | 0 | set_has_minimum_wait_duration(); |
5192 | 0 | if (minimum_wait_duration_ == NULL) { |
5193 | 0 | minimum_wait_duration_ = new ::mozilla::safebrowsing::Duration; |
5194 | 0 | } |
5195 | 0 | // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.FetchThreatListUpdatesResponse.minimum_wait_duration) |
5196 | 0 | return minimum_wait_duration_; |
5197 | 0 | } |
5198 | 0 | inline ::mozilla::safebrowsing::Duration* FetchThreatListUpdatesResponse::release_minimum_wait_duration() { |
5199 | 0 | // @@protoc_insertion_point(field_release:mozilla.safebrowsing.FetchThreatListUpdatesResponse.minimum_wait_duration) |
5200 | 0 | clear_has_minimum_wait_duration(); |
5201 | 0 | ::mozilla::safebrowsing::Duration* temp = minimum_wait_duration_; |
5202 | 0 | minimum_wait_duration_ = NULL; |
5203 | 0 | return temp; |
5204 | 0 | } |
5205 | 0 | inline void FetchThreatListUpdatesResponse::set_allocated_minimum_wait_duration(::mozilla::safebrowsing::Duration* minimum_wait_duration) { |
5206 | 0 | delete minimum_wait_duration_; |
5207 | 0 | minimum_wait_duration_ = minimum_wait_duration; |
5208 | 0 | if (minimum_wait_duration) { |
5209 | 0 | set_has_minimum_wait_duration(); |
5210 | 0 | } else { |
5211 | 0 | clear_has_minimum_wait_duration(); |
5212 | 0 | } |
5213 | 0 | // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.FetchThreatListUpdatesResponse.minimum_wait_duration) |
5214 | 0 | } |
5215 | | |
5216 | | // ------------------------------------------------------------------- |
5217 | | |
5218 | | // FindFullHashesRequest |
5219 | | |
5220 | | // optional .mozilla.safebrowsing.ClientInfo client = 1; |
5221 | 0 | inline bool FindFullHashesRequest::has_client() const { |
5222 | 0 | return (_has_bits_[0] & 0x00000001u) != 0; |
5223 | 0 | } |
5224 | 0 | inline void FindFullHashesRequest::set_has_client() { |
5225 | 0 | _has_bits_[0] |= 0x00000001u; |
5226 | 0 | } |
5227 | 0 | inline void FindFullHashesRequest::clear_has_client() { |
5228 | 0 | _has_bits_[0] &= ~0x00000001u; |
5229 | 0 | } |
5230 | 0 | inline void FindFullHashesRequest::clear_client() { |
5231 | 0 | if (client_ != NULL) client_->::mozilla::safebrowsing::ClientInfo::Clear(); |
5232 | 0 | clear_has_client(); |
5233 | 0 | } |
5234 | 0 | inline const ::mozilla::safebrowsing::ClientInfo& FindFullHashesRequest::client() const { |
5235 | 0 | const ::mozilla::safebrowsing::ClientInfo* p = client_; |
5236 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FindFullHashesRequest.client) |
5237 | 0 | return p != NULL ? *p : *reinterpret_cast<const ::mozilla::safebrowsing::ClientInfo*>( |
5238 | 0 | &::mozilla::safebrowsing::_ClientInfo_default_instance_); |
5239 | 0 | } |
5240 | 0 | inline ::mozilla::safebrowsing::ClientInfo* FindFullHashesRequest::mutable_client() { |
5241 | 0 | set_has_client(); |
5242 | 0 | if (client_ == NULL) { |
5243 | 0 | client_ = new ::mozilla::safebrowsing::ClientInfo; |
5244 | 0 | } |
5245 | 0 | // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.FindFullHashesRequest.client) |
5246 | 0 | return client_; |
5247 | 0 | } |
5248 | 0 | inline ::mozilla::safebrowsing::ClientInfo* FindFullHashesRequest::release_client() { |
5249 | 0 | // @@protoc_insertion_point(field_release:mozilla.safebrowsing.FindFullHashesRequest.client) |
5250 | 0 | clear_has_client(); |
5251 | 0 | ::mozilla::safebrowsing::ClientInfo* temp = client_; |
5252 | 0 | client_ = NULL; |
5253 | 0 | return temp; |
5254 | 0 | } |
5255 | 0 | inline void FindFullHashesRequest::set_allocated_client(::mozilla::safebrowsing::ClientInfo* client) { |
5256 | 0 | delete client_; |
5257 | 0 | client_ = client; |
5258 | 0 | if (client) { |
5259 | 0 | set_has_client(); |
5260 | 0 | } else { |
5261 | 0 | clear_has_client(); |
5262 | 0 | } |
5263 | 0 | // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.FindFullHashesRequest.client) |
5264 | 0 | } |
5265 | | |
5266 | | // repeated bytes client_states = 2; |
5267 | 0 | inline int FindFullHashesRequest::client_states_size() const { |
5268 | 0 | return client_states_.size(); |
5269 | 0 | } |
5270 | 0 | inline void FindFullHashesRequest::clear_client_states() { |
5271 | 0 | client_states_.Clear(); |
5272 | 0 | } |
5273 | 0 | inline const ::std::string& FindFullHashesRequest::client_states(int index) const { |
5274 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FindFullHashesRequest.client_states) |
5275 | 0 | return client_states_.Get(index); |
5276 | 0 | } |
5277 | 0 | inline ::std::string* FindFullHashesRequest::mutable_client_states(int index) { |
5278 | 0 | // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.FindFullHashesRequest.client_states) |
5279 | 0 | return client_states_.Mutable(index); |
5280 | 0 | } |
5281 | 0 | inline void FindFullHashesRequest::set_client_states(int index, const ::std::string& value) { |
5282 | 0 | // @@protoc_insertion_point(field_set:mozilla.safebrowsing.FindFullHashesRequest.client_states) |
5283 | 0 | client_states_.Mutable(index)->assign(value); |
5284 | 0 | } |
5285 | | #if LANG_CXX11 |
5286 | 0 | inline void FindFullHashesRequest::set_client_states(int index, ::std::string&& value) { |
5287 | 0 | // @@protoc_insertion_point(field_set:mozilla.safebrowsing.FindFullHashesRequest.client_states) |
5288 | 0 | client_states_.Mutable(index)->assign(std::move(value)); |
5289 | 0 | } |
5290 | | #endif |
5291 | 0 | inline void FindFullHashesRequest::set_client_states(int index, const char* value) { |
5292 | 0 | GOOGLE_DCHECK(value != NULL); |
5293 | 0 | client_states_.Mutable(index)->assign(value); |
5294 | 0 | // @@protoc_insertion_point(field_set_char:mozilla.safebrowsing.FindFullHashesRequest.client_states) |
5295 | 0 | } |
5296 | 0 | inline void FindFullHashesRequest::set_client_states(int index, const void* value, size_t size) { |
5297 | 0 | client_states_.Mutable(index)->assign( |
5298 | 0 | reinterpret_cast<const char*>(value), size); |
5299 | 0 | // @@protoc_insertion_point(field_set_pointer:mozilla.safebrowsing.FindFullHashesRequest.client_states) |
5300 | 0 | } |
5301 | 0 | inline ::std::string* FindFullHashesRequest::add_client_states() { |
5302 | 0 | // @@protoc_insertion_point(field_add_mutable:mozilla.safebrowsing.FindFullHashesRequest.client_states) |
5303 | 0 | return client_states_.Add(); |
5304 | 0 | } |
5305 | 0 | inline void FindFullHashesRequest::add_client_states(const ::std::string& value) { |
5306 | 0 | client_states_.Add()->assign(value); |
5307 | 0 | // @@protoc_insertion_point(field_add:mozilla.safebrowsing.FindFullHashesRequest.client_states) |
5308 | 0 | } |
5309 | | #if LANG_CXX11 |
5310 | 0 | inline void FindFullHashesRequest::add_client_states(::std::string&& value) { |
5311 | 0 | client_states_.Add(std::move(value)); |
5312 | 0 | // @@protoc_insertion_point(field_add:mozilla.safebrowsing.FindFullHashesRequest.client_states) |
5313 | 0 | } |
5314 | | #endif |
5315 | 0 | inline void FindFullHashesRequest::add_client_states(const char* value) { |
5316 | 0 | GOOGLE_DCHECK(value != NULL); |
5317 | 0 | client_states_.Add()->assign(value); |
5318 | 0 | // @@protoc_insertion_point(field_add_char:mozilla.safebrowsing.FindFullHashesRequest.client_states) |
5319 | 0 | } |
5320 | 0 | inline void FindFullHashesRequest::add_client_states(const void* value, size_t size) { |
5321 | 0 | client_states_.Add()->assign(reinterpret_cast<const char*>(value), size); |
5322 | 0 | // @@protoc_insertion_point(field_add_pointer:mozilla.safebrowsing.FindFullHashesRequest.client_states) |
5323 | 0 | } |
5324 | | inline const ::google::protobuf::RepeatedPtrField< ::std::string>& |
5325 | 0 | FindFullHashesRequest::client_states() const { |
5326 | 0 | // @@protoc_insertion_point(field_list:mozilla.safebrowsing.FindFullHashesRequest.client_states) |
5327 | 0 | return client_states_; |
5328 | 0 | } |
5329 | | inline ::google::protobuf::RepeatedPtrField< ::std::string>* |
5330 | 0 | FindFullHashesRequest::mutable_client_states() { |
5331 | 0 | // @@protoc_insertion_point(field_mutable_list:mozilla.safebrowsing.FindFullHashesRequest.client_states) |
5332 | 0 | return &client_states_; |
5333 | 0 | } |
5334 | | |
5335 | | // optional .mozilla.safebrowsing.ThreatInfo threat_info = 3; |
5336 | 0 | inline bool FindFullHashesRequest::has_threat_info() const { |
5337 | 0 | return (_has_bits_[0] & 0x00000002u) != 0; |
5338 | 0 | } |
5339 | 0 | inline void FindFullHashesRequest::set_has_threat_info() { |
5340 | 0 | _has_bits_[0] |= 0x00000002u; |
5341 | 0 | } |
5342 | 0 | inline void FindFullHashesRequest::clear_has_threat_info() { |
5343 | 0 | _has_bits_[0] &= ~0x00000002u; |
5344 | 0 | } |
5345 | 0 | inline void FindFullHashesRequest::clear_threat_info() { |
5346 | 0 | if (threat_info_ != NULL) threat_info_->::mozilla::safebrowsing::ThreatInfo::Clear(); |
5347 | 0 | clear_has_threat_info(); |
5348 | 0 | } |
5349 | 0 | inline const ::mozilla::safebrowsing::ThreatInfo& FindFullHashesRequest::threat_info() const { |
5350 | 0 | const ::mozilla::safebrowsing::ThreatInfo* p = threat_info_; |
5351 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FindFullHashesRequest.threat_info) |
5352 | 0 | return p != NULL ? *p : *reinterpret_cast<const ::mozilla::safebrowsing::ThreatInfo*>( |
5353 | 0 | &::mozilla::safebrowsing::_ThreatInfo_default_instance_); |
5354 | 0 | } |
5355 | 0 | inline ::mozilla::safebrowsing::ThreatInfo* FindFullHashesRequest::mutable_threat_info() { |
5356 | 0 | set_has_threat_info(); |
5357 | 0 | if (threat_info_ == NULL) { |
5358 | 0 | threat_info_ = new ::mozilla::safebrowsing::ThreatInfo; |
5359 | 0 | } |
5360 | 0 | // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.FindFullHashesRequest.threat_info) |
5361 | 0 | return threat_info_; |
5362 | 0 | } |
5363 | 0 | inline ::mozilla::safebrowsing::ThreatInfo* FindFullHashesRequest::release_threat_info() { |
5364 | 0 | // @@protoc_insertion_point(field_release:mozilla.safebrowsing.FindFullHashesRequest.threat_info) |
5365 | 0 | clear_has_threat_info(); |
5366 | 0 | ::mozilla::safebrowsing::ThreatInfo* temp = threat_info_; |
5367 | 0 | threat_info_ = NULL; |
5368 | 0 | return temp; |
5369 | 0 | } |
5370 | 0 | inline void FindFullHashesRequest::set_allocated_threat_info(::mozilla::safebrowsing::ThreatInfo* threat_info) { |
5371 | 0 | delete threat_info_; |
5372 | 0 | threat_info_ = threat_info; |
5373 | 0 | if (threat_info) { |
5374 | 0 | set_has_threat_info(); |
5375 | 0 | } else { |
5376 | 0 | clear_has_threat_info(); |
5377 | 0 | } |
5378 | 0 | // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.FindFullHashesRequest.threat_info) |
5379 | 0 | } |
5380 | | |
5381 | | // ------------------------------------------------------------------- |
5382 | | |
5383 | | // FindFullHashesResponse |
5384 | | |
5385 | | // repeated .mozilla.safebrowsing.ThreatMatch matches = 1; |
5386 | 0 | inline int FindFullHashesResponse::matches_size() const { |
5387 | 0 | return matches_.size(); |
5388 | 0 | } |
5389 | 0 | inline void FindFullHashesResponse::clear_matches() { |
5390 | 0 | matches_.Clear(); |
5391 | 0 | } |
5392 | 0 | inline const ::mozilla::safebrowsing::ThreatMatch& FindFullHashesResponse::matches(int index) const { |
5393 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FindFullHashesResponse.matches) |
5394 | 0 | return matches_.Get(index); |
5395 | 0 | } |
5396 | 0 | inline ::mozilla::safebrowsing::ThreatMatch* FindFullHashesResponse::mutable_matches(int index) { |
5397 | 0 | // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.FindFullHashesResponse.matches) |
5398 | 0 | return matches_.Mutable(index); |
5399 | 0 | } |
5400 | 0 | inline ::mozilla::safebrowsing::ThreatMatch* FindFullHashesResponse::add_matches() { |
5401 | 0 | // @@protoc_insertion_point(field_add:mozilla.safebrowsing.FindFullHashesResponse.matches) |
5402 | 0 | return matches_.Add(); |
5403 | 0 | } |
5404 | | inline ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatMatch >* |
5405 | | FindFullHashesResponse::mutable_matches() { |
5406 | | // @@protoc_insertion_point(field_mutable_list:mozilla.safebrowsing.FindFullHashesResponse.matches) |
5407 | | return &matches_; |
5408 | | } |
5409 | | inline const ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatMatch >& |
5410 | 0 | FindFullHashesResponse::matches() const { |
5411 | 0 | // @@protoc_insertion_point(field_list:mozilla.safebrowsing.FindFullHashesResponse.matches) |
5412 | 0 | return matches_; |
5413 | 0 | } |
5414 | | |
5415 | | // optional .mozilla.safebrowsing.Duration minimum_wait_duration = 2; |
5416 | 0 | inline bool FindFullHashesResponse::has_minimum_wait_duration() const { |
5417 | 0 | return (_has_bits_[0] & 0x00000001u) != 0; |
5418 | 0 | } |
5419 | 0 | inline void FindFullHashesResponse::set_has_minimum_wait_duration() { |
5420 | 0 | _has_bits_[0] |= 0x00000001u; |
5421 | 0 | } |
5422 | 0 | inline void FindFullHashesResponse::clear_has_minimum_wait_duration() { |
5423 | 0 | _has_bits_[0] &= ~0x00000001u; |
5424 | 0 | } |
5425 | 0 | inline void FindFullHashesResponse::clear_minimum_wait_duration() { |
5426 | 0 | if (minimum_wait_duration_ != NULL) minimum_wait_duration_->::mozilla::safebrowsing::Duration::Clear(); |
5427 | 0 | clear_has_minimum_wait_duration(); |
5428 | 0 | } |
5429 | 0 | inline const ::mozilla::safebrowsing::Duration& FindFullHashesResponse::minimum_wait_duration() const { |
5430 | 0 | const ::mozilla::safebrowsing::Duration* p = minimum_wait_duration_; |
5431 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FindFullHashesResponse.minimum_wait_duration) |
5432 | 0 | return p != NULL ? *p : *reinterpret_cast<const ::mozilla::safebrowsing::Duration*>( |
5433 | 0 | &::mozilla::safebrowsing::_Duration_default_instance_); |
5434 | 0 | } |
5435 | 0 | inline ::mozilla::safebrowsing::Duration* FindFullHashesResponse::mutable_minimum_wait_duration() { |
5436 | 0 | set_has_minimum_wait_duration(); |
5437 | 0 | if (minimum_wait_duration_ == NULL) { |
5438 | 0 | minimum_wait_duration_ = new ::mozilla::safebrowsing::Duration; |
5439 | 0 | } |
5440 | 0 | // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.FindFullHashesResponse.minimum_wait_duration) |
5441 | 0 | return minimum_wait_duration_; |
5442 | 0 | } |
5443 | 0 | inline ::mozilla::safebrowsing::Duration* FindFullHashesResponse::release_minimum_wait_duration() { |
5444 | 0 | // @@protoc_insertion_point(field_release:mozilla.safebrowsing.FindFullHashesResponse.minimum_wait_duration) |
5445 | 0 | clear_has_minimum_wait_duration(); |
5446 | 0 | ::mozilla::safebrowsing::Duration* temp = minimum_wait_duration_; |
5447 | 0 | minimum_wait_duration_ = NULL; |
5448 | 0 | return temp; |
5449 | 0 | } |
5450 | 0 | inline void FindFullHashesResponse::set_allocated_minimum_wait_duration(::mozilla::safebrowsing::Duration* minimum_wait_duration) { |
5451 | 0 | delete minimum_wait_duration_; |
5452 | 0 | minimum_wait_duration_ = minimum_wait_duration; |
5453 | 0 | if (minimum_wait_duration) { |
5454 | 0 | set_has_minimum_wait_duration(); |
5455 | 0 | } else { |
5456 | 0 | clear_has_minimum_wait_duration(); |
5457 | 0 | } |
5458 | 0 | // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.FindFullHashesResponse.minimum_wait_duration) |
5459 | 0 | } |
5460 | | |
5461 | | // optional .mozilla.safebrowsing.Duration negative_cache_duration = 3; |
5462 | 0 | inline bool FindFullHashesResponse::has_negative_cache_duration() const { |
5463 | 0 | return (_has_bits_[0] & 0x00000002u) != 0; |
5464 | 0 | } |
5465 | 0 | inline void FindFullHashesResponse::set_has_negative_cache_duration() { |
5466 | 0 | _has_bits_[0] |= 0x00000002u; |
5467 | 0 | } |
5468 | 0 | inline void FindFullHashesResponse::clear_has_negative_cache_duration() { |
5469 | 0 | _has_bits_[0] &= ~0x00000002u; |
5470 | 0 | } |
5471 | 0 | inline void FindFullHashesResponse::clear_negative_cache_duration() { |
5472 | 0 | if (negative_cache_duration_ != NULL) negative_cache_duration_->::mozilla::safebrowsing::Duration::Clear(); |
5473 | 0 | clear_has_negative_cache_duration(); |
5474 | 0 | } |
5475 | 0 | inline const ::mozilla::safebrowsing::Duration& FindFullHashesResponse::negative_cache_duration() const { |
5476 | 0 | const ::mozilla::safebrowsing::Duration* p = negative_cache_duration_; |
5477 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.FindFullHashesResponse.negative_cache_duration) |
5478 | 0 | return p != NULL ? *p : *reinterpret_cast<const ::mozilla::safebrowsing::Duration*>( |
5479 | 0 | &::mozilla::safebrowsing::_Duration_default_instance_); |
5480 | 0 | } |
5481 | 0 | inline ::mozilla::safebrowsing::Duration* FindFullHashesResponse::mutable_negative_cache_duration() { |
5482 | 0 | set_has_negative_cache_duration(); |
5483 | 0 | if (negative_cache_duration_ == NULL) { |
5484 | 0 | negative_cache_duration_ = new ::mozilla::safebrowsing::Duration; |
5485 | 0 | } |
5486 | 0 | // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.FindFullHashesResponse.negative_cache_duration) |
5487 | 0 | return negative_cache_duration_; |
5488 | 0 | } |
5489 | 0 | inline ::mozilla::safebrowsing::Duration* FindFullHashesResponse::release_negative_cache_duration() { |
5490 | 0 | // @@protoc_insertion_point(field_release:mozilla.safebrowsing.FindFullHashesResponse.negative_cache_duration) |
5491 | 0 | clear_has_negative_cache_duration(); |
5492 | 0 | ::mozilla::safebrowsing::Duration* temp = negative_cache_duration_; |
5493 | 0 | negative_cache_duration_ = NULL; |
5494 | 0 | return temp; |
5495 | 0 | } |
5496 | 0 | inline void FindFullHashesResponse::set_allocated_negative_cache_duration(::mozilla::safebrowsing::Duration* negative_cache_duration) { |
5497 | 0 | delete negative_cache_duration_; |
5498 | 0 | negative_cache_duration_ = negative_cache_duration; |
5499 | 0 | if (negative_cache_duration) { |
5500 | 0 | set_has_negative_cache_duration(); |
5501 | 0 | } else { |
5502 | 0 | clear_has_negative_cache_duration(); |
5503 | 0 | } |
5504 | 0 | // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.FindFullHashesResponse.negative_cache_duration) |
5505 | 0 | } |
5506 | | |
5507 | | // ------------------------------------------------------------------- |
5508 | | |
5509 | | // ThreatHit_ThreatSource |
5510 | | |
5511 | | // optional string url = 1; |
5512 | 0 | inline bool ThreatHit_ThreatSource::has_url() const { |
5513 | 0 | return (_has_bits_[0] & 0x00000001u) != 0; |
5514 | 0 | } |
5515 | 0 | inline void ThreatHit_ThreatSource::set_has_url() { |
5516 | 0 | _has_bits_[0] |= 0x00000001u; |
5517 | 0 | } |
5518 | 0 | inline void ThreatHit_ThreatSource::clear_has_url() { |
5519 | 0 | _has_bits_[0] &= ~0x00000001u; |
5520 | 0 | } |
5521 | 0 | inline void ThreatHit_ThreatSource::clear_url() { |
5522 | 0 | url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5523 | 0 | clear_has_url(); |
5524 | 0 | } |
5525 | 0 | inline const ::std::string& ThreatHit_ThreatSource::url() const { |
5526 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatHit.ThreatSource.url) |
5527 | 0 | return url_.GetNoArena(); |
5528 | 0 | } |
5529 | 0 | inline void ThreatHit_ThreatSource::set_url(const ::std::string& value) { |
5530 | 0 | set_has_url(); |
5531 | 0 | url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
5532 | 0 | // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatHit.ThreatSource.url) |
5533 | 0 | } |
5534 | | #if LANG_CXX11 |
5535 | 0 | inline void ThreatHit_ThreatSource::set_url(::std::string&& value) { |
5536 | 0 | set_has_url(); |
5537 | 0 | url_.SetNoArena( |
5538 | 0 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
5539 | 0 | // @@protoc_insertion_point(field_set_rvalue:mozilla.safebrowsing.ThreatHit.ThreatSource.url) |
5540 | 0 | } |
5541 | | #endif |
5542 | 0 | inline void ThreatHit_ThreatSource::set_url(const char* value) { |
5543 | 0 | GOOGLE_DCHECK(value != NULL); |
5544 | 0 | set_has_url(); |
5545 | 0 | url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
5546 | 0 | // @@protoc_insertion_point(field_set_char:mozilla.safebrowsing.ThreatHit.ThreatSource.url) |
5547 | 0 | } |
5548 | 0 | inline void ThreatHit_ThreatSource::set_url(const char* value, size_t size) { |
5549 | 0 | set_has_url(); |
5550 | 0 | url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
5551 | 0 | ::std::string(reinterpret_cast<const char*>(value), size)); |
5552 | 0 | // @@protoc_insertion_point(field_set_pointer:mozilla.safebrowsing.ThreatHit.ThreatSource.url) |
5553 | 0 | } |
5554 | 0 | inline ::std::string* ThreatHit_ThreatSource::mutable_url() { |
5555 | 0 | set_has_url(); |
5556 | 0 | // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatHit.ThreatSource.url) |
5557 | 0 | return url_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5558 | 0 | } |
5559 | 0 | inline ::std::string* ThreatHit_ThreatSource::release_url() { |
5560 | 0 | // @@protoc_insertion_point(field_release:mozilla.safebrowsing.ThreatHit.ThreatSource.url) |
5561 | 0 | clear_has_url(); |
5562 | 0 | return url_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5563 | 0 | } |
5564 | 0 | inline void ThreatHit_ThreatSource::set_allocated_url(::std::string* url) { |
5565 | 0 | if (url != NULL) { |
5566 | 0 | set_has_url(); |
5567 | 0 | } else { |
5568 | 0 | clear_has_url(); |
5569 | 0 | } |
5570 | 0 | url_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), url); |
5571 | 0 | // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.ThreatHit.ThreatSource.url) |
5572 | 0 | } |
5573 | | |
5574 | | // optional .mozilla.safebrowsing.ThreatHit.ThreatSourceType type = 2; |
5575 | 0 | inline bool ThreatHit_ThreatSource::has_type() const { |
5576 | 0 | return (_has_bits_[0] & 0x00000008u) != 0; |
5577 | 0 | } |
5578 | 0 | inline void ThreatHit_ThreatSource::set_has_type() { |
5579 | 0 | _has_bits_[0] |= 0x00000008u; |
5580 | 0 | } |
5581 | 0 | inline void ThreatHit_ThreatSource::clear_has_type() { |
5582 | 0 | _has_bits_[0] &= ~0x00000008u; |
5583 | 0 | } |
5584 | 0 | inline void ThreatHit_ThreatSource::clear_type() { |
5585 | 0 | type_ = 0; |
5586 | 0 | clear_has_type(); |
5587 | 0 | } |
5588 | 0 | inline ::mozilla::safebrowsing::ThreatHit_ThreatSourceType ThreatHit_ThreatSource::type() const { |
5589 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatHit.ThreatSource.type) |
5590 | 0 | return static_cast< ::mozilla::safebrowsing::ThreatHit_ThreatSourceType >(type_); |
5591 | 0 | } |
5592 | 0 | inline void ThreatHit_ThreatSource::set_type(::mozilla::safebrowsing::ThreatHit_ThreatSourceType value) { |
5593 | 0 | assert(::mozilla::safebrowsing::ThreatHit_ThreatSourceType_IsValid(value)); |
5594 | 0 | set_has_type(); |
5595 | 0 | type_ = value; |
5596 | 0 | // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatHit.ThreatSource.type) |
5597 | 0 | } |
5598 | | |
5599 | | // optional string remote_ip = 3; |
5600 | 0 | inline bool ThreatHit_ThreatSource::has_remote_ip() const { |
5601 | 0 | return (_has_bits_[0] & 0x00000002u) != 0; |
5602 | 0 | } |
5603 | 0 | inline void ThreatHit_ThreatSource::set_has_remote_ip() { |
5604 | 0 | _has_bits_[0] |= 0x00000002u; |
5605 | 0 | } |
5606 | 0 | inline void ThreatHit_ThreatSource::clear_has_remote_ip() { |
5607 | 0 | _has_bits_[0] &= ~0x00000002u; |
5608 | 0 | } |
5609 | 0 | inline void ThreatHit_ThreatSource::clear_remote_ip() { |
5610 | 0 | remote_ip_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5611 | 0 | clear_has_remote_ip(); |
5612 | 0 | } |
5613 | 0 | inline const ::std::string& ThreatHit_ThreatSource::remote_ip() const { |
5614 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatHit.ThreatSource.remote_ip) |
5615 | 0 | return remote_ip_.GetNoArena(); |
5616 | 0 | } |
5617 | 0 | inline void ThreatHit_ThreatSource::set_remote_ip(const ::std::string& value) { |
5618 | 0 | set_has_remote_ip(); |
5619 | 0 | remote_ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
5620 | 0 | // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatHit.ThreatSource.remote_ip) |
5621 | 0 | } |
5622 | | #if LANG_CXX11 |
5623 | 0 | inline void ThreatHit_ThreatSource::set_remote_ip(::std::string&& value) { |
5624 | 0 | set_has_remote_ip(); |
5625 | 0 | remote_ip_.SetNoArena( |
5626 | 0 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
5627 | 0 | // @@protoc_insertion_point(field_set_rvalue:mozilla.safebrowsing.ThreatHit.ThreatSource.remote_ip) |
5628 | 0 | } |
5629 | | #endif |
5630 | 0 | inline void ThreatHit_ThreatSource::set_remote_ip(const char* value) { |
5631 | 0 | GOOGLE_DCHECK(value != NULL); |
5632 | 0 | set_has_remote_ip(); |
5633 | 0 | remote_ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
5634 | 0 | // @@protoc_insertion_point(field_set_char:mozilla.safebrowsing.ThreatHit.ThreatSource.remote_ip) |
5635 | 0 | } |
5636 | 0 | inline void ThreatHit_ThreatSource::set_remote_ip(const char* value, size_t size) { |
5637 | 0 | set_has_remote_ip(); |
5638 | 0 | remote_ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
5639 | 0 | ::std::string(reinterpret_cast<const char*>(value), size)); |
5640 | 0 | // @@protoc_insertion_point(field_set_pointer:mozilla.safebrowsing.ThreatHit.ThreatSource.remote_ip) |
5641 | 0 | } |
5642 | 0 | inline ::std::string* ThreatHit_ThreatSource::mutable_remote_ip() { |
5643 | 0 | set_has_remote_ip(); |
5644 | 0 | // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatHit.ThreatSource.remote_ip) |
5645 | 0 | return remote_ip_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5646 | 0 | } |
5647 | 0 | inline ::std::string* ThreatHit_ThreatSource::release_remote_ip() { |
5648 | 0 | // @@protoc_insertion_point(field_release:mozilla.safebrowsing.ThreatHit.ThreatSource.remote_ip) |
5649 | 0 | clear_has_remote_ip(); |
5650 | 0 | return remote_ip_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5651 | 0 | } |
5652 | 0 | inline void ThreatHit_ThreatSource::set_allocated_remote_ip(::std::string* remote_ip) { |
5653 | 0 | if (remote_ip != NULL) { |
5654 | 0 | set_has_remote_ip(); |
5655 | 0 | } else { |
5656 | 0 | clear_has_remote_ip(); |
5657 | 0 | } |
5658 | 0 | remote_ip_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), remote_ip); |
5659 | 0 | // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.ThreatHit.ThreatSource.remote_ip) |
5660 | 0 | } |
5661 | | |
5662 | | // optional string referrer = 4; |
5663 | 0 | inline bool ThreatHit_ThreatSource::has_referrer() const { |
5664 | 0 | return (_has_bits_[0] & 0x00000004u) != 0; |
5665 | 0 | } |
5666 | 0 | inline void ThreatHit_ThreatSource::set_has_referrer() { |
5667 | 0 | _has_bits_[0] |= 0x00000004u; |
5668 | 0 | } |
5669 | 0 | inline void ThreatHit_ThreatSource::clear_has_referrer() { |
5670 | 0 | _has_bits_[0] &= ~0x00000004u; |
5671 | 0 | } |
5672 | 0 | inline void ThreatHit_ThreatSource::clear_referrer() { |
5673 | 0 | referrer_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5674 | 0 | clear_has_referrer(); |
5675 | 0 | } |
5676 | 0 | inline const ::std::string& ThreatHit_ThreatSource::referrer() const { |
5677 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatHit.ThreatSource.referrer) |
5678 | 0 | return referrer_.GetNoArena(); |
5679 | 0 | } |
5680 | 0 | inline void ThreatHit_ThreatSource::set_referrer(const ::std::string& value) { |
5681 | 0 | set_has_referrer(); |
5682 | 0 | referrer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
5683 | 0 | // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatHit.ThreatSource.referrer) |
5684 | 0 | } |
5685 | | #if LANG_CXX11 |
5686 | 0 | inline void ThreatHit_ThreatSource::set_referrer(::std::string&& value) { |
5687 | 0 | set_has_referrer(); |
5688 | 0 | referrer_.SetNoArena( |
5689 | 0 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
5690 | 0 | // @@protoc_insertion_point(field_set_rvalue:mozilla.safebrowsing.ThreatHit.ThreatSource.referrer) |
5691 | 0 | } |
5692 | | #endif |
5693 | 0 | inline void ThreatHit_ThreatSource::set_referrer(const char* value) { |
5694 | 0 | GOOGLE_DCHECK(value != NULL); |
5695 | 0 | set_has_referrer(); |
5696 | 0 | referrer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
5697 | 0 | // @@protoc_insertion_point(field_set_char:mozilla.safebrowsing.ThreatHit.ThreatSource.referrer) |
5698 | 0 | } |
5699 | 0 | inline void ThreatHit_ThreatSource::set_referrer(const char* value, size_t size) { |
5700 | 0 | set_has_referrer(); |
5701 | 0 | referrer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
5702 | 0 | ::std::string(reinterpret_cast<const char*>(value), size)); |
5703 | 0 | // @@protoc_insertion_point(field_set_pointer:mozilla.safebrowsing.ThreatHit.ThreatSource.referrer) |
5704 | 0 | } |
5705 | 0 | inline ::std::string* ThreatHit_ThreatSource::mutable_referrer() { |
5706 | 0 | set_has_referrer(); |
5707 | 0 | // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatHit.ThreatSource.referrer) |
5708 | 0 | return referrer_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5709 | 0 | } |
5710 | 0 | inline ::std::string* ThreatHit_ThreatSource::release_referrer() { |
5711 | 0 | // @@protoc_insertion_point(field_release:mozilla.safebrowsing.ThreatHit.ThreatSource.referrer) |
5712 | 0 | clear_has_referrer(); |
5713 | 0 | return referrer_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5714 | 0 | } |
5715 | 0 | inline void ThreatHit_ThreatSource::set_allocated_referrer(::std::string* referrer) { |
5716 | 0 | if (referrer != NULL) { |
5717 | 0 | set_has_referrer(); |
5718 | 0 | } else { |
5719 | 0 | clear_has_referrer(); |
5720 | 0 | } |
5721 | 0 | referrer_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), referrer); |
5722 | 0 | // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.ThreatHit.ThreatSource.referrer) |
5723 | 0 | } |
5724 | | |
5725 | | // ------------------------------------------------------------------- |
5726 | | |
5727 | | // ThreatHit_UserInfo |
5728 | | |
5729 | | // optional string region_code = 1; |
5730 | 0 | inline bool ThreatHit_UserInfo::has_region_code() const { |
5731 | 0 | return (_has_bits_[0] & 0x00000001u) != 0; |
5732 | 0 | } |
5733 | 0 | inline void ThreatHit_UserInfo::set_has_region_code() { |
5734 | 0 | _has_bits_[0] |= 0x00000001u; |
5735 | 0 | } |
5736 | 0 | inline void ThreatHit_UserInfo::clear_has_region_code() { |
5737 | 0 | _has_bits_[0] &= ~0x00000001u; |
5738 | 0 | } |
5739 | 0 | inline void ThreatHit_UserInfo::clear_region_code() { |
5740 | 0 | region_code_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5741 | 0 | clear_has_region_code(); |
5742 | 0 | } |
5743 | 0 | inline const ::std::string& ThreatHit_UserInfo::region_code() const { |
5744 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatHit.UserInfo.region_code) |
5745 | 0 | return region_code_.GetNoArena(); |
5746 | 0 | } |
5747 | 0 | inline void ThreatHit_UserInfo::set_region_code(const ::std::string& value) { |
5748 | 0 | set_has_region_code(); |
5749 | 0 | region_code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
5750 | 0 | // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatHit.UserInfo.region_code) |
5751 | 0 | } |
5752 | | #if LANG_CXX11 |
5753 | 0 | inline void ThreatHit_UserInfo::set_region_code(::std::string&& value) { |
5754 | 0 | set_has_region_code(); |
5755 | 0 | region_code_.SetNoArena( |
5756 | 0 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
5757 | 0 | // @@protoc_insertion_point(field_set_rvalue:mozilla.safebrowsing.ThreatHit.UserInfo.region_code) |
5758 | 0 | } |
5759 | | #endif |
5760 | 0 | inline void ThreatHit_UserInfo::set_region_code(const char* value) { |
5761 | 0 | GOOGLE_DCHECK(value != NULL); |
5762 | 0 | set_has_region_code(); |
5763 | 0 | region_code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
5764 | 0 | // @@protoc_insertion_point(field_set_char:mozilla.safebrowsing.ThreatHit.UserInfo.region_code) |
5765 | 0 | } |
5766 | 0 | inline void ThreatHit_UserInfo::set_region_code(const char* value, size_t size) { |
5767 | 0 | set_has_region_code(); |
5768 | 0 | region_code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
5769 | 0 | ::std::string(reinterpret_cast<const char*>(value), size)); |
5770 | 0 | // @@protoc_insertion_point(field_set_pointer:mozilla.safebrowsing.ThreatHit.UserInfo.region_code) |
5771 | 0 | } |
5772 | 0 | inline ::std::string* ThreatHit_UserInfo::mutable_region_code() { |
5773 | 0 | set_has_region_code(); |
5774 | 0 | // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatHit.UserInfo.region_code) |
5775 | 0 | return region_code_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5776 | 0 | } |
5777 | 0 | inline ::std::string* ThreatHit_UserInfo::release_region_code() { |
5778 | 0 | // @@protoc_insertion_point(field_release:mozilla.safebrowsing.ThreatHit.UserInfo.region_code) |
5779 | 0 | clear_has_region_code(); |
5780 | 0 | return region_code_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5781 | 0 | } |
5782 | 0 | inline void ThreatHit_UserInfo::set_allocated_region_code(::std::string* region_code) { |
5783 | 0 | if (region_code != NULL) { |
5784 | 0 | set_has_region_code(); |
5785 | 0 | } else { |
5786 | 0 | clear_has_region_code(); |
5787 | 0 | } |
5788 | 0 | region_code_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), region_code); |
5789 | 0 | // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.ThreatHit.UserInfo.region_code) |
5790 | 0 | } |
5791 | | |
5792 | | // optional bytes user_id = 2; |
5793 | 0 | inline bool ThreatHit_UserInfo::has_user_id() const { |
5794 | 0 | return (_has_bits_[0] & 0x00000002u) != 0; |
5795 | 0 | } |
5796 | 0 | inline void ThreatHit_UserInfo::set_has_user_id() { |
5797 | 0 | _has_bits_[0] |= 0x00000002u; |
5798 | 0 | } |
5799 | 0 | inline void ThreatHit_UserInfo::clear_has_user_id() { |
5800 | 0 | _has_bits_[0] &= ~0x00000002u; |
5801 | 0 | } |
5802 | 0 | inline void ThreatHit_UserInfo::clear_user_id() { |
5803 | 0 | user_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5804 | 0 | clear_has_user_id(); |
5805 | 0 | } |
5806 | 0 | inline const ::std::string& ThreatHit_UserInfo::user_id() const { |
5807 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatHit.UserInfo.user_id) |
5808 | 0 | return user_id_.GetNoArena(); |
5809 | 0 | } |
5810 | 0 | inline void ThreatHit_UserInfo::set_user_id(const ::std::string& value) { |
5811 | 0 | set_has_user_id(); |
5812 | 0 | user_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
5813 | 0 | // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatHit.UserInfo.user_id) |
5814 | 0 | } |
5815 | | #if LANG_CXX11 |
5816 | 0 | inline void ThreatHit_UserInfo::set_user_id(::std::string&& value) { |
5817 | 0 | set_has_user_id(); |
5818 | 0 | user_id_.SetNoArena( |
5819 | 0 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
5820 | 0 | // @@protoc_insertion_point(field_set_rvalue:mozilla.safebrowsing.ThreatHit.UserInfo.user_id) |
5821 | 0 | } |
5822 | | #endif |
5823 | 0 | inline void ThreatHit_UserInfo::set_user_id(const char* value) { |
5824 | 0 | GOOGLE_DCHECK(value != NULL); |
5825 | 0 | set_has_user_id(); |
5826 | 0 | user_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
5827 | 0 | // @@protoc_insertion_point(field_set_char:mozilla.safebrowsing.ThreatHit.UserInfo.user_id) |
5828 | 0 | } |
5829 | 0 | inline void ThreatHit_UserInfo::set_user_id(const void* value, size_t size) { |
5830 | 0 | set_has_user_id(); |
5831 | 0 | user_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
5832 | 0 | ::std::string(reinterpret_cast<const char*>(value), size)); |
5833 | 0 | // @@protoc_insertion_point(field_set_pointer:mozilla.safebrowsing.ThreatHit.UserInfo.user_id) |
5834 | 0 | } |
5835 | 0 | inline ::std::string* ThreatHit_UserInfo::mutable_user_id() { |
5836 | 0 | set_has_user_id(); |
5837 | 0 | // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatHit.UserInfo.user_id) |
5838 | 0 | return user_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5839 | 0 | } |
5840 | 0 | inline ::std::string* ThreatHit_UserInfo::release_user_id() { |
5841 | 0 | // @@protoc_insertion_point(field_release:mozilla.safebrowsing.ThreatHit.UserInfo.user_id) |
5842 | 0 | clear_has_user_id(); |
5843 | 0 | return user_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5844 | 0 | } |
5845 | 0 | inline void ThreatHit_UserInfo::set_allocated_user_id(::std::string* user_id) { |
5846 | 0 | if (user_id != NULL) { |
5847 | 0 | set_has_user_id(); |
5848 | 0 | } else { |
5849 | 0 | clear_has_user_id(); |
5850 | 0 | } |
5851 | 0 | user_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), user_id); |
5852 | 0 | // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.ThreatHit.UserInfo.user_id) |
5853 | 0 | } |
5854 | | |
5855 | | // ------------------------------------------------------------------- |
5856 | | |
5857 | | // ThreatHit |
5858 | | |
5859 | | // optional .mozilla.safebrowsing.ThreatType threat_type = 1; |
5860 | 0 | inline bool ThreatHit::has_threat_type() const { |
5861 | 0 | return (_has_bits_[0] & 0x00000008u) != 0; |
5862 | 0 | } |
5863 | 0 | inline void ThreatHit::set_has_threat_type() { |
5864 | 0 | _has_bits_[0] |= 0x00000008u; |
5865 | 0 | } |
5866 | 0 | inline void ThreatHit::clear_has_threat_type() { |
5867 | 0 | _has_bits_[0] &= ~0x00000008u; |
5868 | 0 | } |
5869 | 0 | inline void ThreatHit::clear_threat_type() { |
5870 | 0 | threat_type_ = 0; |
5871 | 0 | clear_has_threat_type(); |
5872 | 0 | } |
5873 | 0 | inline ::mozilla::safebrowsing::ThreatType ThreatHit::threat_type() const { |
5874 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatHit.threat_type) |
5875 | 0 | return static_cast< ::mozilla::safebrowsing::ThreatType >(threat_type_); |
5876 | 0 | } |
5877 | 0 | inline void ThreatHit::set_threat_type(::mozilla::safebrowsing::ThreatType value) { |
5878 | 0 | assert(::mozilla::safebrowsing::ThreatType_IsValid(value)); |
5879 | 0 | set_has_threat_type(); |
5880 | 0 | threat_type_ = value; |
5881 | 0 | // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatHit.threat_type) |
5882 | 0 | } |
5883 | | |
5884 | | // optional .mozilla.safebrowsing.PlatformType platform_type = 2; |
5885 | 0 | inline bool ThreatHit::has_platform_type() const { |
5886 | 0 | return (_has_bits_[0] & 0x00000010u) != 0; |
5887 | 0 | } |
5888 | 0 | inline void ThreatHit::set_has_platform_type() { |
5889 | 0 | _has_bits_[0] |= 0x00000010u; |
5890 | 0 | } |
5891 | 0 | inline void ThreatHit::clear_has_platform_type() { |
5892 | 0 | _has_bits_[0] &= ~0x00000010u; |
5893 | 0 | } |
5894 | 0 | inline void ThreatHit::clear_platform_type() { |
5895 | 0 | platform_type_ = 0; |
5896 | 0 | clear_has_platform_type(); |
5897 | 0 | } |
5898 | 0 | inline ::mozilla::safebrowsing::PlatformType ThreatHit::platform_type() const { |
5899 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatHit.platform_type) |
5900 | 0 | return static_cast< ::mozilla::safebrowsing::PlatformType >(platform_type_); |
5901 | 0 | } |
5902 | 0 | inline void ThreatHit::set_platform_type(::mozilla::safebrowsing::PlatformType value) { |
5903 | 0 | assert(::mozilla::safebrowsing::PlatformType_IsValid(value)); |
5904 | 0 | set_has_platform_type(); |
5905 | 0 | platform_type_ = value; |
5906 | 0 | // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatHit.platform_type) |
5907 | 0 | } |
5908 | | |
5909 | | // optional .mozilla.safebrowsing.ThreatEntry entry = 3; |
5910 | 0 | inline bool ThreatHit::has_entry() const { |
5911 | 0 | return (_has_bits_[0] & 0x00000001u) != 0; |
5912 | 0 | } |
5913 | 0 | inline void ThreatHit::set_has_entry() { |
5914 | 0 | _has_bits_[0] |= 0x00000001u; |
5915 | 0 | } |
5916 | 0 | inline void ThreatHit::clear_has_entry() { |
5917 | 0 | _has_bits_[0] &= ~0x00000001u; |
5918 | 0 | } |
5919 | 0 | inline void ThreatHit::clear_entry() { |
5920 | 0 | if (entry_ != NULL) entry_->::mozilla::safebrowsing::ThreatEntry::Clear(); |
5921 | 0 | clear_has_entry(); |
5922 | 0 | } |
5923 | 0 | inline const ::mozilla::safebrowsing::ThreatEntry& ThreatHit::entry() const { |
5924 | 0 | const ::mozilla::safebrowsing::ThreatEntry* p = entry_; |
5925 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatHit.entry) |
5926 | 0 | return p != NULL ? *p : *reinterpret_cast<const ::mozilla::safebrowsing::ThreatEntry*>( |
5927 | 0 | &::mozilla::safebrowsing::_ThreatEntry_default_instance_); |
5928 | 0 | } |
5929 | 0 | inline ::mozilla::safebrowsing::ThreatEntry* ThreatHit::mutable_entry() { |
5930 | 0 | set_has_entry(); |
5931 | 0 | if (entry_ == NULL) { |
5932 | 0 | entry_ = new ::mozilla::safebrowsing::ThreatEntry; |
5933 | 0 | } |
5934 | 0 | // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatHit.entry) |
5935 | 0 | return entry_; |
5936 | 0 | } |
5937 | 0 | inline ::mozilla::safebrowsing::ThreatEntry* ThreatHit::release_entry() { |
5938 | 0 | // @@protoc_insertion_point(field_release:mozilla.safebrowsing.ThreatHit.entry) |
5939 | 0 | clear_has_entry(); |
5940 | 0 | ::mozilla::safebrowsing::ThreatEntry* temp = entry_; |
5941 | 0 | entry_ = NULL; |
5942 | 0 | return temp; |
5943 | 0 | } |
5944 | 0 | inline void ThreatHit::set_allocated_entry(::mozilla::safebrowsing::ThreatEntry* entry) { |
5945 | 0 | delete entry_; |
5946 | 0 | entry_ = entry; |
5947 | 0 | if (entry) { |
5948 | 0 | set_has_entry(); |
5949 | 0 | } else { |
5950 | 0 | clear_has_entry(); |
5951 | 0 | } |
5952 | 0 | // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.ThreatHit.entry) |
5953 | 0 | } |
5954 | | |
5955 | | // repeated .mozilla.safebrowsing.ThreatHit.ThreatSource resources = 4; |
5956 | 0 | inline int ThreatHit::resources_size() const { |
5957 | 0 | return resources_.size(); |
5958 | 0 | } |
5959 | 0 | inline void ThreatHit::clear_resources() { |
5960 | 0 | resources_.Clear(); |
5961 | 0 | } |
5962 | 0 | inline const ::mozilla::safebrowsing::ThreatHit_ThreatSource& ThreatHit::resources(int index) const { |
5963 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatHit.resources) |
5964 | 0 | return resources_.Get(index); |
5965 | 0 | } |
5966 | 0 | inline ::mozilla::safebrowsing::ThreatHit_ThreatSource* ThreatHit::mutable_resources(int index) { |
5967 | 0 | // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatHit.resources) |
5968 | 0 | return resources_.Mutable(index); |
5969 | 0 | } |
5970 | 0 | inline ::mozilla::safebrowsing::ThreatHit_ThreatSource* ThreatHit::add_resources() { |
5971 | 0 | // @@protoc_insertion_point(field_add:mozilla.safebrowsing.ThreatHit.resources) |
5972 | 0 | return resources_.Add(); |
5973 | 0 | } |
5974 | | inline ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatHit_ThreatSource >* |
5975 | 0 | ThreatHit::mutable_resources() { |
5976 | 0 | // @@protoc_insertion_point(field_mutable_list:mozilla.safebrowsing.ThreatHit.resources) |
5977 | 0 | return &resources_; |
5978 | 0 | } |
5979 | | inline const ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatHit_ThreatSource >& |
5980 | 0 | ThreatHit::resources() const { |
5981 | 0 | // @@protoc_insertion_point(field_list:mozilla.safebrowsing.ThreatHit.resources) |
5982 | 0 | return resources_; |
5983 | 0 | } |
5984 | | |
5985 | | // optional .mozilla.safebrowsing.ClientInfo client_info = 5; |
5986 | 0 | inline bool ThreatHit::has_client_info() const { |
5987 | 0 | return (_has_bits_[0] & 0x00000002u) != 0; |
5988 | 0 | } |
5989 | 0 | inline void ThreatHit::set_has_client_info() { |
5990 | 0 | _has_bits_[0] |= 0x00000002u; |
5991 | 0 | } |
5992 | 0 | inline void ThreatHit::clear_has_client_info() { |
5993 | 0 | _has_bits_[0] &= ~0x00000002u; |
5994 | 0 | } |
5995 | 0 | inline void ThreatHit::clear_client_info() { |
5996 | 0 | if (client_info_ != NULL) client_info_->::mozilla::safebrowsing::ClientInfo::Clear(); |
5997 | 0 | clear_has_client_info(); |
5998 | 0 | } |
5999 | 0 | inline const ::mozilla::safebrowsing::ClientInfo& ThreatHit::client_info() const { |
6000 | 0 | const ::mozilla::safebrowsing::ClientInfo* p = client_info_; |
6001 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatHit.client_info) |
6002 | 0 | return p != NULL ? *p : *reinterpret_cast<const ::mozilla::safebrowsing::ClientInfo*>( |
6003 | 0 | &::mozilla::safebrowsing::_ClientInfo_default_instance_); |
6004 | 0 | } |
6005 | 0 | inline ::mozilla::safebrowsing::ClientInfo* ThreatHit::mutable_client_info() { |
6006 | 0 | set_has_client_info(); |
6007 | 0 | if (client_info_ == NULL) { |
6008 | 0 | client_info_ = new ::mozilla::safebrowsing::ClientInfo; |
6009 | 0 | } |
6010 | 0 | // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatHit.client_info) |
6011 | 0 | return client_info_; |
6012 | 0 | } |
6013 | 0 | inline ::mozilla::safebrowsing::ClientInfo* ThreatHit::release_client_info() { |
6014 | 0 | // @@protoc_insertion_point(field_release:mozilla.safebrowsing.ThreatHit.client_info) |
6015 | 0 | clear_has_client_info(); |
6016 | 0 | ::mozilla::safebrowsing::ClientInfo* temp = client_info_; |
6017 | 0 | client_info_ = NULL; |
6018 | 0 | return temp; |
6019 | 0 | } |
6020 | 0 | inline void ThreatHit::set_allocated_client_info(::mozilla::safebrowsing::ClientInfo* client_info) { |
6021 | 0 | delete client_info_; |
6022 | 0 | client_info_ = client_info; |
6023 | 0 | if (client_info) { |
6024 | 0 | set_has_client_info(); |
6025 | 0 | } else { |
6026 | 0 | clear_has_client_info(); |
6027 | 0 | } |
6028 | 0 | // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.ThreatHit.client_info) |
6029 | 0 | } |
6030 | | |
6031 | | // optional .mozilla.safebrowsing.ThreatHit.UserInfo user_info = 6; |
6032 | 0 | inline bool ThreatHit::has_user_info() const { |
6033 | 0 | return (_has_bits_[0] & 0x00000004u) != 0; |
6034 | 0 | } |
6035 | 0 | inline void ThreatHit::set_has_user_info() { |
6036 | 0 | _has_bits_[0] |= 0x00000004u; |
6037 | 0 | } |
6038 | 0 | inline void ThreatHit::clear_has_user_info() { |
6039 | 0 | _has_bits_[0] &= ~0x00000004u; |
6040 | 0 | } |
6041 | 0 | inline void ThreatHit::clear_user_info() { |
6042 | 0 | if (user_info_ != NULL) user_info_->::mozilla::safebrowsing::ThreatHit_UserInfo::Clear(); |
6043 | 0 | clear_has_user_info(); |
6044 | 0 | } |
6045 | 0 | inline const ::mozilla::safebrowsing::ThreatHit_UserInfo& ThreatHit::user_info() const { |
6046 | 0 | const ::mozilla::safebrowsing::ThreatHit_UserInfo* p = user_info_; |
6047 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatHit.user_info) |
6048 | 0 | return p != NULL ? *p : *reinterpret_cast<const ::mozilla::safebrowsing::ThreatHit_UserInfo*>( |
6049 | 0 | &::mozilla::safebrowsing::_ThreatHit_UserInfo_default_instance_); |
6050 | 0 | } |
6051 | 0 | inline ::mozilla::safebrowsing::ThreatHit_UserInfo* ThreatHit::mutable_user_info() { |
6052 | 0 | set_has_user_info(); |
6053 | 0 | if (user_info_ == NULL) { |
6054 | 0 | user_info_ = new ::mozilla::safebrowsing::ThreatHit_UserInfo; |
6055 | 0 | } |
6056 | 0 | // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatHit.user_info) |
6057 | 0 | return user_info_; |
6058 | 0 | } |
6059 | 0 | inline ::mozilla::safebrowsing::ThreatHit_UserInfo* ThreatHit::release_user_info() { |
6060 | 0 | // @@protoc_insertion_point(field_release:mozilla.safebrowsing.ThreatHit.user_info) |
6061 | 0 | clear_has_user_info(); |
6062 | 0 | ::mozilla::safebrowsing::ThreatHit_UserInfo* temp = user_info_; |
6063 | 0 | user_info_ = NULL; |
6064 | 0 | return temp; |
6065 | 0 | } |
6066 | 0 | inline void ThreatHit::set_allocated_user_info(::mozilla::safebrowsing::ThreatHit_UserInfo* user_info) { |
6067 | 0 | delete user_info_; |
6068 | 0 | user_info_ = user_info; |
6069 | 0 | if (user_info) { |
6070 | 0 | set_has_user_info(); |
6071 | 0 | } else { |
6072 | 0 | clear_has_user_info(); |
6073 | 0 | } |
6074 | 0 | // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.ThreatHit.user_info) |
6075 | 0 | } |
6076 | | |
6077 | | // ------------------------------------------------------------------- |
6078 | | |
6079 | | // ClientInfo |
6080 | | |
6081 | | // optional string client_id = 1; |
6082 | 0 | inline bool ClientInfo::has_client_id() const { |
6083 | 0 | return (_has_bits_[0] & 0x00000001u) != 0; |
6084 | 0 | } |
6085 | 0 | inline void ClientInfo::set_has_client_id() { |
6086 | 0 | _has_bits_[0] |= 0x00000001u; |
6087 | 0 | } |
6088 | 0 | inline void ClientInfo::clear_has_client_id() { |
6089 | 0 | _has_bits_[0] &= ~0x00000001u; |
6090 | 0 | } |
6091 | 0 | inline void ClientInfo::clear_client_id() { |
6092 | 0 | client_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
6093 | 0 | clear_has_client_id(); |
6094 | 0 | } |
6095 | 0 | inline const ::std::string& ClientInfo::client_id() const { |
6096 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ClientInfo.client_id) |
6097 | 0 | return client_id_.GetNoArena(); |
6098 | 0 | } |
6099 | | inline void ClientInfo::set_client_id(const ::std::string& value) { |
6100 | | set_has_client_id(); |
6101 | | client_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
6102 | | // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ClientInfo.client_id) |
6103 | | } |
6104 | | #if LANG_CXX11 |
6105 | 0 | inline void ClientInfo::set_client_id(::std::string&& value) { |
6106 | 0 | set_has_client_id(); |
6107 | 0 | client_id_.SetNoArena( |
6108 | 0 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
6109 | 0 | // @@protoc_insertion_point(field_set_rvalue:mozilla.safebrowsing.ClientInfo.client_id) |
6110 | 0 | } |
6111 | | #endif |
6112 | 0 | inline void ClientInfo::set_client_id(const char* value) { |
6113 | 0 | GOOGLE_DCHECK(value != NULL); |
6114 | 0 | set_has_client_id(); |
6115 | 0 | client_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
6116 | 0 | // @@protoc_insertion_point(field_set_char:mozilla.safebrowsing.ClientInfo.client_id) |
6117 | 0 | } |
6118 | 0 | inline void ClientInfo::set_client_id(const char* value, size_t size) { |
6119 | 0 | set_has_client_id(); |
6120 | 0 | client_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
6121 | 0 | ::std::string(reinterpret_cast<const char*>(value), size)); |
6122 | 0 | // @@protoc_insertion_point(field_set_pointer:mozilla.safebrowsing.ClientInfo.client_id) |
6123 | 0 | } |
6124 | 0 | inline ::std::string* ClientInfo::mutable_client_id() { |
6125 | 0 | set_has_client_id(); |
6126 | 0 | // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ClientInfo.client_id) |
6127 | 0 | return client_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
6128 | 0 | } |
6129 | 0 | inline ::std::string* ClientInfo::release_client_id() { |
6130 | 0 | // @@protoc_insertion_point(field_release:mozilla.safebrowsing.ClientInfo.client_id) |
6131 | 0 | clear_has_client_id(); |
6132 | 0 | return client_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
6133 | 0 | } |
6134 | 0 | inline void ClientInfo::set_allocated_client_id(::std::string* client_id) { |
6135 | 0 | if (client_id != NULL) { |
6136 | 0 | set_has_client_id(); |
6137 | 0 | } else { |
6138 | 0 | clear_has_client_id(); |
6139 | 0 | } |
6140 | 0 | client_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), client_id); |
6141 | 0 | // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.ClientInfo.client_id) |
6142 | 0 | } |
6143 | | |
6144 | | // optional string client_version = 2; |
6145 | 0 | inline bool ClientInfo::has_client_version() const { |
6146 | 0 | return (_has_bits_[0] & 0x00000002u) != 0; |
6147 | 0 | } |
6148 | 0 | inline void ClientInfo::set_has_client_version() { |
6149 | 0 | _has_bits_[0] |= 0x00000002u; |
6150 | 0 | } |
6151 | 0 | inline void ClientInfo::clear_has_client_version() { |
6152 | 0 | _has_bits_[0] &= ~0x00000002u; |
6153 | 0 | } |
6154 | 0 | inline void ClientInfo::clear_client_version() { |
6155 | 0 | client_version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
6156 | 0 | clear_has_client_version(); |
6157 | 0 | } |
6158 | 0 | inline const ::std::string& ClientInfo::client_version() const { |
6159 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ClientInfo.client_version) |
6160 | 0 | return client_version_.GetNoArena(); |
6161 | 0 | } |
6162 | 0 | inline void ClientInfo::set_client_version(const ::std::string& value) { |
6163 | 0 | set_has_client_version(); |
6164 | 0 | client_version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
6165 | 0 | // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ClientInfo.client_version) |
6166 | 0 | } |
6167 | | #if LANG_CXX11 |
6168 | 0 | inline void ClientInfo::set_client_version(::std::string&& value) { |
6169 | 0 | set_has_client_version(); |
6170 | 0 | client_version_.SetNoArena( |
6171 | 0 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
6172 | 0 | // @@protoc_insertion_point(field_set_rvalue:mozilla.safebrowsing.ClientInfo.client_version) |
6173 | 0 | } |
6174 | | #endif |
6175 | 0 | inline void ClientInfo::set_client_version(const char* value) { |
6176 | 0 | GOOGLE_DCHECK(value != NULL); |
6177 | 0 | set_has_client_version(); |
6178 | 0 | client_version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
6179 | 0 | // @@protoc_insertion_point(field_set_char:mozilla.safebrowsing.ClientInfo.client_version) |
6180 | 0 | } |
6181 | 0 | inline void ClientInfo::set_client_version(const char* value, size_t size) { |
6182 | 0 | set_has_client_version(); |
6183 | 0 | client_version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
6184 | 0 | ::std::string(reinterpret_cast<const char*>(value), size)); |
6185 | 0 | // @@protoc_insertion_point(field_set_pointer:mozilla.safebrowsing.ClientInfo.client_version) |
6186 | 0 | } |
6187 | 0 | inline ::std::string* ClientInfo::mutable_client_version() { |
6188 | 0 | set_has_client_version(); |
6189 | 0 | // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ClientInfo.client_version) |
6190 | 0 | return client_version_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
6191 | 0 | } |
6192 | 0 | inline ::std::string* ClientInfo::release_client_version() { |
6193 | 0 | // @@protoc_insertion_point(field_release:mozilla.safebrowsing.ClientInfo.client_version) |
6194 | 0 | clear_has_client_version(); |
6195 | 0 | return client_version_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
6196 | 0 | } |
6197 | 0 | inline void ClientInfo::set_allocated_client_version(::std::string* client_version) { |
6198 | 0 | if (client_version != NULL) { |
6199 | 0 | set_has_client_version(); |
6200 | 0 | } else { |
6201 | 0 | clear_has_client_version(); |
6202 | 0 | } |
6203 | 0 | client_version_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), client_version); |
6204 | 0 | // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.ClientInfo.client_version) |
6205 | 0 | } |
6206 | | |
6207 | | // ------------------------------------------------------------------- |
6208 | | |
6209 | | // ChromeClientInfo |
6210 | | |
6211 | | // optional .mozilla.safebrowsing.ChromeClientInfo.SafeBrowsingReportingPopulation reporting_population = 1; |
6212 | 0 | inline bool ChromeClientInfo::has_reporting_population() const { |
6213 | 0 | return (_has_bits_[0] & 0x00000001u) != 0; |
6214 | 0 | } |
6215 | 0 | inline void ChromeClientInfo::set_has_reporting_population() { |
6216 | 0 | _has_bits_[0] |= 0x00000001u; |
6217 | 0 | } |
6218 | 0 | inline void ChromeClientInfo::clear_has_reporting_population() { |
6219 | 0 | _has_bits_[0] &= ~0x00000001u; |
6220 | 0 | } |
6221 | 0 | inline void ChromeClientInfo::clear_reporting_population() { |
6222 | 0 | reporting_population_ = 0; |
6223 | 0 | clear_has_reporting_population(); |
6224 | 0 | } |
6225 | 0 | inline ::mozilla::safebrowsing::ChromeClientInfo_SafeBrowsingReportingPopulation ChromeClientInfo::reporting_population() const { |
6226 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ChromeClientInfo.reporting_population) |
6227 | 0 | return static_cast< ::mozilla::safebrowsing::ChromeClientInfo_SafeBrowsingReportingPopulation >(reporting_population_); |
6228 | 0 | } |
6229 | 0 | inline void ChromeClientInfo::set_reporting_population(::mozilla::safebrowsing::ChromeClientInfo_SafeBrowsingReportingPopulation value) { |
6230 | 0 | assert(::mozilla::safebrowsing::ChromeClientInfo_SafeBrowsingReportingPopulation_IsValid(value)); |
6231 | 0 | set_has_reporting_population(); |
6232 | 0 | reporting_population_ = value; |
6233 | 0 | // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ChromeClientInfo.reporting_population) |
6234 | 0 | } |
6235 | | |
6236 | | // ------------------------------------------------------------------- |
6237 | | |
6238 | | // Checksum |
6239 | | |
6240 | | // optional bytes sha256 = 1; |
6241 | 0 | inline bool Checksum::has_sha256() const { |
6242 | 0 | return (_has_bits_[0] & 0x00000001u) != 0; |
6243 | 0 | } |
6244 | 0 | inline void Checksum::set_has_sha256() { |
6245 | 0 | _has_bits_[0] |= 0x00000001u; |
6246 | 0 | } |
6247 | 0 | inline void Checksum::clear_has_sha256() { |
6248 | 0 | _has_bits_[0] &= ~0x00000001u; |
6249 | 0 | } |
6250 | 0 | inline void Checksum::clear_sha256() { |
6251 | 0 | sha256_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
6252 | 0 | clear_has_sha256(); |
6253 | 0 | } |
6254 | 0 | inline const ::std::string& Checksum::sha256() const { |
6255 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.Checksum.sha256) |
6256 | 0 | return sha256_.GetNoArena(); |
6257 | 0 | } |
6258 | 0 | inline void Checksum::set_sha256(const ::std::string& value) { |
6259 | 0 | set_has_sha256(); |
6260 | 0 | sha256_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
6261 | 0 | // @@protoc_insertion_point(field_set:mozilla.safebrowsing.Checksum.sha256) |
6262 | 0 | } |
6263 | | #if LANG_CXX11 |
6264 | 0 | inline void Checksum::set_sha256(::std::string&& value) { |
6265 | 0 | set_has_sha256(); |
6266 | 0 | sha256_.SetNoArena( |
6267 | 0 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
6268 | 0 | // @@protoc_insertion_point(field_set_rvalue:mozilla.safebrowsing.Checksum.sha256) |
6269 | 0 | } |
6270 | | #endif |
6271 | 0 | inline void Checksum::set_sha256(const char* value) { |
6272 | 0 | GOOGLE_DCHECK(value != NULL); |
6273 | 0 | set_has_sha256(); |
6274 | 0 | sha256_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
6275 | 0 | // @@protoc_insertion_point(field_set_char:mozilla.safebrowsing.Checksum.sha256) |
6276 | 0 | } |
6277 | | inline void Checksum::set_sha256(const void* value, size_t size) { |
6278 | | set_has_sha256(); |
6279 | | sha256_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
6280 | | ::std::string(reinterpret_cast<const char*>(value), size)); |
6281 | | // @@protoc_insertion_point(field_set_pointer:mozilla.safebrowsing.Checksum.sha256) |
6282 | | } |
6283 | 0 | inline ::std::string* Checksum::mutable_sha256() { |
6284 | 0 | set_has_sha256(); |
6285 | 0 | // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.Checksum.sha256) |
6286 | 0 | return sha256_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
6287 | 0 | } |
6288 | 0 | inline ::std::string* Checksum::release_sha256() { |
6289 | 0 | // @@protoc_insertion_point(field_release:mozilla.safebrowsing.Checksum.sha256) |
6290 | 0 | clear_has_sha256(); |
6291 | 0 | return sha256_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
6292 | 0 | } |
6293 | 0 | inline void Checksum::set_allocated_sha256(::std::string* sha256) { |
6294 | 0 | if (sha256 != NULL) { |
6295 | 0 | set_has_sha256(); |
6296 | 0 | } else { |
6297 | 0 | clear_has_sha256(); |
6298 | 0 | } |
6299 | 0 | sha256_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), sha256); |
6300 | 0 | // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.Checksum.sha256) |
6301 | 0 | } |
6302 | | |
6303 | | // ------------------------------------------------------------------- |
6304 | | |
6305 | | // ThreatEntry |
6306 | | |
6307 | | // optional bytes hash = 1; |
6308 | 0 | inline bool ThreatEntry::has_hash() const { |
6309 | 0 | return (_has_bits_[0] & 0x00000001u) != 0; |
6310 | 0 | } |
6311 | 0 | inline void ThreatEntry::set_has_hash() { |
6312 | 0 | _has_bits_[0] |= 0x00000001u; |
6313 | 0 | } |
6314 | 0 | inline void ThreatEntry::clear_has_hash() { |
6315 | 0 | _has_bits_[0] &= ~0x00000001u; |
6316 | 0 | } |
6317 | 0 | inline void ThreatEntry::clear_hash() { |
6318 | 0 | hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
6319 | 0 | clear_has_hash(); |
6320 | 0 | } |
6321 | 0 | inline const ::std::string& ThreatEntry::hash() const { |
6322 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatEntry.hash) |
6323 | 0 | return hash_.GetNoArena(); |
6324 | 0 | } |
6325 | 0 | inline void ThreatEntry::set_hash(const ::std::string& value) { |
6326 | 0 | set_has_hash(); |
6327 | 0 | hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
6328 | 0 | // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatEntry.hash) |
6329 | 0 | } |
6330 | | #if LANG_CXX11 |
6331 | 0 | inline void ThreatEntry::set_hash(::std::string&& value) { |
6332 | 0 | set_has_hash(); |
6333 | 0 | hash_.SetNoArena( |
6334 | 0 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
6335 | 0 | // @@protoc_insertion_point(field_set_rvalue:mozilla.safebrowsing.ThreatEntry.hash) |
6336 | 0 | } |
6337 | | #endif |
6338 | 0 | inline void ThreatEntry::set_hash(const char* value) { |
6339 | 0 | GOOGLE_DCHECK(value != NULL); |
6340 | 0 | set_has_hash(); |
6341 | 0 | hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
6342 | 0 | // @@protoc_insertion_point(field_set_char:mozilla.safebrowsing.ThreatEntry.hash) |
6343 | 0 | } |
6344 | 0 | inline void ThreatEntry::set_hash(const void* value, size_t size) { |
6345 | 0 | set_has_hash(); |
6346 | 0 | hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
6347 | 0 | ::std::string(reinterpret_cast<const char*>(value), size)); |
6348 | 0 | // @@protoc_insertion_point(field_set_pointer:mozilla.safebrowsing.ThreatEntry.hash) |
6349 | 0 | } |
6350 | 0 | inline ::std::string* ThreatEntry::mutable_hash() { |
6351 | 0 | set_has_hash(); |
6352 | 0 | // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatEntry.hash) |
6353 | 0 | return hash_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
6354 | 0 | } |
6355 | 0 | inline ::std::string* ThreatEntry::release_hash() { |
6356 | 0 | // @@protoc_insertion_point(field_release:mozilla.safebrowsing.ThreatEntry.hash) |
6357 | 0 | clear_has_hash(); |
6358 | 0 | return hash_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
6359 | 0 | } |
6360 | 0 | inline void ThreatEntry::set_allocated_hash(::std::string* hash) { |
6361 | 0 | if (hash != NULL) { |
6362 | 0 | set_has_hash(); |
6363 | 0 | } else { |
6364 | 0 | clear_has_hash(); |
6365 | 0 | } |
6366 | 0 | hash_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), hash); |
6367 | 0 | // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.ThreatEntry.hash) |
6368 | 0 | } |
6369 | | |
6370 | | // optional string url = 2; |
6371 | 0 | inline bool ThreatEntry::has_url() const { |
6372 | 0 | return (_has_bits_[0] & 0x00000002u) != 0; |
6373 | 0 | } |
6374 | 0 | inline void ThreatEntry::set_has_url() { |
6375 | 0 | _has_bits_[0] |= 0x00000002u; |
6376 | 0 | } |
6377 | 0 | inline void ThreatEntry::clear_has_url() { |
6378 | 0 | _has_bits_[0] &= ~0x00000002u; |
6379 | 0 | } |
6380 | 0 | inline void ThreatEntry::clear_url() { |
6381 | 0 | url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
6382 | 0 | clear_has_url(); |
6383 | 0 | } |
6384 | 0 | inline const ::std::string& ThreatEntry::url() const { |
6385 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatEntry.url) |
6386 | 0 | return url_.GetNoArena(); |
6387 | 0 | } |
6388 | 0 | inline void ThreatEntry::set_url(const ::std::string& value) { |
6389 | 0 | set_has_url(); |
6390 | 0 | url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
6391 | 0 | // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatEntry.url) |
6392 | 0 | } |
6393 | | #if LANG_CXX11 |
6394 | 0 | inline void ThreatEntry::set_url(::std::string&& value) { |
6395 | 0 | set_has_url(); |
6396 | 0 | url_.SetNoArena( |
6397 | 0 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
6398 | 0 | // @@protoc_insertion_point(field_set_rvalue:mozilla.safebrowsing.ThreatEntry.url) |
6399 | 0 | } |
6400 | | #endif |
6401 | 0 | inline void ThreatEntry::set_url(const char* value) { |
6402 | 0 | GOOGLE_DCHECK(value != NULL); |
6403 | 0 | set_has_url(); |
6404 | 0 | url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
6405 | 0 | // @@protoc_insertion_point(field_set_char:mozilla.safebrowsing.ThreatEntry.url) |
6406 | 0 | } |
6407 | 0 | inline void ThreatEntry::set_url(const char* value, size_t size) { |
6408 | 0 | set_has_url(); |
6409 | 0 | url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
6410 | 0 | ::std::string(reinterpret_cast<const char*>(value), size)); |
6411 | 0 | // @@protoc_insertion_point(field_set_pointer:mozilla.safebrowsing.ThreatEntry.url) |
6412 | 0 | } |
6413 | 0 | inline ::std::string* ThreatEntry::mutable_url() { |
6414 | 0 | set_has_url(); |
6415 | 0 | // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatEntry.url) |
6416 | 0 | return url_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
6417 | 0 | } |
6418 | 0 | inline ::std::string* ThreatEntry::release_url() { |
6419 | 0 | // @@protoc_insertion_point(field_release:mozilla.safebrowsing.ThreatEntry.url) |
6420 | 0 | clear_has_url(); |
6421 | 0 | return url_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
6422 | 0 | } |
6423 | 0 | inline void ThreatEntry::set_allocated_url(::std::string* url) { |
6424 | 0 | if (url != NULL) { |
6425 | 0 | set_has_url(); |
6426 | 0 | } else { |
6427 | 0 | clear_has_url(); |
6428 | 0 | } |
6429 | 0 | url_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), url); |
6430 | 0 | // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.ThreatEntry.url) |
6431 | 0 | } |
6432 | | |
6433 | | // ------------------------------------------------------------------- |
6434 | | |
6435 | | // ThreatEntrySet |
6436 | | |
6437 | | // optional .mozilla.safebrowsing.CompressionType compression_type = 1; |
6438 | 0 | inline bool ThreatEntrySet::has_compression_type() const { |
6439 | 0 | return (_has_bits_[0] & 0x00000010u) != 0; |
6440 | 0 | } |
6441 | 0 | inline void ThreatEntrySet::set_has_compression_type() { |
6442 | 0 | _has_bits_[0] |= 0x00000010u; |
6443 | 0 | } |
6444 | 0 | inline void ThreatEntrySet::clear_has_compression_type() { |
6445 | 0 | _has_bits_[0] &= ~0x00000010u; |
6446 | 0 | } |
6447 | 0 | inline void ThreatEntrySet::clear_compression_type() { |
6448 | 0 | compression_type_ = 0; |
6449 | 0 | clear_has_compression_type(); |
6450 | 0 | } |
6451 | 0 | inline ::mozilla::safebrowsing::CompressionType ThreatEntrySet::compression_type() const { |
6452 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatEntrySet.compression_type) |
6453 | 0 | return static_cast< ::mozilla::safebrowsing::CompressionType >(compression_type_); |
6454 | 0 | } |
6455 | 0 | inline void ThreatEntrySet::set_compression_type(::mozilla::safebrowsing::CompressionType value) { |
6456 | 0 | assert(::mozilla::safebrowsing::CompressionType_IsValid(value)); |
6457 | 0 | set_has_compression_type(); |
6458 | 0 | compression_type_ = value; |
6459 | 0 | // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatEntrySet.compression_type) |
6460 | 0 | } |
6461 | | |
6462 | | // optional .mozilla.safebrowsing.RawHashes raw_hashes = 2; |
6463 | 0 | inline bool ThreatEntrySet::has_raw_hashes() const { |
6464 | 0 | return (_has_bits_[0] & 0x00000001u) != 0; |
6465 | 0 | } |
6466 | 0 | inline void ThreatEntrySet::set_has_raw_hashes() { |
6467 | 0 | _has_bits_[0] |= 0x00000001u; |
6468 | 0 | } |
6469 | 0 | inline void ThreatEntrySet::clear_has_raw_hashes() { |
6470 | 0 | _has_bits_[0] &= ~0x00000001u; |
6471 | 0 | } |
6472 | 0 | inline void ThreatEntrySet::clear_raw_hashes() { |
6473 | 0 | if (raw_hashes_ != NULL) raw_hashes_->::mozilla::safebrowsing::RawHashes::Clear(); |
6474 | 0 | clear_has_raw_hashes(); |
6475 | 0 | } |
6476 | 0 | inline const ::mozilla::safebrowsing::RawHashes& ThreatEntrySet::raw_hashes() const { |
6477 | 0 | const ::mozilla::safebrowsing::RawHashes* p = raw_hashes_; |
6478 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatEntrySet.raw_hashes) |
6479 | 0 | return p != NULL ? *p : *reinterpret_cast<const ::mozilla::safebrowsing::RawHashes*>( |
6480 | 0 | &::mozilla::safebrowsing::_RawHashes_default_instance_); |
6481 | 0 | } |
6482 | 0 | inline ::mozilla::safebrowsing::RawHashes* ThreatEntrySet::mutable_raw_hashes() { |
6483 | 0 | set_has_raw_hashes(); |
6484 | 0 | if (raw_hashes_ == NULL) { |
6485 | 0 | raw_hashes_ = new ::mozilla::safebrowsing::RawHashes; |
6486 | 0 | } |
6487 | 0 | // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatEntrySet.raw_hashes) |
6488 | 0 | return raw_hashes_; |
6489 | 0 | } |
6490 | 0 | inline ::mozilla::safebrowsing::RawHashes* ThreatEntrySet::release_raw_hashes() { |
6491 | 0 | // @@protoc_insertion_point(field_release:mozilla.safebrowsing.ThreatEntrySet.raw_hashes) |
6492 | 0 | clear_has_raw_hashes(); |
6493 | 0 | ::mozilla::safebrowsing::RawHashes* temp = raw_hashes_; |
6494 | 0 | raw_hashes_ = NULL; |
6495 | 0 | return temp; |
6496 | 0 | } |
6497 | 0 | inline void ThreatEntrySet::set_allocated_raw_hashes(::mozilla::safebrowsing::RawHashes* raw_hashes) { |
6498 | 0 | delete raw_hashes_; |
6499 | 0 | raw_hashes_ = raw_hashes; |
6500 | 0 | if (raw_hashes) { |
6501 | 0 | set_has_raw_hashes(); |
6502 | 0 | } else { |
6503 | 0 | clear_has_raw_hashes(); |
6504 | 0 | } |
6505 | 0 | // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.ThreatEntrySet.raw_hashes) |
6506 | 0 | } |
6507 | | |
6508 | | // optional .mozilla.safebrowsing.RawIndices raw_indices = 3; |
6509 | 0 | inline bool ThreatEntrySet::has_raw_indices() const { |
6510 | 0 | return (_has_bits_[0] & 0x00000002u) != 0; |
6511 | 0 | } |
6512 | 0 | inline void ThreatEntrySet::set_has_raw_indices() { |
6513 | 0 | _has_bits_[0] |= 0x00000002u; |
6514 | 0 | } |
6515 | 0 | inline void ThreatEntrySet::clear_has_raw_indices() { |
6516 | 0 | _has_bits_[0] &= ~0x00000002u; |
6517 | 0 | } |
6518 | 0 | inline void ThreatEntrySet::clear_raw_indices() { |
6519 | 0 | if (raw_indices_ != NULL) raw_indices_->::mozilla::safebrowsing::RawIndices::Clear(); |
6520 | 0 | clear_has_raw_indices(); |
6521 | 0 | } |
6522 | 0 | inline const ::mozilla::safebrowsing::RawIndices& ThreatEntrySet::raw_indices() const { |
6523 | 0 | const ::mozilla::safebrowsing::RawIndices* p = raw_indices_; |
6524 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatEntrySet.raw_indices) |
6525 | 0 | return p != NULL ? *p : *reinterpret_cast<const ::mozilla::safebrowsing::RawIndices*>( |
6526 | 0 | &::mozilla::safebrowsing::_RawIndices_default_instance_); |
6527 | 0 | } |
6528 | 0 | inline ::mozilla::safebrowsing::RawIndices* ThreatEntrySet::mutable_raw_indices() { |
6529 | 0 | set_has_raw_indices(); |
6530 | 0 | if (raw_indices_ == NULL) { |
6531 | 0 | raw_indices_ = new ::mozilla::safebrowsing::RawIndices; |
6532 | 0 | } |
6533 | 0 | // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatEntrySet.raw_indices) |
6534 | 0 | return raw_indices_; |
6535 | 0 | } |
6536 | 0 | inline ::mozilla::safebrowsing::RawIndices* ThreatEntrySet::release_raw_indices() { |
6537 | 0 | // @@protoc_insertion_point(field_release:mozilla.safebrowsing.ThreatEntrySet.raw_indices) |
6538 | 0 | clear_has_raw_indices(); |
6539 | 0 | ::mozilla::safebrowsing::RawIndices* temp = raw_indices_; |
6540 | 0 | raw_indices_ = NULL; |
6541 | 0 | return temp; |
6542 | 0 | } |
6543 | 0 | inline void ThreatEntrySet::set_allocated_raw_indices(::mozilla::safebrowsing::RawIndices* raw_indices) { |
6544 | 0 | delete raw_indices_; |
6545 | 0 | raw_indices_ = raw_indices; |
6546 | 0 | if (raw_indices) { |
6547 | 0 | set_has_raw_indices(); |
6548 | 0 | } else { |
6549 | 0 | clear_has_raw_indices(); |
6550 | 0 | } |
6551 | 0 | // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.ThreatEntrySet.raw_indices) |
6552 | 0 | } |
6553 | | |
6554 | | // optional .mozilla.safebrowsing.RiceDeltaEncoding rice_hashes = 4; |
6555 | 0 | inline bool ThreatEntrySet::has_rice_hashes() const { |
6556 | 0 | return (_has_bits_[0] & 0x00000004u) != 0; |
6557 | 0 | } |
6558 | 0 | inline void ThreatEntrySet::set_has_rice_hashes() { |
6559 | 0 | _has_bits_[0] |= 0x00000004u; |
6560 | 0 | } |
6561 | 0 | inline void ThreatEntrySet::clear_has_rice_hashes() { |
6562 | 0 | _has_bits_[0] &= ~0x00000004u; |
6563 | 0 | } |
6564 | 0 | inline void ThreatEntrySet::clear_rice_hashes() { |
6565 | 0 | if (rice_hashes_ != NULL) rice_hashes_->::mozilla::safebrowsing::RiceDeltaEncoding::Clear(); |
6566 | 0 | clear_has_rice_hashes(); |
6567 | 0 | } |
6568 | 0 | inline const ::mozilla::safebrowsing::RiceDeltaEncoding& ThreatEntrySet::rice_hashes() const { |
6569 | 0 | const ::mozilla::safebrowsing::RiceDeltaEncoding* p = rice_hashes_; |
6570 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatEntrySet.rice_hashes) |
6571 | 0 | return p != NULL ? *p : *reinterpret_cast<const ::mozilla::safebrowsing::RiceDeltaEncoding*>( |
6572 | 0 | &::mozilla::safebrowsing::_RiceDeltaEncoding_default_instance_); |
6573 | 0 | } |
6574 | 0 | inline ::mozilla::safebrowsing::RiceDeltaEncoding* ThreatEntrySet::mutable_rice_hashes() { |
6575 | 0 | set_has_rice_hashes(); |
6576 | 0 | if (rice_hashes_ == NULL) { |
6577 | 0 | rice_hashes_ = new ::mozilla::safebrowsing::RiceDeltaEncoding; |
6578 | 0 | } |
6579 | 0 | // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatEntrySet.rice_hashes) |
6580 | 0 | return rice_hashes_; |
6581 | 0 | } |
6582 | 0 | inline ::mozilla::safebrowsing::RiceDeltaEncoding* ThreatEntrySet::release_rice_hashes() { |
6583 | 0 | // @@protoc_insertion_point(field_release:mozilla.safebrowsing.ThreatEntrySet.rice_hashes) |
6584 | 0 | clear_has_rice_hashes(); |
6585 | 0 | ::mozilla::safebrowsing::RiceDeltaEncoding* temp = rice_hashes_; |
6586 | 0 | rice_hashes_ = NULL; |
6587 | 0 | return temp; |
6588 | 0 | } |
6589 | 0 | inline void ThreatEntrySet::set_allocated_rice_hashes(::mozilla::safebrowsing::RiceDeltaEncoding* rice_hashes) { |
6590 | 0 | delete rice_hashes_; |
6591 | 0 | rice_hashes_ = rice_hashes; |
6592 | 0 | if (rice_hashes) { |
6593 | 0 | set_has_rice_hashes(); |
6594 | 0 | } else { |
6595 | 0 | clear_has_rice_hashes(); |
6596 | 0 | } |
6597 | 0 | // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.ThreatEntrySet.rice_hashes) |
6598 | 0 | } |
6599 | | |
6600 | | // optional .mozilla.safebrowsing.RiceDeltaEncoding rice_indices = 5; |
6601 | 0 | inline bool ThreatEntrySet::has_rice_indices() const { |
6602 | 0 | return (_has_bits_[0] & 0x00000008u) != 0; |
6603 | 0 | } |
6604 | 0 | inline void ThreatEntrySet::set_has_rice_indices() { |
6605 | 0 | _has_bits_[0] |= 0x00000008u; |
6606 | 0 | } |
6607 | 0 | inline void ThreatEntrySet::clear_has_rice_indices() { |
6608 | 0 | _has_bits_[0] &= ~0x00000008u; |
6609 | 0 | } |
6610 | 0 | inline void ThreatEntrySet::clear_rice_indices() { |
6611 | 0 | if (rice_indices_ != NULL) rice_indices_->::mozilla::safebrowsing::RiceDeltaEncoding::Clear(); |
6612 | 0 | clear_has_rice_indices(); |
6613 | 0 | } |
6614 | 0 | inline const ::mozilla::safebrowsing::RiceDeltaEncoding& ThreatEntrySet::rice_indices() const { |
6615 | 0 | const ::mozilla::safebrowsing::RiceDeltaEncoding* p = rice_indices_; |
6616 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatEntrySet.rice_indices) |
6617 | 0 | return p != NULL ? *p : *reinterpret_cast<const ::mozilla::safebrowsing::RiceDeltaEncoding*>( |
6618 | 0 | &::mozilla::safebrowsing::_RiceDeltaEncoding_default_instance_); |
6619 | 0 | } |
6620 | 0 | inline ::mozilla::safebrowsing::RiceDeltaEncoding* ThreatEntrySet::mutable_rice_indices() { |
6621 | 0 | set_has_rice_indices(); |
6622 | 0 | if (rice_indices_ == NULL) { |
6623 | 0 | rice_indices_ = new ::mozilla::safebrowsing::RiceDeltaEncoding; |
6624 | 0 | } |
6625 | 0 | // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatEntrySet.rice_indices) |
6626 | 0 | return rice_indices_; |
6627 | 0 | } |
6628 | 0 | inline ::mozilla::safebrowsing::RiceDeltaEncoding* ThreatEntrySet::release_rice_indices() { |
6629 | 0 | // @@protoc_insertion_point(field_release:mozilla.safebrowsing.ThreatEntrySet.rice_indices) |
6630 | 0 | clear_has_rice_indices(); |
6631 | 0 | ::mozilla::safebrowsing::RiceDeltaEncoding* temp = rice_indices_; |
6632 | 0 | rice_indices_ = NULL; |
6633 | 0 | return temp; |
6634 | 0 | } |
6635 | 0 | inline void ThreatEntrySet::set_allocated_rice_indices(::mozilla::safebrowsing::RiceDeltaEncoding* rice_indices) { |
6636 | 0 | delete rice_indices_; |
6637 | 0 | rice_indices_ = rice_indices; |
6638 | 0 | if (rice_indices) { |
6639 | 0 | set_has_rice_indices(); |
6640 | 0 | } else { |
6641 | 0 | clear_has_rice_indices(); |
6642 | 0 | } |
6643 | 0 | // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.ThreatEntrySet.rice_indices) |
6644 | 0 | } |
6645 | | |
6646 | | // ------------------------------------------------------------------- |
6647 | | |
6648 | | // RawIndices |
6649 | | |
6650 | | // repeated int32 indices = 1; |
6651 | 0 | inline int RawIndices::indices_size() const { |
6652 | 0 | return indices_.size(); |
6653 | 0 | } |
6654 | 0 | inline void RawIndices::clear_indices() { |
6655 | 0 | indices_.Clear(); |
6656 | 0 | } |
6657 | 0 | inline ::google::protobuf::int32 RawIndices::indices(int index) const { |
6658 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.RawIndices.indices) |
6659 | 0 | return indices_.Get(index); |
6660 | 0 | } |
6661 | 0 | inline void RawIndices::set_indices(int index, ::google::protobuf::int32 value) { |
6662 | 0 | indices_.Set(index, value); |
6663 | 0 | // @@protoc_insertion_point(field_set:mozilla.safebrowsing.RawIndices.indices) |
6664 | 0 | } |
6665 | 0 | inline void RawIndices::add_indices(::google::protobuf::int32 value) { |
6666 | 0 | indices_.Add(value); |
6667 | 0 | // @@protoc_insertion_point(field_add:mozilla.safebrowsing.RawIndices.indices) |
6668 | 0 | } |
6669 | | inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& |
6670 | 0 | RawIndices::indices() const { |
6671 | 0 | // @@protoc_insertion_point(field_list:mozilla.safebrowsing.RawIndices.indices) |
6672 | 0 | return indices_; |
6673 | 0 | } |
6674 | | inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* |
6675 | 0 | RawIndices::mutable_indices() { |
6676 | 0 | // @@protoc_insertion_point(field_mutable_list:mozilla.safebrowsing.RawIndices.indices) |
6677 | 0 | return &indices_; |
6678 | 0 | } |
6679 | | |
6680 | | // ------------------------------------------------------------------- |
6681 | | |
6682 | | // RawHashes |
6683 | | |
6684 | | // optional int32 prefix_size = 1; |
6685 | 0 | inline bool RawHashes::has_prefix_size() const { |
6686 | 0 | return (_has_bits_[0] & 0x00000002u) != 0; |
6687 | 0 | } |
6688 | 0 | inline void RawHashes::set_has_prefix_size() { |
6689 | 0 | _has_bits_[0] |= 0x00000002u; |
6690 | 0 | } |
6691 | 0 | inline void RawHashes::clear_has_prefix_size() { |
6692 | 0 | _has_bits_[0] &= ~0x00000002u; |
6693 | 0 | } |
6694 | 0 | inline void RawHashes::clear_prefix_size() { |
6695 | 0 | prefix_size_ = 0; |
6696 | 0 | clear_has_prefix_size(); |
6697 | 0 | } |
6698 | 0 | inline ::google::protobuf::int32 RawHashes::prefix_size() const { |
6699 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.RawHashes.prefix_size) |
6700 | 0 | return prefix_size_; |
6701 | 0 | } |
6702 | | inline void RawHashes::set_prefix_size(::google::protobuf::int32 value) { |
6703 | | set_has_prefix_size(); |
6704 | | prefix_size_ = value; |
6705 | | // @@protoc_insertion_point(field_set:mozilla.safebrowsing.RawHashes.prefix_size) |
6706 | | } |
6707 | | |
6708 | | // optional bytes raw_hashes = 2; |
6709 | 0 | inline bool RawHashes::has_raw_hashes() const { |
6710 | 0 | return (_has_bits_[0] & 0x00000001u) != 0; |
6711 | 0 | } |
6712 | 0 | inline void RawHashes::set_has_raw_hashes() { |
6713 | 0 | _has_bits_[0] |= 0x00000001u; |
6714 | 0 | } |
6715 | 0 | inline void RawHashes::clear_has_raw_hashes() { |
6716 | 0 | _has_bits_[0] &= ~0x00000001u; |
6717 | 0 | } |
6718 | 0 | inline void RawHashes::clear_raw_hashes() { |
6719 | 0 | raw_hashes_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
6720 | 0 | clear_has_raw_hashes(); |
6721 | 0 | } |
6722 | 0 | inline const ::std::string& RawHashes::raw_hashes() const { |
6723 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.RawHashes.raw_hashes) |
6724 | 0 | return raw_hashes_.GetNoArena(); |
6725 | 0 | } |
6726 | 0 | inline void RawHashes::set_raw_hashes(const ::std::string& value) { |
6727 | 0 | set_has_raw_hashes(); |
6728 | 0 | raw_hashes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
6729 | 0 | // @@protoc_insertion_point(field_set:mozilla.safebrowsing.RawHashes.raw_hashes) |
6730 | 0 | } |
6731 | | #if LANG_CXX11 |
6732 | 0 | inline void RawHashes::set_raw_hashes(::std::string&& value) { |
6733 | 0 | set_has_raw_hashes(); |
6734 | 0 | raw_hashes_.SetNoArena( |
6735 | 0 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
6736 | 0 | // @@protoc_insertion_point(field_set_rvalue:mozilla.safebrowsing.RawHashes.raw_hashes) |
6737 | 0 | } |
6738 | | #endif |
6739 | 0 | inline void RawHashes::set_raw_hashes(const char* value) { |
6740 | 0 | GOOGLE_DCHECK(value != NULL); |
6741 | 0 | set_has_raw_hashes(); |
6742 | 0 | raw_hashes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
6743 | 0 | // @@protoc_insertion_point(field_set_char:mozilla.safebrowsing.RawHashes.raw_hashes) |
6744 | 0 | } |
6745 | 0 | inline void RawHashes::set_raw_hashes(const void* value, size_t size) { |
6746 | 0 | set_has_raw_hashes(); |
6747 | 0 | raw_hashes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
6748 | 0 | ::std::string(reinterpret_cast<const char*>(value), size)); |
6749 | 0 | // @@protoc_insertion_point(field_set_pointer:mozilla.safebrowsing.RawHashes.raw_hashes) |
6750 | 0 | } |
6751 | 0 | inline ::std::string* RawHashes::mutable_raw_hashes() { |
6752 | 0 | set_has_raw_hashes(); |
6753 | 0 | // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.RawHashes.raw_hashes) |
6754 | 0 | return raw_hashes_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
6755 | 0 | } |
6756 | 0 | inline ::std::string* RawHashes::release_raw_hashes() { |
6757 | 0 | // @@protoc_insertion_point(field_release:mozilla.safebrowsing.RawHashes.raw_hashes) |
6758 | 0 | clear_has_raw_hashes(); |
6759 | 0 | return raw_hashes_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
6760 | 0 | } |
6761 | 0 | inline void RawHashes::set_allocated_raw_hashes(::std::string* raw_hashes) { |
6762 | 0 | if (raw_hashes != NULL) { |
6763 | 0 | set_has_raw_hashes(); |
6764 | 0 | } else { |
6765 | 0 | clear_has_raw_hashes(); |
6766 | 0 | } |
6767 | 0 | raw_hashes_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), raw_hashes); |
6768 | 0 | // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.RawHashes.raw_hashes) |
6769 | 0 | } |
6770 | | |
6771 | | // ------------------------------------------------------------------- |
6772 | | |
6773 | | // RiceDeltaEncoding |
6774 | | |
6775 | | // optional int64 first_value = 1; |
6776 | 0 | inline bool RiceDeltaEncoding::has_first_value() const { |
6777 | 0 | return (_has_bits_[0] & 0x00000002u) != 0; |
6778 | 0 | } |
6779 | 0 | inline void RiceDeltaEncoding::set_has_first_value() { |
6780 | 0 | _has_bits_[0] |= 0x00000002u; |
6781 | 0 | } |
6782 | 0 | inline void RiceDeltaEncoding::clear_has_first_value() { |
6783 | 0 | _has_bits_[0] &= ~0x00000002u; |
6784 | 0 | } |
6785 | 0 | inline void RiceDeltaEncoding::clear_first_value() { |
6786 | 0 | first_value_ = GOOGLE_LONGLONG(0); |
6787 | 0 | clear_has_first_value(); |
6788 | 0 | } |
6789 | 0 | inline ::google::protobuf::int64 RiceDeltaEncoding::first_value() const { |
6790 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.RiceDeltaEncoding.first_value) |
6791 | 0 | return first_value_; |
6792 | 0 | } |
6793 | | inline void RiceDeltaEncoding::set_first_value(::google::protobuf::int64 value) { |
6794 | | set_has_first_value(); |
6795 | | first_value_ = value; |
6796 | | // @@protoc_insertion_point(field_set:mozilla.safebrowsing.RiceDeltaEncoding.first_value) |
6797 | | } |
6798 | | |
6799 | | // optional int32 rice_parameter = 2; |
6800 | 0 | inline bool RiceDeltaEncoding::has_rice_parameter() const { |
6801 | 0 | return (_has_bits_[0] & 0x00000004u) != 0; |
6802 | 0 | } |
6803 | 0 | inline void RiceDeltaEncoding::set_has_rice_parameter() { |
6804 | 0 | _has_bits_[0] |= 0x00000004u; |
6805 | 0 | } |
6806 | 0 | inline void RiceDeltaEncoding::clear_has_rice_parameter() { |
6807 | 0 | _has_bits_[0] &= ~0x00000004u; |
6808 | 0 | } |
6809 | 0 | inline void RiceDeltaEncoding::clear_rice_parameter() { |
6810 | 0 | rice_parameter_ = 0; |
6811 | 0 | clear_has_rice_parameter(); |
6812 | 0 | } |
6813 | 0 | inline ::google::protobuf::int32 RiceDeltaEncoding::rice_parameter() const { |
6814 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.RiceDeltaEncoding.rice_parameter) |
6815 | 0 | return rice_parameter_; |
6816 | 0 | } |
6817 | 0 | inline void RiceDeltaEncoding::set_rice_parameter(::google::protobuf::int32 value) { |
6818 | 0 | set_has_rice_parameter(); |
6819 | 0 | rice_parameter_ = value; |
6820 | 0 | // @@protoc_insertion_point(field_set:mozilla.safebrowsing.RiceDeltaEncoding.rice_parameter) |
6821 | 0 | } |
6822 | | |
6823 | | // optional int32 num_entries = 3; |
6824 | 0 | inline bool RiceDeltaEncoding::has_num_entries() const { |
6825 | 0 | return (_has_bits_[0] & 0x00000008u) != 0; |
6826 | 0 | } |
6827 | 0 | inline void RiceDeltaEncoding::set_has_num_entries() { |
6828 | 0 | _has_bits_[0] |= 0x00000008u; |
6829 | 0 | } |
6830 | 0 | inline void RiceDeltaEncoding::clear_has_num_entries() { |
6831 | 0 | _has_bits_[0] &= ~0x00000008u; |
6832 | 0 | } |
6833 | 0 | inline void RiceDeltaEncoding::clear_num_entries() { |
6834 | 0 | num_entries_ = 0; |
6835 | 0 | clear_has_num_entries(); |
6836 | 0 | } |
6837 | 0 | inline ::google::protobuf::int32 RiceDeltaEncoding::num_entries() const { |
6838 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.RiceDeltaEncoding.num_entries) |
6839 | 0 | return num_entries_; |
6840 | 0 | } |
6841 | | inline void RiceDeltaEncoding::set_num_entries(::google::protobuf::int32 value) { |
6842 | | set_has_num_entries(); |
6843 | | num_entries_ = value; |
6844 | | // @@protoc_insertion_point(field_set:mozilla.safebrowsing.RiceDeltaEncoding.num_entries) |
6845 | | } |
6846 | | |
6847 | | // optional bytes encoded_data = 4; |
6848 | 0 | inline bool RiceDeltaEncoding::has_encoded_data() const { |
6849 | 0 | return (_has_bits_[0] & 0x00000001u) != 0; |
6850 | 0 | } |
6851 | 0 | inline void RiceDeltaEncoding::set_has_encoded_data() { |
6852 | 0 | _has_bits_[0] |= 0x00000001u; |
6853 | 0 | } |
6854 | 0 | inline void RiceDeltaEncoding::clear_has_encoded_data() { |
6855 | 0 | _has_bits_[0] &= ~0x00000001u; |
6856 | 0 | } |
6857 | 0 | inline void RiceDeltaEncoding::clear_encoded_data() { |
6858 | 0 | encoded_data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
6859 | 0 | clear_has_encoded_data(); |
6860 | 0 | } |
6861 | 0 | inline const ::std::string& RiceDeltaEncoding::encoded_data() const { |
6862 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.RiceDeltaEncoding.encoded_data) |
6863 | 0 | return encoded_data_.GetNoArena(); |
6864 | 0 | } |
6865 | 0 | inline void RiceDeltaEncoding::set_encoded_data(const ::std::string& value) { |
6866 | 0 | set_has_encoded_data(); |
6867 | 0 | encoded_data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
6868 | 0 | // @@protoc_insertion_point(field_set:mozilla.safebrowsing.RiceDeltaEncoding.encoded_data) |
6869 | 0 | } |
6870 | | #if LANG_CXX11 |
6871 | 0 | inline void RiceDeltaEncoding::set_encoded_data(::std::string&& value) { |
6872 | 0 | set_has_encoded_data(); |
6873 | 0 | encoded_data_.SetNoArena( |
6874 | 0 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
6875 | 0 | // @@protoc_insertion_point(field_set_rvalue:mozilla.safebrowsing.RiceDeltaEncoding.encoded_data) |
6876 | 0 | } |
6877 | | #endif |
6878 | 0 | inline void RiceDeltaEncoding::set_encoded_data(const char* value) { |
6879 | 0 | GOOGLE_DCHECK(value != NULL); |
6880 | 0 | set_has_encoded_data(); |
6881 | 0 | encoded_data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
6882 | 0 | // @@protoc_insertion_point(field_set_char:mozilla.safebrowsing.RiceDeltaEncoding.encoded_data) |
6883 | 0 | } |
6884 | 0 | inline void RiceDeltaEncoding::set_encoded_data(const void* value, size_t size) { |
6885 | 0 | set_has_encoded_data(); |
6886 | 0 | encoded_data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
6887 | 0 | ::std::string(reinterpret_cast<const char*>(value), size)); |
6888 | 0 | // @@protoc_insertion_point(field_set_pointer:mozilla.safebrowsing.RiceDeltaEncoding.encoded_data) |
6889 | 0 | } |
6890 | 0 | inline ::std::string* RiceDeltaEncoding::mutable_encoded_data() { |
6891 | 0 | set_has_encoded_data(); |
6892 | 0 | // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.RiceDeltaEncoding.encoded_data) |
6893 | 0 | return encoded_data_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
6894 | 0 | } |
6895 | 0 | inline ::std::string* RiceDeltaEncoding::release_encoded_data() { |
6896 | 0 | // @@protoc_insertion_point(field_release:mozilla.safebrowsing.RiceDeltaEncoding.encoded_data) |
6897 | 0 | clear_has_encoded_data(); |
6898 | 0 | return encoded_data_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
6899 | 0 | } |
6900 | 0 | inline void RiceDeltaEncoding::set_allocated_encoded_data(::std::string* encoded_data) { |
6901 | 0 | if (encoded_data != NULL) { |
6902 | 0 | set_has_encoded_data(); |
6903 | 0 | } else { |
6904 | 0 | clear_has_encoded_data(); |
6905 | 0 | } |
6906 | 0 | encoded_data_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), encoded_data); |
6907 | 0 | // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.RiceDeltaEncoding.encoded_data) |
6908 | 0 | } |
6909 | | |
6910 | | // ------------------------------------------------------------------- |
6911 | | |
6912 | | // ThreatEntryMetadata_MetadataEntry |
6913 | | |
6914 | | // optional bytes key = 1; |
6915 | 0 | inline bool ThreatEntryMetadata_MetadataEntry::has_key() const { |
6916 | 0 | return (_has_bits_[0] & 0x00000001u) != 0; |
6917 | 0 | } |
6918 | 0 | inline void ThreatEntryMetadata_MetadataEntry::set_has_key() { |
6919 | 0 | _has_bits_[0] |= 0x00000001u; |
6920 | 0 | } |
6921 | 0 | inline void ThreatEntryMetadata_MetadataEntry::clear_has_key() { |
6922 | 0 | _has_bits_[0] &= ~0x00000001u; |
6923 | 0 | } |
6924 | 0 | inline void ThreatEntryMetadata_MetadataEntry::clear_key() { |
6925 | 0 | key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
6926 | 0 | clear_has_key(); |
6927 | 0 | } |
6928 | 0 | inline const ::std::string& ThreatEntryMetadata_MetadataEntry::key() const { |
6929 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry.key) |
6930 | 0 | return key_.GetNoArena(); |
6931 | 0 | } |
6932 | 0 | inline void ThreatEntryMetadata_MetadataEntry::set_key(const ::std::string& value) { |
6933 | 0 | set_has_key(); |
6934 | 0 | key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
6935 | 0 | // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry.key) |
6936 | 0 | } |
6937 | | #if LANG_CXX11 |
6938 | 0 | inline void ThreatEntryMetadata_MetadataEntry::set_key(::std::string&& value) { |
6939 | 0 | set_has_key(); |
6940 | 0 | key_.SetNoArena( |
6941 | 0 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
6942 | 0 | // @@protoc_insertion_point(field_set_rvalue:mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry.key) |
6943 | 0 | } |
6944 | | #endif |
6945 | 0 | inline void ThreatEntryMetadata_MetadataEntry::set_key(const char* value) { |
6946 | 0 | GOOGLE_DCHECK(value != NULL); |
6947 | 0 | set_has_key(); |
6948 | 0 | key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
6949 | 0 | // @@protoc_insertion_point(field_set_char:mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry.key) |
6950 | 0 | } |
6951 | 0 | inline void ThreatEntryMetadata_MetadataEntry::set_key(const void* value, size_t size) { |
6952 | 0 | set_has_key(); |
6953 | 0 | key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
6954 | 0 | ::std::string(reinterpret_cast<const char*>(value), size)); |
6955 | 0 | // @@protoc_insertion_point(field_set_pointer:mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry.key) |
6956 | 0 | } |
6957 | 0 | inline ::std::string* ThreatEntryMetadata_MetadataEntry::mutable_key() { |
6958 | 0 | set_has_key(); |
6959 | 0 | // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry.key) |
6960 | 0 | return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
6961 | 0 | } |
6962 | 0 | inline ::std::string* ThreatEntryMetadata_MetadataEntry::release_key() { |
6963 | 0 | // @@protoc_insertion_point(field_release:mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry.key) |
6964 | 0 | clear_has_key(); |
6965 | 0 | return key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
6966 | 0 | } |
6967 | 0 | inline void ThreatEntryMetadata_MetadataEntry::set_allocated_key(::std::string* key) { |
6968 | 0 | if (key != NULL) { |
6969 | 0 | set_has_key(); |
6970 | 0 | } else { |
6971 | 0 | clear_has_key(); |
6972 | 0 | } |
6973 | 0 | key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key); |
6974 | 0 | // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry.key) |
6975 | 0 | } |
6976 | | |
6977 | | // optional bytes value = 2; |
6978 | 0 | inline bool ThreatEntryMetadata_MetadataEntry::has_value() const { |
6979 | 0 | return (_has_bits_[0] & 0x00000002u) != 0; |
6980 | 0 | } |
6981 | 0 | inline void ThreatEntryMetadata_MetadataEntry::set_has_value() { |
6982 | 0 | _has_bits_[0] |= 0x00000002u; |
6983 | 0 | } |
6984 | 0 | inline void ThreatEntryMetadata_MetadataEntry::clear_has_value() { |
6985 | 0 | _has_bits_[0] &= ~0x00000002u; |
6986 | 0 | } |
6987 | 0 | inline void ThreatEntryMetadata_MetadataEntry::clear_value() { |
6988 | 0 | value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
6989 | 0 | clear_has_value(); |
6990 | 0 | } |
6991 | 0 | inline const ::std::string& ThreatEntryMetadata_MetadataEntry::value() const { |
6992 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry.value) |
6993 | 0 | return value_.GetNoArena(); |
6994 | 0 | } |
6995 | 0 | inline void ThreatEntryMetadata_MetadataEntry::set_value(const ::std::string& value) { |
6996 | 0 | set_has_value(); |
6997 | 0 | value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
6998 | 0 | // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry.value) |
6999 | 0 | } |
7000 | | #if LANG_CXX11 |
7001 | 0 | inline void ThreatEntryMetadata_MetadataEntry::set_value(::std::string&& value) { |
7002 | 0 | set_has_value(); |
7003 | 0 | value_.SetNoArena( |
7004 | 0 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
7005 | 0 | // @@protoc_insertion_point(field_set_rvalue:mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry.value) |
7006 | 0 | } |
7007 | | #endif |
7008 | 0 | inline void ThreatEntryMetadata_MetadataEntry::set_value(const char* value) { |
7009 | 0 | GOOGLE_DCHECK(value != NULL); |
7010 | 0 | set_has_value(); |
7011 | 0 | value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
7012 | 0 | // @@protoc_insertion_point(field_set_char:mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry.value) |
7013 | 0 | } |
7014 | 0 | inline void ThreatEntryMetadata_MetadataEntry::set_value(const void* value, size_t size) { |
7015 | 0 | set_has_value(); |
7016 | 0 | value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
7017 | 0 | ::std::string(reinterpret_cast<const char*>(value), size)); |
7018 | 0 | // @@protoc_insertion_point(field_set_pointer:mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry.value) |
7019 | 0 | } |
7020 | 0 | inline ::std::string* ThreatEntryMetadata_MetadataEntry::mutable_value() { |
7021 | 0 | set_has_value(); |
7022 | 0 | // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry.value) |
7023 | 0 | return value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
7024 | 0 | } |
7025 | 0 | inline ::std::string* ThreatEntryMetadata_MetadataEntry::release_value() { |
7026 | 0 | // @@protoc_insertion_point(field_release:mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry.value) |
7027 | 0 | clear_has_value(); |
7028 | 0 | return value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
7029 | 0 | } |
7030 | 0 | inline void ThreatEntryMetadata_MetadataEntry::set_allocated_value(::std::string* value) { |
7031 | 0 | if (value != NULL) { |
7032 | 0 | set_has_value(); |
7033 | 0 | } else { |
7034 | 0 | clear_has_value(); |
7035 | 0 | } |
7036 | 0 | value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
7037 | 0 | // @@protoc_insertion_point(field_set_allocated:mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry.value) |
7038 | 0 | } |
7039 | | |
7040 | | // ------------------------------------------------------------------- |
7041 | | |
7042 | | // ThreatEntryMetadata |
7043 | | |
7044 | | // repeated .mozilla.safebrowsing.ThreatEntryMetadata.MetadataEntry entries = 1; |
7045 | 0 | inline int ThreatEntryMetadata::entries_size() const { |
7046 | 0 | return entries_.size(); |
7047 | 0 | } |
7048 | 0 | inline void ThreatEntryMetadata::clear_entries() { |
7049 | 0 | entries_.Clear(); |
7050 | 0 | } |
7051 | 0 | inline const ::mozilla::safebrowsing::ThreatEntryMetadata_MetadataEntry& ThreatEntryMetadata::entries(int index) const { |
7052 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatEntryMetadata.entries) |
7053 | 0 | return entries_.Get(index); |
7054 | 0 | } |
7055 | 0 | inline ::mozilla::safebrowsing::ThreatEntryMetadata_MetadataEntry* ThreatEntryMetadata::mutable_entries(int index) { |
7056 | 0 | // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ThreatEntryMetadata.entries) |
7057 | 0 | return entries_.Mutable(index); |
7058 | 0 | } |
7059 | 0 | inline ::mozilla::safebrowsing::ThreatEntryMetadata_MetadataEntry* ThreatEntryMetadata::add_entries() { |
7060 | 0 | // @@protoc_insertion_point(field_add:mozilla.safebrowsing.ThreatEntryMetadata.entries) |
7061 | 0 | return entries_.Add(); |
7062 | 0 | } |
7063 | | inline ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatEntryMetadata_MetadataEntry >* |
7064 | 0 | ThreatEntryMetadata::mutable_entries() { |
7065 | 0 | // @@protoc_insertion_point(field_mutable_list:mozilla.safebrowsing.ThreatEntryMetadata.entries) |
7066 | 0 | return &entries_; |
7067 | 0 | } |
7068 | | inline const ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatEntryMetadata_MetadataEntry >& |
7069 | 0 | ThreatEntryMetadata::entries() const { |
7070 | 0 | // @@protoc_insertion_point(field_list:mozilla.safebrowsing.ThreatEntryMetadata.entries) |
7071 | 0 | return entries_; |
7072 | 0 | } |
7073 | | |
7074 | | // ------------------------------------------------------------------- |
7075 | | |
7076 | | // ThreatListDescriptor |
7077 | | |
7078 | | // optional .mozilla.safebrowsing.ThreatType threat_type = 1; |
7079 | 0 | inline bool ThreatListDescriptor::has_threat_type() const { |
7080 | 0 | return (_has_bits_[0] & 0x00000001u) != 0; |
7081 | 0 | } |
7082 | 0 | inline void ThreatListDescriptor::set_has_threat_type() { |
7083 | 0 | _has_bits_[0] |= 0x00000001u; |
7084 | 0 | } |
7085 | 0 | inline void ThreatListDescriptor::clear_has_threat_type() { |
7086 | 0 | _has_bits_[0] &= ~0x00000001u; |
7087 | 0 | } |
7088 | 0 | inline void ThreatListDescriptor::clear_threat_type() { |
7089 | 0 | threat_type_ = 0; |
7090 | 0 | clear_has_threat_type(); |
7091 | 0 | } |
7092 | 0 | inline ::mozilla::safebrowsing::ThreatType ThreatListDescriptor::threat_type() const { |
7093 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatListDescriptor.threat_type) |
7094 | 0 | return static_cast< ::mozilla::safebrowsing::ThreatType >(threat_type_); |
7095 | 0 | } |
7096 | 0 | inline void ThreatListDescriptor::set_threat_type(::mozilla::safebrowsing::ThreatType value) { |
7097 | 0 | assert(::mozilla::safebrowsing::ThreatType_IsValid(value)); |
7098 | 0 | set_has_threat_type(); |
7099 | 0 | threat_type_ = value; |
7100 | 0 | // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatListDescriptor.threat_type) |
7101 | 0 | } |
7102 | | |
7103 | | // optional .mozilla.safebrowsing.PlatformType platform_type = 2; |
7104 | 0 | inline bool ThreatListDescriptor::has_platform_type() const { |
7105 | 0 | return (_has_bits_[0] & 0x00000002u) != 0; |
7106 | 0 | } |
7107 | 0 | inline void ThreatListDescriptor::set_has_platform_type() { |
7108 | 0 | _has_bits_[0] |= 0x00000002u; |
7109 | 0 | } |
7110 | 0 | inline void ThreatListDescriptor::clear_has_platform_type() { |
7111 | 0 | _has_bits_[0] &= ~0x00000002u; |
7112 | 0 | } |
7113 | 0 | inline void ThreatListDescriptor::clear_platform_type() { |
7114 | 0 | platform_type_ = 0; |
7115 | 0 | clear_has_platform_type(); |
7116 | 0 | } |
7117 | 0 | inline ::mozilla::safebrowsing::PlatformType ThreatListDescriptor::platform_type() const { |
7118 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatListDescriptor.platform_type) |
7119 | 0 | return static_cast< ::mozilla::safebrowsing::PlatformType >(platform_type_); |
7120 | 0 | } |
7121 | 0 | inline void ThreatListDescriptor::set_platform_type(::mozilla::safebrowsing::PlatformType value) { |
7122 | 0 | assert(::mozilla::safebrowsing::PlatformType_IsValid(value)); |
7123 | 0 | set_has_platform_type(); |
7124 | 0 | platform_type_ = value; |
7125 | 0 | // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatListDescriptor.platform_type) |
7126 | 0 | } |
7127 | | |
7128 | | // optional .mozilla.safebrowsing.ThreatEntryType threat_entry_type = 3; |
7129 | 0 | inline bool ThreatListDescriptor::has_threat_entry_type() const { |
7130 | 0 | return (_has_bits_[0] & 0x00000004u) != 0; |
7131 | 0 | } |
7132 | 0 | inline void ThreatListDescriptor::set_has_threat_entry_type() { |
7133 | 0 | _has_bits_[0] |= 0x00000004u; |
7134 | 0 | } |
7135 | 0 | inline void ThreatListDescriptor::clear_has_threat_entry_type() { |
7136 | 0 | _has_bits_[0] &= ~0x00000004u; |
7137 | 0 | } |
7138 | 0 | inline void ThreatListDescriptor::clear_threat_entry_type() { |
7139 | 0 | threat_entry_type_ = 0; |
7140 | 0 | clear_has_threat_entry_type(); |
7141 | 0 | } |
7142 | 0 | inline ::mozilla::safebrowsing::ThreatEntryType ThreatListDescriptor::threat_entry_type() const { |
7143 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ThreatListDescriptor.threat_entry_type) |
7144 | 0 | return static_cast< ::mozilla::safebrowsing::ThreatEntryType >(threat_entry_type_); |
7145 | 0 | } |
7146 | 0 | inline void ThreatListDescriptor::set_threat_entry_type(::mozilla::safebrowsing::ThreatEntryType value) { |
7147 | 0 | assert(::mozilla::safebrowsing::ThreatEntryType_IsValid(value)); |
7148 | 0 | set_has_threat_entry_type(); |
7149 | 0 | threat_entry_type_ = value; |
7150 | 0 | // @@protoc_insertion_point(field_set:mozilla.safebrowsing.ThreatListDescriptor.threat_entry_type) |
7151 | 0 | } |
7152 | | |
7153 | | // ------------------------------------------------------------------- |
7154 | | |
7155 | | // ListThreatListsResponse |
7156 | | |
7157 | | // repeated .mozilla.safebrowsing.ThreatListDescriptor threat_lists = 1; |
7158 | 0 | inline int ListThreatListsResponse::threat_lists_size() const { |
7159 | 0 | return threat_lists_.size(); |
7160 | 0 | } |
7161 | 0 | inline void ListThreatListsResponse::clear_threat_lists() { |
7162 | 0 | threat_lists_.Clear(); |
7163 | 0 | } |
7164 | 0 | inline const ::mozilla::safebrowsing::ThreatListDescriptor& ListThreatListsResponse::threat_lists(int index) const { |
7165 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.ListThreatListsResponse.threat_lists) |
7166 | 0 | return threat_lists_.Get(index); |
7167 | 0 | } |
7168 | 0 | inline ::mozilla::safebrowsing::ThreatListDescriptor* ListThreatListsResponse::mutable_threat_lists(int index) { |
7169 | 0 | // @@protoc_insertion_point(field_mutable:mozilla.safebrowsing.ListThreatListsResponse.threat_lists) |
7170 | 0 | return threat_lists_.Mutable(index); |
7171 | 0 | } |
7172 | 0 | inline ::mozilla::safebrowsing::ThreatListDescriptor* ListThreatListsResponse::add_threat_lists() { |
7173 | 0 | // @@protoc_insertion_point(field_add:mozilla.safebrowsing.ListThreatListsResponse.threat_lists) |
7174 | 0 | return threat_lists_.Add(); |
7175 | 0 | } |
7176 | | inline ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatListDescriptor >* |
7177 | 0 | ListThreatListsResponse::mutable_threat_lists() { |
7178 | 0 | // @@protoc_insertion_point(field_mutable_list:mozilla.safebrowsing.ListThreatListsResponse.threat_lists) |
7179 | 0 | return &threat_lists_; |
7180 | 0 | } |
7181 | | inline const ::google::protobuf::RepeatedPtrField< ::mozilla::safebrowsing::ThreatListDescriptor >& |
7182 | 0 | ListThreatListsResponse::threat_lists() const { |
7183 | 0 | // @@protoc_insertion_point(field_list:mozilla.safebrowsing.ListThreatListsResponse.threat_lists) |
7184 | 0 | return threat_lists_; |
7185 | 0 | } |
7186 | | |
7187 | | // ------------------------------------------------------------------- |
7188 | | |
7189 | | // Duration |
7190 | | |
7191 | | // optional int64 seconds = 1; |
7192 | 0 | inline bool Duration::has_seconds() const { |
7193 | 0 | return (_has_bits_[0] & 0x00000001u) != 0; |
7194 | 0 | } |
7195 | 0 | inline void Duration::set_has_seconds() { |
7196 | 0 | _has_bits_[0] |= 0x00000001u; |
7197 | 0 | } |
7198 | 0 | inline void Duration::clear_has_seconds() { |
7199 | 0 | _has_bits_[0] &= ~0x00000001u; |
7200 | 0 | } |
7201 | 0 | inline void Duration::clear_seconds() { |
7202 | 0 | seconds_ = GOOGLE_LONGLONG(0); |
7203 | 0 | clear_has_seconds(); |
7204 | 0 | } |
7205 | 0 | inline ::google::protobuf::int64 Duration::seconds() const { |
7206 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.Duration.seconds) |
7207 | 0 | return seconds_; |
7208 | 0 | } |
7209 | | inline void Duration::set_seconds(::google::protobuf::int64 value) { |
7210 | | set_has_seconds(); |
7211 | | seconds_ = value; |
7212 | | // @@protoc_insertion_point(field_set:mozilla.safebrowsing.Duration.seconds) |
7213 | | } |
7214 | | |
7215 | | // optional int32 nanos = 2; |
7216 | 0 | inline bool Duration::has_nanos() const { |
7217 | 0 | return (_has_bits_[0] & 0x00000002u) != 0; |
7218 | 0 | } |
7219 | 0 | inline void Duration::set_has_nanos() { |
7220 | 0 | _has_bits_[0] |= 0x00000002u; |
7221 | 0 | } |
7222 | 0 | inline void Duration::clear_has_nanos() { |
7223 | 0 | _has_bits_[0] &= ~0x00000002u; |
7224 | 0 | } |
7225 | 0 | inline void Duration::clear_nanos() { |
7226 | 0 | nanos_ = 0; |
7227 | 0 | clear_has_nanos(); |
7228 | 0 | } |
7229 | 0 | inline ::google::protobuf::int32 Duration::nanos() const { |
7230 | 0 | // @@protoc_insertion_point(field_get:mozilla.safebrowsing.Duration.nanos) |
7231 | 0 | return nanos_; |
7232 | 0 | } |
7233 | | inline void Duration::set_nanos(::google::protobuf::int32 value) { |
7234 | | set_has_nanos(); |
7235 | | nanos_ = value; |
7236 | | // @@protoc_insertion_point(field_set:mozilla.safebrowsing.Duration.nanos) |
7237 | | } |
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 |