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

Message for getting a Asset.

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

## Namespace

Google \\ Cloud \\ MigrationCenter \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. Name of the resource. |
| `↳ view` | `int` View of the assets. Defaults to BASIC. |

### getName

Required. Name of the resource.

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

### setName

Required. Name of the resource.

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

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

### getView

View of the assets. Defaults to BASIC.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [AssetView](https://docs.cloud.google.com/php/docs/reference/cloud-migrationcenter/latest/V1.AssetView). |

### setView

View of the assets. Defaults to BASIC.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [AssetView](https://docs.cloud.google.com/php/docs/reference/cloud-migrationcenter/latest/V1.AssetView). |

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

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. Name of the resource. Please see MigrationCenterClient::assetName() for help formatting this field. |

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