google-cloud-webrisk - Class Google::Cloud::Webrisk::V1beta1::RawHashes (v0.6.1)

Reference documentation and code samples for the google-cloud-webrisk class Google::Cloud::Webrisk::V1beta1::RawHashes.

The uncompressed threat entries in hash format. 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 URI.

Used for sending ThreatEntryAdditons to clients that do not support compression, or when sending non-4-byte hashes to clients that do support compression.

Inherits

  • Object

Methods

#prefix_size

def prefix_size() -> Integer
Returns
  • (Integer) — The number of bytes for each prefix encoded below. This field can be anywhere from 4 (shortest prefix) to 32 (full SHA256 hash).

#prefix_size=

def prefix_size=(value) -> Integer
Parameter
  • value (Integer) — The number of bytes for each prefix encoded below. This field can be anywhere from 4 (shortest prefix) to 32 (full SHA256 hash).
Returns
  • (Integer) — The number of bytes for each prefix encoded below. This field can be anywhere from 4 (shortest prefix) to 32 (full SHA256 hash).

#raw_hashes

def raw_hashes() -> String
Returns
  • (String) — The hashes, in binary format, concatenated into one long string. Hashes are sorted in lexicographic order. For JSON API users, hashes are base64-encoded.

#raw_hashes=

def raw_hashes=(value) -> String
Parameter
  • value (String) — The hashes, in binary format, concatenated into one long string. Hashes are sorted in lexicographic order. For JSON API users, hashes are base64-encoded.
Returns
  • (String) — The hashes, in binary format, concatenated into one long string. Hashes are sorted in lexicographic order. For JSON API users, hashes are base64-encoded.