Class SimpleGrpc.SimpleStub

java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractAsyncStub<SimpleGrpc.SimpleStub>
com.bytedesk.core.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 extends io.grpc.stub.AbstractStub<T>>
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    SimpleStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
     
  • 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 java.lang.Object

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

    • SimpleStub

      private SimpleStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
  • 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)