ProtocBuilder class
Constructors
- ProtocBuilder(BuilderOptions options)
Properties
-
buildExtensions
→ Map<
String, List< String> > -
Mapping from input file extension to output file extensions.
no setter
- grpcEnabled → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- options → BuilderOptions
-
final
- outputDirectory → String
-
final
- precompileProtocPlugin → bool
-
final
- protobufVersion → String
-
final
- protocPluginVersion → String
-
final
-
protoPaths
→ List<
String> -
final
- rootDirectory → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- useInstalledProtoc → bool
-
final
Methods
-
build(
BuildStep buildStep) → Future< void> -
Generates the outputs for a given
BuildStep
. -
collectProtocArguments(
File protocPlugin, String pluginParameters, String inputPath) → List< String> - Collect all arguments to be added to the "protoc" call. This method has been explicitly extracted so it can be easily overridden in unit tests, where we may need to exert some extra control.
-
loadOutputFile(
AssetId out) → File - Load the output file. This method has been explicitly extracted so it can be easily overridden in unit tests, where we may need to exert some extra control.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- defaultGrpcEnabled → const bool
- defaultOutputDirectory → const String
- defaultPrecompileProtocPlugin → const bool
- defaultProtocPluginVersion → const String
- defaultProtocVersion → const String
-
defaultProtoPaths
→ const List<
String> - defaultRootDirectory → const String
- defaultUseInstalledProtoc → const bool