Package com.google.cloud.dialogflow.v2
Class ContextsGrpc.ContextsBlockingV2Stub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<ContextsGrpc.ContextsBlockingV2Stub>
com.google.cloud.dialogflow.v2.ContextsGrpc.ContextsBlockingV2Stub
- Enclosing class:
- ContextsGrpc
public static final class ContextsGrpc.ContextsBlockingV2Stub
extends io.grpc.stub.AbstractBlockingStub<ContextsGrpc.ContextsBlockingV2Stub>
A stub to allow clients to do synchronous 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.ContextsBlockingV2Stubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) createContext(CreateContextRequest request) Creates a context.com.google.protobuf.EmptyDeletes all active contexts in the specified session.com.google.protobuf.EmptydeleteContext(DeleteContextRequest request) Deletes the specified context.getContext(GetContextRequest request) Retrieves the specified context.listContexts(ListContextsRequest request) Returns the list of all contexts in the specified session.updateContext(UpdateContextRequest request) Updates the specified context.Methods inherited from class io.grpc.stub.AbstractBlockingStub
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.ContextsBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<ContextsGrpc.ContextsBlockingV2Stub>
-
listContexts
public ListContextsResponse listContexts(ListContextsRequest request) throws io.grpc.StatusException Returns the list of all contexts in the specified session.
- Throws:
io.grpc.StatusException
-
getContext
Retrieves the specified context.
- Throws:
io.grpc.StatusException
-
createContext
Creates a context. If the specified context already exists, overrides the context.
- Throws:
io.grpc.StatusException
-
updateContext
Updates the specified context.
- Throws:
io.grpc.StatusException
-
deleteContext
public com.google.protobuf.Empty deleteContext(DeleteContextRequest request) throws io.grpc.StatusException Deletes the specified context.
- Throws:
io.grpc.StatusException
-
deleteAllContexts
public com.google.protobuf.Empty deleteAllContexts(DeleteAllContextsRequest request) throws io.grpc.StatusException Deletes all active contexts in the specified session.
- Throws:
io.grpc.StatusException
-