Reference documentation and code samples for the Google Cloud Web Risk V1beta1 Client class SearchHashesRequest.
Request to return full hashes matched by the provided hash prefixes.
Generated from protobuf message google.cloud.webrisk.v1beta1.SearchHashesRequest
Namespace
Google \ Cloud \ WebRisk \ V1beta1Methods
__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. |
↳ threat_types |
array
Required. The ThreatLists to search in. |
getHashPrefix
A hash prefix, consisting of the most significant 4-32 bytes of a SHA256 hash. For JSON requests, this field is base64-encoded.
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.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getThreatTypes
Required. The ThreatLists to search in.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setThreatTypes
Required. The ThreatLists to search in.
Parameter | |
---|---|
Name | Description |
var |
int[]
|
Returns | |
---|---|
Type | Description |
$this |