Google Cloud Dialogflow V2 Client - Class OpenApiTool (2.3.0)

Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class OpenApiTool.

An OpenAPI tool is a way to provide the Tool specifications in the Open API schema format.

Generated from protobuf message google.cloud.dialogflow.v2.Tool.OpenApiTool

Namespace

Google \ Cloud \ Dialogflow \ V2 \ Tool

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ text_schema string

Required. The OpenAPI schema specified as a text.

↳ authentication Authentication

Optional. Authentication information required by the API.

↳ tls_config TLSConfig

Optional. TLS configuration for the HTTPS verification.

↳ service_directory_config ServiceDirectoryConfig

Optional. Service Directory configuration.

getTextSchema

Required. The OpenAPI schema specified as a text.

Returns
Type Description
string

hasTextSchema

setTextSchema

Required. The OpenAPI schema specified as a text.

Parameter
Name Description
var string
Returns
Type Description
$this

getAuthentication

Optional. Authentication information required by the API.

Returns
Type Description
Authentication|null

hasAuthentication

clearAuthentication

setAuthentication

Optional. Authentication information required by the API.

Parameter
Name Description
var Authentication
Returns
Type Description
$this

getTlsConfig

Optional. TLS configuration for the HTTPS verification.

Returns
Type Description
TLSConfig|null

hasTlsConfig

clearTlsConfig

setTlsConfig

Optional. TLS configuration for the HTTPS verification.

Parameter
Name Description
var TLSConfig
Returns
Type Description
$this

getServiceDirectoryConfig

Optional. Service Directory configuration.

Returns
Type Description
ServiceDirectoryConfig|null

hasServiceDirectoryConfig

clearServiceDirectoryConfig

setServiceDirectoryConfig

Optional. Service Directory configuration.

Parameter
Name Description
var ServiceDirectoryConfig
Returns
Type Description
$this

getSchema

Returns
Type Description
string