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 Type
    Method
    Description
    build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
     
    void
    createContext(CreateContextRequest request, io.grpc.stub.StreamObserver<Context> responseObserver)
    Creates a context.
    void
    deleteAllContexts(DeleteAllContextsRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
    Deletes all active contexts in the specified session.
    void
    deleteContext(DeleteContextRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
    Deletes the specified context.
    void
    getContext(GetContextRequest request, io.grpc.stub.StreamObserver<Context> responseObserver)
    Retrieves the specified context.
    void
    listContexts(ListContextsRequest request, io.grpc.stub.StreamObserver<ListContextsResponse> responseObserver)
    Returns the list of all contexts in the specified session.
    void
    updateContext(UpdateContextRequest request, io.grpc.stub.StreamObserver<Context> responseObserver)
    Updates the specified context.

    Methods inherited from class io.grpc.stub.AbstractAsyncStub

    newStub, newStub

    Methods inherited from class io.grpc.stub.AbstractStub

    getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • build

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