# Dialogflow CX V3 API - Class Google::Cloud::Dialogflow::CX::V3::QueryResult (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::QueryResult.

Represents the result of a conversational query.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #advanced_settings

    def advanced_settings() -> ::Google::Cloud::Dialogflow::CX::V3::AdvancedSettings

**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::AdvancedSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-AdvancedSettings)) --- Returns the current advanced settings including IVR settings. Even though the operations configured by these settings are performed by Dialogflow, the client may need to perform special logic at the moment. For example, if Dialogflow exports audio to Google Cloud Storage, then the client may need to wait for the resulting object to appear in the bucket before proceeding.

### #advanced_settings=

    def advanced_settings=(value) -> ::Google::Cloud::Dialogflow::CX::V3::AdvancedSettings

**Parameter**

- **value** ([::Google::Cloud::Dialogflow::CX::V3::AdvancedSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-AdvancedSettings)) --- Returns the current advanced settings including IVR settings. Even though the operations configured by these settings are performed by Dialogflow, the client may need to perform special logic at the moment. For example, if Dialogflow exports audio to Google Cloud Storage, then the client may need to wait for the resulting object to appear in the bucket before proceeding.
**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::AdvancedSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-AdvancedSettings)) --- Returns the current advanced settings including IVR settings. Even though the operations configured by these settings are performed by Dialogflow, the client may need to perform special logic at the moment. For example, if Dialogflow exports audio to Google Cloud Storage, then the client may need to wait for the resulting object to appear in the bucket before proceeding.

### #allow_answer_feedback

    def allow_answer_feedback() -> ::Boolean

**Returns**

- (::Boolean) --- Indicates whether the Thumbs up/Thumbs down rating controls are need to be shown for the response in the Dialogflow Messenger widget.

### #allow_answer_feedback=

    def allow_answer_feedback=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Indicates whether the Thumbs up/Thumbs down rating controls are need to be shown for the response in the Dialogflow Messenger widget.
**Returns**

- (::Boolean) --- Indicates whether the Thumbs up/Thumbs down rating controls are need to be shown for the response in the Dialogflow Messenger widget.

### #current_flow

    def current_flow() -> ::Google::Cloud::Dialogflow::CX::V3::Flow

**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::Flow](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Flow)) --- The current [Flow](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Flow "Google::Cloud::Dialogflow::CX::V3::Flow (class)"). Some, not all fields are filled in this message, including but not limited to `name` and `display_name`.

### #current_flow=

    def current_flow=(value) -> ::Google::Cloud::Dialogflow::CX::V3::Flow

**Parameter**

- **value** ([::Google::Cloud::Dialogflow::CX::V3::Flow](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Flow)) --- The current [Flow](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Flow "Google::Cloud::Dialogflow::CX::V3::Flow (class)"). Some, not all fields are filled in this message, including but not limited to `name` and `display_name`.
**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::Flow](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Flow)) --- The current [Flow](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Flow "Google::Cloud::Dialogflow::CX::V3::Flow (class)"). Some, not all fields are filled in this message, including but not limited to `name` and `display_name`.

### #current_page

    def current_page() -> ::Google::Cloud::Dialogflow::CX::V3::Page

**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::Page](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Page)) --- The current [Page](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Page "Google::Cloud::Dialogflow::CX::V3::Page (class)"). Some, not all fields are filled in this message, including but not limited to `name` and `display_name`.

### #current_page=

    def current_page=(value) -> ::Google::Cloud::Dialogflow::CX::V3::Page

**Parameter**

- **value** ([::Google::Cloud::Dialogflow::CX::V3::Page](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Page)) --- The current [Page](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Page "Google::Cloud::Dialogflow::CX::V3::Page (class)"). Some, not all fields are filled in this message, including but not limited to `name` and `display_name`.
**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::Page](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Page)) --- The current [Page](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Page "Google::Cloud::Dialogflow::CX::V3::Page (class)"). Some, not all fields are filled in this message, including but not limited to `name` and `display_name`.

