# Cloud Speech V2 Client - Class ModelFeatures (2.5.1)

2.5.1 (latest) 2.5.0 2.4.0 2.3.0 2.2.1 2.1.1 2.0.1 1.20.1 1.19.2 1.18.3 1.16.0 1.15.0 1.14.3 1.13.1 1.12.0 1.11.2 1.10.0 1.9.1 1.8.0 1.7.0 Reference documentation and code samples for the Cloud Speech V2 Client class ModelFeatures.

Represents the collection of features belonging to a model

Generated from protobuf message `google.cloud.speech.v2.ModelFeatures`

## Namespace

Google \\ Cloud \\ Speech \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ model_feature` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-speech/latest/V2.ModelFeature>` Repeated field that contains all features of the model |

### getModelFeature

Repeated field that contains all features of the model

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-speech/latest/V2.ModelFeature>` |   |

### setModelFeature

Repeated field that contains all features of the model

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-speech/latest/V2.ModelFeature>` |

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