Reference documentation and code samples for the Google Cloud Web Risk V1 Client class SearchHashesRequest.
Request to return full hashes matched by the provided hash prefixes.
Generated from protobuf messagegoogle.cloud.webrisk.v1.SearchHashesRequest
Namespace
Google \ Cloud \ WebRisk \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ hash_prefix
string
A hash prefix, consisting of the most significant 4-32 bytes of a SHA256 hash. For JSON requests, this field is base64-encoded. Note that if this parameter is provided by a URI, it must be encoded using the web safe base64 variant (RFC 4648).
↳ threat_types
array
Required. The ThreatLists to search in. Multiple ThreatLists may be specified.
getHashPrefix
A hash prefix, consisting of the most significant 4-32 bytes of a SHA256
hash. For JSON requests, this field is base64-encoded.
Note that if this parameter is provided by a URI, it must be encoded using
the web safe base64 variant (RFC 4648).
Returns
Type
Description
string
setHashPrefix
A hash prefix, consisting of the most significant 4-32 bytes of a SHA256
hash. For JSON requests, this field is base64-encoded.
Note that if this parameter is provided by a URI, it must be encoded using
the web safe base64 variant (RFC 4648).
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getThreatTypes
Required. The ThreatLists to search in. Multiple ThreatLists may be
specified.
Required. The ThreatLists to search in. Multiple ThreatLists may be
specified.
Parameter
Name
Description
var
int[]
Returns
Type
Description
$this
static::build
Parameters
Name
Description
hashPrefix
string
A hash prefix, consisting of the most significant 4-32 bytes of a SHA256
hash. For JSON requests, this field is base64-encoded.
Note that if this parameter is provided by a URI, it must be encoded using
the web safe base64 variant (RFC 4648).
threatTypes
int[]
Required. The ThreatLists to search in. Multiple ThreatLists may be
specified.
For allowed values, use constants defined onThreatType
[[["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,["# Google Cloud Web Risk V1 Client - Class SearchHashesRequest (2.1.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.1 (latest)](/php/docs/reference/cloud-web-risk/latest/V1.SearchHashesRequest)\n- [2.1.0](/php/docs/reference/cloud-web-risk/2.1.0/V1.SearchHashesRequest)\n- [2.0.3](/php/docs/reference/cloud-web-risk/2.0.3/V1.SearchHashesRequest)\n- [1.5.5](/php/docs/reference/cloud-web-risk/1.5.5/V1.SearchHashesRequest)\n- [1.4.4](/php/docs/reference/cloud-web-risk/1.4.4/V1.SearchHashesRequest)\n- [1.3.0](/php/docs/reference/cloud-web-risk/1.3.0/V1.SearchHashesRequest)\n- [1.2.7](/php/docs/reference/cloud-web-risk/1.2.7/V1.SearchHashesRequest) \nReference documentation and code samples for the Google Cloud Web Risk V1 Client class SearchHashesRequest.\n\nRequest to return full hashes matched by the provided hash prefixes.\n\nGenerated from protobuf message `google.cloud.webrisk.v1.SearchHashesRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ WebRisk \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getHashPrefix\n\nA hash prefix, consisting of the most significant 4-32 bytes of a SHA256\nhash. For JSON requests, this field is base64-encoded.\n\nNote that if this parameter is provided by a URI, it must be encoded using\nthe web safe base64 variant (RFC 4648).\n\n### setHashPrefix\n\nA hash prefix, consisting of the most significant 4-32 bytes of a SHA256\nhash. For JSON requests, this field is base64-encoded.\n\nNote that if this parameter is provided by a URI, it must be encoded using\nthe web safe base64 variant (RFC 4648).\n\n### getThreatTypes\n\nRequired. The ThreatLists to search in. Multiple ThreatLists may be\nspecified.\n\n### setThreatTypes\n\nRequired. The ThreatLists to search in. Multiple ThreatLists may be\nspecified.\n\n### static::build"]]