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

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

A Function tool describes the functions to be invoked on the client side.

Generated from protobuf message google.cloud.dialogflow.cx.v3.Tool.FunctionTool

Namespace

Google \ Cloud \ Dialogflow \ Cx \ V3 \ Tool

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ input_schema Google\Protobuf\Struct

Optional. The JSON schema is encapsulated in a google.protobuf.Struct to describe the input of the function. This input is a JSON object that contains the function's parameters as properties of the object.

↳ output_schema Google\Protobuf\Struct

Optional. The JSON schema is encapsulated in a google.protobuf.Struct to describe the output of the function. This output is a JSON object that contains the function's parameters as properties of the object.

getInputSchema

Optional. The JSON schema is encapsulated in a google.protobuf.Struct to describe the input of the function. This input is a JSON object that contains the function's parameters as properties of the object.

Returns
Type Description
Google\Protobuf\Struct|null

hasInputSchema

clearInputSchema

setInputSchema

Optional. The JSON schema is encapsulated in a google.protobuf.Struct to describe the input of the function. This input is a JSON object that contains the function's parameters as properties of the object.

Parameter
Name Description
var Google\Protobuf\Struct
Returns
Type Description
$this

getOutputSchema

Optional. The JSON schema is encapsulated in a google.protobuf.Struct to describe the output of the function. This output is a JSON object that contains the function's parameters as properties of the object.

Returns
Type Description
Google\Protobuf\Struct|null

hasOutputSchema

clearOutputSchema

setOutputSchema

Optional. The JSON schema is encapsulated in a google.protobuf.Struct to describe the output of the function. This output is a JSON object that contains the function's parameters as properties of the object.

Parameter
Name Description
var Google\Protobuf\Struct
Returns
Type Description
$this