Package io.grpc.protobuf.services
Class ProtoReflectionServiceV1.FileDescriptorIndex
java.lang.Object
io.grpc.protobuf.services.ProtoReflectionServiceV1.FileDescriptorIndex
- Enclosing class:
ProtoReflectionServiceV1
Provides a set of methods for answering reflection queries for the file descriptors underlying
a set of services. Used by
ProtoReflectionServiceV1.ServerReflectionIndex
to separately index immutable and
mutable services.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Set
<com.google.protobuf.Descriptors.FileDescriptor> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate com.google.protobuf.Descriptors.FileDescriptor
getFileDescriptorByExtensionAndNumber
(String type, int number) private com.google.protobuf.Descriptors.FileDescriptor
private com.google.protobuf.Descriptors.FileDescriptor
getFileDescriptorBySymbol
(String symbol) private Set
<com.google.protobuf.Descriptors.FileDescriptor> Returns the file descriptors for the indexed services, but not their dependencies.private void
processExtension
(com.google.protobuf.Descriptors.FieldDescriptor extension, com.google.protobuf.Descriptors.FileDescriptor fd) private void
processFileDescriptor
(com.google.protobuf.Descriptors.FileDescriptor fd) private void
processService
(com.google.protobuf.Descriptors.ServiceDescriptor service, com.google.protobuf.Descriptors.FileDescriptor fd) private void
processType
(com.google.protobuf.Descriptors.Descriptor type, com.google.protobuf.Descriptors.FileDescriptor fd)
-
Field Details
-
serviceNames
-
serviceFileDescriptors
-
fileDescriptorsByName
-
fileDescriptorsBySymbol
-
fileDescriptorsByExtensionAndNumber
-
-
Constructor Details
-
FileDescriptorIndex
FileDescriptorIndex(List<ServerServiceDefinition> services)
-
-
Method Details
-
getServiceFileDescriptors
Returns the file descriptors for the indexed services, but not their dependencies. This is used to check if the server's mutable services have changed. -
getServiceNames
-
getFileDescriptorByName
-
getFileDescriptorBySymbol
-
getFileDescriptorByExtensionAndNumber
-
getExtensionNumbersOfType
-
processFileDescriptor
private void processFileDescriptor(com.google.protobuf.Descriptors.FileDescriptor fd) -
processService
private void processService(com.google.protobuf.Descriptors.ServiceDescriptor service, com.google.protobuf.Descriptors.FileDescriptor fd) -
processType
private void processType(com.google.protobuf.Descriptors.Descriptor type, com.google.protobuf.Descriptors.FileDescriptor fd) -
processExtension
private void processExtension(com.google.protobuf.Descriptors.FieldDescriptor extension, com.google.protobuf.Descriptors.FileDescriptor fd)
-