Package io.grpc.testing.protobuf
Class SimpleServiceGrpc
- java.lang.Object
-
- io.grpc.testing.protobuf.SimpleServiceGrpc
-
public final class SimpleServiceGrpc extends Object
A simple service for test.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSimpleServiceGrpc.AsyncServiceA simple service for test.static classSimpleServiceGrpc.SimpleServiceBlockingStubA stub to allow clients to do synchronous rpc calls to service SimpleService.static classSimpleServiceGrpc.SimpleServiceFutureStubA stub to allow clients to do ListenableFuture-style rpc calls to service SimpleService.static classSimpleServiceGrpc.SimpleServiceImplBaseBase class for the server implementation of the service SimpleService.static classSimpleServiceGrpc.SimpleServiceStubA stub to allow clients to do asynchronous rpc calls to service SimpleService.
-
Field Summary
Fields Modifier and Type Field Description static StringSERVICE_NAME
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static io.grpc.ServerServiceDefinitionbindService(SimpleServiceGrpc.AsyncService service)static io.grpc.MethodDescriptor<SimpleRequest,SimpleResponse>getBidiStreamingRpcMethod()static io.grpc.MethodDescriptor<SimpleRequest,SimpleResponse>getClientStreamingRpcMethod()static io.grpc.MethodDescriptor<SimpleRequest,SimpleResponse>getServerStreamingRpcMethod()static io.grpc.ServiceDescriptorgetServiceDescriptor()static io.grpc.MethodDescriptor<SimpleRequest,SimpleResponse>getUnaryRpcMethod()static SimpleServiceGrpc.SimpleServiceBlockingStubnewBlockingStub(io.grpc.Channel channel)Creates a new blocking-style stub that supports unary and streaming output calls on the servicestatic SimpleServiceGrpc.SimpleServiceFutureStubnewFutureStub(io.grpc.Channel channel)Creates a new ListenableFuture-style stub that supports unary calls on the servicestatic SimpleServiceGrpc.SimpleServiceStubnewStub(io.grpc.Channel channel)Creates a new async stub that supports all call types for the service
-
-
-
Field Detail
-
SERVICE_NAME
public static final String SERVICE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getUnaryRpcMethod
public static io.grpc.MethodDescriptor<SimpleRequest,SimpleResponse> getUnaryRpcMethod()
-
getClientStreamingRpcMethod
public static io.grpc.MethodDescriptor<SimpleRequest,SimpleResponse> getClientStreamingRpcMethod()
-
getServerStreamingRpcMethod
public static io.grpc.MethodDescriptor<SimpleRequest,SimpleResponse> getServerStreamingRpcMethod()
-
getBidiStreamingRpcMethod
public static io.grpc.MethodDescriptor<SimpleRequest,SimpleResponse> getBidiStreamingRpcMethod()
-
newStub
public static SimpleServiceGrpc.SimpleServiceStub newStub(io.grpc.Channel channel)
Creates a new async stub that supports all call types for the service
-
newBlockingStub
public static SimpleServiceGrpc.SimpleServiceBlockingStub newBlockingStub(io.grpc.Channel channel)
Creates a new blocking-style stub that supports unary and streaming output calls on the service
-
newFutureStub
public static SimpleServiceGrpc.SimpleServiceFutureStub newFutureStub(io.grpc.Channel channel)
Creates a new ListenableFuture-style stub that supports unary calls on the service
-
bindService
public static final io.grpc.ServerServiceDefinition bindService(SimpleServiceGrpc.AsyncService service)
-
getServiceDescriptor
public static io.grpc.ServiceDescriptor getServiceDescriptor()
-
-