Module compiler

Source
Expand description

Implementation of the Protocol Buffer compiler.

This module contains code for parsing .proto files and generating code based on them. It is particularly useful when you need to deal with arbitrary Protobuf messages at runtime.

Structs§

DiskSourceTree
An implementation of SourceTree which loads files from locations on disk.
FileLoadError
An error occured while loading a file.
FileOpenError
An error occurred while opening a file.
Location
Describes the location at which a FileLoadError occurred.
SimpleErrorCollector
A simple implementation of MultiFileErrorCollector that records errors in memory for later retrieval.
SourceTreeDescriptorDatabase
An implementation of DescriptorDatabase which loads files from a SourceTree and parses them.
VirtualSourceTree
An implementation of SourceTree which stores files in memory.

Enums§

Severity
Describes the severity of a FileLoadError.

Traits§

MultiFileErrorCollector
If the importer encounters problems while trying to import the proto files, it reports them to a MultiFileErrorCollector.
SourceTree
Abstract interface which represents a directory tree containing .proto files.