Class GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSafetySpec
Safety specification. There are two use cases: 1. when only safety_spec.enable is set, the BLOCK_LOW_AND_ABOVE threshold will be applied for all categories. 2. when safety_spec.enable is set and some safety_settings are set, only specified safety_settings are applied.
Implements
Inherited Members
Namespace: Google.Apis.DiscoveryEngine.v1alpha.Data
Assembly: Google.Apis.DiscoveryEngine.v1alpha.dll
Syntax
public class GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSafetySpec : IDirectResponseSchema
Properties
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
Enable
Enable the safety filtering on the answer response. It is false by default.
Declaration
[JsonProperty("enable")]
public virtual bool? Enable { get; set; }
Property Value
Type | Description |
---|---|
bool? |
SafetySettings
Optional. Safety settings. This settings are effective only when the safety_spec.enable is true.
Declaration
[JsonProperty("safetySettings")]
public virtual IList<GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSafetySpecSafetySetting> SafetySettings { get; set; }
Property Value
Type | Description |
---|---|
IList<GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSafetySpecSafetySetting> |