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].
 
  • Method Details

    • build

      protected ContextsGrpc.ContextsBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
      Specified by:
      build in class io.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

      public Context getContext(GetContextRequest request) throws io.grpc.StatusException
       Retrieves the specified context.
       
      Throws:
      io.grpc.StatusException
    • createContext

      public Context createContext(CreateContextRequest request) throws io.grpc.StatusException
       Creates a context.
       If the specified context already exists, overrides the context.
       
      Throws:
      io.grpc.StatusException
    • updateContext

      public Context updateContext(UpdateContextRequest request) throws io.grpc.StatusException
       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