1.0.0 (latest) 1.0.0-beta07

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

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

Sanitize Model Response request.

## Inheritance

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

## Implements

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

### SanitizeModelResponseRequest()

    public SanitizeModelResponseRequest()

### SanitizeModelResponseRequest(SanitizeModelResponseRequest)

    public SanitizeModelResponseRequest(SanitizeModelResponseRequest other)

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

## Properties

### HasStreamingMode

    public bool HasStreamingMode { get; }

Gets whether the "streaming_mode" field is set

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

### ModelResponseData

    public DataItem ModelResponseData { get; set; }

Required. Model response data to sanitize.

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

### MultiLanguageDetectionMetadata

    public MultiLanguageDetectionMetadata MultiLanguageDetectionMetadata { get; set; }

Optional. Metadata related for multi language detection.

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

### Name

    public string Name { get; set; }

Required. Represents resource name of template e.g. name=projects/sample-project/locations/us-central1/templates/templ01

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

### StreamingMode

    public StreamingMode StreamingMode { get; set; }

Optional. Streaming Mode for StreamSanitize\* API.

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

### TemplateName

    public TemplateName TemplateName { get; set; }

[TemplateName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ModelArmor.V1/latest/Google.Cloud.ModelArmor.V1.TemplateName)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ModelArmor.V1/latest/Google.Cloud.ModelArmor.V1.SanitizeModelResponseRequest#Google_Cloud_ModelArmor_V1_SanitizeModelResponseRequest_Name) resource name property.

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

### UserPrompt

    public string UserPrompt { get; set; }

Optional. User Prompt associated with Model response.

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