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.FileDescriptorIndexprivate final ProtoReflectionServiceV1.FileDescriptorIndex -
Constructor Summary
ConstructorsConstructorDescriptionServerReflectionIndex(List<ServerServiceDefinition> immutableServices, List<ServerServiceDefinition> mutableServices) -
Method Summary
Modifier and TypeMethodDescriptionprivate com.google.protobuf.Descriptors.FileDescriptorgetFileDescriptorByExtensionAndNumber(String type, int extension) private com.google.protobuf.Descriptors.FileDescriptorprivate com.google.protobuf.Descriptors.FileDescriptorgetFileDescriptorBySymbol(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
-