# Dialogflow CX V3 API - Class Google::Cloud::Dialogflow::CX::V3::WebhookRequest (v1.12.1)

1.12.1 (latest) 1.12.0 1.11.0 1.10.1 1.9.0 1.8.0 1.7.0 1.6.1 1.5.0 1.4.0 1.3.0 1.2.0 1.1.1 1.0.0 0.26.0 0.25.0 0.24.2 0.23.0 0.22.0 0.21.0 0.20.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.1 0.14.0 0.13.0 0.12.0 0.11.0 0.10.2 0.9.0 0.8.1 0.7.1 0.6.0 0.5.0 0.4.0 Reference documentation and code samples for the Dialogflow CX V3 API class Google::Cloud::Dialogflow::CX::V3::WebhookRequest.

The request message for a webhook call. The request is sent as a JSON object
and the field names will be presented in camel cases.


<br />

You may see undocumented fields in an actual request. These fields are used
internally by Dialogflow and should be ignored.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #detect_intent_response_id

    def detect_intent_response_id() -> ::String

**Returns**

- (::String) --- Always present. The unique identifier of the [DetectIntentResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-DetectIntentResponse "Google::Cloud::Dialogflow::CX::V3::DetectIntentResponse (class)") that will be returned to the API caller.

### #detect_intent_response_id=

    def detect_intent_response_id=(value) -> ::String

**Parameter**

- **value** (::String) --- Always present. The unique identifier of the [DetectIntentResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-DetectIntentResponse "Google::Cloud::Dialogflow::CX::V3::DetectIntentResponse (class)") that will be returned to the API caller.
**Returns**

- (::String) --- Always present. The unique identifier of the [DetectIntentResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-DetectIntentResponse "Google::Cloud::Dialogflow::CX::V3::DetectIntentResponse (class)") that will be returned to the API caller.

### #dtmf_digits

    def dtmf_digits() -> ::String

**Returns**

- (::String) --- If [DTMF](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-DtmfInput "Google::Cloud::Dialogflow::CX::V3::DtmfInput (class)") was provided as input, this field will contain the DTMF digits.


  Note: The following fields are mutually exclusive: `dtmf_digits`, `text`, `trigger_intent`, `transcript`, `trigger_event`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #dtmf_digits=

    def dtmf_digits=(value) -> ::String

**Parameter**

- **value** (::String) --- If [DTMF](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-DtmfInput "Google::Cloud::Dialogflow::CX::V3::DtmfInput (class)") was provided as input, this field will contain the DTMF digits.


  Note: The following fields are mutually exclusive: `dtmf_digits`, `text`, `trigger_intent`, `transcript`, `trigger_event`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- (::String) --- If [DTMF](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-DtmfInput "Google::Cloud::Dialogflow::CX::V3::DtmfInput (class)") was provided as input, this field will contain the DTMF digits.


  Note: The following fields are mutually exclusive: `dtmf_digits`, `text`, `trigger_intent`, `transcript`, `trigger_event`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #fulfillment_info

    def fulfillment_info() -> ::Google::Cloud::Dialogflow::CX::V3::WebhookRequest::FulfillmentInfo

**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::WebhookRequest::FulfillmentInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-WebhookRequest-FulfillmentInfo)) --- Always present. Information about the fulfillment that triggered this webhook call.

### #fulfillment_info=

    def fulfillment_info=(value) -> ::Google::Cloud::Dialogflow::CX::V3::WebhookRequest::FulfillmentInfo

**Parameter**

- **value** ([::Google::Cloud::Dialogflow::CX::V3::WebhookRequest::FulfillmentInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-WebhookRequest-FulfillmentInfo)) --- Always present. Information about the fulfillment that triggered this webhook call.
**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::WebhookRequest::FulfillmentInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-WebhookRequest-FulfillmentInfo)) --- Always present. Information about the fulfillment that triggered this webhook call.

### #intent_info

    def intent_info() -> ::Google::Cloud::Dialogflow::CX::V3::WebhookRequest::IntentInfo

**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::WebhookRequest::IntentInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-WebhookRequest-IntentInfo)) --- Information about the last matched intent.

### #intent_info=

    def intent_info=(value) -> ::Google::Cloud::Dialogflow::CX::V3::WebhookRequest::IntentInfo

**Parameter**

- **value** ([::Google::Cloud::Dialogflow::CX::V3::WebhookRequest::IntentInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-WebhookRequest-IntentInfo)) --- Information about the last matched intent.
**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::WebhookRequest::IntentInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-WebhookRequest-IntentInfo)) --- Information about the last matched intent.

### #language_code

    def language_code() -> ::String

**Returns**

- (::String) --- The language code specified in the \[original request\]\[QueryInput.language_code\].

### #language_code=

    def language_code=(value) -> ::String

**Parameter**

- **value** (::String) --- The language code specified in the \[original request\]\[QueryInput.language_code\].
**Returns**

- (::String) --- The language code specified in the \[original request\]\[QueryInput.language_code\].

