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

Context about why the URI is unsafe.

Generated from protobuf message `google.cloud.webrisk.v1.ThreatInfo.ThreatJustification`

## Namespace

Google \\ Cloud \\ WebRisk \\ V1 \\ ThreatInfo

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ labels` | `int[]` Labels associated with this URI that explain how it was classified. |
| `↳ comments` | `string[]` Free-form context on why this URI is unsafe. |

### getLabels

Labels associated with this URI that explain how it was classified.

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

### setLabels

Labels associated with this URI that explain how it was classified.

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

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

### getComments

Free-form context on why this URI is unsafe.

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

### setComments

Free-form context on why this URI is unsafe.

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

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