Google Cloud Web Risk V1 Client - Class SearchHashesRequest (1.3.0)

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 message google.cloud.webrisk.v1.SearchHashesRequest

Methods

__construct

Constructor.

Parameters
NameDescription
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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this

getThreatTypes

Required. The ThreatLists to search in. Multiple ThreatLists may be specified.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setThreatTypes

Required. The ThreatLists to search in. Multiple ThreatLists may be specified.

Parameter
NameDescription
var int[]
Returns
TypeDescription
$this