# Google Shopping Merchant DataSources V1 Client - Class GetDataSourceRequest (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 GetDataSourceRequest.

Request message for the GetDataSource method.

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

## 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 to retrieve. Format: `accounts/{account}/dataSources/{datasource}` |

### getName

Required. The name of the data source to retrieve.

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

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

### setName

Required. The name of the data source to retrieve.

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

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

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

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The name of the data source to retrieve. Format: `accounts/{account}/dataSources/{datasource}` Please see DataSourcesServiceClient::dataSourceName() for help formatting this field. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/shopping-merchant-datasources/latest/V1.GetDataSourceRequest` |   |