Google Cloud Dialogflow V2 Client - Class GenericWebService (1.0.1)

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:

Generated from protobuf message google.cloud.dialogflow.v2.Fulfillment.GenericWebService

Methods

__construct

Constructor.

Parameters
NameDescription
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.

Generated from protobuf field string uri = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
string

setUri

Required. The fulfillment URI for receiving POST requests.

It must use https protocol.

Generated from protobuf field string uri = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getUsername

Optional. The user name for HTTP Basic authentication.

Generated from protobuf field string username = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
string

setUsername

Optional. The user name for HTTP Basic authentication.

Generated from protobuf field string username = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPassword

Optional. The password for HTTP Basic authentication.

Generated from protobuf field string password = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
string

setPassword

Optional. The password for HTTP Basic authentication.

Generated from protobuf field string password = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getRequestHeaders

Optional. The HTTP request headers to send together with fulfillment requests.

Generated from protobuf field map<string, string> request_headers = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setRequestHeaders

Optional. The HTTP request headers to send together with fulfillment requests.

Generated from protobuf field map<string, string> request_headers = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$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.

Generated from protobuf field bool is_cloud_function = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
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.

Generated from protobuf field bool is_cloud_function = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
var bool
Returns
TypeDescription
$this