protoc library

Classes

BaseType
Represents the base type of a particular field in a proto definition. (Doesn't include List<> for repeated fields.)
ClientApiGenerator
CodeGenerator
DefaultOutputConfiguration
Default OutputConfiguration that uses the same path as the input file for the output file (just replaces the extension), and that uses relative paths to resolve imports.
EnumAlias
EnumGenerator
ExtensionGenerator
FileGenerator
Generates the Dart output files for one .proto input file. [...]
GenerationContext
GenerationOptions
Options expected by the protoc code generation compiler.
GrpcOptionParser
GrpcServiceGenerator
MessageGenerator
OneofEnumGenerator
Generates the Dart enum corresponding to a oneof declaration. [...]
OutputConfiguration
Configures where output of the protoc compiler should be placed and how to import one generated file from another.
ProtobufContainer
ProtobufField
ServiceGenerator
SingleOptionParser
A parser for a name-value pair option. Options parsed in genericOptionsParser delegate to instances of this class to parse the value of a specific option.

Functions

genericOptionsParser(CodeGeneratorRequest request, CodeGeneratorResponse response, Map<String, SingleOptionParser> parsers) bool
Helper function implementing a generic option parser that reads request.parameters and treats each token as either a flag ("name") or a key-value pair ("name=value"). For each option "name", it looks up whether a SingleOptionParser exists in parsers and delegates the actual parsing of the option to it. Returns true if no errors were reported.
Resolves all cross-references in a set of proto files.
parseGenerationOptions(CodeGeneratorRequest request, CodeGeneratorResponse response, [ Map<String, SingleOptionParser> parsers ]) GenerationOptions
Parser used by the compiler, which supports the rpc option (see RpcOptionParser) and any additional option added in parsers. If parsers has a key for rpc, it will be ignored.