Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3MatchIntentResponse
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3MatchIntentResponse
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dialogflow_v3/classes.rb,
lib/google/apis/dialogflow_v3/representations.rb,
lib/google/apis/dialogflow_v3/representations.rb
Overview
Response of MatchIntent.
Instance Attribute Summary collapse
-
#current_page ⇒ Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page
A Dialogflow CX conversation (session) can be described and visualized as a state machine.
-
#matches ⇒ Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Match>
Match results, if more than one, ordered descendingly by the confidence we have that the particular intent matches the query.
-
#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 transcript for the audio.
-
#trigger_event ⇒ String
If an event was provided as input, this field will contain a copy of the event name.
-
#trigger_intent ⇒ String
If an intent was provided as input, this field will contain a copy of the intent identifier.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3MatchIntentResponse
constructor
A new instance of GoogleCloudDialogflowCxV3MatchIntentResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3MatchIntentResponse
Returns a new instance of GoogleCloudDialogflowCxV3MatchIntentResponse.
5464 5465 5466 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 5464 def initialize(**args) update!(**args) end |
Instance Attribute Details
#current_page ⇒ Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page
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
5432 5433 5434 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 5432 def current_page @current_page end |
#matches ⇒ Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Match>
Match results, if more than one, ordered descendingly by the confidence we
have that the particular intent matches the query.
Corresponds to the JSON property matches
5438 5439 5440 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 5438 def matches @matches 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
5444 5445 5446 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 5444 def text @text end |
#transcript ⇒ String
If natural language speech audio was provided as input, this field will
contain the transcript for the audio.
Corresponds to the JSON property transcript
5450 5451 5452 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 5450 def transcript @transcript end |
#trigger_event ⇒ String
If an event was provided as input, this field will contain a copy of the event
name.
Corresponds to the JSON property triggerEvent
5456 5457 5458 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 5456 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. Format: projects//locations//agents//intents/
.
Corresponds to the JSON property triggerIntent
5462 5463 5464 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 5462 def trigger_intent @trigger_intent end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5469 5470 5471 5472 5473 5474 5475 5476 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 5469 def update!(**args) @current_page = args[:current_page] if args.key?(:current_page) @matches = args[:matches] if args.key?(:matches) @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) end |