### #language_info

    def language_info() -> ::Google::Cloud::Dialogflow::CX::V3::LanguageInfo

**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::LanguageInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-LanguageInfo)) --- Information about the language of the request.

### #language_info=

    def language_info=(value) -> ::Google::Cloud::Dialogflow::CX::V3::LanguageInfo

**Parameter**

- **value** ([::Google::Cloud::Dialogflow::CX::V3::LanguageInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-LanguageInfo)) --- Information about the language of the request.
**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::LanguageInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-LanguageInfo)) --- Information about the language of the request.

### #messages

    def messages() -> ::Array<::Google::Cloud::Dialogflow::CX::V3::ResponseMessage>

**Returns**

- (::Array\<[::Google::Cloud::Dialogflow::CX::V3::ResponseMessage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-ResponseMessage)\>) --- The list of rich message responses to present to the user. Webhook can choose to append or replace this list in [WebhookResponse.fulfillment_response](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-WebhookResponse#Google__Cloud__Dialogflow__CX__V3__WebhookResponse_fulfillment_response_instance_ "Google::Cloud::Dialogflow::CX::V3::WebhookResponse#fulfillment_response (method)");

### #messages=

    def messages=(value) -> ::Array<::Google::Cloud::Dialogflow::CX::V3::ResponseMessage>

**Parameter**

- **value** (::Array\<[::Google::Cloud::Dialogflow::CX::V3::ResponseMessage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-ResponseMessage)\>) --- The list of rich message responses to present to the user. Webhook can choose to append or replace this list in [WebhookResponse.fulfillment_response](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-WebhookResponse#Google__Cloud__Dialogflow__CX__V3__WebhookResponse_fulfillment_response_instance_ "Google::Cloud::Dialogflow::CX::V3::WebhookResponse#fulfillment_response (method)");
**Returns**

- (::Array\<[::Google::Cloud::Dialogflow::CX::V3::ResponseMessage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-ResponseMessage)\>) --- The list of rich message responses to present to the user. Webhook can choose to append or replace this list in [WebhookResponse.fulfillment_response](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-WebhookResponse#Google__Cloud__Dialogflow__CX__V3__WebhookResponse_fulfillment_response_instance_ "Google::Cloud::Dialogflow::CX::V3::WebhookResponse#fulfillment_response (method)");

### #page_info

    def page_info() -> ::Google::Cloud::Dialogflow::CX::V3::PageInfo

**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::PageInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-PageInfo)) --- Information about page status.

### #page_info=

    def page_info=(value) -> ::Google::Cloud::Dialogflow::CX::V3::PageInfo

**Parameter**

- **value** ([::Google::Cloud::Dialogflow::CX::V3::PageInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-PageInfo)) --- Information about page status.
**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::PageInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-PageInfo)) --- Information about page status.

### #payload

    def payload() -> ::Google::Protobuf::Struct

**Returns**

- ([::Google::Protobuf::Struct](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Protobuf-Struct)) --- Custom data set in [QueryParameters.payload](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-QueryParameters#Google__Cloud__Dialogflow__CX__V3__QueryParameters_payload_instance_ "Google::Cloud::Dialogflow::CX::V3::QueryParameters#payload (method)").

### #payload=

    def payload=(value) -> ::Google::Protobuf::Struct

**Parameter**

- **value** ([::Google::Protobuf::Struct](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Protobuf-Struct)) --- Custom data set in [QueryParameters.payload](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-QueryParameters#Google__Cloud__Dialogflow__CX__V3__QueryParameters_payload_instance_ "Google::Cloud::Dialogflow::CX::V3::QueryParameters#payload (method)").
**Returns**

- ([::Google::Protobuf::Struct](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Protobuf-Struct)) --- Custom data set in [QueryParameters.payload](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-QueryParameters#Google__Cloud__Dialogflow__CX__V3__QueryParameters_payload_instance_ "Google::Cloud::Dialogflow::CX::V3::QueryParameters#payload (method)").

### #sentiment_analysis_result

    def sentiment_analysis_result() -> ::Google::Cloud::Dialogflow::CX::V3::WebhookRequest::SentimentAnalysisResult

**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::WebhookRequest::SentimentAnalysisResult](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-WebhookRequest-SentimentAnalysisResult)) --- The sentiment analysis result of the current user request. The field is filled when sentiment analysis is configured to be enabled for the request.

### #sentiment_analysis_result=

    def sentiment_analysis_result=(value) -> ::Google::Cloud::Dialogflow::CX::V3::WebhookRequest::SentimentAnalysisResult

**Parameter**

- **value** ([::Google::Cloud::Dialogflow::CX::V3::WebhookRequest::SentimentAnalysisResult](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-WebhookRequest-SentimentAnalysisResult)) --- The sentiment analysis result of the current user request. The field is filled when sentiment analysis is configured to be enabled for the request.
**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::WebhookRequest::SentimentAnalysisResult](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-WebhookRequest-SentimentAnalysisResult)) --- The sentiment analysis result of the current user request. The field is filled when sentiment analysis is configured to be enabled for the request.

