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

1.0.0-beta06 (latest) 1.0.0-beta05

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

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

Sanitize User Prompt request.

## Inheritance

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

## Implements

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

### SanitizeUserPromptRequest()

    public SanitizeUserPromptRequest()

### SanitizeUserPromptRequest(SanitizeUserPromptRequest)

    public SanitizeUserPromptRequest(SanitizeUserPromptRequest other)

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

## 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` |   |

### MultiLanguageDetectionMetadata

    public MultiLanguageDetectionMetadata MultiLanguageDetectionMetadata { get; set; }

Optional. Metadata related to Multi Language Detection.

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

### TemplateName

    public TemplateName TemplateName { get; set; }

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

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

### UserPromptData

    public DataItem UserPromptData { get; set; }

Required. User prompt data to sanitize.

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