Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1QueryResult
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1QueryResult
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dialogflow_v3beta1/classes.rb,
lib/google/apis/dialogflow_v3beta1/representations.rb,
lib/google/apis/dialogflow_v3beta1/representations.rb
Overview
Represents the result of a conversational query.
Instance Attribute Summary collapse
-
#current_page ⇒ Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Page
A Dialogflow CX conversation (session) can be described and visualized as a state machine.
-
#diagnostic_info ⇒ Hash<String,Object>
The free-form diagnostic info.
-
#intent ⇒ Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Intent
An intent represents a user's intent to interact with a conversational agent.
-
#intent_detection_confidence ⇒ Float
The intent detection confidence.
-
#language_code ⇒ String
The language that was triggered during intent detection.
-
#match ⇒ Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Match
Represents one match result of MatchIntent.
-
#parameters ⇒ Hash<String,Object>
The collected session parameters.
-
#response_messages ⇒ Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ResponseMessage>
The list of rich messages returned to the client.
-
#sentiment_analysis_result ⇒ Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SentimentAnalysisResult
The result of sentiment analysis.
-
#text ⇒ String
If natural language text was provided as input, this field will contain a copy of the text.
-
#transcript ⇒ String
If natural language speech audio was provided as input, this field will contain the trascript for the audio.
-
#trigger_event ⇒ String
If an event was provided as input, this field will contain the name of the event.
-
#trigger_intent ⇒ String
If an intent was provided as input, this field will contain a copy of the intent identifier.
-
#webhook_payloads ⇒ Array<Hash<String,Object>>
The list of webhook payload in WebhookResponse.payload, in the order of call sequence.
-
#webhook_statuses ⇒ Array<Google::Apis::DialogflowV3beta1::GoogleRpcStatus>
The list of webhook call status in the order of call sequence.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1QueryResult
constructor
A new instance of GoogleCloudDialogflowCxV3beta1QueryResult.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1QueryResult
Returns a new instance of GoogleCloudDialogflowCxV3beta1QueryResult.
5665 5666 5667 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 5665 def initialize(**args) update!(**args) end |
Instance Attribute Details
#current_page ⇒ Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Page
A Dialogflow CX conversation (session) can be described and visualized as a
state machine. The states of a CX session are represented by pages. For each
flow, you define many pages, where your combined pages can handle a complete
conversation on the topics the flow is designed for. At any given moment,
exactly one page is the current page, the current page is considered active,
and the flow associated with that page is considered active. Every flow has a
special start page. When a flow initially becomes active, the start page page
becomes the current page. For each conversational turn, the current page will
either stay the same or transition to another page. You configure each page to
collect information from the end-user that is relevant for the conversational
state represented by the page. For more information, see the Page guide.
Corresponds to the JSON property currentPage
5564 5565 5566 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 5564 def current_page @current_page end |
#diagnostic_info ⇒ Hash<String,Object>
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.
Corresponds to the JSON property diagnosticInfo
5571 5572 5573 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 5571 def diagnostic_info @diagnostic_info end |
#intent ⇒ Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Intent
An intent represents a user's intent to interact with a conversational agent.
You can provide information for the Dialogflow API to use to match user input
to an intent by adding training phrases (i.e., examples of user input) to your
intent.
Corresponds to the JSON property intent
5579 5580 5581 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 5579 def intent @intent end |
#intent_detection_confidence ⇒ 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.
Corresponds to the JSON property intentDetectionConfidence
5589 5590 5591 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 5589 def intent_detection_confidence @intent_detection_confidence end |
#language_code ⇒ String
The language that was triggered during intent detection. See Language Support for a list of
the currently supported language codes.
Corresponds to the JSON property languageCode
5596 5597 5598 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 5596 def language_code @language_code end |
#match ⇒ Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Match
Represents one match result of MatchIntent.
Corresponds to the JSON property match
5601 5602 5603 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 5601 def match @match end |
#parameters ⇒ Hash<String,Object>
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: map - Else: depending on parameter value type,
could be one of string, number, boolean, null, list or map - MapValue value: -
If parameter's entity type is a composite entity: map from composite entity
property names to property values - Else: parameter value
Corresponds to the JSON property parameters
5613 5614 5615 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 5613 def parameters @parameters end |
#response_messages ⇒ Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ResponseMessage>
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.
Corresponds to the JSON property responseMessages
5620 5621 5622 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 5620 def @response_messages end |
#sentiment_analysis_result ⇒ Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SentimentAnalysisResult
The result of sentiment analysis. Sentiment analysis inspects user input and
identifies the prevailing subjective opinion, especially to determine a user's
attitude as positive, negative, or neutral.
Corresponds to the JSON property sentimentAnalysisResult
5627 5628 5629 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 5627 def sentiment_analysis_result @sentiment_analysis_result end |
#text ⇒ String
If natural language text was provided as input, this field will contain a copy
of the text.
Corresponds to the JSON property text
5633 5634 5635 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 5633 def text @text end |
#transcript ⇒ String
If natural language speech audio was provided as input, this field will
contain the trascript for the audio.
Corresponds to the JSON property transcript
5639 5640 5641 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 5639 def transcript @transcript end |
#trigger_event ⇒ String
If an event was provided as input, this field will contain the name of the
event.
Corresponds to the JSON property triggerEvent
5645 5646 5647 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 5645 def trigger_event @trigger_event end |
#trigger_intent ⇒ String
If an intent was provided as input, this field will contain a copy of the
intent identifier.
Corresponds to the JSON property triggerIntent
5651 5652 5653 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 5651 def trigger_intent @trigger_intent end |
#webhook_payloads ⇒ Array<Hash<String,Object>>
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.
Corresponds to the JSON property webhookPayloads
5658 5659 5660 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 5658 def webhook_payloads @webhook_payloads end |
#webhook_statuses ⇒ Array<Google::Apis::DialogflowV3beta1::GoogleRpcStatus>
The list of webhook call status in the order of call sequence.
Corresponds to the JSON property webhookStatuses
5663 5664 5665 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 5663 def webhook_statuses @webhook_statuses end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 5670 def update!(**args) @current_page = args[:current_page] if args.key?(:current_page) @diagnostic_info = args[:diagnostic_info] if args.key?(:diagnostic_info) @intent = args[:intent] if args.key?(:intent) @intent_detection_confidence = args[:intent_detection_confidence] if args.key?(:intent_detection_confidence) @language_code = args[:language_code] if args.key?(:language_code) @match = args[:match] if args.key?(:match) @parameters = args[:parameters] if args.key?(:parameters) @response_messages = args[:response_messages] if args.key?(:response_messages) @sentiment_analysis_result = args[:sentiment_analysis_result] if args.key?(:sentiment_analysis_result) @text = args[:text] if args.key?(:text) @transcript = args[:transcript] if args.key?(:transcript) @trigger_event = args[:trigger_event] if args.key?(:trigger_event) @trigger_intent = args[:trigger_intent] if args.key?(:trigger_intent) @webhook_payloads = args[:webhook_payloads] if args.key?(:webhook_payloads) @webhook_statuses = args[:webhook_statuses] if args.key?(:webhook_statuses) end |