Class: Google::Apis::SafebrowsingV4::ThreatEntrySet
- Inherits:
-
Object
- Object
- Google::Apis::SafebrowsingV4::ThreatEntrySet
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/safebrowsing_v4/classes.rb,
generated/google/apis/safebrowsing_v4/representations.rb,
generated/google/apis/safebrowsing_v4/representations.rb
Overview
A set of threats that should be added or removed from a client's local database.
Instance Attribute Summary collapse
-
#compression_type ⇒ String
The compression type for the entries in this set.
-
#raw_hashes ⇒ Google::Apis::SafebrowsingV4::RawHashes
The uncompressed threat entries in hash format of a particular prefix length.
-
#raw_indices ⇒ Google::Apis::SafebrowsingV4::RawIndices
A set of raw indices to remove from a local list.
-
#rice_hashes ⇒ Google::Apis::SafebrowsingV4::RiceDeltaEncoding
The Rice-Golomb encoded data.
-
#rice_indices ⇒ Google::Apis::SafebrowsingV4::RiceDeltaEncoding
The Rice-Golomb encoded data.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ThreatEntrySet
constructor
A new instance of ThreatEntrySet.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ThreatEntrySet
Returns a new instance of ThreatEntrySet
667 668 669 |
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 667 def initialize(**args) update!(**args) end |
Instance Attribute Details
#compression_type ⇒ String
The compression type for the entries in this set.
Corresponds to the JSON property compressionType
638 639 640 |
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 638 def compression_type @compression_type end |
#raw_hashes ⇒ Google::Apis::SafebrowsingV4::RawHashes
The uncompressed threat entries in hash format of a particular prefix length.
Hashes can be anywhere from 4 to 32 bytes in size. A large majority are 4
bytes, but some hashes are lengthened if they collide with the hash of a
popular URL.
Used for sending ThreatEntrySet to clients that do not support compression,
or when sending non-4-byte hashes to clients that do support compression.
Corresponds to the JSON property rawHashes
648 649 650 |
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 648 def raw_hashes @raw_hashes end |
#raw_indices ⇒ Google::Apis::SafebrowsingV4::RawIndices
A set of raw indices to remove from a local list.
Corresponds to the JSON property rawIndices
653 654 655 |
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 653 def raw_indices @raw_indices end |
#rice_hashes ⇒ Google::Apis::SafebrowsingV4::RiceDeltaEncoding
The Rice-Golomb encoded data. Used for sending compressed 4-byte hashes or
compressed removal indices.
Corresponds to the JSON property riceHashes
659 660 661 |
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 659 def rice_hashes @rice_hashes end |
#rice_indices ⇒ Google::Apis::SafebrowsingV4::RiceDeltaEncoding
The Rice-Golomb encoded data. Used for sending compressed 4-byte hashes or
compressed removal indices.
Corresponds to the JSON property riceIndices
665 666 667 |
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 665 def rice_indices @rice_indices end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
672 673 674 675 676 677 678 |
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 672 def update!(**args) @compression_type = args[:compression_type] if args.key?(:compression_type) @raw_hashes = args[:raw_hashes] if args.key?(:raw_hashes) @raw_indices = args[:raw_indices] if args.key?(:raw_indices) @rice_hashes = args[:rice_hashes] if args.key?(:rice_hashes) @rice_indices = args[:rice_indices] if args.key?(:rice_indices) end |