@NotThreadSafe public static final class KotlinLibraryDescriptionArg.Builder extends Object
KotlinLibraryDescriptionArg
.
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.
public final KotlinLibraryDescriptionArg.Builder from(HasDeclaredDeps instance)
com.facebook.buck.core.description.arg.HasDeclaredDeps
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder from(HasProvidedDeps instance)
com.facebook.buck.core.description.arg.HasProvidedDeps
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder from(JavaLibraryDescription.CoreArg instance)
com.facebook.buck.jvm.java.JavaLibraryDescription.CoreArg
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder from(HasTests instance)
com.facebook.buck.core.description.arg.HasTests
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder from(JvmLibraryArg instance)
com.facebook.buck.jvm.java.JvmLibraryArg
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder from(BuildRuleArg instance)
com.facebook.buck.core.description.arg.BuildRuleArg
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder from(HasSrcs instance)
com.facebook.buck.core.description.arg.HasSrcs
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder from(ConstructorArg instance)
com.facebook.buck.core.description.arg.ConstructorArg
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder from(KotlinLibraryDescription.CoreArg instance)
com.facebook.buck.jvm.kotlin.KotlinLibraryDescription.CoreArg
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder from(MaybeRequiredForSourceOnlyAbiArg instance)
com.facebook.buck.jvm.java.MaybeRequiredForSourceOnlyAbiArg
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder from(KotlinLibraryDescriptionArg instance)
KotlinLibraryDescriptionArg
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder from(com.facebook.buck.jvm.kotlin.KotlinLibraryDescription.AbstractKotlinLibraryDescriptionArg instance)
AbstractKotlinLibraryDescriptionArg
instance into builder.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addFreeCompilerArgs(String element)
freeCompilerArgs
list.element
- A freeCompilerArgs elementthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addFreeCompilerArgs(String... elements)
freeCompilerArgs
list.elements
- An array of freeCompilerArgs elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder setFreeCompilerArgs(Iterable<String> elements)
freeCompilerArgs
list.elements
- An iterable of freeCompilerArgs elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addAllFreeCompilerArgs(Iterable<String> elements)
freeCompilerArgs
list.elements
- An iterable of freeCompilerArgs elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder setAllWarningsAsErrors(boolean allWarningsAsErrors)
allWarningsAsErrors
attribute.
If not set, this attribute will have a default value as returned by the initializer of allWarningsAsErrors
.
allWarningsAsErrors
- The value for allWarningsAsErrorsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder setSuppressWarnings(boolean suppressWarnings)
suppressWarnings
attribute.
If not set, this attribute will have a default value as returned by the initializer of suppressWarnings
.
suppressWarnings
- The value for suppressWarningsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder setVerbose(boolean verbose)
verbose
attribute.
If not set, this attribute will have a default value as returned by the initializer of verbose
.
verbose
- The value for verbosethis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder setIncludeRuntime(boolean includeRuntime)
includeRuntime
attribute.
If not set, this attribute will have a default value as returned by the initializer of includeRuntime
.
includeRuntime
- The value for includeRuntimethis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder setJvmTarget(String jvmTarget)
jvmTarget
attribute.
If not set, this attribute will have a default value as returned by the initializer of jvmTarget
.
jvmTarget
- The value for jvmTargetthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder setJdkHome(String jdkHome)
jdkHome
to jdkHome.jdkHome
- The value for jdkHomethis
builder for chained invocationpublic final KotlinLibraryDescriptionArg.Builder setJdkHome(Optional<String> jdkHome)
jdkHome
to jdkHome.jdkHome
- The value for jdkHomethis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder setNoJdk(boolean noJdk)
noJdk
attribute.
If not set, this attribute will have a default value as returned by the initializer of noJdk
.
noJdk
- The value for noJdkthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder setNoStdlib(boolean noStdlib)
noStdlib
attribute.
If not set, this attribute will have a default value as returned by the initializer of noStdlib
.
noStdlib
- The value for noStdlibthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder setNoReflect(boolean noReflect)
noReflect
attribute.
If not set, this attribute will have a default value as returned by the initializer of noReflect
.
noReflect
- The value for noReflectthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder setJavaParameters(boolean javaParameters)
javaParameters
attribute.
If not set, this attribute will have a default value as returned by the initializer of javaParameters
.
javaParameters
- The value for javaParametersthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder setApiVersion(String apiVersion)
apiVersion
to apiVersion.apiVersion
- The value for apiVersionthis
builder for chained invocationpublic final KotlinLibraryDescriptionArg.Builder setApiVersion(Optional<String> apiVersion)
apiVersion
to apiVersion.apiVersion
- The value for apiVersionthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder setLanguageVersion(String languageVersion)
languageVersion
to languageVersion.languageVersion
- The value for languageVersionthis
builder for chained invocationpublic final KotlinLibraryDescriptionArg.Builder setLanguageVersion(Optional<String> languageVersion)
languageVersion
to languageVersion.languageVersion
- The value for languageVersionthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder setAnnotationProcessingTool(KotlinLibraryDescription.AnnotationProcessingTool annotationProcessingTool)
annotationProcessingTool
to annotationProcessingTool.annotationProcessingTool
- The value for annotationProcessingToolthis
builder for chained invocationpublic final KotlinLibraryDescriptionArg.Builder setAnnotationProcessingTool(Optional<? extends KotlinLibraryDescription.AnnotationProcessingTool> annotationProcessingTool)
annotationProcessingTool
to annotationProcessingTool.annotationProcessingTool
- The value for annotationProcessingToolthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addFriendPaths(BuildTarget element)
friendPaths
sortedSet.element
- A friendPaths elementthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addFriendPaths(BuildTarget... elements)
friendPaths
sortedSet.elements
- An array of friendPaths elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder setFriendPaths(Iterable<? extends BuildTarget> elements)
friendPaths
sortedSet.elements
- An iterable of friendPaths elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addAllFriendPaths(Iterable<? extends BuildTarget> elements)
friendPaths
sortedSet.elements
- An iterable of friendPaths elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder putKaptApOptions(String key, String value)
kaptApOptions
map.key
- The key in the kaptApOptions mapvalue
- The associated value in the kaptApOptions mapthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder putKaptApOptions(Map.Entry<String,? extends String> entry)
kaptApOptions
map. Nulls are not permittedentry
- The key and value entrythis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder setKaptApOptions(Map<String,? extends String> entries)
kaptApOptions
map. Nulls are not permittedentries
- The entries that will be added to the kaptApOptions mapthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder putAllKaptApOptions(Map<String,? extends String> entries)
kaptApOptions
map. Nulls are not permittedentries
- The entries that will be added to the kaptApOptions mapthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addKotlincPlugins(SourcePath element)
kotlincPlugins
list.element
- A kotlincPlugins elementthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addKotlincPlugins(SourcePath... elements)
kotlincPlugins
list.elements
- An array of kotlincPlugins elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder setKotlincPlugins(Iterable<? extends SourcePath> elements)
kotlincPlugins
list.elements
- An iterable of kotlincPlugins elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addAllKotlincPlugins(Iterable<? extends SourcePath> elements)
kotlincPlugins
list.elements
- An iterable of kotlincPlugins elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addResources(SourcePath element)
resources
sortedSet.element
- A resources elementthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addResources(SourcePath... elements)
resources
sortedSet.elements
- An array of resources elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder setResources(Iterable<? extends SourcePath> elements)
resources
sortedSet.elements
- An iterable of resources elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addAllResources(Iterable<? extends SourcePath> elements)
resources
sortedSet.elements
- An iterable of resources elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder setProguardConfig(SourcePath proguardConfig)
proguardConfig
to proguardConfig.proguardConfig
- The value for proguardConfigthis
builder for chained invocationpublic final KotlinLibraryDescriptionArg.Builder setProguardConfig(Optional<? extends SourcePath> proguardConfig)
proguardConfig
to proguardConfig.proguardConfig
- The value for proguardConfigthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addPostprocessClassesCommands(String element)
postprocessClassesCommands
list.element
- A postprocessClassesCommands elementthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addPostprocessClassesCommands(String... elements)
postprocessClassesCommands
list.elements
- An array of postprocessClassesCommands elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder setPostprocessClassesCommands(Iterable<String> elements)
postprocessClassesCommands
list.elements
- An iterable of postprocessClassesCommands elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addAllPostprocessClassesCommands(Iterable<String> elements)
postprocessClassesCommands
list.elements
- An iterable of postprocessClassesCommands elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder setResourcesRoot(Path resourcesRoot)
resourcesRoot
to resourcesRoot.resourcesRoot
- The value for resourcesRootthis
builder for chained invocationpublic final KotlinLibraryDescriptionArg.Builder setResourcesRoot(Optional<? extends Path> resourcesRoot)
resourcesRoot
to resourcesRoot.resourcesRoot
- The value for resourcesRootthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder setUnbundledResourcesRoot(SourcePath unbundledResourcesRoot)
unbundledResourcesRoot
to unbundledResourcesRoot.unbundledResourcesRoot
- The value for unbundledResourcesRootthis
builder for chained invocationpublic final KotlinLibraryDescriptionArg.Builder setUnbundledResourcesRoot(Optional<? extends SourcePath> unbundledResourcesRoot)
unbundledResourcesRoot
to unbundledResourcesRoot.unbundledResourcesRoot
- The value for unbundledResourcesRootthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder setManifestFile(SourcePath manifestFile)
manifestFile
to manifestFile.manifestFile
- The value for manifestFilethis
builder for chained invocationpublic final KotlinLibraryDescriptionArg.Builder setManifestFile(Optional<? extends SourcePath> manifestFile)
manifestFile
to manifestFile.manifestFile
- The value for manifestFilethis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder setMavenCoords(String mavenCoords)
mavenCoords
to mavenCoords.mavenCoords
- The value for mavenCoordsthis
builder for chained invocationpublic final KotlinLibraryDescriptionArg.Builder setMavenCoords(Optional<String> mavenCoords)
mavenCoords
to mavenCoords.mavenCoords
- The value for mavenCoordsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder setMavenPomTemplate(SourcePath mavenPomTemplate)
mavenPomTemplate
to mavenPomTemplate.mavenPomTemplate
- The value for mavenPomTemplatethis
builder for chained invocationpublic final KotlinLibraryDescriptionArg.Builder setMavenPomTemplate(Optional<? extends SourcePath> mavenPomTemplate)
mavenPomTemplate
to mavenPomTemplate.mavenPomTemplate
- The value for mavenPomTemplatethis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addExportedDeps(BuildTarget element)
exportedDeps
sortedSet.element
- A exportedDeps elementthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addExportedDeps(BuildTarget... elements)
exportedDeps
sortedSet.elements
- An array of exportedDeps elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder setExportedDeps(Iterable<? extends BuildTarget> elements)
exportedDeps
sortedSet.elements
- An iterable of exportedDeps elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addAllExportedDeps(Iterable<? extends BuildTarget> elements)
exportedDeps
sortedSet.elements
- An iterable of exportedDeps elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addSourceOnlyAbiDeps(BuildTarget element)
sourceOnlyAbiDeps
sortedSet.element
- A sourceOnlyAbiDeps elementthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addSourceOnlyAbiDeps(BuildTarget... elements)
sourceOnlyAbiDeps
sortedSet.elements
- An array of sourceOnlyAbiDeps elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder setSourceOnlyAbiDeps(Iterable<? extends BuildTarget> elements)
sourceOnlyAbiDeps
sortedSet.elements
- An iterable of sourceOnlyAbiDeps elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addAllSourceOnlyAbiDeps(Iterable<? extends BuildTarget> elements)
sourceOnlyAbiDeps
sortedSet.elements
- An iterable of sourceOnlyAbiDeps elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addRuntimeDeps(BuildTarget element)
runtimeDeps
sortedSet.element
- A runtimeDeps elementthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addRuntimeDeps(BuildTarget... elements)
runtimeDeps
sortedSet.elements
- An array of runtimeDeps elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder setRuntimeDeps(Iterable<? extends BuildTarget> elements)
runtimeDeps
sortedSet.elements
- An iterable of runtimeDeps elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addAllRuntimeDeps(Iterable<? extends BuildTarget> elements)
runtimeDeps
sortedSet.elements
- An iterable of runtimeDeps elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder setSource(String source)
source
to source.source
- The value for sourcethis
builder for chained invocationpublic final KotlinLibraryDescriptionArg.Builder setSource(Optional<String> source)
source
to source.source
- The value for sourcethis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder setTarget(String target)
target
to target.target
- The value for targetthis
builder for chained invocationpublic final KotlinLibraryDescriptionArg.Builder setTarget(Optional<String> target)
target
to target.target
- The value for targetthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder setJavaVersion(String javaVersion)
javaVersion
to javaVersion.javaVersion
- The value for javaVersionthis
builder for chained invocationpublic final KotlinLibraryDescriptionArg.Builder setJavaVersion(Optional<String> javaVersion)
javaVersion
to javaVersion.javaVersion
- The value for javaVersionthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder setJavac(SourcePath javac)
javac
to javac.javac
- The value for javacthis
builder for chained invocationpublic final KotlinLibraryDescriptionArg.Builder setJavac(Optional<? extends SourcePath> javac)
javac
to javac.javac
- The value for javacthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder setJavacJar(SourcePath javacJar)
javacJar
to javacJar.javacJar
- The value for javacJarthis
builder for chained invocationpublic final KotlinLibraryDescriptionArg.Builder setJavacJar(Optional<? extends SourcePath> javacJar)
javacJar
to javacJar.javacJar
- The value for javacJarthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder setCompilerClassName(String compilerClassName)
compilerClassName
to compilerClassName.compilerClassName
- The value for compilerClassNamethis
builder for chained invocationpublic final KotlinLibraryDescriptionArg.Builder setCompilerClassName(Optional<String> compilerClassName)
compilerClassName
to compilerClassName.compilerClassName
- The value for compilerClassNamethis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder setCompiler(Either<BuiltInJavac,SourcePath> compiler)
compiler
to compiler.compiler
- The value for compilerthis
builder for chained invocationpublic final KotlinLibraryDescriptionArg.Builder setCompiler(Optional<? extends Either<BuiltInJavac,SourcePath>> compiler)
compiler
to compiler.compiler
- The value for compilerthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addExtraArguments(String element)
extraArguments
list.element
- A extraArguments elementthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addExtraArguments(String... elements)
extraArguments
list.elements
- An array of extraArguments elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder setExtraArguments(Iterable<String> elements)
extraArguments
list.elements
- An iterable of extraArguments elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addAllExtraArguments(Iterable<String> elements)
extraArguments
list.elements
- An iterable of extraArguments elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addRemoveClasses(Pattern element)
removeClasses
set.element
- A removeClasses elementthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addRemoveClasses(Pattern... elements)
removeClasses
set.elements
- An array of removeClasses elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder setRemoveClasses(Iterable<? extends Pattern> elements)
removeClasses
set.elements
- An iterable of removeClasses elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addAllRemoveClasses(Iterable<? extends Pattern> elements)
removeClasses
set.elements
- An iterable of removeClasses elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addAnnotationProcessorDeps(BuildTarget element)
annotationProcessorDeps
sortedSet.element
- A annotationProcessorDeps elementthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addAnnotationProcessorDeps(BuildTarget... elements)
annotationProcessorDeps
sortedSet.elements
- An array of annotationProcessorDeps elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder setAnnotationProcessorDeps(Iterable<? extends BuildTarget> elements)
annotationProcessorDeps
sortedSet.elements
- An iterable of annotationProcessorDeps elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addAllAnnotationProcessorDeps(Iterable<? extends BuildTarget> elements)
annotationProcessorDeps
sortedSet.elements
- An iterable of annotationProcessorDeps elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addAnnotationProcessorParams(String element)
annotationProcessorParams
list.element
- A annotationProcessorParams elementthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addAnnotationProcessorParams(String... elements)
annotationProcessorParams
list.elements
- An array of annotationProcessorParams elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder setAnnotationProcessorParams(Iterable<String> elements)
annotationProcessorParams
list.elements
- An iterable of annotationProcessorParams elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addAllAnnotationProcessorParams(Iterable<String> elements)
annotationProcessorParams
list.elements
- An iterable of annotationProcessorParams elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addJavaPluginParams(String element)
javaPluginParams
list.element
- A javaPluginParams elementthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addJavaPluginParams(String... elements)
javaPluginParams
list.elements
- An array of javaPluginParams elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder setJavaPluginParams(Iterable<String> elements)
javaPluginParams
list.elements
- An iterable of javaPluginParams elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addAllJavaPluginParams(Iterable<String> elements)
javaPluginParams
list.elements
- An iterable of javaPluginParams elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addAnnotationProcessors(String element)
annotationProcessors
set.element
- A annotationProcessors elementthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addAnnotationProcessors(String... elements)
annotationProcessors
set.elements
- An array of annotationProcessors elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder setAnnotationProcessors(Iterable<String> elements)
annotationProcessors
set.elements
- An iterable of annotationProcessors elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addAllAnnotationProcessors(Iterable<String> elements)
annotationProcessors
set.elements
- An iterable of annotationProcessors elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder setAnnotationProcessorOnly(boolean annotationProcessorOnly)
annotationProcessorOnly
to annotationProcessorOnly.annotationProcessorOnly
- The value for annotationProcessorOnlythis
builder for chained invocationpublic final KotlinLibraryDescriptionArg.Builder setAnnotationProcessorOnly(Optional<Boolean> annotationProcessorOnly)
annotationProcessorOnly
to annotationProcessorOnly.annotationProcessorOnly
- The value for annotationProcessorOnlythis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addPlugins(BuildTarget element)
plugins
list.element
- A plugins elementthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addPlugins(BuildTarget... elements)
plugins
list.elements
- An array of plugins elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder setPlugins(Iterable<? extends BuildTarget> elements)
plugins
list.elements
- An iterable of plugins elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addAllPlugins(Iterable<? extends BuildTarget> elements)
plugins
list.elements
- An iterable of plugins elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder setAbiGenerationMode(AbiGenerationMode abiGenerationMode)
abiGenerationMode
to abiGenerationMode.abiGenerationMode
- The value for abiGenerationModethis
builder for chained invocationpublic final KotlinLibraryDescriptionArg.Builder setAbiGenerationMode(Optional<? extends AbiGenerationMode> abiGenerationMode)
abiGenerationMode
to abiGenerationMode.abiGenerationMode
- The value for abiGenerationModethis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder setCompileAgainst(CompileAgainstLibraryType compileAgainst)
compileAgainst
to compileAgainst.compileAgainst
- The value for compileAgainstthis
builder for chained invocationpublic final KotlinLibraryDescriptionArg.Builder setCompileAgainst(Optional<? extends CompileAgainstLibraryType> compileAgainst)
compileAgainst
to compileAgainst.compileAgainst
- The value for compileAgainstthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder setSourceAbiVerificationMode(JavaBuckConfig.SourceAbiVerificationMode sourceAbiVerificationMode)
sourceAbiVerificationMode
to sourceAbiVerificationMode.sourceAbiVerificationMode
- The value for sourceAbiVerificationModethis
builder for chained invocationpublic final KotlinLibraryDescriptionArg.Builder setSourceAbiVerificationMode(Optional<? extends JavaBuckConfig.SourceAbiVerificationMode> sourceAbiVerificationMode)
sourceAbiVerificationMode
to sourceAbiVerificationMode.sourceAbiVerificationMode
- The value for sourceAbiVerificationModethis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder setOnUnusedDependencies(JavaBuckConfig.UnusedDependenciesAction onUnusedDependencies)
onUnusedDependencies
to onUnusedDependencies.onUnusedDependencies
- The value for onUnusedDependenciesthis
builder for chained invocationpublic final KotlinLibraryDescriptionArg.Builder setOnUnusedDependencies(Optional<? extends JavaBuckConfig.UnusedDependenciesAction> onUnusedDependencies)
onUnusedDependencies
to onUnusedDependencies.onUnusedDependencies
- The value for onUnusedDependenciesthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder setNeverMarkAsUnusedDependency(boolean neverMarkAsUnusedDependency)
neverMarkAsUnusedDependency
to neverMarkAsUnusedDependency.neverMarkAsUnusedDependency
- The value for neverMarkAsUnusedDependencythis
builder for chained invocationpublic final KotlinLibraryDescriptionArg.Builder setNeverMarkAsUnusedDependency(Optional<Boolean> neverMarkAsUnusedDependency)
neverMarkAsUnusedDependency
to neverMarkAsUnusedDependency.neverMarkAsUnusedDependency
- The value for neverMarkAsUnusedDependencythis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addLicenses(SourcePath element)
licenses
set.element
- A licenses elementthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addLicenses(SourcePath... elements)
licenses
set.elements
- An array of licenses elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder setLicenses(Iterable<? extends SourcePath> elements)
licenses
set.elements
- An iterable of licenses elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addAllLicenses(Iterable<? extends SourcePath> elements)
licenses
set.elements
- An iterable of licenses elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addLabels(String element)
labels
sortedSet.element
- A labels elementthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addLabels(String... elements)
labels
sortedSet.elements
- An array of labels elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder setLabels(Iterable<String> elements)
labels
sortedSet.elements
- An iterable of labels elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addAllLabels(Iterable<String> elements)
labels
sortedSet.elements
- An iterable of labels elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder setDefaultTargetPlatform(UnconfiguredBuildTarget defaultTargetPlatform)
defaultTargetPlatform
to defaultTargetPlatform.defaultTargetPlatform
- The value for defaultTargetPlatformthis
builder for chained invocationpublic final KotlinLibraryDescriptionArg.Builder setDefaultTargetPlatform(Optional<? extends UnconfiguredBuildTarget> defaultTargetPlatform)
defaultTargetPlatform
to defaultTargetPlatform.defaultTargetPlatform
- The value for defaultTargetPlatformthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget element)
compatibleWith
list.element
- A compatibleWith elementthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget... elements)
compatibleWith
list.elements
- An array of compatibleWith elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder setCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
compatibleWith
list.elements
- An iterable of compatibleWith elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addAllCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
compatibleWith
list.elements
- An iterable of compatibleWith elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder setName(String name)
name
attribute.name
- The value for namethis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder setRequiredForSourceOnlyAbi(boolean requiredForSourceOnlyAbi)
requiredForSourceOnlyAbi
attribute.
If not set, this attribute will have a default value as returned by the initializer of requiredForSourceOnlyAbi
.
requiredForSourceOnlyAbi
- The value for requiredForSourceOnlyAbithis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addDeps(BuildTarget element)
deps
sortedSet.element
- A deps elementthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addDeps(BuildTarget... elements)
deps
sortedSet.elements
- An array of deps elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder setDeps(Iterable<? extends BuildTarget> elements)
deps
sortedSet.elements
- An iterable of deps elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addAllDeps(Iterable<? extends BuildTarget> elements)
deps
sortedSet.elements
- An iterable of deps elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addProvidedDeps(BuildTarget element)
providedDeps
sortedSet.element
- A providedDeps elementthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addProvidedDeps(BuildTarget... elements)
providedDeps
sortedSet.elements
- An array of providedDeps elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder setProvidedDeps(Iterable<? extends BuildTarget> elements)
providedDeps
sortedSet.elements
- An iterable of providedDeps elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addAllProvidedDeps(Iterable<? extends BuildTarget> elements)
providedDeps
sortedSet.elements
- An iterable of providedDeps elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addExportedProvidedDeps(BuildTarget element)
exportedProvidedDeps
sortedSet.element
- A exportedProvidedDeps elementthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addExportedProvidedDeps(BuildTarget... elements)
exportedProvidedDeps
sortedSet.elements
- An array of exportedProvidedDeps elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder setExportedProvidedDeps(Iterable<? extends BuildTarget> elements)
exportedProvidedDeps
sortedSet.elements
- An iterable of exportedProvidedDeps elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addAllExportedProvidedDeps(Iterable<? extends BuildTarget> elements)
exportedProvidedDeps
sortedSet.elements
- An iterable of exportedProvidedDeps elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addSrcs(SourcePath element)
srcs
sortedSet.element
- A srcs elementthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addSrcs(SourcePath... elements)
srcs
sortedSet.elements
- An array of srcs elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder setSrcs(Iterable<? extends SourcePath> elements)
srcs
sortedSet.elements
- An iterable of srcs elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addAllSrcs(Iterable<? extends SourcePath> elements)
srcs
sortedSet.elements
- An iterable of srcs elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addTests(BuildTarget element)
tests
sortedSet.element
- A tests elementthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addTests(BuildTarget... elements)
tests
sortedSet.elements
- An array of tests elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder setTests(Iterable<? extends BuildTarget> elements)
tests
sortedSet.elements
- An iterable of tests elementsthis
builder for use in a chained invocationpublic final KotlinLibraryDescriptionArg.Builder addAllTests(Iterable<? extends BuildTarget> elements)
tests
sortedSet.elements
- An iterable of tests elementsthis
builder for use in a chained invocationpublic KotlinLibraryDescriptionArg build()
KotlinLibraryDescriptionArg
.IllegalStateException
- if any required attributes are missing