# Google Cloud Migration Center V1 Client - Class MigrationInsight (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 MigrationInsight.

An insight about potential migrations for an asset.

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

## Namespace

Google \\ Cloud \\ MigrationCenter \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ fit` | `https://docs.cloud.google.com/php/docs/reference/cloud-migrationcenter/latest/V1.FitDescriptor` Output only. Description of how well the asset this insight is associated with fits the proposed migration. |
| `↳ compute_engine_target` | `https://docs.cloud.google.com/php/docs/reference/cloud-migrationcenter/latest/V1.ComputeEngineMigrationTarget` Output only. A Google Compute Engine target. |

### getFit

Output only. Description of how well the asset this insight is associated
with fits the proposed migration.

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

### hasFit

### clearFit

### setFit

Output only. Description of how well the asset this insight is associated
with fits the proposed migration.

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

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

### getComputeEngineTarget

Output only. A Google Compute Engine target.

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

### hasComputeEngineTarget

### setComputeEngineTarget

Output only. A Google Compute Engine target.

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

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

### getMigrationTarget

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