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.
  • Method Details

    • v1

      public static ReflectionService v1()
      Returns:
      a v1 reflection service
    • name

      public ServiceName name()
      Description copied from interface: Service
      Get the name of the service.
      Specified by:
      name in interface Service
      Returns:
      the name of the service
    • descriptor

      public com.google.protobuf.Descriptors.ServiceDescriptor descriptor()
      Description copied from interface: Service
      Get the service descriptor that contains detailed information about the service.
      Specified by:
      descriptor in interface Service
      Returns:
      the service descriptor
    • methods

      public List<ServiceMethod<?,?>> methods()
      Description copied from interface: Service
      Get the list of all methods implemented by this service.
      Specified by:
      methods in interface Service
      Returns:
      the list of service methods
    • invoker

      public <Req,Resp> ServiceMethodInvoker<Req,Resp> invoker(ServiceMethod<Req,Resp> method)
      Description copied from interface: ServiceInvoker
      Obtain a service method invoker.
      Specified by:
      invoker in interface ServiceInvoker
      Parameters:
      method - the service method
    • setServer

      public void setServer(ServiceContainer server)
      Specified by:
      setServer in interface io.vertx.grpc.server.impl.ServerAware