public sealed class AnswerQueryRequest.Types.SafetySpec.Types.SafetySetting : IMessage<AnswerQueryRequest.Types.SafetySpec.Types.SafetySetting>, IEquatable<AnswerQueryRequest.Types.SafetySpec.Types.SafetySetting>, IDeepCloneable<AnswerQueryRequest.Types.SafetySpec.Types.SafetySetting>, IBufferMessage, IMessage
Reference documentation and code samples for the Discovery Engine v1 API class AnswerQueryRequest.Types.SafetySpec.Types.SafetySetting.
Safety settings.
Implements
IMessageAnswerQueryRequestTypesSafetySpecTypesSafetySetting, IEquatableAnswerQueryRequestTypesSafetySpecTypesSafetySetting, IDeepCloneableAnswerQueryRequestTypesSafetySpecTypesSafetySetting, IBufferMessage, IMessageNamespace
Google.Cloud.DiscoveryEngine.V1Assembly
Google.Cloud.DiscoveryEngine.V1.dll
Constructors
SafetySetting()
public SafetySetting()
SafetySetting(SafetySetting)
public SafetySetting(AnswerQueryRequest.Types.SafetySpec.Types.SafetySetting other)
Parameter | |
---|---|
Name | Description |
other |
AnswerQueryRequestTypesSafetySpecTypesSafetySetting |
Properties
Category
public HarmCategory Category { get; set; }
Required. Harm category.
Property Value | |
---|---|
Type | Description |
HarmCategory |
Threshold
public AnswerQueryRequest.Types.SafetySpec.Types.SafetySetting.Types.HarmBlockThreshold Threshold { get; set; }
Required. The harm block threshold.
Property Value | |
---|---|
Type | Description |
AnswerQueryRequestTypesSafetySpecTypesSafetySettingTypesHarmBlockThreshold |