# Cloud AutoML V1 Client - Class CreateModelRequest (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 CreateModelRequest.

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

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

## Namespace

Google \\ Cloud \\ AutoMl \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. Resource name of the parent project where the model is being created. |
| `↳ model` | `https://docs.cloud.google.com/php/docs/reference/cloud-automl/latest/V1.Model` Required. The model to create. |

### getParent

Required. Resource name of the parent project where the model is being created.

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

### setParent

Required. Resource name of the parent project where the model is being created.

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

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

### getModel

Required. The model to create.

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

### hasModel

### clearModel

### setModel

Required. The model to create.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. Resource name of the parent project where the model is being created. Please see AutoMlClient::locationName() for help formatting this field. |
| `model` | `https://docs.cloud.google.com/php/docs/reference/cloud-automl/latest/V1.Model` Required. The model to create. |

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