Cloud AI Platform v1beta1 API - Class SafetySetting (1.0.0-beta08)

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

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

Safety settings.

Inheritance

object > SafetySetting

Namespace

Google.Cloud.AIPlatform.V1Beta1

Assembly

Google.Cloud.AIPlatform.V1Beta1.dll

Constructors

SafetySetting()

public SafetySetting()

SafetySetting(SafetySetting)

public SafetySetting(SafetySetting other)
Parameter
Name Description
other SafetySetting

Properties

Category

public HarmCategory Category { get; set; }

Required. Harm category.

Property Value
Type Description
HarmCategory

Method

public SafetySetting.Types.HarmBlockMethod Method { get; set; }

Optional. Specify if the threshold is used for probability or severity score. If not specified, the threshold is used for probability score.

Property Value
Type Description
SafetySettingTypesHarmBlockMethod

Threshold

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

Required. The harm block threshold.

Property Value
Type Description
SafetySettingTypesHarmBlockThreshold