Cloud AI Platform v1 API - Class SafetyResult (3.7.0)

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

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

Spec for safety result.

Inheritance

object > SafetyResult

Namespace

Google.Cloud.AIPlatform.V1

Assembly

Google.Cloud.AIPlatform.V1.dll

Constructors

SafetyResult()

public SafetyResult()

SafetyResult(SafetyResult)

public SafetyResult(SafetyResult other)
Parameter
Name Description
other SafetyResult

Properties

Confidence

public float Confidence { get; set; }

Output only. Confidence for safety score.

Property Value
Type Description
float

Explanation

public string Explanation { get; set; }

Output only. Explanation for safety score.

Property Value
Type Description
string

HasConfidence

public bool HasConfidence { get; }

Gets whether the "confidence" field is set

Property Value
Type Description
bool

HasScore

public bool HasScore { get; }

Gets whether the "score" field is set

Property Value
Type Description
bool

Score

public float Score { get; set; }

Output only. Safety score.

Property Value
Type Description
float