QueryResult class
Represents the result of conversational query or event processing.
See: https://cloud.google.com/dialogflow/docs/reference/rest/v2/DetectIntentResponse#QueryResult
- Annotations
-
- @JsonSerializable()
Constructors
-
QueryResult({String? queryText, String? languageCode, double? speechRecognitionConfidence, String? action, Map<
String, dynamic> ? parameters, bool? allRequiredParamsPresent, bool cancelsSlotFilling = false, List<Message> ? fulfillmentMessages, String? webhookSource, Map<String, dynamic> ? webhookPayload, List<Context> ? outputContexts, Intent? intent, double? intentDetectionConfidence, Map<String, dynamic> ? diagnosticInfo, SentimentAnalysisResult? sentimentAnalysisResult}) - Represents the result of conversational query or event processing.
-
QueryResult.fromJson(Map<
String, dynamic> json) -
factory
Properties
- action → String?
-
The action name from the matched intent.
final
- allRequiredParamsPresent → bool?
-
This field is set to:
final
- cancelsSlotFilling → bool
-
Indicates whether the conversational query triggers a cancellation for
slot filling.
final
-
diagnosticInfo
→ Map<
String, dynamic> ? -
Free-form diagnostic information for the associated detect intent request.
final
-
fulfillmentMessages
→ List<
Message> ? -
The collection of rich messages to present to the user.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- intent → Intent?
-
The intent that matched the conversational query.
final
- intentDetectionConfidence → double?
-
The intent detection confidence.
final
- languageCode → String?
-
The language that was triggered during intent detection.
See Language Support
for a list of the currently supported language codes.
final
-
outputContexts
→ List<
Context> ? -
The collection of output contexts.
final
-
parameters
→ Map<
String, dynamic> ? -
This is a map of extracted parameters (MapKey, MapValue) pairs:
final
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- queryText → String?
-
The original conversational query text:
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sentimentAnalysisResult → SentimentAnalysisResult?
-
The sentiment analysis result, which depends on the
sentimentAnalysisRequestConfig
specified in the request.final - speechRecognitionConfidence → double?
-
The Speech recognition confidence between 0.0 and 1.0. A higher
number indicates an estimated greater likelihood that the recognized
words are correct. The default of 0.0 is a sentinel value indicating
that confidence was not set.
final
- stringify → bool?
-
If set to
true
, thetoString
method will be overridden to output this instance'sprops
.no setterinherited -
webhookPayload
→ Map<
String, dynamic> ? -
If the query was fulfilled by a webhook call, this field is set to the
value of the payload field returned in the webhook response.
final
- webhookSource → String?
-
If the query was fulfilled by a webhook call, this field is set to
the value of the source field returned in the webhook response.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited