# Cloud AutoML V1 Client - Class ImportDataRequest (2.1.3)

2.1.3 (latest) 2.1.2 2.0.5 1.6.5 1.5.4 1.4.17 Reference documentation and code samples for the Cloud AutoML V1 Client class ImportDataRequest.

Request message for [AutoMl.ImportData](https://docs.cloud.google.com/php/docs/reference/cloud-automl/latest/V1.Client.AutoMlClient#_Google_Cloud_AutoMl_V1_Client_AutoMlClient__importData__).

Generated from protobuf message `google.cloud.automl.v1.ImportDataRequest`

## Namespace

Google \\ Cloud \\ AutoMl \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. Dataset name. Dataset must already exist. All imported annotations and examples will be added. |
| `↳ input_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-automl/latest/V1.InputConfig` Required. The desired input location and its domain specific semantics, if any. |

### getName

Required. Dataset name. Dataset must already exist. All imported
annotations and examples will be added.

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

### setName

Required. Dataset name. Dataset must already exist. All imported
annotations and examples will be added.

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

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

### getInputConfig

Required. The desired input location and its domain specific semantics,
if any.

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

### hasInputConfig

### clearInputConfig

### setInputConfig

Required. The desired input location and its domain specific semantics,
if any.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. Dataset name. Dataset must already exist. All imported annotations and examples will be added. Please see AutoMlClient::datasetName() for help formatting this field. |
| `inputConfig` | `https://docs.cloud.google.com/php/docs/reference/cloud-automl/latest/V1.InputConfig` Required. The desired input location and its domain specific semantics, if any. |

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