Class SimpleGrpc.SimpleStub

java.lang.Object
io.grpc.stub.AbstractStub<SimpleGrpc.SimpleStub>
io.grpc.stub.AbstractAsyncStub<SimpleGrpc.SimpleStub>
com.example.demo.proto.SimpleGrpc.SimpleStub
Enclosing class:
SimpleGrpc

public static final class SimpleGrpc.SimpleStub extends io.grpc.stub.AbstractAsyncStub<SimpleGrpc.SimpleStub>
A stub to allow clients to do asynchronous rpc calls to service Simple.
The greeting service definition.
  • Nested Class Summary

    Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub

    io.grpc.stub.AbstractStub.StubFactory<T>
  • Method Summary

    Modifier and Type
    Method
    Description
    build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
     
    void
    sayHello(HelloRequest request, io.grpc.stub.StreamObserver<HelloReply> responseObserver)
    Sends a greeting
    void
    streamHello(HelloRequest request, io.grpc.stub.StreamObserver<HelloReply> responseObserver)
     

    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 Object

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

    • build

      protected SimpleGrpc.SimpleStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
      Specified by:
      build in class io.grpc.stub.AbstractStub<SimpleGrpc.SimpleStub>
    • sayHello

      public void sayHello(HelloRequest request, io.grpc.stub.StreamObserver<HelloReply> responseObserver)
      Sends a greeting
      
    • streamHello

      public void streamHello(HelloRequest request, io.grpc.stub.StreamObserver<HelloReply> responseObserver)