Google Cloud Discovery Engine V1 Client - Class ModelArmorEnforcementResult (1.17.0)

Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class ModelArmorEnforcementResult.

Customer policy enforcement result for the Model Armor policy.

Generated from protobuf message google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.ModelArmorEnforcementResult

Namespace

Google \ Cloud \ DiscoveryEngine \ V1 \ AssistAnswer \ CustomerPolicyEnforcementResult

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ model_armor_violation string

The Model Armor violation that was found.

↳ error Google\Rpc\Status

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

getModelArmorViolation

The Model Armor violation that was found.

Returns
Type Description
string

hasModelArmorViolation

setModelArmorViolation

The Model Armor violation that was found.

Parameter
Name Description
var string
Returns
Type Description
$this

getError

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

Returns
Type Description
Google\Rpc\Status|null

hasError

setError

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

Parameter
Name Description
var Google\Rpc\Status
Returns
Type Description
$this

getResult

Returns
Type Description
string