Class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatEntrySet

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_typeString

The compression type for the entries in this set. Corresponds to the JSON property compressionType

Returns:

  • (String)


629
630
631
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 629

def compression_type
  @compression_type
end

#raw_hashesGoogle::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_indicesGoogle::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_hashesGoogle::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_indicesGoogle::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