# Google Cloud Network Security V1 Client - Class ThreatPreventionProfile (1.4.0)

1.4.0 (latest) 1.3.0 1.2.3 1.1.0 1.0.4 0.6.5 0.5.2 0.4.1 0.3.7 Reference documentation and code samples for the Google Cloud Network Security V1 Client class ThreatPreventionProfile.

ThreatPreventionProfile defines an action for specific threat signatures or
severity levels.

Generated from protobuf message `google.cloud.networksecurity.v1.ThreatPreventionProfile`

## Namespace

Google \\ Cloud \\ NetworkSecurity \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ severity_overrides` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/V1.SeverityOverride>` Optional. Configuration for overriding threats actions by severity match. |
| `↳ threat_overrides` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/V1.ThreatOverride>` Optional. Configuration for overriding threats actions by threat_id match. If a threat is matched both by configuration provided in severity_overrides and threat_overrides, the threat_overrides action is applied. |
| `↳ antivirus_overrides` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/V1.AntivirusOverride>` Optional. Configuration for overriding antivirus actions per protocol. |

### getSeverityOverrides

Optional. Configuration for overriding threats actions by severity match.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/V1.SeverityOverride>` |   |

### setSeverityOverrides

Optional. Configuration for overriding threats actions by severity match.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/V1.SeverityOverride>` |

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

### getThreatOverrides

Optional. Configuration for overriding threats actions by threat_id match.

If a threat is matched both by configuration provided in severity_overrides
and threat_overrides, the threat_overrides action is applied.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/V1.ThreatOverride>` |   |

### setThreatOverrides

Optional. Configuration for overriding threats actions by threat_id match.

If a threat is matched both by configuration provided in severity_overrides
and threat_overrides, the threat_overrides action is applied.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/V1.ThreatOverride>` |

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

### getAntivirusOverrides

Optional. Configuration for overriding antivirus actions per protocol.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/V1.AntivirusOverride>` |   |

### setAntivirusOverrides

Optional. Configuration for overriding antivirus actions per protocol.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/V1.AntivirusOverride>` |

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