# Recommender V1 Client - Class InsightTypeConfig (2.2.0)

2.2.0 (latest) 2.1.3 2.0.5 1.11.5 1.10.0 1.9.1 1.8.2 1.7.8 Reference documentation and code samples for the Recommender V1 Client class InsightTypeConfig.

Configuration for an InsightType.

Generated from protobuf message `google.cloud.recommender.v1.InsightTypeConfig`

## Namespace

Google \\ Cloud \\ Recommender \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Identifier. Name of insight type config. Eg, projects/\[PROJECT_NUMBER\]/locations/\[LOCATION\]/insightTypes/\[INSIGHT_TYPE_ID\]/config |
| `↳ insight_type_generation_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-recommender/latest/V1.InsightTypeGenerationConfig` InsightTypeGenerationConfig which configures the generation of insights for this insight type. |
| `↳ etag` | `string` Fingerprint of the InsightTypeConfig. Provides optimistic locking when updating. |
| `↳ update_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Last time when the config was updated. |
| `↳ revision_id` | `string` Output only. Immutable. The revision ID of the config. A new revision is committed whenever the config is changed in any way. The format is an 8-character hexadecimal string. |
| `↳ annotations` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` Allows clients to store small amounts of arbitrary data. Annotations must follow the Kubernetes syntax. The total size of all keys and values combined is limited to 256k. Key can have 2 segments: prefix (optional) and name (required), separated by a slash (/). Prefix must be a DNS subdomain. Name must be 63 characters or less, begin and end with alphanumerics, with dashes (-), underscores (_), dots (.), and alphanumerics between. |
| `↳ display_name` | `string` A user-settable field to provide a human-readable name to be used in user interfaces. |

### getName

Identifier. Name of insight type config.

Eg,
projects/\[PROJECT_NUMBER\]/locations/\[LOCATION\]/insightTypes/\[INSIGHT_TYPE_ID\]/config

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

### setName

Identifier. Name of insight type config.

Eg,
projects/\[PROJECT_NUMBER\]/locations/\[LOCATION\]/insightTypes/\[INSIGHT_TYPE_ID\]/config

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

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

### getInsightTypeGenerationConfig

InsightTypeGenerationConfig which configures the generation of
insights for this insight type.

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

### hasInsightTypeGenerationConfig

### clearInsightTypeGenerationConfig

### setInsightTypeGenerationConfig

InsightTypeGenerationConfig which configures the generation of
insights for this insight type.

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

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

### getEtag

Fingerprint of the InsightTypeConfig. Provides optimistic locking when
updating.

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

### setEtag

Fingerprint of the InsightTypeConfig. Provides optimistic locking when
updating.

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

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

### getUpdateTime

Last time when the config was updated.

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

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Last time when the config was updated.

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

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

### getRevisionId

Output only. Immutable. The revision ID of the config.

A new revision is committed whenever the config is changed in any way.
The format is an 8-character hexadecimal string.

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

### setRevisionId

Output only. Immutable. The revision ID of the config.

A new revision is committed whenever the config is changed in any way.
The format is an 8-character hexadecimal string.

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

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

### getAnnotations

Allows clients to store small amounts of arbitrary data. Annotations must
follow the Kubernetes syntax.

The total size of all keys and values combined is limited to 256k.
Key can have 2 segments: prefix (optional) and name (required),
separated by a slash (/).
Prefix must be a DNS subdomain.
Name must be 63 characters or less, begin and end with alphanumerics,
with dashes (-), underscores (_), dots (.), and alphanumerics between.

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

### setAnnotations

Allows clients to store small amounts of arbitrary data. Annotations must
follow the Kubernetes syntax.

The total size of all keys and values combined is limited to 256k.
Key can have 2 segments: prefix (optional) and name (required),
separated by a slash (/).
Prefix must be a DNS subdomain.
Name must be 63 characters or less, begin and end with alphanumerics,
with dashes (-), underscores (_), dots (.), and alphanumerics between.

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

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

### getDisplayName

A user-settable field to provide a human-readable name to be used in user
interfaces.

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

### setDisplayName

A user-settable field to provide a human-readable name to be used in user
interfaces.

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

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