Class ImmutableLanguageProtocTarget.Builder
java.lang.Object
io.github.ascopes.protobufmavenplugin.protoc.targets.ImmutableLanguageProtocTarget.Builder
- Enclosing class:
ImmutableLanguageProtocTarget
@Generated(from="LanguageProtocTarget",
generator="Immutables")
public static final class ImmutableLanguageProtocTarget.Builder
extends Object
Builds instances of type
ImmutableLanguageProtocTarget.
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 newImmutableLanguageProtocTarget.from(LanguageProtocTarget instance) Fill a builder with attribute values from the providedio.github.ascopes.protobufmavenplugin.protoc.targets.LanguageProtocTargetinstance.from(ProtocTarget instance) Fill a builder with attribute values from the providedio.github.ascopes.protobufmavenplugin.protoc.targets.ProtocTargetinstance.Initializes the value for thelanguageattribute.lite(boolean lite) Initializes the value for theliteattribute.order(int order) Initializes the value for theorderattribute.outputPath(Path outputPath) Initializes the value for theoutputPathattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedio.github.ascopes.protobufmavenplugin.protoc.targets.ProtocTargetinstance.- 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.protoc.targets.LanguageProtocTargetinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
order
-
language
Initializes the value for thelanguageattribute.- Parameters:
language- The value for language (can benull)- Returns:
thisbuilder for use in a chained invocation
-
outputPath
Initializes the value for theoutputPathattribute.- Parameters:
outputPath- The value for outputPath (can benull)- Returns:
thisbuilder for use in a chained invocation
-
lite
Initializes the value for theliteattribute.- Parameters:
lite- The value for lite- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableLanguageProtocTarget.- Returns:
- An immutable instance of LanguageProtocTarget
- Throws:
IllegalStateException- if any required attributes are missing
-