1.0.0 (latest) 1.0.0-beta07

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

Reference documentation and code samples for the Model Armor v1 API class VirusScanFilterResult.

Virus scan results.

## Inheritance

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

## Implements

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

## Assembly

Google.Cloud.ModelArmor.V1.dll

## Constructors

### VirusScanFilterResult()

    public VirusScanFilterResult()

### VirusScanFilterResult(VirusScanFilterResult)

    public VirusScanFilterResult(VirusScanFilterResult other)

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

## Properties

### ExecutionState

    public FilterExecutionState ExecutionState { get; set; }

Output only. Reports whether Virus Scan was successfully executed or not.

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

### HasScannedSize

    public bool HasScannedSize { get; }

Gets whether the "scanned_size" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### MatchState

    public FilterMatchState MatchState { get; set; }

Output only. Match status for Virus. Value is MATCH_FOUND if the data is infected with a virus.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ModelArmor.V1/latest/Google.Cloud.ModelArmor.V1.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 status 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.V1/latest/Google.Cloud.ModelArmor.V1.MessageItem` |   |

### ScannedContentType

    public VirusScanFilterResult.Types.ScannedContentType ScannedContentType { get; set; }

Type of content scanned.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ModelArmor.V1/latest/Google.Cloud.ModelArmor.V1.VirusScanFilterResulthttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ModelArmor.V1/latest/Google.Cloud.ModelArmor.V1.VirusScanFilterResult.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ModelArmor.V1/latest/Google.Cloud.ModelArmor.V1.VirusScanFilterResult.Types.ScannedContentType` |   |

### ScannedSize

    public long ScannedSize { get; set; }

Size of scanned content in bytes.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.int64` |   |

### VirusDetails

    public RepeatedField<VirusDetail> VirusDetails { get; }

List of Viruses identified. This field will be empty if no virus was detected.

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