### #data_store_connection_signals

    def data_store_connection_signals() -> ::Google::Cloud::Dialogflow::CX::V3::DataStoreConnectionSignals

**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::DataStoreConnectionSignals](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-DataStoreConnectionSignals)) --- Optional. Data store connection feature output signals. Filled only when data stores are involved in serving the query.

### #data_store_connection_signals=

    def data_store_connection_signals=(value) -> ::Google::Cloud::Dialogflow::CX::V3::DataStoreConnectionSignals

**Parameter**

- **value** ([::Google::Cloud::Dialogflow::CX::V3::DataStoreConnectionSignals](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-DataStoreConnectionSignals)) --- Optional. Data store connection feature output signals. Filled only when data stores are involved in serving the query.
**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::DataStoreConnectionSignals](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-DataStoreConnectionSignals)) --- Optional. Data store connection feature output signals. Filled only when data stores are involved in serving the query.

### #diagnostic_info

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

**Returns**

- ([::Google::Protobuf::Struct](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Protobuf-Struct)) ---

  The free-form diagnostic info. For example, this field could contain
  webhook call latency. The fields of this data can change without notice,
  so you should not write code that depends on its structure.

  One of the fields is called "Alternative Matched Intents", which may
  aid with debugging. The following describes these intent results:
  - The list is empty if no intent was matched to end-user input.
  - Only intents that are referenced in the currently active flow are included.
  - The matched intent is included.
  - Other intents that could have matched end-user input, but did not match because they are referenced by intent routes that are out of [scope](https://cloud.google.com/dialogflow/cx/docs/concept/handler#scope), are included.
  - Other intents referenced by intent routes in scope that matched end-user input, but had a lower confidence score.

### #diagnostic_info=

    def diagnostic_info=(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)) ---

  The free-form diagnostic info. For example, this field could contain
  webhook call latency. The fields of this data can change without notice,
  so you should not write code that depends on its structure.

  One of the fields is called "Alternative Matched Intents", which may
  aid with debugging. The following describes these intent results:
  - The list is empty if no intent was matched to end-user input.
  - Only intents that are referenced in the currently active flow are included.
  - The matched intent is included.
  - Other intents that could have matched end-user input, but did not match because they are referenced by intent routes that are out of [scope](https://cloud.google.com/dialogflow/cx/docs/concept/handler#scope), are included.
  - Other intents referenced by intent routes in scope that matched end-user input, but had a lower confidence score.
**Returns**

- ([::Google::Protobuf::Struct](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Protobuf-Struct)) ---

  The free-form diagnostic info. For example, this field could contain
  webhook call latency. The fields of this data can change without notice,
  so you should not write code that depends on its structure.

  One of the fields is called "Alternative Matched Intents", which may
  aid with debugging. The following describes these intent results:
  - The list is empty if no intent was matched to end-user input.
  - Only intents that are referenced in the currently active flow are included.
  - The matched intent is included.
  - Other intents that could have matched end-user input, but did not match because they are referenced by intent routes that are out of [scope](https://cloud.google.com/dialogflow/cx/docs/concept/handler#scope), are included.
  - Other intents referenced by intent routes in scope that matched end-user input, but had a lower confidence score.

### #dtmf

    def dtmf() -> ::Google::Cloud::Dialogflow::CX::V3::DtmfInput

**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::DtmfInput](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-DtmfInput)) --- If a [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 a copy of the [DtmfInput](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)").


  Note: The following fields are mutually exclusive: `dtmf`, `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=

    def dtmf=(value) -> ::Google::Cloud::Dialogflow::CX::V3::DtmfInput

**Parameter**

- **value** ([::Google::Cloud::Dialogflow::CX::V3::DtmfInput](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-DtmfInput)) --- If a [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 a copy of the [DtmfInput](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)").


  Note: The following fields are mutually exclusive: `dtmf`, `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**

- ([::Google::Cloud::Dialogflow::CX::V3::DtmfInput](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-DtmfInput)) --- If a [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 a copy of the [DtmfInput](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)").


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

### #intent

    def intent() -> ::Google::Cloud::Dialogflow::CX::V3::Intent

**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::Intent](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Intent)) --- The [Intent](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Intent "Google::Cloud::Dialogflow::CX::V3::Intent (class)") that matched the conversational query. Some, not all fields are filled in this message, including but not limited to: `name` and `display_name`. This field is deprecated, please use [QueryResult.match](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-QueryResult#Google__Cloud__Dialogflow__CX__V3__QueryResult_match_instance_ "Google::Cloud::Dialogflow::CX::V3::QueryResult#match (method)") instead.

### #intent=

    def intent=(value) -> ::Google::Cloud::Dialogflow::CX::V3::Intent

**Parameter**

- **value** ([::Google::Cloud::Dialogflow::CX::V3::Intent](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Intent)) --- The [Intent](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Intent "Google::Cloud::Dialogflow::CX::V3::Intent (class)") that matched the conversational query. Some, not all fields are filled in this message, including but not limited to: `name` and `display_name`. This field is deprecated, please use [QueryResult.match](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-QueryResult#Google__Cloud__Dialogflow__CX__V3__QueryResult_match_instance_ "Google::Cloud::Dialogflow::CX::V3::QueryResult#match (method)") instead.
**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::Intent](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Intent)) --- The [Intent](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Intent "Google::Cloud::Dialogflow::CX::V3::Intent (class)") that matched the conversational query. Some, not all fields are filled in this message, including but not limited to: `name` and `display_name`. This field is deprecated, please use [QueryResult.match](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-QueryResult#Google__Cloud__Dialogflow__CX__V3__QueryResult_match_instance_ "Google::Cloud::Dialogflow::CX::V3::QueryResult#match (method)") instead.

### #intent_detection_confidence

    def intent_detection_confidence() -> ::Float

**Returns**

- (::Float) --- The intent detection confidence. Values range from 0.0 (completely uncertain) to 1.0 (completely certain). This value is for informational purpose only and is only used to help match the best intent within the classification threshold. This value may change for the same end-user expression at any time due to a model retraining or change in implementation. This field is deprecated, please use [QueryResult.match](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-QueryResult#Google__Cloud__Dialogflow__CX__V3__QueryResult_match_instance_ "Google::Cloud::Dialogflow::CX::V3::QueryResult#match (method)") instead.

### #intent_detection_confidence=

    def intent_detection_confidence=(value) -> ::Float

**Parameter**

- **value** (::Float) --- The intent detection confidence. Values range from 0.0 (completely uncertain) to 1.0 (completely certain). This value is for informational purpose only and is only used to help match the best intent within the classification threshold. This value may change for the same end-user expression at any time due to a model retraining or change in implementation. This field is deprecated, please use [QueryResult.match](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-QueryResult#Google__Cloud__Dialogflow__CX__V3__QueryResult_match_instance_ "Google::Cloud::Dialogflow::CX::V3::QueryResult#match (method)") instead.
**Returns**

- (::Float) --- The intent detection confidence. Values range from 0.0 (completely uncertain) to 1.0 (completely certain). This value is for informational purpose only and is only used to help match the best intent within the classification threshold. This value may change for the same end-user expression at any time due to a model retraining or change in implementation. This field is deprecated, please use [QueryResult.match](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-QueryResult#Google__Cloud__Dialogflow__CX__V3__QueryResult_match_instance_ "Google::Cloud::Dialogflow::CX::V3::QueryResult#match (method)") instead.

### #language_code

    def language_code() -> ::String

**Returns**

- (::String) --- The language that was triggered during intent detection. See [Language
  Support](https://cloud.google.com/dialogflow/cx/docs/reference/language) for a list of the currently supported language codes.

### #language_code=

    def language_code=(value) -> ::String

**Parameter**

- **value** (::String) --- The language that was triggered during intent detection. See [Language
  Support](https://cloud.google.com/dialogflow/cx/docs/reference/language) for a list of the currently supported language codes.
**Returns**

- (::String) --- The language that was triggered during intent detection. See [Language
  Support](https://cloud.google.com/dialogflow/cx/docs/reference/language) for a list of the currently supported language codes.

### #match

    def match() -> ::Google::Cloud::Dialogflow::CX::V3::Match

**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::Match](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Match)) --- Intent match result, could be an intent or an event.

### #match=

    def match=(value) -> ::Google::Cloud::Dialogflow::CX::V3::Match

**Parameter**

- **value** ([::Google::Cloud::Dialogflow::CX::V3::Match](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Match)) --- Intent match result, could be an intent or an event.
**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::Match](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Match)) --- Intent match result, could be an intent or an event.

### #parameters

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

**Returns**

- ([::Google::Protobuf::Struct](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Protobuf-Struct)) ---

  The collected \[session
  parameters\]\[google.cloud.dialogflow.cx.v3.SessionInfo.parameters\].

  Depending on your protocol or client library language, this is a
  map, associative array, symbol table, dictionary, or JSON object
  composed of a collection of (MapKey, MapValue) pairs:
  - MapKey type: string
  - MapKey value: parameter name
  - MapValue type: If parameter's entity type is a composite entity then use map, otherwise, depending on the parameter value type, it could be one of string, number, boolean, null, list or map.
  - MapValue value: If parameter's entity type is a composite entity then use map from composite entity property names to property values, otherwise, use parameter value.

### #parameters=

    def parameters=(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)) ---

  The collected \[session
  parameters\]\[google.cloud.dialogflow.cx.v3.SessionInfo.parameters\].

  Depending on your protocol or client library language, this is a
  map, associative array, symbol table, dictionary, or JSON object
  composed of a collection of (MapKey, MapValue) pairs:
  - MapKey type: string
  - MapKey value: parameter name
  - MapValue type: If parameter's entity type is a composite entity then use map, otherwise, depending on the parameter value type, it could be one of string, number, boolean, null, list or map.
  - MapValue value: If parameter's entity type is a composite entity then use map from composite entity property names to property values, otherwise, use parameter value.
**Returns**

- ([::Google::Protobuf::Struct](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Protobuf-Struct)) ---

  The collected \[session
  parameters\]\[google.cloud.dialogflow.cx.v3.SessionInfo.parameters\].

  Depending on your protocol or client library language, this is a
  map, associative array, symbol table, dictionary, or JSON object
  composed of a collection of (MapKey, MapValue) pairs:
  - MapKey type: string
  - MapKey value: parameter name
  - MapValue type: If parameter's entity type is a composite entity then use map, otherwise, depending on the parameter value type, it could be one of string, number, boolean, null, list or map.
  - MapValue value: If parameter's entity type is a composite entity then use map from composite entity property names to property values, otherwise, use parameter value.

### #response_messages

    def response_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 messages returned to the client. Responses vary from simple text messages to more sophisticated, structured payloads used to drive complex logic.

### #response_messages=

    def response_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 messages returned to the client. Responses vary from simple text messages to more sophisticated, structured payloads used to drive complex logic.
**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 messages returned to the client. Responses vary from simple text messages to more sophisticated, structured payloads used to drive complex logic.

### #sentiment_analysis_result

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

**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::SentimentAnalysisResult](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-SentimentAnalysisResult)) --- The sentiment analyss result, which depends on \[`analyze_query_text_sentiment`\] \[google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment\], specified in the request.

