Package com.google.cloud.dialogflow.v2
Class ContextsGrpc.ContextsFutureStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractFutureStub<ContextsGrpc.ContextsFutureStub>
com.google.cloud.dialogflow.v2.ContextsGrpc.ContextsFutureStub
- Enclosing class:
- ContextsGrpc
public static final class ContextsGrpc.ContextsFutureStub
extends io.grpc.stub.AbstractFutureStub<ContextsGrpc.ContextsFutureStub>
A stub to allow clients to do ListenableFuture-style rpc calls to service Contexts.
Service for managing [Contexts][google.cloud.dialogflow.v2.Context].
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>> -
Method Summary
Modifier and TypeMethodDescriptionprotected ContextsGrpc.ContextsFutureStubbuild(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<com.google.protobuf.Empty>Deletes all active contexts in the specified session.com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.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.Methods inherited from class io.grpc.stub.AbstractFutureStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected ContextsGrpc.ContextsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<ContextsGrpc.ContextsFutureStub>
-
listContexts
public com.google.common.util.concurrent.ListenableFuture<ListContextsResponse> listContexts(ListContextsRequest request) Returns the list of all contexts in the specified session.
-
getContext
public com.google.common.util.concurrent.ListenableFuture<Context> getContext(GetContextRequest request) Retrieves the specified context.
-
createContext
public com.google.common.util.concurrent.ListenableFuture<Context> createContext(CreateContextRequest request) Creates a context. If the specified context already exists, overrides the context.
-
updateContext
public com.google.common.util.concurrent.ListenableFuture<Context> updateContext(UpdateContextRequest request) Updates the specified context.
-
deleteContext
public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> deleteContext(DeleteContextRequest request) Deletes the specified context.
-
deleteAllContexts
public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> deleteAllContexts(DeleteAllContextsRequest request) Deletes all active contexts in the specified session.
-