1.0.0-beta25 (latest) 1.0.0-beta24

    public sealed class AssistAnswer.Types.CustomerPolicyEnforcementResult : IMessage<AssistAnswer.Types.CustomerPolicyEnforcementResult>, IEquatable<AssistAnswer.Types.CustomerPolicyEnforcementResult>, IDeepCloneable<AssistAnswer.Types.CustomerPolicyEnforcementResult>, IBufferMessage, IMessage

Reference documentation and code samples for the Discovery Engine v1beta API class AssistAnswer.Types.CustomerPolicyEnforcementResult.

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

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> AssistAnswer.Types.CustomerPolicyEnforcementResult

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[AssistAnswer](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.AssistAnswer)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.AssistAnswer.Types)[CustomerPolicyEnforcementResult](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.AssistAnswer.Types.CustomerPolicyEnforcementResult), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[AssistAnswer](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.AssistAnswer)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.AssistAnswer.Types)[CustomerPolicyEnforcementResult](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.AssistAnswer.Types.CustomerPolicyEnforcementResult), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[AssistAnswer](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.AssistAnswer)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.AssistAnswer.Types)[CustomerPolicyEnforcementResult](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.AssistAnswer.Types.CustomerPolicyEnforcementResult), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.DiscoveryEngine.V1Beta](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta)

## Assembly

Google.Cloud.DiscoveryEngine.V1Beta.dll

## Constructors

### CustomerPolicyEnforcementResult()

    public CustomerPolicyEnforcementResult()

### CustomerPolicyEnforcementResult(CustomerPolicyEnforcementResult)

    public CustomerPolicyEnforcementResult(AssistAnswer.Types.CustomerPolicyEnforcementResult other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.AssistAnswerhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.AssistAnswer.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.AssistAnswer.Types.CustomerPolicyEnforcementResult` |

## Properties

### PolicyResults

    public RepeatedField<AssistAnswer.Types.CustomerPolicyEnforcementResult.Types.PolicyEnforcementResult> PolicyResults { get; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.AssistAnswerhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.AssistAnswer.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.AssistAnswer.Types.CustomerPolicyEnforcementResulthttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.AssistAnswer.Types.CustomerPolicyEnforcementResult.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.AssistAnswer.Types.CustomerPolicyEnforcementResult.Types.PolicyEnforcementResult` |   |

### Verdict

    public AssistAnswer.Types.CustomerPolicyEnforcementResult.Types.Verdict Verdict { get; set; }

Final verdict of the customer policy enforcement. If only one policy
blocked the processing, the verdict is BLOCK.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.AssistAnswerhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.AssistAnswer.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.AssistAnswer.Types.CustomerPolicyEnforcementResulthttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.AssistAnswer.Types.CustomerPolicyEnforcementResult.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.AssistAnswer.Types.CustomerPolicyEnforcementResult.Types.Verdict` |   |