Class ImmutableFilesToCompile.Builder
java.lang.Object
io.github.ascopes.protobufmavenplugin.sources.ImmutableFilesToCompile.Builder
- Enclosing class:
ImmutableFilesToCompile
@Generated(from="FilesToCompile",
generator="Immutables")
public static final class ImmutableFilesToCompile.Builder
extends Object
Builds instances of type
ImmutableFilesToCompile.
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 newImmutableFilesToCompile.descriptorFiles(Collection<String> descriptorFiles) Initializes the value for thedescriptorFilesattribute.from(FilesToCompile instance) Fill a builder with attribute values from the providedFilesToCompileinstance.protoSources(Collection<Path> protoSources) Initializes the value for theprotoSourcesattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedFilesToCompileinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
protoSources
Initializes the value for theprotoSourcesattribute.- Parameters:
protoSources- The value for protoSources (can benull)- Returns:
thisbuilder for use in a chained invocation
-
descriptorFiles
Initializes the value for thedescriptorFilesattribute.- Parameters:
descriptorFiles- The value for descriptorFiles (can benull)- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableFilesToCompile.- Returns:
- An immutable instance of FilesToCompile
- Throws:
IllegalStateException- if any required attributes are missing
-