public sealed class SanitizeUserPromptRequest : IMessage<SanitizeUserPromptRequest>, IEquatable<SanitizeUserPromptRequest>, IDeepCloneable<SanitizeUserPromptRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Model Armor v1 API class SanitizeUserPromptRequest.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Model Armor v1 API - Class SanitizeUserPromptRequest (1.0.0-beta04)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-beta04 (latest)](/dotnet/docs/reference/Google.Cloud.ModelArmor.V1/latest/Google.Cloud.ModelArmor.V1.SanitizeUserPromptRequest)\n- [1.0.0-beta03](/dotnet/docs/reference/Google.Cloud.ModelArmor.V1/1.0.0-beta03/Google.Cloud.ModelArmor.V1.SanitizeUserPromptRequest) \n\n public sealed class SanitizeUserPromptRequest : IMessage\u003cSanitizeUserPromptRequest\u003e, IEquatable\u003cSanitizeUserPromptRequest\u003e, IDeepCloneable\u003cSanitizeUserPromptRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Model Armor v1 API class SanitizeUserPromptRequest.\n\nSanitize User Prompt request. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e SanitizeUserPromptRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[SanitizeUserPromptRequest](/dotnet/docs/reference/Google.Cloud.ModelArmor.V1/latest/Google.Cloud.ModelArmor.V1.SanitizeUserPromptRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[SanitizeUserPromptRequest](/dotnet/docs/reference/Google.Cloud.ModelArmor.V1/latest/Google.Cloud.ModelArmor.V1.SanitizeUserPromptRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[SanitizeUserPromptRequest](/dotnet/docs/reference/Google.Cloud.ModelArmor.V1/latest/Google.Cloud.ModelArmor.V1.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) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.ModelArmor.V1](/dotnet/docs/reference/Google.Cloud.ModelArmor.V1/latest/Google.Cloud.ModelArmor.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.ModelArmor.V1.dll\n\nConstructors\n------------\n\n### SanitizeUserPromptRequest()\n\n public SanitizeUserPromptRequest()\n\n### SanitizeUserPromptRequest(SanitizeUserPromptRequest)\n\n public SanitizeUserPromptRequest(SanitizeUserPromptRequest other)\n\nProperties\n----------\n\n### MultiLanguageDetectionMetadata\n\n public MultiLanguageDetectionMetadata MultiLanguageDetectionMetadata { get; set; }\n\nOptional. Metadata related to Multi Language Detection.\n\n### Name\n\n public string Name { get; set; }\n\nRequired. Represents resource name of template\ne.g. name=projects/sample-project/locations/us-central1/templates/templ01\n\n### TemplateName\n\n public TemplateName TemplateName { get; set; }\n\n[TemplateName](/dotnet/docs/reference/Google.Cloud.ModelArmor.V1/latest/Google.Cloud.ModelArmor.V1.TemplateName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.ModelArmor.V1/latest/Google.Cloud.ModelArmor.V1.SanitizeUserPromptRequest#Google_Cloud_ModelArmor_V1_SanitizeUserPromptRequest_Name) resource name property.\n\n### UserPromptData\n\n public DataItem UserPromptData { get; set; }\n\nRequired. User prompt data to sanitize."]]