public sealed class SafetySetting : IMessage<SafetySetting>, IEquatable<SafetySetting>, IDeepCloneable<SafetySetting>, IBufferMessage, IMessageReference documentation and code samples for the Retail v2 API class SafetySetting.
Safety settings.
Implements
IMessageSafetySetting, IEquatableSafetySetting, IDeepCloneableSafetySetting, IBufferMessage, IMessageNamespace
Google.Cloud.Retail.V2Assembly
Google.Cloud.Retail.V2.dll
Constructors
SafetySetting()
public SafetySetting()SafetySetting(SafetySetting)
public SafetySetting(SafetySetting other)| Parameter | |
|---|---|
| Name | Description |
other |
SafetySetting |
Properties
Category
public HarmCategory Category { get; set; }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; }The harm block threshold.
| Property Value | |
|---|---|
| Type | Description |
SafetySettingTypesHarmBlockThreshold |
|