Discovery Engine v1beta API - Class AssistAnswer.Types.CustomerPolicyEnforcementResult.Types.ModelArmorEnforcementResult (1.0.0-beta24)

public sealed class AssistAnswer.Types.CustomerPolicyEnforcementResult.Types.ModelArmorEnforcementResult : IMessage<AssistAnswer.Types.CustomerPolicyEnforcementResult.Types.ModelArmorEnforcementResult>, IEquatable<AssistAnswer.Types.CustomerPolicyEnforcementResult.Types.ModelArmorEnforcementResult>, IDeepCloneable<AssistAnswer.Types.CustomerPolicyEnforcementResult.Types.ModelArmorEnforcementResult>, IBufferMessage, IMessage

Reference documentation and code samples for the Discovery Engine v1beta API class AssistAnswer.Types.CustomerPolicyEnforcementResult.Types.ModelArmorEnforcementResult.

Customer policy enforcement result for the Model Armor policy.

Inheritance

object > AssistAnswer.Types.CustomerPolicyEnforcementResult.Types.ModelArmorEnforcementResult

Namespace

Google.Cloud.DiscoveryEngine.V1Beta

Assembly

Google.Cloud.DiscoveryEngine.V1Beta.dll

Constructors

ModelArmorEnforcementResult()

public ModelArmorEnforcementResult()

ModelArmorEnforcementResult(ModelArmorEnforcementResult)

public ModelArmorEnforcementResult(AssistAnswer.Types.CustomerPolicyEnforcementResult.Types.ModelArmorEnforcementResult other)
Parameter
Name Description
other AssistAnswerTypesCustomerPolicyEnforcementResultTypesModelArmorEnforcementResult

Properties

Error

public Status Error { get; set; }

The error returned by Model Armor if the policy enforcement failed for some reason.

Property Value
Type Description
Status

HasModelArmorViolation

public bool HasModelArmorViolation { get; }

Gets whether the "model_armor_violation" field is set

Property Value
Type Description
bool

ModelArmorViolation

public string ModelArmorViolation { get; set; }

The Model Armor violation that was found.

Property Value
Type Description
string

ResultCase

public AssistAnswer.Types.CustomerPolicyEnforcementResult.Types.ModelArmorEnforcementResult.ResultOneofCase ResultCase { get; }
Property Value
Type Description
AssistAnswerTypesCustomerPolicyEnforcementResultTypesModelArmorEnforcementResultResultOneofCase