DialogflowGrpcV2Beta1 class
An interface to Google Cloud's Dialogflow V2 gRPC API Creates a SessionsClient for detecting intents This class requires a service account.
Constructors
- DialogflowGrpcV2Beta1.viaServiceAccount(ServiceAccount account)
-
Creates a SessionsClient using a service account.
From the service account it will get authentication and the Dialogflow project id.
It uses a UUID to create a unique session
factory
Properties
- client ↔ SessionsClient
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
detectIntent(
String text, String lang) → Future< DetectIntentResponse> - Processes a natural language query and returns structured, actionable data as a result.
-
dispose(
) → void - Cancels the StreamSubscription
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
streamingDetectIntent(
InputConfigV2beta1 config, Stream< List< audioStream) → Stream<int> >StreamingDetectIntentResponse> - Processes a natural language query in audio format in a streaming fashion and returns structured, actionable data as a result. This method is only available via the gRPC API (not REST). Sends a StreamingDetectIntentResponse to the Dialogflow API Requires a InputAudioConfig and an audioStream.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited