# Class SafetySetting (0.7.0)

0.7.0 (latest) 0.6.0 0.5.0 0.4.0 0.3.0

    SafetySetting(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Safety setting.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `category` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-ces/latest/google.cloud.ces_v1beta.types.Guardrail.ModelSafety.HarmCategory` Required. The harm category. |
| `threshold` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-ces/latest/google.cloud.ces_v1beta.types.Guardrail.ModelSafety.HarmBlockThreshold` Required. The harm block threshold. |