[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eSafetyRating\u003c/code\u003e class, part of the Vertex AI v1beta1 API, provides a safety evaluation for generated content.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, adding more functionality.\u003c/p\u003e\n"],["\u003cp\u003eThe class has properties to determine if content was \u003ccode\u003eBlocked\u003c/code\u003e based on its rating, as well as determine the \u003ccode\u003eCategory\u003c/code\u003e, \u003ccode\u003eProbability\u003c/code\u003e, and \u003ccode\u003eSeverity\u003c/code\u003e of any potential harm.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSafetyRating\u003c/code\u003e can be constructed either with no parameters, or by providing another \u003ccode\u003eSafetyRating\u003c/code\u003e object as a copy.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eProbabilityScore\u003c/code\u003e and \u003ccode\u003eSeverityScore\u003c/code\u003e properties are used for a quantifiable measure of the harm probability and severity respectively.\u003c/p\u003e\n"]]],[],null,["# Vertex AI v1beta1 API - Class SafetyRating (1.0.0-beta47)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-beta47 (latest)](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.SafetyRating)\n- [1.0.0-beta46](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/1.0.0-beta46/Google.Cloud.AIPlatform.V1Beta1.SafetyRating) \n\n public sealed class SafetyRating : IMessage\u003cSafetyRating\u003e, IEquatable\u003cSafetyRating\u003e, IDeepCloneable\u003cSafetyRating\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Vertex AI v1beta1 API class SafetyRating.\n\nSafety rating corresponding to the generated content. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e SafetyRating \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[SafetyRating](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.SafetyRating), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[SafetyRating](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.SafetyRating), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[SafetyRating](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.SafetyRating), [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.AIPlatform.V1Beta1](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1)\n\nAssembly\n--------\n\nGoogle.Cloud.AIPlatform.V1Beta1.dll\n\nConstructors\n------------\n\n### SafetyRating()\n\n public SafetyRating()\n\n### SafetyRating(SafetyRating)\n\n public SafetyRating(SafetyRating other)\n\nProperties\n----------\n\n### Blocked\n\n public bool Blocked { get; set; }\n\nOutput only. Indicates whether the content was filtered out because of this\nrating.\n\n### Category\n\n public HarmCategory Category { get; set; }\n\nOutput only. Harm category.\n\n### Probability\n\n public SafetyRating.Types.HarmProbability Probability { get; set; }\n\nOutput only. Harm probability levels in the content.\n\n### ProbabilityScore\n\n public float ProbabilityScore { get; set; }\n\nOutput only. Harm probability score.\n\n### Severity\n\n public SafetyRating.Types.HarmSeverity Severity { get; set; }\n\nOutput only. Harm severity levels in the content.\n\n### SeverityScore\n\n public float SeverityScore { get; set; }\n\nOutput only. Harm severity score."]]