public static final class IntentsGrpc.IntentsFutureStub extends io.grpc.stub.AbstractStub<IntentsGrpc.IntentsFutureStub>
An intent represents a mapping between input from a user and an action to be taken by your application. When you pass user input to the [DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] (or [StreamingDetectIntent][google.cloud.dialogflow.v2.Sessions.StreamingDetectIntent]) method, the Dialogflow API analyzes the input and searches for a matching intent. If no match is found, the Dialogflow API returns a fallback intent (`is_fallback` = true). You can provide additional information for the Dialogflow API to use to match user input to an intent by adding the following to your intent. * **Contexts** - provide additional context for intent analysis. For example, if an intent is related to an object in your application that plays music, you can provide a context to determine when to match the intent if the user input is “turn it off”. You can include a context that matches the intent when there is previous user input of "play music", and not when there is previous user input of "turn on the light". * **Events** - allow for matching an intent by using an event name instead of user input. Your application can provide an event name and related parameters to the Dialogflow API to match an intent. For example, when your application starts, you can send a welcome event with a user name parameter to the Dialogflow API to match an intent with a personalized welcome message for the user. * **Training phrases** - provide examples of user input to train the Dialogflow API agent to better match intents. For more information about intents, see the [Dialogflow documentation](https://dialogflow.com/docs/intents).
Modifier and Type | Method and Description |
---|---|
com.google.common.util.concurrent.ListenableFuture<Operation> |
batchDeleteIntents(BatchDeleteIntentsRequest request)
Deletes intents in the specified agent.
|
com.google.common.util.concurrent.ListenableFuture<Operation> |
batchUpdateIntents(BatchUpdateIntentsRequest request)
Updates/Creates multiple intents in the specified agent.
|
protected IntentsGrpc.IntentsFutureStub |
build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) |
com.google.common.util.concurrent.ListenableFuture<Intent> |
createIntent(CreateIntentRequest request)
Creates an intent in the specified agent.
|
com.google.common.util.concurrent.ListenableFuture<Empty> |
deleteIntent(DeleteIntentRequest request)
Deletes the specified intent.
|
com.google.common.util.concurrent.ListenableFuture<Intent> |
getIntent(GetIntentRequest request)
Retrieves the specified intent.
|
com.google.common.util.concurrent.ListenableFuture<ListIntentsResponse> |
listIntents(ListIntentsRequest request)
Returns the list of all intents in the specified agent.
|
com.google.common.util.concurrent.ListenableFuture<Intent> |
updateIntent(UpdateIntentRequest request)
Updates the specified intent.
|
protected IntentsGrpc.IntentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
build
in class io.grpc.stub.AbstractStub<IntentsGrpc.IntentsFutureStub>
public com.google.common.util.concurrent.ListenableFuture<ListIntentsResponse> listIntents(ListIntentsRequest request)
Returns the list of all intents in the specified agent.
public com.google.common.util.concurrent.ListenableFuture<Intent> getIntent(GetIntentRequest request)
Retrieves the specified intent.
public com.google.common.util.concurrent.ListenableFuture<Intent> createIntent(CreateIntentRequest request)
Creates an intent in the specified agent.
public com.google.common.util.concurrent.ListenableFuture<Intent> updateIntent(UpdateIntentRequest request)
Updates the specified intent.
public com.google.common.util.concurrent.ListenableFuture<Empty> deleteIntent(DeleteIntentRequest request)
Deletes the specified intent.
public com.google.common.util.concurrent.ListenableFuture<Operation> batchUpdateIntents(BatchUpdateIntentsRequest request)
Updates/Creates multiple intents in the specified agent. Operation <response: [BatchUpdateIntentsResponse][google.cloud.dialogflow.v2.BatchUpdateIntentsResponse]>
public com.google.common.util.concurrent.ListenableFuture<Operation> batchDeleteIntents(BatchDeleteIntentsRequest request)
Deletes intents in the specified agent. Operation <response: [google.protobuf.Empty][google.protobuf.Empty]>