Reference documentation and code samples for the Web Risk V1 API class Google::Cloud::WebRisk::V1::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
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#prefix_size
defprefix_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).
In practice this is almost always 4, except in exceptional circumstances.
#prefix_size=
defprefix_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).
In practice this is almost always 4, except in exceptional circumstances.
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).
In practice this is almost always 4, except in exceptional circumstances.
#raw_hashes
defraw_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=
defraw_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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Web Risk V1 API - Class Google::Cloud::WebRisk::V1::RawHashes (v1.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.4.0 (latest)](/ruby/docs/reference/google-cloud-web_risk-v1/latest/Google-Cloud-WebRisk-V1-RawHashes)\n- [1.3.1](/ruby/docs/reference/google-cloud-web_risk-v1/1.3.1/Google-Cloud-WebRisk-V1-RawHashes)\n- [1.2.0](/ruby/docs/reference/google-cloud-web_risk-v1/1.2.0/Google-Cloud-WebRisk-V1-RawHashes)\n- [1.1.0](/ruby/docs/reference/google-cloud-web_risk-v1/1.1.0/Google-Cloud-WebRisk-V1-RawHashes)\n- [1.0.2](/ruby/docs/reference/google-cloud-web_risk-v1/1.0.2/Google-Cloud-WebRisk-V1-RawHashes)\n- [0.12.0](/ruby/docs/reference/google-cloud-web_risk-v1/0.12.0/Google-Cloud-WebRisk-V1-RawHashes)\n- [0.11.2](/ruby/docs/reference/google-cloud-web_risk-v1/0.11.2/Google-Cloud-WebRisk-V1-RawHashes)\n- [0.10.0](/ruby/docs/reference/google-cloud-web_risk-v1/0.10.0/Google-Cloud-WebRisk-V1-RawHashes)\n- [0.9.1](/ruby/docs/reference/google-cloud-web_risk-v1/0.9.1/Google-Cloud-WebRisk-V1-RawHashes)\n- [0.8.0](/ruby/docs/reference/google-cloud-web_risk-v1/0.8.0/Google-Cloud-WebRisk-V1-RawHashes)\n- [0.7.0](/ruby/docs/reference/google-cloud-web_risk-v1/0.7.0/Google-Cloud-WebRisk-V1-RawHashes)\n- [0.6.0](/ruby/docs/reference/google-cloud-web_risk-v1/0.6.0/Google-Cloud-WebRisk-V1-RawHashes)\n- [0.5.0](/ruby/docs/reference/google-cloud-web_risk-v1/0.5.0/Google-Cloud-WebRisk-V1-RawHashes)\n- [0.4.5](/ruby/docs/reference/google-cloud-web_risk-v1/0.4.5/Google-Cloud-WebRisk-V1-RawHashes) \nReference documentation and code samples for the Web Risk V1 API class Google::Cloud::WebRisk::V1::RawHashes.\n\nThe uncompressed threat entries in hash format.\nHashes can be anywhere from 4 to 32 bytes in size. A large majority are 4\nbytes, but some hashes are lengthened if they collide with the hash of a\npopular URI.\n\n\n\u003cbr /\u003e\n\nUsed for sending ThreatEntryAdditons to clients that do not support\ncompression, or when sending non-4-byte hashes to clients that do support\ncompression. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #prefix_size\n\n def prefix_size() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- The number of bytes for each prefix encoded below. This field can be anywhere from 4 (shortest prefix) to 32 (full SHA256 hash). In practice this is almost always 4, except in exceptional circumstances.\n\n### #prefix_size=\n\n def prefix_size=(value) -\u003e ::Integer\n\n**Parameter**\n\n- **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). In practice this is almost always 4, except in exceptional circumstances. \n**Returns**\n\n- (::Integer) --- The number of bytes for each prefix encoded below. This field can be anywhere from 4 (shortest prefix) to 32 (full SHA256 hash). In practice this is almost always 4, except in exceptional circumstances.\n\n### #raw_hashes\n\n def raw_hashes() -\u003e ::String\n\n**Returns**\n\n- (::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.\n\n### #raw_hashes=\n\n def raw_hashes=(value) -\u003e ::String\n\n**Parameter**\n\n- **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. \n**Returns**\n\n- (::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."]]