Optional. This field is set to the value of the QueryParameters.payload field passed in the request. Some integrations that query a Dialogflow agent may provide additional information in the payload. In particular, for the Dialogflow Phone Gateway integration, this field has the form:
{ "telephony": { "caller_id": "+18558363987" } }
Note: The caller ID field (caller_id) will be redacted for Trial Edition agents and populated with the caller ID in E.164 format for Essentials Edition agents.
getSource
The source of this request, e.g., google, facebook, slack. It is set
by Dialogflow-owned servers.
Returns
Type
Description
string
setSource
The source of this request, e.g., google, facebook, slack. It is set
by Dialogflow-owned servers.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getVersion
Optional. The version of the protocol used for this request.
This field is AoG-specific.
Returns
Type
Description
string
setVersion
Optional. The version of the protocol used for this request.
This field is AoG-specific.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getPayload
Optional. This field is set to the value of the QueryParameters.payload
field passed in the request. Some integrations that query a Dialogflow
agent may provide additional information in the payload.
In particular, for the Dialogflow Phone Gateway integration, this field has
the form:
{
"telephony": {
"caller_id": "+18558363987"
}
}
Note: The caller ID field (caller_id) will be redacted for Trial
Edition agents and populated with the caller ID in E.164
format for Essentials Edition agents.
Optional. This field is set to the value of the QueryParameters.payload
field passed in the request. Some integrations that query a Dialogflow
agent may provide additional information in the payload.
In particular, for the Dialogflow Phone Gateway integration, this field has
the form:
{
"telephony": {
"caller_id": "+18558363987"
}
}
Note: The caller ID field (caller_id) will be redacted for Trial
Edition agents and populated with the caller ID in E.164
format for Essentials Edition agents.
[[["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 OriginalDetectIntentRequest (2.1.2)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.2 (latest)](/php/docs/reference/cloud-dialogflow/latest/V2.OriginalDetectIntentRequest)\n- [2.1.1](/php/docs/reference/cloud-dialogflow/2.1.1/V2.OriginalDetectIntentRequest)\n- [2.0.1](/php/docs/reference/cloud-dialogflow/2.0.1/V2.OriginalDetectIntentRequest)\n- [1.17.2](/php/docs/reference/cloud-dialogflow/1.17.2/V2.OriginalDetectIntentRequest)\n- [1.16.0](/php/docs/reference/cloud-dialogflow/1.16.0/V2.OriginalDetectIntentRequest)\n- [1.15.1](/php/docs/reference/cloud-dialogflow/1.15.1/V2.OriginalDetectIntentRequest)\n- [1.14.0](/php/docs/reference/cloud-dialogflow/1.14.0/V2.OriginalDetectIntentRequest)\n- [1.13.0](/php/docs/reference/cloud-dialogflow/1.13.0/V2.OriginalDetectIntentRequest)\n- [1.12.3](/php/docs/reference/cloud-dialogflow/1.12.3/V2.OriginalDetectIntentRequest)\n- [1.11.0](/php/docs/reference/cloud-dialogflow/1.11.0/V2.OriginalDetectIntentRequest)\n- [1.10.2](/php/docs/reference/cloud-dialogflow/1.10.2/V2.OriginalDetectIntentRequest)\n- [1.9.0](/php/docs/reference/cloud-dialogflow/1.9.0/V2.OriginalDetectIntentRequest)\n- [1.8.0](/php/docs/reference/cloud-dialogflow/1.8.0/V2.OriginalDetectIntentRequest)\n- [1.7.2](/php/docs/reference/cloud-dialogflow/1.7.2/V2.OriginalDetectIntentRequest)\n- [1.6.0](/php/docs/reference/cloud-dialogflow/1.6.0/V2.OriginalDetectIntentRequest)\n- [1.5.0](/php/docs/reference/cloud-dialogflow/1.5.0/V2.OriginalDetectIntentRequest)\n- [1.4.0](/php/docs/reference/cloud-dialogflow/1.4.0/V2.OriginalDetectIntentRequest)\n- [1.3.2](/php/docs/reference/cloud-dialogflow/1.3.2/V2.OriginalDetectIntentRequest)\n- [1.2.0](/php/docs/reference/cloud-dialogflow/1.2.0/V2.OriginalDetectIntentRequest)\n- [1.1.1](/php/docs/reference/cloud-dialogflow/1.1.1/V2.OriginalDetectIntentRequest)\n- [1.0.1](/php/docs/reference/cloud-dialogflow/1.0.1/V2.OriginalDetectIntentRequest) \nReference documentation and code samples for the Google Cloud Dialogflow V2 Client class OriginalDetectIntentRequest.\n\nRepresents the contents of the original request that was passed to\nthe `[Streaming]DetectIntent` call.\n\nGenerated from protobuf message `google.cloud.dialogflow.v2.OriginalDetectIntentRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Dialogflow \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getSource\n\nThe source of this request, e.g., `google`, `facebook`, `slack`. It is set\nby Dialogflow-owned servers.\n\n### setSource\n\nThe source of this request, e.g., `google`, `facebook`, `slack`. It is set\nby Dialogflow-owned servers.\n\n### getVersion\n\nOptional. The version of the protocol used for this request.\n\nThis field is AoG-specific.\n\n### setVersion\n\nOptional. The version of the protocol used for this request.\n\nThis field is AoG-specific.\n\n### getPayload\n\nOptional. This field is set to the value of the `QueryParameters.payload`\nfield passed in the request. Some integrations that query a Dialogflow\nagent may provide additional information in the payload.\n\nIn particular, for the Dialogflow Phone Gateway integration, this field has\nthe form: \n\n```\n{\n \"telephony\": {\n \"caller_id\": \"+18558363987\"\n }\n}\n```\n\nNote: The caller ID field (`caller_id`) will be redacted for Trial\nEdition agents and populated with the caller ID in [E.164\nformat](https://en.wikipedia.org/wiki/E.164) for Essentials Edition agents.\n\n### hasPayload\n\n### clearPayload\n\n### setPayload\n\nOptional. This field is set to the value of the `QueryParameters.payload`\nfield passed in the request. Some integrations that query a Dialogflow\nagent may provide additional information in the payload.\n\nIn particular, for the Dialogflow Phone Gateway integration, this field has\nthe form: \n\n```\n{\n \"telephony\": {\n \"caller_id\": \"+18558363987\"\n }\n}\n```\n\nNote: The caller ID field (`caller_id`) will be redacted for Trial\nEdition agents and populated with the caller ID in [E.164\nformat](https://en.wikipedia.org/wiki/E.164) for Essentials Edition agents."]]