DescriptorSet provides a convenient interface for working with a set of google.protobuf.FileDescriptorProto.

When protobuf sources are compiled, each file is parsed into a google.protobuf.FileDescriptorProto. Those messages describe all parts of the source file that are required to generate code for them.

DescriptorSet resolves references between the descriptors, hides implementation details like synthetic map entry messages, and provides simple access to comments.

Hierarchy

  • DescriptorSet

Properties

enums: ReadonlyMap<string, DescEnum>

All enumerations, indexed by their fully qualified type name. (We omit the leading dot.)

extensions: ReadonlyMap<string, DescExtension>

All extensions, indexed by their fully qualified type name.

files: DescFile[]

All files, in the order they were added to the set.

messages: ReadonlyMap<string, DescMessage>

All messages, indexed by their fully qualified type name. (We omit the leading dot.)

services: ReadonlyMap<string, DescService>

All services, indexed by their fully qualified type name. (We omit the leading dot.)

Generated using TypeDoc