0.20.1 (latest) 0.20.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.0 0.14.0 0.13.12 0.12.3 0.11.14 0.10.0 0.9.1 0.8.1 0.7.0 0.6.0 0.5.0 0.4.1 0.3.1 0.2.1 0.1.1

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

Customer policy enforcement results. Contains the results of
the various policy checks, like the banned phrases or the Model
Armor checks.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `verdict` | `https://docs.cloud.google.com/python/docs/reference/discoveryengine/latest/google.cloud.discoveryengine_v1beta.types.AssistAnswer.CustomerPolicyEnforcementResult.Verdict` Final verdict of the customer policy enforcement. If only one policy blocked the processing, the verdict is BLOCK. |
| `policy_results` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/discoveryengine/latest/google.cloud.discoveryengine_v1beta.types.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult]` Customer policy enforcement results. Populated only if the assist call was skipped due to a policy violation. It contains results from those filters that blocked the processing of the query. |

## Classes

### BannedPhraseEnforcementResult

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

Customer policy enforcement result for the banned phrase
policy.

### ModelArmorEnforcementResult

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

Customer policy enforcement result for the Model Armor
policy.

This message has `oneof`_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

### PolicyEnforcementResult

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

Customer policy enforcement result for a single policy type.

This message has `oneof`_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

### Verdict

    Verdict(value)

The verdict of the customer policy enforcement.