# Google Shopping Merchant DataSources V1 Client - Class FetchDataSourceRequest (2.0.0)

2.0.0 (latest) 1.3.1 1.2.1 1.1.1 1.0.0 0.6.0 0.5.1 0.4.0 0.3.1 0.2.3 0.1.0 Reference documentation and code samples for the Google Shopping Merchant DataSources V1 Client class FetchDataSourceRequest.

Request message for the FetchDataSource method.

Generated from protobuf message `google.shopping.merchant.datasources.v1.FetchDataSourceRequest`

## Namespace

Google \\ Shopping \\ Merchant \\ DataSources \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. The name of the data source resource to fetch. Format: `accounts/{account}/dataSources/{datasource}` |

### getName

Required. The name of the data source resource to fetch.

Format: `accounts/{account}/dataSources/{datasource}`

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

### setName

Required. The name of the data source resource to fetch.

Format: `accounts/{account}/dataSources/{datasource}`

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

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