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

Context about the submission including the type of abuse found on the URI and
supporting details.

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

## Namespace

Google \\ Cloud \\ WebRisk \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ abuse_type` | `int` The type of abuse. |
| `↳ threat_confidence` | `https://docs.cloud.google.com/php/docs/reference/cloud-web-risk/latest/V1.ThreatInfo.Confidence` Confidence that the URI is unsafe. |
| `↳ threat_justification` | `https://docs.cloud.google.com/php/docs/reference/cloud-web-risk/latest/V1.ThreatInfo.ThreatJustification` Context about why the URI is unsafe. |

### getAbuseType

The type of abuse.

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

### setAbuseType

The type of abuse.

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

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

### getThreatConfidence

Confidence that the URI is unsafe.

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

### hasThreatConfidence

### clearThreatConfidence

### setThreatConfidence

Confidence that the URI is unsafe.

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

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

### getThreatJustification

Context about why the URI is unsafe.

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

### hasThreatJustification

### clearThreatJustification

### setThreatJustification

Context about why the URI is unsafe.

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

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