Package com.google.cloud.dialogflow.v2
Class ContextsGrpc.ContextsStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractAsyncStub<ContextsGrpc.ContextsStub>
com.google.cloud.dialogflow.v2.ContextsGrpc.ContextsStub
- Enclosing class:
- ContextsGrpc
public static final class ContextsGrpc.ContextsStub
extends io.grpc.stub.AbstractAsyncStub<ContextsGrpc.ContextsStub>
A stub to allow clients to do asynchronous 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.ContextsStubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) voidcreateContext(CreateContextRequest request, io.grpc.stub.StreamObserver<Context> responseObserver) Creates a context.voiddeleteAllContexts(DeleteAllContextsRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) Deletes all active contexts in the specified session.voiddeleteContext(DeleteContextRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) Deletes the specified context.voidgetContext(GetContextRequest request, io.grpc.stub.StreamObserver<Context> responseObserver) Retrieves the specified context.voidlistContexts(ListContextsRequest request, io.grpc.stub.StreamObserver<ListContextsResponse> responseObserver) Returns the list of all contexts in the specified session.voidupdateContext(UpdateContextRequest request, io.grpc.stub.StreamObserver<Context> responseObserver) Updates the specified context.Methods inherited from class io.grpc.stub.AbstractAsyncStub
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
- Specified by:
buildin classio.grpc.stub.AbstractStub<ContextsGrpc.ContextsStub>
-
listContexts
public void listContexts(ListContextsRequest request, io.grpc.stub.StreamObserver<ListContextsResponse> responseObserver) Returns the list of all contexts in the specified session.
-
getContext
public void getContext(GetContextRequest request, io.grpc.stub.StreamObserver<Context> responseObserver) Retrieves the specified context.
-
createContext
public void createContext(CreateContextRequest request, io.grpc.stub.StreamObserver<Context> responseObserver) Creates a context. If the specified context already exists, overrides the context.
-
updateContext
public void updateContext(UpdateContextRequest request, io.grpc.stub.StreamObserver<Context> responseObserver) Updates the specified context.
-
deleteContext
public void deleteContext(DeleteContextRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) Deletes the specified context.
-
deleteAllContexts
public void deleteAllContexts(DeleteAllContextsRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) Deletes all active contexts in the specified session.
-