0.6.0 (latest) 0.5.0 0.4.4 0.3.0 0.2.0 0.1.1 Reference documentation and code samples for the Google Cloud Ces V1 Client class ModelSafety.

Model safety settings overrides. When this is set, it will override the
default settings and trigger the guardrail if the response is considered
unsafe.

Generated from protobuf message `google.cloud.ces.v1.Guardrail.ModelSafety`

## Namespace

Google \\ Cloud \\ Ces \\ V1 \\ Guardrail

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ safety_settings` | `array<ModelSafety\SafetySetting>` Required. List of safety settings. |

### getSafetySettings

Required. List of safety settings.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<ModelSafety\SafetySetting>` |   |

### setSafetySettings

Required. List of safety settings.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<ModelSafety\SafetySetting>` |

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