public static final class ContextsGrpc.ContextsStub extends AbstractAsyncStub<ContextsGrpc.ContextsStub>
Service for managing [Contexts][google.cloud.dialogflow.v2beta1.Context].
AbstractStub.StubFactory<T extends AbstractStub<T>>
Modifier and Type | Method and Description |
---|---|
protected ContextsGrpc.ContextsStub |
build(Channel channel,
CallOptions callOptions) |
void |
createContext(CreateContextRequest request,
StreamObserver<Context> responseObserver)
Creates a context.
|
void |
deleteAllContexts(DeleteAllContextsRequest request,
StreamObserver<Empty> responseObserver)
Deletes all active contexts in the specified session.
|
void |
deleteContext(DeleteContextRequest request,
StreamObserver<Empty> responseObserver)
Deletes the specified context.
|
void |
getContext(GetContextRequest request,
StreamObserver<Context> responseObserver)
Retrieves the specified context.
|
void |
listContexts(ListContextsRequest request,
StreamObserver<ListContextsResponse> responseObserver)
Returns the list of all contexts in the specified session.
|
void |
updateContext(UpdateContextRequest request,
StreamObserver<Context> responseObserver)
Updates the specified context.
|
newStub, newStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOption, withWaitForReady
protected ContextsGrpc.ContextsStub build(Channel channel, CallOptions callOptions)
build
in class AbstractStub<ContextsGrpc.ContextsStub>
public void listContexts(ListContextsRequest request, StreamObserver<ListContextsResponse> responseObserver)
Returns the list of all contexts in the specified session.
public void getContext(GetContextRequest request, StreamObserver<Context> responseObserver)
Retrieves the specified context.
public void createContext(CreateContextRequest request, StreamObserver<Context> responseObserver)
Creates a context. If the specified context already exists, overrides the context.
public void updateContext(UpdateContextRequest request, StreamObserver<Context> responseObserver)
Updates the specified context.
public void deleteContext(DeleteContextRequest request, StreamObserver<Empty> responseObserver)
Deletes the specified context.
public void deleteAllContexts(DeleteAllContextsRequest request, StreamObserver<Empty> responseObserver)
Deletes all active contexts in the specified session.
Copyright © 2022 Google LLC. All rights reserved.