Cloud AI Platform v1 API - Class SafetyRating (2.25.0)

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

Reference documentation and code samples for the Cloud AI Platform v1 API class SafetyRating.

Safety rating corresponding to the generated content.

Inheritance

object > SafetyRating

Namespace

Google.Cloud.AIPlatform.V1

Assembly

Google.Cloud.AIPlatform.V1.dll

Constructors

SafetyRating()

public SafetyRating()

SafetyRating(SafetyRating)

public SafetyRating(SafetyRating other)
Parameter
NameDescription
otherSafetyRating

Properties

Blocked

public bool Blocked { get; set; }

Output only. Indicates whether the content was filtered out because of this rating.

Property Value
TypeDescription
bool

Category

public HarmCategory Category { get; set; }

Output only. Harm category.

Property Value
TypeDescription
HarmCategory

Probability

public SafetyRating.Types.HarmProbability Probability { get; set; }

Output only. Harm probability levels in the content.

Property Value
TypeDescription
SafetyRatingTypesHarmProbability

ProbabilityScore

public float ProbabilityScore { get; set; }

Output only. Harm probability score.

Property Value
TypeDescription
float

Severity

public SafetyRating.Types.HarmSeverity Severity { get; set; }

Output only. Harm severity levels in the content.

Property Value
TypeDescription
SafetyRatingTypesHarmSeverity

SeverityScore

public float SeverityScore { get; set; }

Output only. Harm severity score.

Property Value
TypeDescription
float