Class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatEntrySet
- Inherits:
-
Object
- Object
- Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatEntrySet
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/safebrowsing_v4/classes.rb,
lib/google/apis/safebrowsing_v4/representations.rb,
lib/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.
662 663 664 |
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 662 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
633 634 635 |
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 633 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
643 644 645 |
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 643 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
648 649 650 |
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 648 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
654 655 656 |
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 654 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
660 661 662 |
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 660 def rice_indices @rice_indices end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
667 668 669 670 671 672 673 |
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 667 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 |