public static final class ContextsGrpc.ContextsFutureStub extends io.grpc.stub.AbstractStub<ContextsGrpc.ContextsFutureStub>
A context represents additional information included with user input or with an intent returned by the Dialogflow API. Contexts are helpful for differentiating user input which may be vague or have a different meaning depending on additional details from your application such as user setting and preferences, previous user input, where the user is in your application, geographic location, and so on. You can include contexts as input parameters of a [DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] (or [StreamingDetectIntent][google.cloud.dialogflow.v2.Sessions.StreamingDetectIntent]) request, or as output contexts included in the returned intent. Contexts expire when an intent is matched, after the number of `DetectIntent` requests specified by the `lifespan_count` parameter, or after 10 minutes if no intents are matched for a `DetectIntent` request. For more information about contexts, see the [Dialogflow documentation](https://dialogflow.com/docs/contexts).
Modifier and Type | Method and Description |
---|---|
protected ContextsGrpc.ContextsFutureStub |
build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) |
com.google.common.util.concurrent.ListenableFuture<Context> |
createContext(CreateContextRequest request)
Creates a context.
|
com.google.common.util.concurrent.ListenableFuture<Empty> |
deleteAllContexts(DeleteAllContextsRequest request)
Deletes all active contexts in the specified session.
|
com.google.common.util.concurrent.ListenableFuture<Empty> |
deleteContext(DeleteContextRequest request)
Deletes the specified context.
|
com.google.common.util.concurrent.ListenableFuture<Context> |
getContext(GetContextRequest request)
Retrieves the specified context.
|
com.google.common.util.concurrent.ListenableFuture<ListContextsResponse> |
listContexts(ListContextsRequest request)
Returns the list of all contexts in the specified session.
|
com.google.common.util.concurrent.ListenableFuture<Context> |
updateContext(UpdateContextRequest request)
Updates the specified context.
|
protected ContextsGrpc.ContextsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
build
in class io.grpc.stub.AbstractStub<ContextsGrpc.ContextsFutureStub>
public com.google.common.util.concurrent.ListenableFuture<ListContextsResponse> listContexts(ListContextsRequest request)
Returns the list of all contexts in the specified session.
public com.google.common.util.concurrent.ListenableFuture<Context> getContext(GetContextRequest request)
Retrieves the specified context.
public com.google.common.util.concurrent.ListenableFuture<Context> createContext(CreateContextRequest request)
Creates a context.
public com.google.common.util.concurrent.ListenableFuture<Context> updateContext(UpdateContextRequest request)
Updates the specified context.
public com.google.common.util.concurrent.ListenableFuture<Empty> deleteContext(DeleteContextRequest request)
Deletes the specified context.
public com.google.common.util.concurrent.ListenableFuture<Empty> deleteAllContexts(DeleteAllContextsRequest request)
Deletes all active contexts in the specified session.