Class ReflectionService
java.lang.Object
io.vertx.grpc.reflection.ReflectionService
- All Implemented Interfaces:
io.vertx.grpc.server.impl.ServerAware, Service, ServiceInvoker
public class ReflectionService
extends Object
implements Service, io.vertx.grpc.server.impl.ServerAware
Reflection service implementing Reflection.
-
Field Summary
Fields inherited from interface ServiceInvoker
DEFAULT_INSTANCE -
Method Summary
Modifier and TypeMethodDescriptioncom.google.protobuf.Descriptors.ServiceDescriptorGet the service descriptor that contains detailed information about the service.<Req,Resp> ServiceMethodInvoker <Req, Resp> invoker(ServiceMethod<Req, Resp> method) Obtain a service method invoker.List<ServiceMethod<?, ?>> methods()Get the list of all methods implemented by this service.name()Get the name of the service.voidsetServer(ServiceContainer server) static ReflectionServicev1()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Service
close, hasMethod, methodDescriptor, methodDescriptors, pathOfMethod
-
Method Details
-
v1
- Returns:
- a v1 reflection service
-
name
Description copied from interface:ServiceGet the name of the service. -
descriptor
public com.google.protobuf.Descriptors.ServiceDescriptor descriptor()Description copied from interface:ServiceGet the service descriptor that contains detailed information about the service.- Specified by:
descriptorin interfaceService- Returns:
- the service descriptor
-
methods
Description copied from interface:ServiceGet the list of all methods implemented by this service. -
invoker
Description copied from interface:ServiceInvokerObtain a service method invoker.- Specified by:
invokerin interfaceServiceInvoker- Parameters:
method- the service method
-
setServer
- Specified by:
setServerin interfaceio.vertx.grpc.server.impl.ServerAware
-