# Data Loss Prevention V2 Client - Class InspectTemplate (2.13.0)

2.13.0 (latest) 2.12.0 2.11.0 2.10.0 2.9.2 2.8.1 2.7.0 2.6.1 2.4.1 2.3.0 2.2.3 2.1.0 2.0.0 1.19.0 1.18.0 1.17.0 1.16.0 1.15.1 1.14.0 1.13.2 1.12.0 1.11.0 1.10.2 1.9.0 1.8.6 Reference documentation and code samples for the Data Loss Prevention V2 Client class InspectTemplate.

The inspectTemplate contains a configuration (set of types of sensitive data
to be detected) to be used anywhere you otherwise would normally specify
InspectConfig. See
<https://cloud.google.com/sensitive-data-protection/docs/concepts-templates> to
learn more.

Generated from protobuf message `google.privacy.dlp.v2.InspectTemplate`

## Namespace

Google \\ Cloud \\ Dlp \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Output only. The template name. The template will have one of the following formats: `projects/PROJECT_ID/inspectTemplates/TEMPLATE_ID` OR `organizations/ORGANIZATION_ID/inspectTemplates/TEMPLATE_ID`; |
| `↳ display_name` | `string` Display name (max 256 chars). |
| `↳ description` | `string` Short description (max 256 chars). |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The creation timestamp of an inspectTemplate. |
| `↳ update_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The last update timestamp of an inspectTemplate. |
| `↳ inspect_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.InspectConfig` The core content of the template. Configuration of the scanning process. |

### getName

Output only. The template name.

The template will have one of the following formats:
`projects/PROJECT_ID/inspectTemplates/TEMPLATE_ID` OR
`organizations/ORGANIZATION_ID/inspectTemplates/TEMPLATE_ID`;

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

### setName

Output only. The template name.

The template will have one of the following formats:
`projects/PROJECT_ID/inspectTemplates/TEMPLATE_ID` OR
`organizations/ORGANIZATION_ID/inspectTemplates/TEMPLATE_ID`;

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

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

### getDisplayName

Display name (max 256 chars).

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

### setDisplayName

Display name (max 256 chars).

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

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

### getDescription

Short description (max 256 chars).

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

### setDescription

Short description (max 256 chars).

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

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

### getCreateTime

Output only. The creation timestamp of an inspectTemplate.

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

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. The creation timestamp of an inspectTemplate.

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

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

### getUpdateTime

Output only. The last update timestamp of an inspectTemplate.

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

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. The last update timestamp of an inspectTemplate.

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

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

### getInspectConfig

The core content of the template. Configuration of the scanning process.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.InspectConfig|null` |   |

### hasInspectConfig

### clearInspectConfig

### setInspectConfig

The core content of the template. Configuration of the scanning process.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.InspectConfig` |

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