Google Cloud Dialogflow Cx V3 Client - Class SafetySettings (0.5.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
Name Description
data array

Optional. Data for populating the Message object.

↳ banned_phrases array<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<SafetySettings\Phrase>
Returns
Type Description
$this