Cloud AI Platform v1beta1 API - Class SafetyRating (1.0.0-beta09)

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

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

Safety rating corresponding to the generated content.

Inheritance

object > SafetyRating

Namespace

Google.Cloud.AIPlatform.V1Beta1

Assembly

Google.Cloud.AIPlatform.V1Beta1.dll

Constructors

SafetyRating()

public SafetyRating()

SafetyRating(SafetyRating)

public SafetyRating(SafetyRating other)
Parameter
Name Description
other SafetyRating

Properties

Blocked

public bool Blocked { get; set; }

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

Property Value
Type Description
bool

Category

public HarmCategory Category { get; set; }

Output only. Harm category.

Property Value
Type Description
HarmCategory

Probability

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

Output only. Harm probability levels in the content.

Property Value
Type Description
SafetyRatingTypesHarmProbability

ProbabilityScore

public float ProbabilityScore { get; set; }

Output only. Harm probability score.

Property Value
Type Description
float

Severity

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

Output only. Harm severity levels in the content.

Property Value
Type Description
SafetyRatingTypesHarmSeverity

SeverityScore

public float SeverityScore { get; set; }

Output only. Harm severity score.

Property Value
Type Description
float