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
#current_page
def current_page() -> ::Google::Cloud::Dialogflow::CX::V3::Page
-
(::Google::Cloud::Dialogflow::CX::V3::Page) — The current Page. Some, not all fields are filled in this message,
including but not limited to
name
anddisplay_name
.
#current_page=
def current_page=(value) -> ::Google::Cloud::Dialogflow::CX::V3::Page
-
value (::Google::Cloud::Dialogflow::CX::V3::Page) — The current Page. Some, not all fields are filled in this message,
including but not limited to
name
anddisplay_name
.
-
(::Google::Cloud::Dialogflow::CX::V3::Page) — The current Page. Some, not all fields are filled in this message,
including but not limited to
name
anddisplay_name
.
#diagnostic_info
def diagnostic_info() -> ::Google::Protobuf::Struct
- (::Google::Protobuf::Struct) — The free-form diagnostic info. For example, this field could contain webhook call latency. The string keys of the Struct's fields map can change without notice.
#diagnostic_info=
def diagnostic_info=(value) -> ::Google::Protobuf::Struct
- value (::Google::Protobuf::Struct) — The free-form diagnostic info. For example, this field could contain webhook call latency. The string keys of the Struct's fields map can change without notice.
- (::Google::Protobuf::Struct) — The free-form diagnostic info. For example, this field could contain webhook call latency. The string keys of the Struct's fields map can change without notice.
#dtmf
def dtmf() -> ::Google::Cloud::Dialogflow::CX::V3::DtmfInput
- (::Google::Cloud::Dialogflow::CX::V3::DtmfInput) — If a [DTMF][DTMFInput] was provided as input, this field will contain a copy of the [DTMFInput][].
#dtmf=
def dtmf=(value) -> ::Google::Cloud::Dialogflow::CX::V3::DtmfInput
- value (::Google::Cloud::Dialogflow::CX::V3::DtmfInput) — If a [DTMF][DTMFInput] was provided as input, this field will contain a copy of the [DTMFInput][].
- (::Google::Cloud::Dialogflow::CX::V3::DtmfInput) — If a [DTMF][DTMFInput] was provided as input, this field will contain a copy of the [DTMFInput][].
#intent
def intent() -> ::Google::Cloud::Dialogflow::CX::V3::Intent
-
(::Google::Cloud::Dialogflow::CX::V3::Intent) — The Intent that matched the conversational query. Some, not all fields
are filled in this message, including but not limited to:
name
anddisplay_name
. This field is deprecated, please use QueryResult.match instead.
#intent=
def intent=(value) -> ::Google::Cloud::Dialogflow::CX::V3::Intent
-
value (::Google::Cloud::Dialogflow::CX::V3::Intent) — The Intent that matched the conversational query. Some, not all fields
are filled in this message, including but not limited to:
name
anddisplay_name
. This field is deprecated, please use QueryResult.match instead.
-
(::Google::Cloud::Dialogflow::CX::V3::Intent) — The Intent that matched the conversational query. Some, not all fields
are filled in this message, including but not limited to:
name
anddisplay_name
. This field is deprecated, please use QueryResult.match instead.
#intent_detection_confidence
def intent_detection_confidence() -> ::Float
- (::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 instead.
#intent_detection_confidence=
def intent_detection_confidence=(value) -> ::Float
- 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 instead.
- (::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 instead.
#language_code
def language_code() -> ::String
- (::String) — The language that was triggered during intent detection. See Language Support for a list of the currently supported language codes.
#language_code=
def language_code=(value) -> ::String
- value (::String) — The language that was triggered during intent detection. See Language Support for a list of the currently supported language codes.
- (::String) — The language that was triggered during intent detection. See Language Support for a list of the currently supported language codes.
#match
def match() -> ::Google::Cloud::Dialogflow::CX::V3::Match
- (::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
- value (::Google::Cloud::Dialogflow::CX::V3::Match) — Intent match result, could be an intent or an event.
- (::Google::Cloud::Dialogflow::CX::V3::Match) — Intent match result, could be an intent or an event.
#parameters
def parameters() -> ::Google::Protobuf::Struct
-
(::Google::Protobuf::Struct) —
The collected session 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
-
value (::Google::Protobuf::Struct) —
The collected session 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.
-
(::Google::Protobuf::Struct) —
The collected session 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>
- (::Array<::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>
- value (::Array<::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.
- (::Array<::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
-
(::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
-
value (::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.
-
(::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
- (::String) — If natural language text was provided as input, this field will contain a copy of the text.
#text=
def text=(value) -> ::String
- value (::String) — If natural language text was provided as input, this field will contain a copy of the text.
- (::String) — If natural language text was provided as input, this field will contain a copy of the text.
#transcript
def transcript() -> ::String
- (::String) — If natural language speech audio was provided as input, this field will contain the transcript for the audio.
#transcript=
def transcript=(value) -> ::String
- value (::String) — If natural language speech audio was provided as input, this field will contain the transcript for the audio.
- (::String) — If natural language speech audio was provided as input, this field will contain the transcript for the audio.
#trigger_event
def trigger_event() -> ::String
- (::String) — If an event was provided as input, this field will contain the name of the event.
#trigger_event=
def trigger_event=(value) -> ::String
- value (::String) — If an event was provided as input, this field will contain the name of the event.
- (::String) — If an event was provided as input, this field will contain the name of the event.
#trigger_intent
def trigger_intent() -> ::String
-
(::String) — If an intent was provided as input, this field will
contain a copy of the intent identifier.
Format:
projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>
.
#trigger_intent=
def trigger_intent=(value) -> ::String
-
value (::String) — If an intent was provided as input, this field will
contain a copy of the intent identifier.
Format:
projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>
.
-
(::String) — If an intent was provided as input, this field will
contain a copy of the intent identifier.
Format:
projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>
.
#webhook_payloads
def webhook_payloads() -> ::Array<::Google::Protobuf::Struct>
-
(::Array<::Google::Protobuf::Struct>) — The list of webhook payload in WebhookResponse.payload, 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>
-
value (::Array<::Google::Protobuf::Struct>) — The list of webhook payload in WebhookResponse.payload, in
the order of call sequence. If some webhook call fails or doesn't return
any payload, an empty
Struct
would be used instead.
-
(::Array<::Google::Protobuf::Struct>) — The list of webhook payload in WebhookResponse.payload, 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>
- (::Array<::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>
- value (::Array<::Google::Rpc::Status>) — The list of webhook call status in the order of call sequence.
- (::Array<::Google::Rpc::Status>) — The list of webhook call status in the order of call sequence.