Cloud AI Platform v1 API - Class SafetySetting (2.23.0)

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

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

Safety settings.

Inheritance

object > SafetySetting

Namespace

Google.Cloud.AIPlatform.V1

Assembly

Google.Cloud.AIPlatform.V1.dll

Constructors

SafetySetting()

public SafetySetting()

SafetySetting(SafetySetting)

public SafetySetting(SafetySetting other)
Parameter
NameDescription
otherSafetySetting

Properties

Category

public HarmCategory Category { get; set; }

Required. Harm category.

Property Value
TypeDescription
HarmCategory

Threshold

public SafetySetting.Types.HarmBlockThreshold Threshold { get; set; }

Required. The harm block threshold.

Property Value
TypeDescription
SafetySettingTypesHarmBlockThreshold