# Google Cloud Vm Migration V1 Client - Class FetchInventoryRequest (1.4.0)

1.4.0 (latest) 1.3.0 1.2.1 1.1.0 1.0.5 0.6.5 0.5.2 0.4.2 0.3.2 0.2.3 Reference documentation and code samples for the Google Cloud Vm Migration V1 Client class FetchInventoryRequest.

Request message for
[fetchInventory](https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.Client.VmMigrationClient#_Google_Cloud_VMMigration_V1_Client_VmMigrationClient__fetchInventory__).

Generated from protobuf message `google.cloud.vmmigration.v1.FetchInventoryRequest`

## Namespace

Google \\ Cloud \\ VMMigration \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ source` | `string` Required. The name of the Source. |
| `↳ force_refresh` | `bool` If this flag is set to true, the source will be queried instead of using cached results. Using this flag will make the call slower. |

### getSource

Required. The name of the Source.

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

### setSource

Required. The name of the Source.

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

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

### getForceRefresh

If this flag is set to true, the source will be queried instead of using
cached results. Using this flag will make the call slower.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setForceRefresh

If this flag is set to true, the source will be queried instead of using
cached results. Using this flag will make the call slower.

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

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

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `source` | `string` Required. The name of the Source. Please see VmMigrationClient::sourceName() for help formatting this field. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.FetchInventoryRequest` |   |