Google Cloud Dialogflow Cx V3 Client - Class ParameterDefinition (0.10.1)

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

Defines the properties of a parameter.

Used to define parameters used in the agent and the input / output parameters for each fulfillment.

Generated from protobuf message google.cloud.dialogflow.cx.v3.ParameterDefinition

Namespace

Google \ Cloud \ Dialogflow \ Cx \ V3

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

Required. Name of parameter.

↳ type int

Type of parameter.

↳ type_schema TypeSchema

Optional. Type schema of parameter.

↳ description string

Human-readable description of the parameter. Limited to 300 characters.

getName

Required. Name of parameter.

Returns
Type Description
string

setName

Required. Name of parameter.

Parameter
Name Description
var string
Returns
Type Description
$this

getType

Type of parameter.

Returns
Type Description
int Enum of type ParameterType.

setType

Type of parameter.

Parameter
Name Description
var int

Enum of type ParameterType.

Returns
Type Description
$this

getTypeSchema

Optional. Type schema of parameter.

Returns
Type Description
TypeSchema|null

hasTypeSchema

clearTypeSchema

setTypeSchema

Optional. Type schema of parameter.

Parameter
Name Description
var TypeSchema
Returns
Type Description
$this

getDescription

Human-readable description of the parameter. Limited to 300 characters.

Returns
Type Description
string

setDescription

Human-readable description of the parameter. Limited to 300 characters.

Parameter
Name Description
var string
Returns
Type Description
$this