### #sentiment_analysis_result=

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

**Parameter**

- **value** ([::Google::Cloud::Dialogflow::CX::V3::SentimentAnalysisResult](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-SentimentAnalysisResult)) --- The sentiment analyss result, which depends on \[`analyze_query_text_sentiment`\] \[google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment\], specified in the request.
**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::SentimentAnalysisResult](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-SentimentAnalysisResult)) --- The sentiment analyss result, which depends on \[`analyze_query_text_sentiment`\] \[google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment\], specified in the request.

### #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`. 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`. 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`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #trace_blocks

    def trace_blocks() -> ::Array<::Google::Cloud::Dialogflow::CX::V3::TraceBlock>

**Returns**

- (::Array\<[::Google::Cloud::Dialogflow::CX::V3::TraceBlock](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-TraceBlock)\>) --- Optional. Contains the sequence of trace blocks from the current conversation turn. Trace blocks are ordered chronologically and contain detailed traces of runtime behavior such as tool calls, LLM calls, flow and playbook invocations, agent utterances and user utterances.

### #trace_blocks=

    def trace_blocks=(value) -> ::Array<::Google::Cloud::Dialogflow::CX::V3::TraceBlock>

**Parameter**

- **value** (::Array\<[::Google::Cloud::Dialogflow::CX::V3::TraceBlock](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-TraceBlock)\>) --- Optional. Contains the sequence of trace blocks from the current conversation turn. Trace blocks are ordered chronologically and contain detailed traces of runtime behavior such as tool calls, LLM calls, flow and playbook invocations, agent utterances and user utterances.
**Returns**

