Reference documentation and code samples for the Web Risk V1 API class Google::Cloud::WebRisk::V1::SearchHashesResponse::ThreatHash.
Contains threat information on a matching hash.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#expire_time
defexpire_time()->::Google::Protobuf::Timestamp
Returns
(::Google::Protobuf::Timestamp) — The cache lifetime for the returned match. Clients must not cache this
response past this timestamp to avoid false positives.
value (::Google::Protobuf::Timestamp) — The cache lifetime for the returned match. Clients must not cache this
response past this timestamp to avoid false positives.
Returns
(::Google::Protobuf::Timestamp) — The cache lifetime for the returned match. Clients must not cache this
response past this timestamp to avoid false positives.
#hash
defhash()->::String
Returns
(::String) — A 32 byte SHA256 hash. This field is in binary format. For JSON
requests, hashes are base64-encoded.
#hash=
defhash=(value)->::String
Parameter
value (::String) — A 32 byte SHA256 hash. This field is in binary format. For JSON
requests, hashes are base64-encoded.
Returns
(::String) — A 32 byte SHA256 hash. This field is in binary format. For JSON
requests, 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-04 UTC."],[],[],null,["# Web Risk V1 API - Class Google::Cloud::WebRisk::V1::SearchHashesResponse::ThreatHash (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-SearchHashesResponse-ThreatHash)\n- [1.3.1](/ruby/docs/reference/google-cloud-web_risk-v1/1.3.1/Google-Cloud-WebRisk-V1-SearchHashesResponse-ThreatHash)\n- [1.2.0](/ruby/docs/reference/google-cloud-web_risk-v1/1.2.0/Google-Cloud-WebRisk-V1-SearchHashesResponse-ThreatHash)\n- [1.1.0](/ruby/docs/reference/google-cloud-web_risk-v1/1.1.0/Google-Cloud-WebRisk-V1-SearchHashesResponse-ThreatHash)\n- [1.0.2](/ruby/docs/reference/google-cloud-web_risk-v1/1.0.2/Google-Cloud-WebRisk-V1-SearchHashesResponse-ThreatHash)\n- [0.12.0](/ruby/docs/reference/google-cloud-web_risk-v1/0.12.0/Google-Cloud-WebRisk-V1-SearchHashesResponse-ThreatHash)\n- [0.11.2](/ruby/docs/reference/google-cloud-web_risk-v1/0.11.2/Google-Cloud-WebRisk-V1-SearchHashesResponse-ThreatHash)\n- [0.10.0](/ruby/docs/reference/google-cloud-web_risk-v1/0.10.0/Google-Cloud-WebRisk-V1-SearchHashesResponse-ThreatHash)\n- [0.9.1](/ruby/docs/reference/google-cloud-web_risk-v1/0.9.1/Google-Cloud-WebRisk-V1-SearchHashesResponse-ThreatHash)\n- [0.8.0](/ruby/docs/reference/google-cloud-web_risk-v1/0.8.0/Google-Cloud-WebRisk-V1-SearchHashesResponse-ThreatHash)\n- [0.7.0](/ruby/docs/reference/google-cloud-web_risk-v1/0.7.0/Google-Cloud-WebRisk-V1-SearchHashesResponse-ThreatHash)\n- [0.6.0](/ruby/docs/reference/google-cloud-web_risk-v1/0.6.0/Google-Cloud-WebRisk-V1-SearchHashesResponse-ThreatHash)\n- [0.5.0](/ruby/docs/reference/google-cloud-web_risk-v1/0.5.0/Google-Cloud-WebRisk-V1-SearchHashesResponse-ThreatHash)\n- [0.4.5](/ruby/docs/reference/google-cloud-web_risk-v1/0.4.5/Google-Cloud-WebRisk-V1-SearchHashesResponse-ThreatHash) \nReference documentation and code samples for the Web Risk V1 API class Google::Cloud::WebRisk::V1::SearchHashesResponse::ThreatHash.\n\nContains threat information on a matching hash. \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### #expire_time\n\n def expire_time() -\u003e ::Google::Protobuf::Timestamp\n\n**Returns**\n\n- ([::Google::Protobuf::Timestamp](./Google-Protobuf-Timestamp)) --- The cache lifetime for the returned match. Clients must not cache this response past this timestamp to avoid false positives.\n\n### #expire_time=\n\n def expire_time=(value) -\u003e ::Google::Protobuf::Timestamp\n\n**Parameter**\n\n- **value** ([::Google::Protobuf::Timestamp](./Google-Protobuf-Timestamp)) --- The cache lifetime for the returned match. Clients must not cache this response past this timestamp to avoid false positives. \n**Returns**\n\n- ([::Google::Protobuf::Timestamp](./Google-Protobuf-Timestamp)) --- The cache lifetime for the returned match. Clients must not cache this response past this timestamp to avoid false positives.\n\n### #hash\n\n def hash() -\u003e ::String\n\n**Returns**\n\n- (::String) --- A 32 byte SHA256 hash. This field is in binary format. For JSON requests, hashes are base64-encoded.\n\n### #hash=\n\n def hash=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- A 32 byte SHA256 hash. This field is in binary format. For JSON requests, hashes are base64-encoded. \n**Returns**\n\n- (::String) --- A 32 byte SHA256 hash. This field is in binary format. For JSON requests, hashes are base64-encoded.\n\n### #threat_types\n\n def threat_types() -\u003e ::Array\u003c::Google::Cloud::WebRisk::V1::ThreatType\u003e\n\n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::WebRisk::V1::ThreatType](./Google-Cloud-WebRisk-V1-ThreatType)\\\u003e) --- The ThreatList this threat belongs to. This must contain at least one entry.\n\n### #threat_types=\n\n def threat_types=(value) -\u003e ::Array\u003c::Google::Cloud::WebRisk::V1::ThreatType\u003e\n\n**Parameter**\n\n- **value** (::Array\\\u003c[::Google::Cloud::WebRisk::V1::ThreatType](./Google-Cloud-WebRisk-V1-ThreatType)\\\u003e) --- The ThreatList this threat belongs to. This must contain at least one entry. \n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::WebRisk::V1::ThreatType](./Google-Cloud-WebRisk-V1-ThreatType)\\\u003e) --- The ThreatList this threat belongs to. This must contain at least one entry."]]