Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class FunctionTool.
A Function tool describes the functions to be invoked on the client side.
Generated from protobuf message google.cloud.dialogflow.v2.Tool.FunctionTool
Namespace
Google \ Cloud \ Dialogflow \ V2 \ ToolMethods
__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. |
↳ method_type |
int
Optional. The method type of the function. If not specified, the default value is GET. |
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 |
|
getMethodType
Optional. The method type of the function. If not specified, the default value is GET.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type MethodType. |
setMethodType
Optional. The method type of the function. If not specified, the default value is GET.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type MethodType. |
| Returns | |
|---|---|
| Type | Description |
$this |
|