# Google Cloud Web Risk V1 Client - Class SearchHashesResponse (2.3.0)

2.3.0 (latest) 2.2.2 2.1.1 2.0.3 1.5.5 1.4.4 1.3.0 1.2.7 Reference documentation and code samples for the Google Cloud Web Risk V1 Client class SearchHashesResponse.

Generated from protobuf message `google.cloud.webrisk.v1.SearchHashesResponse`

## Namespace

Google \\ Cloud \\ WebRisk \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ threats` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-web-risk/latest/V1.SearchHashesResponse.ThreatHash>` The full hashes that matched the requested prefixes. The hash will be populated in the key. |
| `↳ negative_expire_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` For requested entities that did not match the threat list, how long to cache the response until. |

### getThreats

The full hashes that matched the requested prefixes.

The hash will be populated in the key.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-web-risk/latest/V1.SearchHashesResponse.ThreatHash>` |   |

### setThreats

The full hashes that matched the requested prefixes.

The hash will be populated in the key.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-web-risk/latest/V1.SearchHashesResponse.ThreatHash>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getNegativeExpireTime

For requested entities that did not match the threat list, how long to
cache the response until.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasNegativeExpireTime

### clearNegativeExpireTime

### setNegativeExpireTime

For requested entities that did not match the threat list, how long to
cache the response until.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |