# Google Cloud Discovery Engine V1 Client - Class CustomTuningModel (1.11.1)

1.11.1 (latest) 1.11.0 1.10.1 1.9.1 1.8.0 1.7.0 1.6.1 1.5.1 1.4.0 1.3.3 1.2.0 1.1.0 1.0.0 0.11.3 0.8.0 0.7.1 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.1 Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class CustomTuningModel.

Metadata that describes a custom tuned model.

Generated from protobuf message `google.cloud.discoveryengine.v1.CustomTuningModel`

## Namespace

Google \\ Cloud \\ DiscoveryEngine \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. The fully qualified resource name of the model. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}`. Model must be an alpha-numerical string with limit of 40 characters. |
| `↳ display_name` | `string` The display name of the model. |
| `↳ model_version` | `int|string` The version of the model. |
| `↳ model_state` | `int` The state that the model is in (e.g.`TRAINING` or `TRAINING_FAILED`). |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Deprecated: Timestamp the Model was created at. |
| `↳ training_start_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Timestamp the model training was initiated. |
| `↳ metrics` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` The metrics of the trained model. |
| `↳ error_message` | `string` Currently this is only populated if the model state is `INPUT_VALIDATION_FAILED`. |

### getName

Required. The fully qualified resource name of the model.

Format:
`projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}`.
Model must be an alpha-numerical string with limit of 40 characters.

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

### setName

Required. The fully qualified resource name of the model.

Format:
`projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}`.
Model must be an alpha-numerical string with limit of 40 characters.

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

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

### getDisplayName

The display name of the model.

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

### setDisplayName

The display name of the model.

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

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

### getModelVersion

The version of the model.

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

### setModelVersion

The version of the model.

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

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

### getModelState

The state that the model is in (e.g.`TRAINING` or `TRAINING_FAILED`).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [ModelState](https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.CustomTuningModel.ModelState). |

### setModelState

The state that the model is in (e.g.`TRAINING` or `TRAINING_FAILED`).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [ModelState](https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.CustomTuningModel.ModelState). |

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

### getCreateTime

Deprecated: Timestamp the Model was created at.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasCreateTime

### clearCreateTime

### setCreateTime

Deprecated: Timestamp the Model was created at.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getTrainingStartTime

Timestamp the model training was initiated.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasTrainingStartTime

### clearTrainingStartTime

### setTrainingStartTime

Timestamp the model training was initiated.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getMetrics

The metrics of the trained model.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |   |

### setMetrics

The metrics of the trained model.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |

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

### getErrorMessage

Currently this is only populated if the model state is
`INPUT_VALIDATION_FAILED`.

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

### setErrorMessage

Currently this is only populated if the model state is
`INPUT_VALIDATION_FAILED`.

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

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