Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class CustomerPolicy.
Customer-defined policy for the assistant.
Generated from protobuf message google.cloud.discoveryengine.v1.Assistant.CustomerPolicy
Namespace
Google \ Cloud \ DiscoveryEngine \ V1 \ AssistantMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ banned_phrases |
array<CustomerPolicy\BannedPhrase>
Optional. List of banned phrases. |
↳ model_armor_config |
CustomerPolicy\ModelArmorConfig
Optional. Model Armor configuration to be used for sanitizing user prompts and assistant responses. |
↳ data_protection_policy |
Google\Cloud\DiscoveryEngine\V1\DataProtectionPolicy
Optional. Data protection policy to be used for sanitizing file uploads. |
getBannedPhrases
Optional. List of banned phrases.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\RepeatedField<CustomerPolicy\BannedPhrase> |
|
setBannedPhrases
Optional. List of banned phrases.
| Parameter | |
|---|---|
| Name | Description |
var |
array<CustomerPolicy\BannedPhrase>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getModelArmorConfig
Optional. Model Armor configuration to be used for sanitizing user prompts and assistant responses.
| Returns | |
|---|---|
| Type | Description |
CustomerPolicy\ModelArmorConfig|null |
|
hasModelArmorConfig
clearModelArmorConfig
setModelArmorConfig
Optional. Model Armor configuration to be used for sanitizing user prompts and assistant responses.
| Parameter | |
|---|---|
| Name | Description |
var |
CustomerPolicy\ModelArmorConfig
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDataProtectionPolicy
Optional. Data protection policy to be used for sanitizing file uploads.
| Returns | |
|---|---|
| Type | Description |
Google\Cloud\DiscoveryEngine\V1\DataProtectionPolicy|null |
|
hasDataProtectionPolicy
clearDataProtectionPolicy
setDataProtectionPolicy
Optional. Data protection policy to be used for sanitizing file uploads.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Cloud\DiscoveryEngine\V1\DataProtectionPolicy
|
| Returns | |
|---|---|
| Type | Description |
$this |
|