Reference documentation and code samples for the Dialogflow V2 API class Google::Cloud::Dialogflow::V2::OriginalDetectIntentRequest.
Represents the contents of the original request that was passed to
the [Streaming]DetectIntent call.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#payload
defpayload()->::Google::Protobuf::Struct
Returns
(::Google::Protobuf::Struct) — 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.
#payload=
defpayload=(value)->::Google::Protobuf::Struct
Parameter
value (::Google::Protobuf::Struct) — 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.
Returns
(::Google::Protobuf::Struct) — 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.
#source
defsource()->::String
Returns
(::String) — The source of this request, e.g., google, facebook, slack. It is set
by Dialogflow-owned servers.
#source=
defsource=(value)->::String
Parameter
value (::String) — The source of this request, e.g., google, facebook, slack. It is set
by Dialogflow-owned servers.
Returns
(::String) — The source of this request, e.g., google, facebook, slack. It is set
by Dialogflow-owned servers.
#version
defversion()->::String
Returns
(::String) — Optional. The version of the protocol used for this request.
This field is AoG-specific.
#version=
defversion=(value)->::String
Parameter
value (::String) — Optional. The version of the protocol used for this request.
This field is AoG-specific.
Returns
(::String) — Optional. The version of the protocol used for this request.
This field is AoG-specific.
[[["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-09 UTC."],[],[],null,["# Dialogflow V2 API - Class Google::Cloud::Dialogflow::V2::OriginalDetectIntentRequest (v1.10.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.10.1 (latest)](/ruby/docs/reference/google-cloud-dialogflow-v2/latest/Google-Cloud-Dialogflow-V2-OriginalDetectIntentRequest)\n- [1.10.0](/ruby/docs/reference/google-cloud-dialogflow-v2/1.10.0/Google-Cloud-Dialogflow-V2-OriginalDetectIntentRequest)\n- [1.9.1](/ruby/docs/reference/google-cloud-dialogflow-v2/1.9.1/Google-Cloud-Dialogflow-V2-OriginalDetectIntentRequest)\n- [1.8.0](/ruby/docs/reference/google-cloud-dialogflow-v2/1.8.0/Google-Cloud-Dialogflow-V2-OriginalDetectIntentRequest)\n- [1.7.0](/ruby/docs/reference/google-cloud-dialogflow-v2/1.7.0/Google-Cloud-Dialogflow-V2-OriginalDetectIntentRequest)\n- [1.6.0](/ruby/docs/reference/google-cloud-dialogflow-v2/1.6.0/Google-Cloud-Dialogflow-V2-OriginalDetectIntentRequest)\n- [1.5.0](/ruby/docs/reference/google-cloud-dialogflow-v2/1.5.0/Google-Cloud-Dialogflow-V2-OriginalDetectIntentRequest)\n- [1.4.1](/ruby/docs/reference/google-cloud-dialogflow-v2/1.4.1/Google-Cloud-Dialogflow-V2-OriginalDetectIntentRequest)\n- [1.3.0](/ruby/docs/reference/google-cloud-dialogflow-v2/1.3.0/Google-Cloud-Dialogflow-V2-OriginalDetectIntentRequest)\n- [1.2.0](/ruby/docs/reference/google-cloud-dialogflow-v2/1.2.0/Google-Cloud-Dialogflow-V2-OriginalDetectIntentRequest)\n- [1.1.1](/ruby/docs/reference/google-cloud-dialogflow-v2/1.1.1/Google-Cloud-Dialogflow-V2-OriginalDetectIntentRequest)\n- [1.0.0](/ruby/docs/reference/google-cloud-dialogflow-v2/1.0.0/Google-Cloud-Dialogflow-V2-OriginalDetectIntentRequest)\n- [0.34.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.34.0/Google-Cloud-Dialogflow-V2-OriginalDetectIntentRequest)\n- [0.33.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.33.0/Google-Cloud-Dialogflow-V2-OriginalDetectIntentRequest)\n- [0.32.2](/ruby/docs/reference/google-cloud-dialogflow-v2/0.32.2/Google-Cloud-Dialogflow-V2-OriginalDetectIntentRequest)\n- [0.31.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.31.0/Google-Cloud-Dialogflow-V2-OriginalDetectIntentRequest)\n- [0.30.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.30.0/Google-Cloud-Dialogflow-V2-OriginalDetectIntentRequest)\n- [0.29.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.29.0/Google-Cloud-Dialogflow-V2-OriginalDetectIntentRequest)\n- [0.28.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.28.0/Google-Cloud-Dialogflow-V2-OriginalDetectIntentRequest)\n- [0.27.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.27.0/Google-Cloud-Dialogflow-V2-OriginalDetectIntentRequest)\n- [0.26.2](/ruby/docs/reference/google-cloud-dialogflow-v2/0.26.2/Google-Cloud-Dialogflow-V2-OriginalDetectIntentRequest)\n- [0.25.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.25.0/Google-Cloud-Dialogflow-V2-OriginalDetectIntentRequest)\n- [0.24.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.24.0/Google-Cloud-Dialogflow-V2-OriginalDetectIntentRequest)\n- [0.23.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.23.0/Google-Cloud-Dialogflow-V2-OriginalDetectIntentRequest)\n- [0.22.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.22.0/Google-Cloud-Dialogflow-V2-OriginalDetectIntentRequest)\n- [0.21.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.21.0/Google-Cloud-Dialogflow-V2-OriginalDetectIntentRequest)\n- [0.20.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.20.0/Google-Cloud-Dialogflow-V2-OriginalDetectIntentRequest)\n- [0.19.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.19.0/Google-Cloud-Dialogflow-V2-OriginalDetectIntentRequest)\n- [0.18.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.18.0/Google-Cloud-Dialogflow-V2-OriginalDetectIntentRequest)\n- [0.17.1](/ruby/docs/reference/google-cloud-dialogflow-v2/0.17.1/Google-Cloud-Dialogflow-V2-OriginalDetectIntentRequest)\n- [0.16.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.16.0/Google-Cloud-Dialogflow-V2-OriginalDetectIntentRequest)\n- [0.15.2](/ruby/docs/reference/google-cloud-dialogflow-v2/0.15.2/Google-Cloud-Dialogflow-V2-OriginalDetectIntentRequest)\n- [0.14.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.14.0/Google-Cloud-Dialogflow-V2-OriginalDetectIntentRequest)\n- [0.13.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.13.0/Google-Cloud-Dialogflow-V2-OriginalDetectIntentRequest)\n- [0.12.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.12.0/Google-Cloud-Dialogflow-V2-OriginalDetectIntentRequest) \nReference documentation and code samples for the Dialogflow V2 API class Google::Cloud::Dialogflow::V2::OriginalDetectIntentRequest.\n\nRepresents the contents of the original request that was passed to\nthe `[Streaming]DetectIntent` call. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #payload\n\n def payload() -\u003e ::Google::Protobuf::Struct\n\n**Returns**\n\n- ([::Google::Protobuf::Struct](./Google-Protobuf-Struct)) --- 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.\n\n\n In particular, for the Dialogflow Phone Gateway integration, this field has\n the form: \n\n ```\n {\n \"telephony\": {\n \"caller_id\": \"+18558363987\"\n }\n }\n ```\n\n Note: The caller ID field (`caller_id`) will be redacted for Trial\n Edition agents and populated with the caller ID in [E.164\n format](https://en.wikipedia.org/wiki/E.164) for Essentials Edition agents.\n\n### #payload=\n\n def payload=(value) -\u003e ::Google::Protobuf::Struct\n\n**Parameter**\n\n- **value** ([::Google::Protobuf::Struct](./Google-Protobuf-Struct)) --- 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.\n\n\n In particular, for the Dialogflow Phone Gateway integration, this field has\n the form: \n\n ```\n {\n \"telephony\": {\n \"caller_id\": \"+18558363987\"\n }\n }\n ```\n\n Note: The caller ID field (`caller_id`) will be redacted for Trial\n Edition agents and populated with the caller ID in [E.164\nformat](https://en.wikipedia.org/wiki/E.164) for Essentials Edition agents. \n**Returns**\n\n- ([::Google::Protobuf::Struct](./Google-Protobuf-Struct)) --- 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.\n\n\n In particular, for the Dialogflow Phone Gateway integration, this field has\n the form: \n\n ```\n {\n \"telephony\": {\n \"caller_id\": \"+18558363987\"\n }\n }\n ```\n\n Note: The caller ID field (`caller_id`) will be redacted for Trial\n Edition agents and populated with the caller ID in [E.164\n format](https://en.wikipedia.org/wiki/E.164) for Essentials Edition agents.\n\n### #source\n\n def source() -\u003e ::String\n\n**Returns**\n\n- (::String) --- The source of this request, e.g., `google`, `facebook`, `slack`. It is set by Dialogflow-owned servers.\n\n### #source=\n\n def source=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- The source of this request, e.g., `google`, `facebook`, `slack`. It is set by Dialogflow-owned servers. \n**Returns**\n\n- (::String) --- The source of this request, e.g., `google`, `facebook`, `slack`. It is set by Dialogflow-owned servers.\n\n### #version\n\n def version() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Optional. The version of the protocol used for this request. This field is AoG-specific.\n\n### #version=\n\n def version=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Optional. The version of the protocol used for this request. This field is AoG-specific. \n**Returns**\n\n- (::String) --- Optional. The version of the protocol used for this request. This field is AoG-specific."]]