Class ProtoReflectionService

  • All Implemented Interfaces:
    io.grpc.BindableService

    @ExperimentalApi("https://github.com/grpc/grpc-java/issues/2222")
    public final class ProtoReflectionService
    extends Object
    implements io.grpc.BindableService
    Provides a reflection service for Protobuf services (including the reflection service itself). Uses the deprecated v1alpha proto. New users should use ProtoReflectionServiceV1 instead.

    Separately tracks mutable and immutable services. Throws an exception if either group of services contains multiple Protobuf files with declarations of the same service, method, type, or extension.

    • Method Detail

      • newInstance

        public static io.grpc.BindableService newInstance()
      • bindService

        public io.grpc.ServerServiceDefinition bindService()
        Specified by:
        bindService in interface io.grpc.BindableService