C# Class Grpc.Reflection.SymbolRegistry

Registry of protobuf symbols
Mostrar archivo Open project: grpc/grpc Class Usage Examples

Public Methods

Method Description
FileByName ( string filename ) : FileDescriptor

Gets file descriptor for given file name (including package path). Returns null if not found.

FileContainingSymbol ( string symbol ) : FileDescriptor

Gets file descriptor that contains definition of given symbol full name (including package path). Returns null if not found.

FromFiles ( IEnumerable fileDescriptors ) : SymbolRegistry

Creates a symbol registry from the specified set of file descriptors.

Private Methods

Method Description
SymbolRegistry ( FileDescriptor>.Dictionary filesByName, FileDescriptor>.Dictionary filesBySymbol ) : System.Collections.Generic

Method Details

FileByName() public method

Gets file descriptor for given file name (including package path). Returns null if not found.
public FileByName ( string filename ) : FileDescriptor
filename string
return FileDescriptor

FileContainingSymbol() public method

Gets file descriptor that contains definition of given symbol full name (including package path). Returns null if not found.
public FileContainingSymbol ( string symbol ) : FileDescriptor
symbol string
return FileDescriptor

FromFiles() public static method

Creates a symbol registry from the specified set of file descriptors.
public static FromFiles ( IEnumerable fileDescriptors ) : SymbolRegistry
fileDescriptors IEnumerable The set of files to include in the registry. Must not contain null values.
return SymbolRegistry