# Model Armor v1beta API - Class RaiFilterResult (1.0.0-beta06)

1.0.0-beta06 (latest) 1.0.0-beta05

    public sealed class RaiFilterResult : IMessage<RaiFilterResult>, IEquatable<RaiFilterResult>, IDeepCloneable<RaiFilterResult>, IBufferMessage, IMessage

Reference documentation and code samples for the Model Armor v1beta API class RaiFilterResult.

Responsible AI Result.

## Inheritance

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

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[RaiFilterResult](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ModelArmor.V1Beta/latest/Google.Cloud.ModelArmor.V1Beta.RaiFilterResult), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[RaiFilterResult](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ModelArmor.V1Beta/latest/Google.Cloud.ModelArmor.V1Beta.RaiFilterResult), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[RaiFilterResult](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ModelArmor.V1Beta/latest/Google.Cloud.ModelArmor.V1Beta.RaiFilterResult), [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.ModelArmor.V1Beta](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ModelArmor.V1Beta/latest/Google.Cloud.ModelArmor.V1Beta)

## Assembly

Google.Cloud.ModelArmor.V1Beta.dll

## Constructors

### RaiFilterResult()

    public RaiFilterResult()

### RaiFilterResult(RaiFilterResult)

    public RaiFilterResult(RaiFilterResult other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ModelArmor.V1Beta/latest/Google.Cloud.ModelArmor.V1Beta.RaiFilterResult` |

## Properties

### ExecutionState

    public FilterExecutionState ExecutionState { get; set; }

Output only. Reports whether the RAI filter was successfully executed or
not.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ModelArmor.V1Beta/latest/Google.Cloud.ModelArmor.V1Beta.FilterExecutionState` |   |

### MatchState

    public FilterMatchState MatchState { get; set; }

Output only. Overall filter match state for RAI.
Value is MATCH_FOUND if at least one RAI filter confidence level is
equal to or higher than the confidence level defined in configuration.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ModelArmor.V1Beta/latest/Google.Cloud.ModelArmor.V1Beta.FilterMatchState` |   |

### MessageItems

    public RepeatedField<MessageItem> MessageItems { get; }

Optional messages corresponding to the result.
A message can provide warnings or error details.
For example, if execution state is skipped then this field provides
related reason/explanation.

| **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.ModelArmor.V1Beta/latest/Google.Cloud.ModelArmor.V1Beta.MessageItem` |   |

### RaiFilterTypeResults

    public MapField<string, RaiFilterResult.Types.RaiFilterTypeResult> RaiFilterTypeResults { get; }

The map of RAI filter results where key is RAI filter type - either of
"sexually_explicit", "hate_speech", "harassment", "dangerous", "violence",
"sexually_suggestive".

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.MapField-2.htmlhttps://learn.microsoft.com/dotnet/api/system.stringhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ModelArmor.V1Beta/latest/Google.Cloud.ModelArmor.V1Beta.RaiFilterResulthttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ModelArmor.V1Beta/latest/Google.Cloud.ModelArmor.V1Beta.RaiFilterResult.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ModelArmor.V1Beta/latest/Google.Cloud.ModelArmor.V1Beta.RaiFilterResult.Types.RaiFilterTypeResult` |   |