# Google Cloud Security Command Center V1 Client - Class InfoType (2.5.1)

2.5.1 (latest) 2.5.0 2.4.2 2.3.0 2.2.1 2.1.1 2.0.4 1.32.0 1.31.0 1.30.0 1.29.0 1.28.2 1.21.0 1.20.2 1.19.1 1.18.0 1.17.0 1.16.0 1.15.1 1.14.2 1.13.1 Reference documentation and code samples for the Google Cloud Security Command Center V1 Client class InfoType.

Type of information detected by the API.

Generated from protobuf message `google.cloud.securitycenter.v1.InfoType`

## Namespace

Google \\ Cloud \\ SecurityCenter \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Name of the information type. Either a name of your choosing when creating a CustomInfoType, or one of the names listed at <https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference> when specifying a built-in type. When sending Cloud DLP results to Data Catalog, infoType names should conform to the pattern `[A-Za-z0-9$_-]{1,64}`. |
| `↳ version` | `string` Optional version name for this InfoType. |
| `↳ sensitivity_score` | `https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.SensitivityScore` Optional custom sensitivity for this InfoType. This only applies to data profiling. |

### getName

Name of the information type. Either a name of your choosing when
creating a CustomInfoType, or one of the names listed
at
<https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference>
when specifying a built-in type. When sending Cloud DLP results to Data
Catalog, infoType names should conform to the pattern
`[A-Za-z0-9$_-]{1,64}`.

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

### setName

Name of the information type. Either a name of your choosing when
creating a CustomInfoType, or one of the names listed
at
<https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference>
when specifying a built-in type. When sending Cloud DLP results to Data
Catalog, infoType names should conform to the pattern
`[A-Za-z0-9$_-]{1,64}`.

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

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

### getVersion

Optional version name for this InfoType.

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

### setVersion

Optional version name for this InfoType.

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

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

### getSensitivityScore

Optional custom sensitivity for this InfoType.

This only applies to data profiling.

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

### hasSensitivityScore

### clearSensitivityScore

### setSensitivityScore

Optional custom sensitivity for this InfoType.

This only applies to data profiling.

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

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