# Google Cloud Network Security V1 Client - Class SecurityProfile (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 SecurityProfile.

SecurityProfile is a resource that defines the behavior for one of many
ProfileTypes.

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

## Namespace

Google \\ Cloud \\ NetworkSecurity \\ V1

## Methods

### __construct

Constructor.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `data` | `mixed` |

### getThreatPreventionProfile

The threat prevention configuration for the SecurityProfile.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/V1.ThreatPreventionProfile|null` |   |

### hasThreatPreventionProfile

### setThreatPreventionProfile

The threat prevention configuration for the SecurityProfile.

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

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

### getCustomMirroringProfile

The custom Packet Mirroring v2 configuration for the SecurityProfile.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/V1.CustomMirroringProfile|null` |   |

### hasCustomMirroringProfile

### setCustomMirroringProfile

The custom Packet Mirroring v2 configuration for the SecurityProfile.

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

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

### getCustomInterceptProfile

The custom TPPI configuration for the SecurityProfile.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/V1.CustomInterceptProfile|null` |   |

### hasCustomInterceptProfile

### setCustomInterceptProfile

The custom TPPI configuration for the SecurityProfile.

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

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

### getUrlFilteringProfile

The URL filtering configuration for the SecurityProfile.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/V1.UrlFilteringProfile|null` |   |

### hasUrlFilteringProfile

### setUrlFilteringProfile

The URL filtering configuration for the SecurityProfile.

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

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

### getName

Immutable. Identifier. Name of the SecurityProfile resource. It matches
pattern
`projects|organizations/*/locations/{location}/securityProfiles/{security_profile}`.

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

### setName

Immutable. Identifier. Name of the SecurityProfile resource. It matches
pattern
`projects|organizations/*/locations/{location}/securityProfiles/{security_profile}`.

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

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

### getDescription

Optional. An optional description of the profile. Max length 512
characters.

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

### setDescription

Optional. An optional description of the profile. Max length 512
characters.

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

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

### getCreateTime

Output only. Resource creation timestamp.

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

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. Resource creation timestamp.

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

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

### getUpdateTime

Output only. Last resource update timestamp.

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

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. Last resource update timestamp.

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

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

### getEtag

Output only. This checksum is computed by the server based on the value of
other fields, and may be sent on update and delete requests to ensure the
client has an up-to-date value before proceeding.

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

### setEtag

Output only. This checksum is computed by the server based on the value of
other fields, and may be sent on update and delete requests to ensure the
client has an up-to-date value before proceeding.

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

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

### getLabels

Optional. Labels as key value pairs.

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

### setLabels

Optional. Labels as key value pairs.

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

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

### getType

Immutable. The single ProfileType that the SecurityProfile resource
configures.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [ProfileType](https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/V1.SecurityProfile.ProfileType). |

### setType

Immutable. The single ProfileType that the SecurityProfile resource
configures.

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

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

### getProfile

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