Google Cloud Dialogflow Cx V3 Client - Class Phrase (0.4.0)

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

Text input which can be used for prompt or banned phrases.

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

Namespace

Google \ Cloud \ Dialogflow \ Cx \ V3 \ SafetySettings

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ text string

Required. Text input which can be used for prompt or banned phrases.

↳ language_code string

Required. Language code of the phrase.

getText

Required. Text input which can be used for prompt or banned phrases.

Returns
Type Description
string

setText

Required. Text input which can be used for prompt or banned phrases.

Parameter
Name Description
var string
Returns
Type Description
$this

getLanguageCode

Required. Language code of the phrase.

Returns
Type Description
string

setLanguageCode

Required. Language code of the phrase.

Parameter
Name Description
var string
Returns
Type Description
$this