Package io.grpc.protobuf.services
Class ProtoReflectionService
- java.lang.Object
-
- io.grpc.reflection.v1alpha.ServerReflectionGrpc.ServerReflectionImplBase
-
- io.grpc.protobuf.services.ProtoReflectionService
-
- All Implemented Interfaces:
BindableService
,ServerReflectionGrpc.AsyncService
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/2222") public final class ProtoReflectionService extends ServerReflectionGrpc.ServerReflectionImplBase
Provides a reflection service for Protobuf services (including the reflection service itself).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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BindableService
newInstance()
Creates a instance ofProtoReflectionService
.StreamObserver<ServerReflectionRequest>
serverReflectionInfo(StreamObserver<ServerReflectionResponse> responseObserver)
The reflection service is structured as a bidirectional stream, ensuring all related requests go to a single server.-
Methods inherited from class io.grpc.reflection.v1alpha.ServerReflectionGrpc.ServerReflectionImplBase
bindService
-
-
-
-
Method Detail
-
newInstance
public static BindableService newInstance()
Creates a instance ofProtoReflectionService
.
-
serverReflectionInfo
public StreamObserver<ServerReflectionRequest> serverReflectionInfo(StreamObserver<ServerReflectionResponse> responseObserver)
Description copied from interface:ServerReflectionGrpc.AsyncService
The reflection service is structured as a bidirectional stream, ensuring all related requests go to a single server.
-
-