Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class PolicyEnforcementResult.
Customer policy enforcement result for a single policy type.
Generated from protobuf message google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult
Namespace
Google \ Cloud \ DiscoveryEngine \ V1 \ AssistAnswer \ CustomerPolicyEnforcementResultMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ banned_phrase_enforcement_result |
BannedPhraseEnforcementResult
The policy enforcement result for the banned phrase policy. |
↳ model_armor_enforcement_result |
ModelArmorEnforcementResult
The policy enforcement result for the Model Armor policy. |
getBannedPhraseEnforcementResult
The policy enforcement result for the banned phrase policy.
| Returns | |
|---|---|
| Type | Description |
BannedPhraseEnforcementResult|null |
|
hasBannedPhraseEnforcementResult
setBannedPhraseEnforcementResult
The policy enforcement result for the banned phrase policy.
| Parameter | |
|---|---|
| Name | Description |
var |
BannedPhraseEnforcementResult
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getModelArmorEnforcementResult
The policy enforcement result for the Model Armor policy.
| Returns | |
|---|---|
| Type | Description |
ModelArmorEnforcementResult|null |
|
hasModelArmorEnforcementResult
setModelArmorEnforcementResult
The policy enforcement result for the Model Armor policy.
| Parameter | |
|---|---|
| Name | Description |
var |
ModelArmorEnforcementResult
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getEnforcementResult
| Returns | |
|---|---|
| Type | Description |
string |
|