DetectIntentResponse class

The message returned from the sessions.detectIntent method.

See: https://cloud.google.com/dialogflow/docs/reference/rest/v2/DetectIntentResponse

Annotations
  • @JsonSerializable()

Constructors

DetectIntentResponse({required String responseId, QueryResult? queryResult, String? outputAudio, OutputAudioConfig? outputAudioConfig})
The message returned from the sessions.detectIntent method.
DetectIntentResponse.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
message Message?
Short hand term for the first fullfilment message returned by the agent
no setter
outputAudio String?
The audio data bytes encoded as specified in the request.
final
outputAudioBytes Uint8List?
Return the bytes of the outputAudio base64 encoded String so you can reproduce the audio
no setter
outputAudioConfig OutputAudioConfig?
The config used by the speech synthesizer to generate the output audio.
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
queryResult QueryResult?
The selected results of the conversational query or event processing. See alternativeQueryResults for additional potential results.
final
responseId String
The unique identifier of the response. It can be used to locate a response in the training example set or for reporting issues.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
text String?
Short hand term for the first text message returned by the agent
no setter

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