Class ImmutablePathProtocPlugin.Builder
java.lang.Object
io.github.ascopes.protobufmavenplugin.plugins.distributions.ImmutablePathProtocPlugin.Builder
- Enclosing class:
ImmutablePathProtocPlugin
@Generated(from="PathProtocPlugin",
generator="Immutables")
public static final class ImmutablePathProtocPlugin.Builder
extends Object
Builds instances of type
ImmutablePathProtocPlugin.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newImmutablePathProtocPlugin.Initializes the value for thedigestattribute.from(PathProtocPlugin instance) Fill a builder with attribute values from the providedio.github.ascopes.protobufmavenplugin.plugins.distributions.PathProtocPlugininstance.from(ProtocPlugin instance) Fill a builder with attribute values from the providedio.github.ascopes.protobufmavenplugin.plugins.distributions.ProtocPlugininstance.Initializes the value for thenameattribute.optional(boolean optional) Initializes the value for theoptionalattribute.Initializes the value for theoptionsattribute.order(int order) Initializes the value for theorderattribute.outputDirectory(@Nullable Path outputDirectory) Initializes the value for theoutputDirectoryattribute.registerAsCompilationRoot(@Nullable Boolean registerAsCompilationRoot) Initializes the value for theregisterAsCompilationRootattribute.skip(boolean skip) Initializes the value for theskipattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedio.github.ascopes.protobufmavenplugin.plugins.distributions.PathProtocPlugininstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedio.github.ascopes.protobufmavenplugin.plugins.distributions.ProtocPlugininstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
options
Initializes the value for theoptionsattribute.- Parameters:
options- The value for options (can benull)- Returns:
thisbuilder for use in a chained invocation
-
outputDirectory
Initializes the value for theoutputDirectoryattribute.- Parameters:
outputDirectory- The value for outputDirectory (can benull)- Returns:
thisbuilder for use in a chained invocation
-
registerAsCompilationRoot
public final ImmutablePathProtocPlugin.Builder registerAsCompilationRoot(@Nullable Boolean registerAsCompilationRoot) Initializes the value for theregisterAsCompilationRootattribute.- Parameters:
registerAsCompilationRoot- The value for registerAsCompilationRoot (can benull)- Returns:
thisbuilder for use in a chained invocation
-
order
-
skip
-
name
Initializes the value for thenameattribute.- Parameters:
name- The value for name (can benull)- Returns:
thisbuilder for use in a chained invocation
-
digest
Initializes the value for thedigestattribute.- Parameters:
digest- The value for digest (can benull)- Returns:
thisbuilder for use in a chained invocation
-
optional
-
build
Builds a newImmutablePathProtocPlugin.- Returns:
- An immutable instance of PathProtocPlugin
- Throws:
IllegalStateException- if any required attributes are missing
-