Discovery Engine v1 API - Class AnswerQueryRequest.Types.SafetySpec.Types.SafetySetting (1.7.0)

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.

Inheritance

object > AnswerQueryRequest.Types.SafetySpec.Types.SafetySetting

Namespace

Google.Cloud.DiscoveryEngine.V1

Assembly

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