- (::Array\<[::Google::Cloud::Dialogflow::CX::V3::TraceBlock](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-TraceBlock)\>) --- Optional. Contains the sequence of trace blocks from the current conversation turn. Trace blocks are ordered chronologically and contain detailed traces of runtime behavior such as tool calls, LLM calls, flow and playbook invocations, agent utterances and user utterances.

### #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`. 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`. 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`. 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`. 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`. 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`. 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`. 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`. 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`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #webhook_payloads

    def webhook_payloads() -> ::Array<::Google::Protobuf::Struct>

**Returns**

- (::Array\<[::Google::Protobuf::Struct](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Protobuf-Struct)\>) --- The list of webhook payload in [WebhookResponse.payload](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_payload_instance_ "Google::Cloud::Dialogflow::CX::V3::WebhookResponse#payload (method)"), in the order of call sequence. If some webhook call fails or doesn't return any payload, an empty `Struct` would be used instead.

### #webhook_payloads=

    def webhook_payloads=(value) -> ::Array<::Google::Protobuf::Struct>

**Parameter**

- **value** (::Array\<[::Google::Protobuf::Struct](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Protobuf-Struct)\>) --- The list of webhook payload in [WebhookResponse.payload](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_payload_instance_ "Google::Cloud::Dialogflow::CX::V3::WebhookResponse#payload (method)"), in the order of call sequence. If some webhook call fails or doesn't return any payload, an empty `Struct` would be used instead.
**Returns**

- (::Array\<[::Google::Protobuf::Struct](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Protobuf-Struct)\>) --- The list of webhook payload in [WebhookResponse.payload](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_payload_instance_ "Google::Cloud::Dialogflow::CX::V3::WebhookResponse#payload (method)"), in the order of call sequence. If some webhook call fails or doesn't return any payload, an empty `Struct` would be used instead.

### #webhook_statuses

    def webhook_statuses() -> ::Array<::Google::Rpc::Status>

**Returns**

- (::Array\<[::Google::Rpc::Status](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Rpc-Status)\>) --- The list of webhook call status in the order of call sequence.

### #webhook_statuses=

    def webhook_statuses=(value) -> ::Array<::Google::Rpc::Status>

**Parameter**

- **value** (::Array\<[::Google::Rpc::Status](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Rpc-Status)\>) --- The list of webhook call status in the order of call sequence.
**Returns**

- (::Array\<[::Google::Rpc::Status](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Rpc-Status)\>) --- The list of webhook call status in the order of call sequence.