Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class GenericWebService.
Represents configuration for a generic web service.
Dialogflow supports two mechanisms for authentications:
- Basic authentication with username and password.
- Authentication with additional authentication headers. More information could be found at: https://cloud.google.com/dialogflow/docs/fulfillment-configure .
Generated from protobuf message google.cloud.dialogflow.v2.Fulfillment.GenericWebService
Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ uri
string
Required. The fulfillment URI for receiving POST requests. It must use https protocol.
↳ username
string
Optional. The user name for HTTP Basic authentication.
↳ password
string
Optional. The password for HTTP Basic authentication.
↳ request_headers
array| Google\Protobuf\Internal\MapField
Optional. The HTTP request headers to send together with fulfillment requests.
↳ is_cloud_function
bool
Optional. Indicates if generic web service is created through Cloud Functions integration. Defaults to false. is_cloud_function is deprecated. Cloud functions can be configured by its uri as a regular web service now.
getUri
Required. The fulfillment URI for receiving POST requests.
It must use https protocol.
string
setUri
Required. The fulfillment URI for receiving POST requests.
It must use https protocol.
var
string
$this
getUsername
Optional. The user name for HTTP Basic authentication.
string
setUsername
Optional. The user name for HTTP Basic authentication.
var
string
$this
getPassword
Optional. The password for HTTP Basic authentication.
string
setPassword
Optional. The password for HTTP Basic authentication.
var
string
$this
getRequestHeaders
Optional. The HTTP request headers to send together with fulfillment requests.
setRequestHeaders
Optional. The HTTP request headers to send together with fulfillment requests.
$this
getIsCloudFunction
Optional. Indicates if generic web service is created through Cloud Functions integration. Defaults to false.
is_cloud_function is deprecated. Cloud functions can be configured by its uri as a regular web service now.
bool
setIsCloudFunction
Optional. Indicates if generic web service is created through Cloud Functions integration. Defaults to false.
is_cloud_function is deprecated. Cloud functions can be configured by its uri as a regular web service now.
var
bool
$this