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.
Returns
Type
Description
string
setUri
Required. The fulfillment URI for receiving POST requests.
It must use https protocol.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getUsername
Optional. The user name for HTTP Basic authentication.
Returns
Type
Description
string
setUsername
Optional. The user name for HTTP Basic authentication.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getPassword
Optional. The password for HTTP Basic authentication.
Returns
Type
Description
string
setPassword
Optional. The password for HTTP Basic authentication.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getRequestHeaders
Optional. The HTTP request headers to send together with fulfillment
requests.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Dialogflow V2 Client - Class GenericWebService (2.1.2)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.2 (latest)](/php/docs/reference/cloud-dialogflow/latest/V2.Fulfillment.GenericWebService)\n- [2.1.1](/php/docs/reference/cloud-dialogflow/2.1.1/V2.Fulfillment.GenericWebService)\n- [2.0.1](/php/docs/reference/cloud-dialogflow/2.0.1/V2.Fulfillment.GenericWebService)\n- [1.17.2](/php/docs/reference/cloud-dialogflow/1.17.2/V2.Fulfillment.GenericWebService)\n- [1.16.0](/php/docs/reference/cloud-dialogflow/1.16.0/V2.Fulfillment.GenericWebService)\n- [1.15.1](/php/docs/reference/cloud-dialogflow/1.15.1/V2.Fulfillment.GenericWebService)\n- [1.14.0](/php/docs/reference/cloud-dialogflow/1.14.0/V2.Fulfillment.GenericWebService)\n- [1.13.0](/php/docs/reference/cloud-dialogflow/1.13.0/V2.Fulfillment.GenericWebService)\n- [1.12.3](/php/docs/reference/cloud-dialogflow/1.12.3/V2.Fulfillment.GenericWebService)\n- [1.11.0](/php/docs/reference/cloud-dialogflow/1.11.0/V2.Fulfillment.GenericWebService)\n- [1.10.2](/php/docs/reference/cloud-dialogflow/1.10.2/V2.Fulfillment.GenericWebService)\n- [1.9.0](/php/docs/reference/cloud-dialogflow/1.9.0/V2.Fulfillment.GenericWebService)\n- [1.8.0](/php/docs/reference/cloud-dialogflow/1.8.0/V2.Fulfillment.GenericWebService)\n- [1.7.2](/php/docs/reference/cloud-dialogflow/1.7.2/V2.Fulfillment.GenericWebService)\n- [1.6.0](/php/docs/reference/cloud-dialogflow/1.6.0/V2.Fulfillment.GenericWebService)\n- [1.5.0](/php/docs/reference/cloud-dialogflow/1.5.0/V2.Fulfillment.GenericWebService)\n- [1.4.0](/php/docs/reference/cloud-dialogflow/1.4.0/V2.Fulfillment.GenericWebService)\n- [1.3.2](/php/docs/reference/cloud-dialogflow/1.3.2/V2.Fulfillment.GenericWebService)\n- [1.2.0](/php/docs/reference/cloud-dialogflow/1.2.0/V2.Fulfillment.GenericWebService)\n- [1.1.1](/php/docs/reference/cloud-dialogflow/1.1.1/V2.Fulfillment.GenericWebService)\n- [1.0.1](/php/docs/reference/cloud-dialogflow/1.0.1/V2.Fulfillment.GenericWebService) \nReference documentation and code samples for the Google Cloud Dialogflow V2 Client class GenericWebService.\n\nRepresents configuration for a generic web service.\n\nDialogflow supports two mechanisms for authentications:\n\n- Basic authentication with username and password.\n- Authentication with additional authentication headers. More information could be found at: \u003chttps://cloud.google.com/dialogflow/docs/fulfillment-configure\u003e.\n\nGenerated from protobuf message `google.cloud.dialogflow.v2.Fulfillment.GenericWebService`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Dialogflow \\\\ V2 \\\\ Fulfillment\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getUri\n\nRequired. The fulfillment URI for receiving POST requests.\n\nIt must use https protocol.\n\n### setUri\n\nRequired. The fulfillment URI for receiving POST requests.\n\nIt must use https protocol.\n\n### getUsername\n\nOptional. The user name for HTTP Basic authentication.\n\n### setUsername\n\nOptional. The user name for HTTP Basic authentication.\n\n### getPassword\n\nOptional. The password for HTTP Basic authentication.\n\n### setPassword\n\nOptional. The password for HTTP Basic authentication.\n\n### getRequestHeaders\n\nOptional. The HTTP request headers to send together with fulfillment\nrequests.\n\n### setRequestHeaders\n\nOptional. The HTTP request headers to send together with fulfillment\nrequests.\n\n### getIsCloudFunction\n\nOptional. Indicates if generic web service is created through Cloud\nFunctions integration. Defaults to false.\n\nis_cloud_function is deprecated. Cloud functions can be configured by\nits uri as a regular web service now.\n\n### setIsCloudFunction\n\nOptional. Indicates if generic web service is created through Cloud\nFunctions integration. Defaults to false.\n\nis_cloud_function is deprecated. Cloud functions can be configured by\nits uri as a regular web service now."]]