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

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
NameDescription
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
TypeDescription
Google\Protobuf\Internal\RepeatedField

setBannedPhrases

Banned phrases for generated text.

Parameter
NameDescription
var array<Google\Cloud\Dialogflow\Cx\V3\SafetySettings\Phrase>
Returns
TypeDescription
$this