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

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
NameDescription
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
TypeDescription
string

setText

Required. The text for this part.

Parameter
NameDescription
var string
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this