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

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

Represents a part of a training phrase.

Generated from protobuf message google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part

Namespace

Google \ Cloud \ Dialogflow \ Cx \ V3 \ Intent \ TrainingPhrase

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ text string

Required. The text for this part.

↳ parameter_id string

The parameter used to annotate this part of the training phrase. This field is required for annotated parts of the training phrase.

getText

Required. The text for this part.

Returns
Type Description
string

setText

Required. The text for this part.

Parameter
Name Description
var string
Returns
Type Description
$this

getParameterId

The parameter used to annotate this part of the training phrase. This field is required for annotated parts of the training phrase.

Returns
Type Description
string

setParameterId

The parameter used to annotate this part of the training phrase. This field is required for annotated parts of the training phrase.

Parameter
Name Description
var string
Returns
Type Description
$this