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

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

Customer policy enforcement result for the banned phrase policy.

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

Namespace

Google \ Cloud \ DiscoveryEngine \ V1 \ AssistAnswer \ CustomerPolicyEnforcementResult

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ banned_phrases string[]

The banned phrases that were found in the query or the answer.

getBannedPhrases

The banned phrases that were found in the query or the answer.

Returns
Type Description
Google\Protobuf\RepeatedField<string>

setBannedPhrases

The banned phrases that were found in the query or the answer.

Parameter
Name Description
var string[]
Returns
Type Description
$this