### #session_info

    def session_info() -> ::Google::Cloud::Dialogflow::CX::V3::SessionInfo

**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::SessionInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-SessionInfo)) --- Information about session status.

### #session_info=

    def session_info=(value) -> ::Google::Cloud::Dialogflow::CX::V3::SessionInfo

**Parameter**

- **value** ([::Google::Cloud::Dialogflow::CX::V3::SessionInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-SessionInfo)) --- Information about session status.
**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::SessionInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-SessionInfo)) --- Information about session status.

### #text

    def text() -> ::String

**Returns**

- (::String) --- If [natural language text](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-TextInput "Google::Cloud::Dialogflow::CX::V3::TextInput (class)") was provided as input, this field will contain a copy of the text.


  Note: The following fields are mutually exclusive: `text`, `trigger_intent`, `transcript`, `trigger_event`, `dtmf_digits`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #text=

    def text=(value) -> ::String

**Parameter**

- **value** (::String) --- If [natural language text](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-TextInput "Google::Cloud::Dialogflow::CX::V3::TextInput (class)") was provided as input, this field will contain a copy of the text.


  Note: The following fields are mutually exclusive: `text`, `trigger_intent`, `transcript`, `trigger_event`, `dtmf_digits`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- (::String) --- If [natural language text](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-TextInput "Google::Cloud::Dialogflow::CX::V3::TextInput (class)") was provided as input, this field will contain a copy of the text.


  Note: The following fields are mutually exclusive: `text`, `trigger_intent`, `transcript`, `trigger_event`, `dtmf_digits`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #transcript

    def transcript() -> ::String

**Returns**

- (::String) --- If \[natural language speech audio\]\[google.cloud.dialogflow.cx.v3.AudioInput\] was provided as input, this field will contain the transcript for the audio.

  Note: The following fields are mutually exclusive: `transcript`, `text`, `trigger_intent`, `trigger_event`, `dtmf_digits`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #transcript=

    def transcript=(value) -> ::String

**Parameter**

- **value** (::String) --- If \[natural language speech audio\]\[google.cloud.dialogflow.cx.v3.AudioInput\] was provided as input, this field will contain the transcript for the audio.


  Note: The following fields are mutually exclusive: `transcript`, `text`, `trigger_intent`, `trigger_event`, `dtmf_digits`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- (::String) --- If \[natural language speech audio\]\[google.cloud.dialogflow.cx.v3.AudioInput\] was provided as input, this field will contain the transcript for the audio.

  Note: The following fields are mutually exclusive: `transcript`, `text`, `trigger_intent`, `trigger_event`, `dtmf_digits`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #trigger_event

    def trigger_event() -> ::String

**Returns**

- (::String) --- If an [event](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-EventInput "Google::Cloud::Dialogflow::CX::V3::EventInput (class)") was provided as input, this field will contain the name of the event.


  Note: The following fields are mutually exclusive: `trigger_event`, `text`, `trigger_intent`, `transcript`, `dtmf_digits`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #trigger_event=

    def trigger_event=(value) -> ::String

**Parameter**

- **value** (::String) --- If an [event](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-EventInput "Google::Cloud::Dialogflow::CX::V3::EventInput (class)") was provided as input, this field will contain the name of the event.


  Note: The following fields are mutually exclusive: `trigger_event`, `text`, `trigger_intent`, `transcript`, `dtmf_digits`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- (::String) --- If an [event](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-EventInput "Google::Cloud::Dialogflow::CX::V3::EventInput (class)") was provided as input, this field will contain the name of the event.


  Note: The following fields are mutually exclusive: `trigger_event`, `text`, `trigger_intent`, `transcript`, `dtmf_digits`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #trigger_intent

    def trigger_intent() -> ::String

**Returns**

- (::String) --- If an [intent](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-IntentInput "Google::Cloud::Dialogflow::CX::V3::IntentInput (class)") was provided as input, this field will contain a copy of the intent identifier. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.


  Note: The following fields are mutually exclusive: `trigger_intent`, `text`, `transcript`, `trigger_event`, `dtmf_digits`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #trigger_intent=

    def trigger_intent=(value) -> ::String

**Parameter**

- **value** (::String) --- If an [intent](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-IntentInput "Google::Cloud::Dialogflow::CX::V3::IntentInput (class)") was provided as input, this field will contain a copy of the intent identifier. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.


  Note: The following fields are mutually exclusive: `trigger_intent`, `text`, `transcript`, `trigger_event`, `dtmf_digits`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- (::String) --- If an [intent](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-IntentInput "Google::Cloud::Dialogflow::CX::V3::IntentInput (class)") was provided as input, this field will contain a copy of the intent identifier. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.


  Note: The following fields are mutually exclusive: `trigger_intent`, `text`, `transcript`, `trigger_event`, `dtmf_digits`. If a field in that set is populated, all other fields in the set will automatically be cleared.