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

Describes an API diff request.

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

## Namespace

Google \\ Cloud \\ WebRisk \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ threat_type` | `int` Required. The threat list to update. Only a single ThreatType should be specified per request. If you want to handle multiple ThreatTypes, you must make one request per ThreatType. |
| `↳ version_token` | `string` The current version token of the client for the requested list (the client version that was received from the last successful diff). If the client does not have a version token (this is the first time calling ComputeThreatListDiff), this may be left empty and a full database snapshot will be returned. |
| `↳ constraints` | `https://docs.cloud.google.com/php/docs/reference/cloud-web-risk/latest/V1.ComputeThreatListDiffRequest.Constraints` Required. The constraints associated with this request. |

### getThreatType

Required. The threat list to update. Only a single ThreatType should be
specified per request. If you want to handle multiple ThreatTypes, you must
make one request per ThreatType.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [ThreatType](https://docs.cloud.google.com/php/docs/reference/cloud-web-risk/latest/V1.ThreatType). |

### setThreatType

Required. The threat list to update. Only a single ThreatType should be
specified per request. If you want to handle multiple ThreatTypes, you must
make one request per ThreatType.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [ThreatType](https://docs.cloud.google.com/php/docs/reference/cloud-web-risk/latest/V1.ThreatType). |

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

### getVersionToken

The current version token of the client for the requested list (the
client version that was received from the last successful diff).

If the client does not have a version token (this is the first time calling
ComputeThreatListDiff), this may be left empty and a full database
snapshot will be returned.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setVersionToken

The current version token of the client for the requested list (the
client version that was received from the last successful diff).

If the client does not have a version token (this is the first time calling
ComputeThreatListDiff), this may be left empty and a full database
snapshot will be returned.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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

### getConstraints

Required. The constraints associated with this request.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-web-risk/latest/V1.ComputeThreatListDiffRequest.Constraints|null` |   |

### hasConstraints

### clearConstraints

### setConstraints

Required. The constraints associated with this request.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-web-risk/latest/V1.ComputeThreatListDiffRequest.Constraints` |

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `threatType` | `int` Required. The threat list to update. Only a single ThreatType should be specified per request. If you want to handle multiple ThreatTypes, you must make one request per ThreatType. For allowed values, use constants defined on [ThreatType](https://docs.cloud.google.com/php/docs/reference/cloud-web-risk/latest/V1.ThreatType) |
| `versionToken` | `string` The current version token of the client for the requested list (the client version that was received from the last successful diff). If the client does not have a version token (this is the first time calling ComputeThreatListDiff), this may be left empty and a full database snapshot will be returned. |
| `constraints` | `https://docs.cloud.google.com/php/docs/reference/cloud-web-risk/latest/V1.ComputeThreatListDiffRequest.Constraints` Required. The constraints associated with this request. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-web-risk/latest/V1.ComputeThreatListDiffRequest` |   |