Class: Google::Cloud::WebRisk::V1beta1::RawHashes
- Inherits:
-
Object
- Object
- Google::Cloud::WebRisk::V1beta1::RawHashes
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/webrisk/v1beta1/webrisk.rb
Overview
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.
Instance Attribute Summary collapse
-
#prefix_size ⇒ ::Integer
The number of bytes for each prefix encoded below.
-
#raw_hashes ⇒ ::String
The hashes, in binary format, concatenated into one long string.
Instance Attribute Details
#prefix_size ⇒ ::Integer
Returns The number of bytes for each prefix encoded below. This field can be anywhere from 4 (shortest prefix) to 32 (full SHA256 hash).
248 249 250 251 |
# File 'proto_docs/google/cloud/webrisk/v1beta1/webrisk.rb', line 248 class RawHashes include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#raw_hashes ⇒ ::String
Returns The hashes, in binary format, concatenated into one long string. Hashes are sorted in lexicographic order. For JSON API users, hashes are base64-encoded.
248 249 250 251 |
# File 'proto_docs/google/cloud/webrisk/v1beta1/webrisk.rb', line 248 class RawHashes include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |