Class CustomerPolicyEnforcementResult (0.20.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 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[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.