<PackageReference Include="Google.Protobuf" Version="3.34.2" />

Google.Protobuf.Reflection.TypeRegistry

public sealed class TypeRegistry
An immutable registry of types which can be looked up by their full name.
public static TypeRegistry Empty { get; }

An empty type registry, containing no types.

public static TypeRegistry FromFiles(FileDescriptor[] fileDescriptors)

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

public static TypeRegistry FromFiles(IEnumerable<FileDescriptor> fileDescriptors)

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

public static TypeRegistry FromMessages(MessageDescriptor[] messageDescriptors)

Creates a type registry from the file descriptor parents of the specified set of message descriptors.

public static TypeRegistry FromMessages(IEnumerable<MessageDescriptor> messageDescriptors)

Creates a type registry from the file descriptor parents of the specified set of message descriptors.

public MessageDescriptor Find(string fullName)

Attempts to find a message descriptor by its full name.