Package io.grpc.protobuf.services
Class ProtoReflectionServiceV1.ServerReflectionIndex
java.lang.Object
io.grpc.protobuf.services.ProtoReflectionServiceV1.ServerReflectionIndex
- Enclosing class:
ProtoReflectionServiceV1
Indexes the server's services and allows lookups of file descriptors by filename, symbol, type,
and extension number.
Internally, this stores separate indices for the immutable and mutable services. When queried, the immutable service index is checked for a matching value. Only if there is no match in the immutable service index are the mutable services checked.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ProtoReflectionServiceV1.FileDescriptorIndex
private final ProtoReflectionServiceV1.FileDescriptorIndex
-
Constructor Summary
ConstructorsConstructorDescriptionServerReflectionIndex
(List<ServerServiceDefinition> immutableServices, List<ServerServiceDefinition> mutableServices) -
Method Summary
Modifier and TypeMethodDescriptionprivate com.google.protobuf.Descriptors.FileDescriptor
getFileDescriptorByExtensionAndNumber
(String type, int extension) private com.google.protobuf.Descriptors.FileDescriptor
private com.google.protobuf.Descriptors.FileDescriptor
getFileDescriptorBySymbol
(String symbol)
-
Field Details
-
immutableServicesIndex
-
mutableServicesIndex
-
-
Constructor Details
-
ServerReflectionIndex
public ServerReflectionIndex(List<ServerServiceDefinition> immutableServices, List<ServerServiceDefinition> mutableServices)
-
-
Method Details
-
getMutableServicesIndex
-
getServiceNames
-
getFileDescriptorByName
-
getFileDescriptorBySymbol
-
getFileDescriptorByExtensionAndNumber
-
getExtensionNumbersOfType
-