# Google Cloud Migration Center V1 Client - Class Insight (1.2.3)

1.2.3 (latest) 1.2.2 1.1.2 1.0.3 0.4.5 0.3.1 0.2.0 0.1.0 Reference documentation and code samples for the Google Cloud Migration Center V1 Client class Insight.

An insight about an asset.

Generated from protobuf message `google.cloud.migrationcenter.v1.Insight`

## Namespace

Google \\ Cloud \\ MigrationCenter \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ migration_insight` | `https://docs.cloud.google.com/php/docs/reference/cloud-migrationcenter/latest/V1.MigrationInsight` Output only. An insight about potential migrations for an asset. |
| `↳ generic_insight` | `https://docs.cloud.google.com/php/docs/reference/cloud-migrationcenter/latest/V1.GenericInsight` Output only. A generic insight about an asset |

### getMigrationInsight

Output only. An insight about potential migrations for an asset.

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

### hasMigrationInsight

### setMigrationInsight

Output only. An insight about potential migrations for an asset.

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

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

### getGenericInsight

Output only. A generic insight about an asset

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

### hasGenericInsight

### setGenericInsight

Output only. A generic insight about an asset

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

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

### getInsight

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