# Google Cloud Web Risk V1 Client - Class ThreatUri (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 ThreatUri.

Contains threat information on a matching uri.

Generated from protobuf message `google.cloud.webrisk.v1.SearchUrisResponse.ThreatUri`

## Namespace

Google \\ Cloud \\ WebRisk \\ V1 \\ SearchUrisResponse

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ threat_types` | `int[]` The ThreatList this threat belongs to. |
| `↳ expire_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` The cache lifetime for the returned match. Clients must not cache this response past this timestamp to avoid false positives. |

### getThreatTypes

The ThreatList this threat belongs to.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<int>` |   |

### setThreatTypes

The ThreatList this threat belongs to.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int[]` |

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

### getExpireTime

The cache lifetime for the returned match. Clients must not cache this
response past this timestamp to avoid false positives.

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

### hasExpireTime

### clearExpireTime

### setExpireTime

The cache lifetime for the returned match. Clients must not cache this
response past this timestamp to avoid false positives.

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

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