Class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatEntrySet
- Inherits:
-
Object
- Object
- Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatEntrySet
- 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::GoogleSecuritySafebrowsingV4RawHashes
The uncompressed threat entries in hash format of a particular prefix length.
-
#raw_indices ⇒ Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4RawIndices
A set of raw indices to remove from a local list.
-
#rice_hashes ⇒ Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4RiceDeltaEncoding
The Rice-Golomb encoded data.
-
#rice_indices ⇒ Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4RiceDeltaEncoding
The Rice-Golomb encoded data.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleSecuritySafebrowsingV4ThreatEntrySet
constructor
A new instance of GoogleSecuritySafebrowsingV4ThreatEntrySet.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleSecuritySafebrowsingV4ThreatEntrySet
Returns a new instance of GoogleSecuritySafebrowsingV4ThreatEntrySet.
658 659 660 |
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 658 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
629 630 631 |
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 629 def compression_type @compression_type end |
#raw_hashes ⇒ Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4RawHashes
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
639 640 641 |
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 639 def raw_hashes @raw_hashes end |
#raw_indices ⇒ Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4RawIndices
A set of raw indices to remove from a local list.
Corresponds to the JSON property rawIndices
644 645 646 |
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 644 def raw_indices @raw_indices end |
#rice_hashes ⇒ Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4RiceDeltaEncoding
The Rice-Golomb encoded data. Used for sending compressed 4-byte hashes or
compressed removal indices.
Corresponds to the JSON property riceHashes
650 651 652 |
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 650 def rice_hashes @rice_hashes end |
#rice_indices ⇒ Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4RiceDeltaEncoding
The Rice-Golomb encoded data. Used for sending compressed 4-byte hashes or
compressed removal indices.
Corresponds to the JSON property riceIndices
656 657 658 |
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 656 def rice_indices @rice_indices end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
663 664 665 666 667 668 669 |
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 663 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 |