Google Cloud Dialogflow Cx V3 Client - Class SafetySettings (0.3.4)

Reference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class SafetySettings.

Settings for Generative Safety.

Generated from protobuf message google.cloud.dialogflow.cx.v3.SafetySettings

Namespace

Google \ Cloud \ Dialogflow \ Cx \ V3

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ banned_phrases array<Google\Cloud\Dialogflow\Cx\V3\SafetySettings\Phrase>

Banned phrases for generated text.

getBannedPhrases

Banned phrases for generated text.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setBannedPhrases

Banned phrases for generated text.

Parameter
Name Description
var array<Google\Cloud\Dialogflow\Cx\V3\SafetySettings\Phrase>
Returns
Type Description
$this