Class AndroidLibraryDescriptionArg.Builder
- java.lang.Object
-
- com.facebook.buck.android.AndroidLibraryDescriptionArg.Builder
-
- Enclosing class:
- AndroidLibraryDescriptionArg
@NotThreadSafe public static final class AndroidLibraryDescriptionArg.Builder extends Object
Builds instances of typeAndroidLibraryDescriptionArg
. Initialize attributes and then invoke thebuild()
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
-
-
-
Method Detail
-
from
public final AndroidLibraryDescriptionArg.Builder from(AndroidLibraryDescription.CoreArg instance)
Fill a builder with attribute values from the providedcom.facebook.buck.android.AndroidLibraryDescription.CoreArg
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
from
public final AndroidLibraryDescriptionArg.Builder from(HasDeclaredDeps instance)
Fill a builder with attribute values from the providedcom.facebook.buck.core.description.arg.HasDeclaredDeps
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
from
public final AndroidLibraryDescriptionArg.Builder from(HasDepsQuery instance)
Fill a builder with attribute values from the providedcom.facebook.buck.core.description.arg.HasDepsQuery
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
from
public final AndroidLibraryDescriptionArg.Builder from(AndroidKotlinCoreArg instance)
Fill a builder with attribute values from the providedcom.facebook.buck.android.AndroidKotlinCoreArg
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
from
public final AndroidLibraryDescriptionArg.Builder from(HasSrcs instance)
Fill a builder with attribute values from the providedcom.facebook.buck.core.description.arg.HasSrcs
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
from
public final AndroidLibraryDescriptionArg.Builder from(ConstructorArg instance)
Fill a builder with attribute values from the providedcom.facebook.buck.core.description.arg.ConstructorArg
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
from
public final AndroidLibraryDescriptionArg.Builder from(MaybeRequiredForSourceOnlyAbiArg instance)
Fill a builder with attribute values from the providedcom.facebook.buck.jvm.java.MaybeRequiredForSourceOnlyAbiArg
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
from
public final AndroidLibraryDescriptionArg.Builder from(HasProvidedDeps instance)
Fill a builder with attribute values from the providedcom.facebook.buck.core.description.arg.HasProvidedDeps
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
from
public final AndroidLibraryDescriptionArg.Builder from(JavaLibraryDescription.CoreArg instance)
Fill a builder with attribute values from the providedcom.facebook.buck.jvm.java.JavaLibraryDescription.CoreArg
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
from
public final AndroidLibraryDescriptionArg.Builder from(HasProvidedDepsQuery instance)
Fill a builder with attribute values from the providedcom.facebook.buck.core.description.arg.HasProvidedDepsQuery
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
from
public final AndroidLibraryDescriptionArg.Builder from(HasTests instance)
Fill a builder with attribute values from the providedcom.facebook.buck.core.description.arg.HasTests
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
from
public final AndroidLibraryDescriptionArg.Builder from(JvmLibraryArg instance)
Fill a builder with attribute values from the providedcom.facebook.buck.jvm.java.JvmLibraryArg
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
from
public final AndroidLibraryDescriptionArg.Builder from(BuildRuleArg instance)
Fill a builder with attribute values from the providedcom.facebook.buck.core.description.arg.BuildRuleArg
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
from
public final AndroidLibraryDescriptionArg.Builder from(KotlinLibraryDescription.CoreArg instance)
Fill a builder with attribute values from the providedcom.facebook.buck.jvm.kotlin.KotlinLibraryDescription.CoreArg
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
from
public final AndroidLibraryDescriptionArg.Builder from(AndroidLibraryDescriptionArg instance)
Fill a builder with attribute values from the providedAndroidLibraryDescriptionArg
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
from
public final AndroidLibraryDescriptionArg.Builder from(com.facebook.buck.android.AndroidLibraryDescription.AbstractAndroidLibraryDescriptionArg instance)
Copy abstract value typeAbstractAndroidLibraryDescriptionArg
instance into builder.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
setManifest
public final AndroidLibraryDescriptionArg.Builder setManifest(SourcePath manifest)
Initializes the optional valuemanifest
to manifest.- Parameters:
manifest
- The value for manifest- Returns:
this
builder for chained invocation
-
setManifest
public final AndroidLibraryDescriptionArg.Builder setManifest(Optional<? extends SourcePath> manifest)
Initializes the optional valuemanifest
to manifest.- Parameters:
manifest
- The value for manifest- Returns:
this
builder for use in a chained invocation
-
setResourceUnionPackage
public final AndroidLibraryDescriptionArg.Builder setResourceUnionPackage(String resourceUnionPackage)
Initializes the optional valueresourceUnionPackage
to resourceUnionPackage.- Parameters:
resourceUnionPackage
- The value for resourceUnionPackage- Returns:
this
builder for chained invocation
-
setResourceUnionPackage
public final AndroidLibraryDescriptionArg.Builder setResourceUnionPackage(Optional<String> resourceUnionPackage)
Initializes the optional valueresourceUnionPackage
to resourceUnionPackage.- Parameters:
resourceUnionPackage
- The value for resourceUnionPackage- Returns:
this
builder for use in a chained invocation
-
setSkipNonUnionRDotJava
public final AndroidLibraryDescriptionArg.Builder setSkipNonUnionRDotJava(boolean skipNonUnionRDotJava)
Initializes the value for theskipNonUnionRDotJava
attribute.If not set, this attribute will have a default value as returned by the initializer of
skipNonUnionRDotJava
.- Parameters:
skipNonUnionRDotJava
- The value for skipNonUnionRDotJava- Returns:
this
builder for use in a chained invocation
-
setFinalRName
public final AndroidLibraryDescriptionArg.Builder setFinalRName(String finalRName)
Initializes the optional valuefinalRName
to finalRName.- Parameters:
finalRName
- The value for finalRName- Returns:
this
builder for chained invocation
-
setFinalRName
public final AndroidLibraryDescriptionArg.Builder setFinalRName(Optional<String> finalRName)
Initializes the optional valuefinalRName
to finalRName.- Parameters:
finalRName
- The value for finalRName- Returns:
this
builder for use in a chained invocation
-
addResources
public final AndroidLibraryDescriptionArg.Builder addResources(SourcePath element)
Adds one element toresources
sortedSet.- Parameters:
element
- A resources element- Returns:
this
builder for use in a chained invocation
-
addResources
public final AndroidLibraryDescriptionArg.Builder addResources(SourcePath... elements)
Adds elements toresources
sortedSet.- Parameters:
elements
- An array of resources elements- Returns:
this
builder for use in a chained invocation
-
setResources
public final AndroidLibraryDescriptionArg.Builder setResources(Iterable<? extends SourcePath> elements)
Sets or replaces all elements forresources
sortedSet.- Parameters:
elements
- An iterable of resources elements- Returns:
this
builder for use in a chained invocation
-
addAllResources
public final AndroidLibraryDescriptionArg.Builder addAllResources(Iterable<? extends SourcePath> elements)
Adds elements toresources
sortedSet.- Parameters:
elements
- An iterable of resources elements- Returns:
this
builder for use in a chained invocation
-
setProguardConfig
public final AndroidLibraryDescriptionArg.Builder setProguardConfig(SourcePath proguardConfig)
Initializes the optional valueproguardConfig
to proguardConfig.- Parameters:
proguardConfig
- The value for proguardConfig- Returns:
this
builder for chained invocation
-
setProguardConfig
public final AndroidLibraryDescriptionArg.Builder setProguardConfig(Optional<? extends SourcePath> proguardConfig)
Initializes the optional valueproguardConfig
to proguardConfig.- Parameters:
proguardConfig
- The value for proguardConfig- Returns:
this
builder for use in a chained invocation
-
addPostprocessClassesCommands
public final AndroidLibraryDescriptionArg.Builder addPostprocessClassesCommands(String element)
Adds one element topostprocessClassesCommands
list.- Parameters:
element
- A postprocessClassesCommands element- Returns:
this
builder for use in a chained invocation
-
addPostprocessClassesCommands
public final AndroidLibraryDescriptionArg.Builder addPostprocessClassesCommands(String... elements)
Adds elements topostprocessClassesCommands
list.- Parameters:
elements
- An array of postprocessClassesCommands elements- Returns:
this
builder for use in a chained invocation
-
setPostprocessClassesCommands
public final AndroidLibraryDescriptionArg.Builder setPostprocessClassesCommands(Iterable<String> elements)
Sets or replaces all elements forpostprocessClassesCommands
list.- Parameters:
elements
- An iterable of postprocessClassesCommands elements- Returns:
this
builder for use in a chained invocation
-
addAllPostprocessClassesCommands
public final AndroidLibraryDescriptionArg.Builder addAllPostprocessClassesCommands(Iterable<String> elements)
Adds elements topostprocessClassesCommands
list.- Parameters:
elements
- An iterable of postprocessClassesCommands elements- Returns:
this
builder for use in a chained invocation
-
setResourcesRoot
public final AndroidLibraryDescriptionArg.Builder setResourcesRoot(Path resourcesRoot)
Initializes the optional valueresourcesRoot
to resourcesRoot.- Parameters:
resourcesRoot
- The value for resourcesRoot- Returns:
this
builder for chained invocation
-
setResourcesRoot
public final AndroidLibraryDescriptionArg.Builder setResourcesRoot(Optional<? extends Path> resourcesRoot)
Initializes the optional valueresourcesRoot
to resourcesRoot.- Parameters:
resourcesRoot
- The value for resourcesRoot- Returns:
this
builder for use in a chained invocation
-
setUnbundledResourcesRoot
public final AndroidLibraryDescriptionArg.Builder setUnbundledResourcesRoot(SourcePath unbundledResourcesRoot)
Initializes the optional valueunbundledResourcesRoot
to unbundledResourcesRoot.- Parameters:
unbundledResourcesRoot
- The value for unbundledResourcesRoot- Returns:
this
builder for chained invocation
-
setUnbundledResourcesRoot
public final AndroidLibraryDescriptionArg.Builder setUnbundledResourcesRoot(Optional<? extends SourcePath> unbundledResourcesRoot)
Initializes the optional valueunbundledResourcesRoot
to unbundledResourcesRoot.- Parameters:
unbundledResourcesRoot
- The value for unbundledResourcesRoot- Returns:
this
builder for use in a chained invocation
-
setManifestFile
public final AndroidLibraryDescriptionArg.Builder setManifestFile(SourcePath manifestFile)
Initializes the optional valuemanifestFile
to manifestFile.- Parameters:
manifestFile
- The value for manifestFile- Returns:
this
builder for chained invocation
-
setManifestFile
public final AndroidLibraryDescriptionArg.Builder setManifestFile(Optional<? extends SourcePath> manifestFile)
Initializes the optional valuemanifestFile
to manifestFile.- Parameters:
manifestFile
- The value for manifestFile- Returns:
this
builder for use in a chained invocation
-
setMavenCoords
public final AndroidLibraryDescriptionArg.Builder setMavenCoords(String mavenCoords)
Initializes the optional valuemavenCoords
to mavenCoords.- Parameters:
mavenCoords
- The value for mavenCoords- Returns:
this
builder for chained invocation
-
setMavenCoords
public final AndroidLibraryDescriptionArg.Builder setMavenCoords(Optional<String> mavenCoords)
Initializes the optional valuemavenCoords
to mavenCoords.- Parameters:
mavenCoords
- The value for mavenCoords- Returns:
this
builder for use in a chained invocation
-
setMavenPomTemplate
public final AndroidLibraryDescriptionArg.Builder setMavenPomTemplate(SourcePath mavenPomTemplate)
Initializes the optional valuemavenPomTemplate
to mavenPomTemplate.- Parameters:
mavenPomTemplate
- The value for mavenPomTemplate- Returns:
this
builder for chained invocation
-
setMavenPomTemplate
public final AndroidLibraryDescriptionArg.Builder setMavenPomTemplate(Optional<? extends SourcePath> mavenPomTemplate)
Initializes the optional valuemavenPomTemplate
to mavenPomTemplate.- Parameters:
mavenPomTemplate
- The value for mavenPomTemplate- Returns:
this
builder for use in a chained invocation
-
addExportedDeps
public final AndroidLibraryDescriptionArg.Builder addExportedDeps(BuildTarget element)
Adds one element toexportedDeps
sortedSet.- Parameters:
element
- A exportedDeps element- Returns:
this
builder for use in a chained invocation
-
addExportedDeps
public final AndroidLibraryDescriptionArg.Builder addExportedDeps(BuildTarget... elements)
Adds elements toexportedDeps
sortedSet.- Parameters:
elements
- An array of exportedDeps elements- Returns:
this
builder for use in a chained invocation
-
setExportedDeps
public final AndroidLibraryDescriptionArg.Builder setExportedDeps(Iterable<? extends BuildTarget> elements)
Sets or replaces all elements forexportedDeps
sortedSet.- Parameters:
elements
- An iterable of exportedDeps elements- Returns:
this
builder for use in a chained invocation
-
addAllExportedDeps
public final AndroidLibraryDescriptionArg.Builder addAllExportedDeps(Iterable<? extends BuildTarget> elements)
Adds elements toexportedDeps
sortedSet.- Parameters:
elements
- An iterable of exportedDeps elements- Returns:
this
builder for use in a chained invocation
-
addSourceOnlyAbiDeps
public final AndroidLibraryDescriptionArg.Builder addSourceOnlyAbiDeps(BuildTarget element)
Adds one element tosourceOnlyAbiDeps
sortedSet.- Parameters:
element
- A sourceOnlyAbiDeps element- Returns:
this
builder for use in a chained invocation
-
addSourceOnlyAbiDeps
public final AndroidLibraryDescriptionArg.Builder addSourceOnlyAbiDeps(BuildTarget... elements)
Adds elements tosourceOnlyAbiDeps
sortedSet.- Parameters:
elements
- An array of sourceOnlyAbiDeps elements- Returns:
this
builder for use in a chained invocation
-
setSourceOnlyAbiDeps
public final AndroidLibraryDescriptionArg.Builder setSourceOnlyAbiDeps(Iterable<? extends BuildTarget> elements)
Sets or replaces all elements forsourceOnlyAbiDeps
sortedSet.- Parameters:
elements
- An iterable of sourceOnlyAbiDeps elements- Returns:
this
builder for use in a chained invocation
-
addAllSourceOnlyAbiDeps
public final AndroidLibraryDescriptionArg.Builder addAllSourceOnlyAbiDeps(Iterable<? extends BuildTarget> elements)
Adds elements tosourceOnlyAbiDeps
sortedSet.- Parameters:
elements
- An iterable of sourceOnlyAbiDeps elements- Returns:
this
builder for use in a chained invocation
-
addRuntimeDeps
public final AndroidLibraryDescriptionArg.Builder addRuntimeDeps(BuildTarget element)
Adds one element toruntimeDeps
sortedSet.- Parameters:
element
- A runtimeDeps element- Returns:
this
builder for use in a chained invocation
-
addRuntimeDeps
public final AndroidLibraryDescriptionArg.Builder addRuntimeDeps(BuildTarget... elements)
Adds elements toruntimeDeps
sortedSet.- Parameters:
elements
- An array of runtimeDeps elements- Returns:
this
builder for use in a chained invocation
-
setRuntimeDeps
public final AndroidLibraryDescriptionArg.Builder setRuntimeDeps(Iterable<? extends BuildTarget> elements)
Sets or replaces all elements forruntimeDeps
sortedSet.- Parameters:
elements
- An iterable of runtimeDeps elements- Returns:
this
builder for use in a chained invocation
-
addAllRuntimeDeps
public final AndroidLibraryDescriptionArg.Builder addAllRuntimeDeps(Iterable<? extends BuildTarget> elements)
Adds elements toruntimeDeps
sortedSet.- Parameters:
elements
- An iterable of runtimeDeps elements- Returns:
this
builder for use in a chained invocation
-
setSource
public final AndroidLibraryDescriptionArg.Builder setSource(String source)
Initializes the optional valuesource
to source.- Parameters:
source
- The value for source- Returns:
this
builder for chained invocation
-
setSource
public final AndroidLibraryDescriptionArg.Builder setSource(Optional<String> source)
Initializes the optional valuesource
to source.- Parameters:
source
- The value for source- Returns:
this
builder for use in a chained invocation
-
setTarget
public final AndroidLibraryDescriptionArg.Builder setTarget(String target)
Initializes the optional valuetarget
to target.- Parameters:
target
- The value for target- Returns:
this
builder for chained invocation
-
setTarget
public final AndroidLibraryDescriptionArg.Builder setTarget(Optional<String> target)
Initializes the optional valuetarget
to target.- Parameters:
target
- The value for target- Returns:
this
builder for use in a chained invocation
-
setJavaVersion
public final AndroidLibraryDescriptionArg.Builder setJavaVersion(String javaVersion)
Initializes the optional valuejavaVersion
to javaVersion.- Parameters:
javaVersion
- The value for javaVersion- Returns:
this
builder for chained invocation
-
setJavaVersion
public final AndroidLibraryDescriptionArg.Builder setJavaVersion(Optional<String> javaVersion)
Initializes the optional valuejavaVersion
to javaVersion.- Parameters:
javaVersion
- The value for javaVersion- Returns:
this
builder for use in a chained invocation
-
setJavac
public final AndroidLibraryDescriptionArg.Builder setJavac(SourcePath javac)
Initializes the optional valuejavac
to javac.- Parameters:
javac
- The value for javac- Returns:
this
builder for chained invocation
-
setJavac
public final AndroidLibraryDescriptionArg.Builder setJavac(Optional<? extends SourcePath> javac)
Initializes the optional valuejavac
to javac.- Parameters:
javac
- The value for javac- Returns:
this
builder for use in a chained invocation
-
setJavacJar
public final AndroidLibraryDescriptionArg.Builder setJavacJar(SourcePath javacJar)
Initializes the optional valuejavacJar
to javacJar.- Parameters:
javacJar
- The value for javacJar- Returns:
this
builder for chained invocation
-
setJavacJar
public final AndroidLibraryDescriptionArg.Builder setJavacJar(Optional<? extends SourcePath> javacJar)
Initializes the optional valuejavacJar
to javacJar.- Parameters:
javacJar
- The value for javacJar- Returns:
this
builder for use in a chained invocation
-
setCompilerClassName
public final AndroidLibraryDescriptionArg.Builder setCompilerClassName(String compilerClassName)
Initializes the optional valuecompilerClassName
to compilerClassName.- Parameters:
compilerClassName
- The value for compilerClassName- Returns:
this
builder for chained invocation
-
setCompilerClassName
public final AndroidLibraryDescriptionArg.Builder setCompilerClassName(Optional<String> compilerClassName)
Initializes the optional valuecompilerClassName
to compilerClassName.- Parameters:
compilerClassName
- The value for compilerClassName- Returns:
this
builder for use in a chained invocation
-
setCompiler
public final AndroidLibraryDescriptionArg.Builder setCompiler(Either<BuiltInJavac,SourcePath> compiler)
Initializes the optional valuecompiler
to compiler.- Parameters:
compiler
- The value for compiler- Returns:
this
builder for chained invocation
-
setCompiler
public final AndroidLibraryDescriptionArg.Builder setCompiler(Optional<? extends Either<BuiltInJavac,SourcePath>> compiler)
Initializes the optional valuecompiler
to compiler.- Parameters:
compiler
- The value for compiler- Returns:
this
builder for use in a chained invocation
-
addExtraArguments
public final AndroidLibraryDescriptionArg.Builder addExtraArguments(String element)
Adds one element toextraArguments
list.- Parameters:
element
- A extraArguments element- Returns:
this
builder for use in a chained invocation
-
addExtraArguments
public final AndroidLibraryDescriptionArg.Builder addExtraArguments(String... elements)
Adds elements toextraArguments
list.- Parameters:
elements
- An array of extraArguments elements- Returns:
this
builder for use in a chained invocation
-
setExtraArguments
public final AndroidLibraryDescriptionArg.Builder setExtraArguments(Iterable<String> elements)
Sets or replaces all elements forextraArguments
list.- Parameters:
elements
- An iterable of extraArguments elements- Returns:
this
builder for use in a chained invocation
-
addAllExtraArguments
public final AndroidLibraryDescriptionArg.Builder addAllExtraArguments(Iterable<String> elements)
Adds elements toextraArguments
list.- Parameters:
elements
- An iterable of extraArguments elements- Returns:
this
builder for use in a chained invocation
-
addRemoveClasses
public final AndroidLibraryDescriptionArg.Builder addRemoveClasses(Pattern element)
Adds one element toremoveClasses
set.- Parameters:
element
- A removeClasses element- Returns:
this
builder for use in a chained invocation
-
addRemoveClasses
public final AndroidLibraryDescriptionArg.Builder addRemoveClasses(Pattern... elements)
Adds elements toremoveClasses
set.- Parameters:
elements
- An array of removeClasses elements- Returns:
this
builder for use in a chained invocation
-
setRemoveClasses
public final AndroidLibraryDescriptionArg.Builder setRemoveClasses(Iterable<? extends Pattern> elements)
Sets or replaces all elements forremoveClasses
set.- Parameters:
elements
- An iterable of removeClasses elements- Returns:
this
builder for use in a chained invocation
-
addAllRemoveClasses
public final AndroidLibraryDescriptionArg.Builder addAllRemoveClasses(Iterable<? extends Pattern> elements)
Adds elements toremoveClasses
set.- Parameters:
elements
- An iterable of removeClasses elements- Returns:
this
builder for use in a chained invocation
-
addAnnotationProcessorDeps
public final AndroidLibraryDescriptionArg.Builder addAnnotationProcessorDeps(BuildTarget element)
Adds one element toannotationProcessorDeps
sortedSet.- Parameters:
element
- A annotationProcessorDeps element- Returns:
this
builder for use in a chained invocation
-
addAnnotationProcessorDeps
public final AndroidLibraryDescriptionArg.Builder addAnnotationProcessorDeps(BuildTarget... elements)
Adds elements toannotationProcessorDeps
sortedSet.- Parameters:
elements
- An array of annotationProcessorDeps elements- Returns:
this
builder for use in a chained invocation
-
setAnnotationProcessorDeps
public final AndroidLibraryDescriptionArg.Builder setAnnotationProcessorDeps(Iterable<? extends BuildTarget> elements)
Sets or replaces all elements forannotationProcessorDeps
sortedSet.- Parameters:
elements
- An iterable of annotationProcessorDeps elements- Returns:
this
builder for use in a chained invocation
-
addAllAnnotationProcessorDeps
public final AndroidLibraryDescriptionArg.Builder addAllAnnotationProcessorDeps(Iterable<? extends BuildTarget> elements)
Adds elements toannotationProcessorDeps
sortedSet.- Parameters:
elements
- An iterable of annotationProcessorDeps elements- Returns:
this
builder for use in a chained invocation
-
addAnnotationProcessorParams
public final AndroidLibraryDescriptionArg.Builder addAnnotationProcessorParams(String element)
Adds one element toannotationProcessorParams
list.- Parameters:
element
- A annotationProcessorParams element- Returns:
this
builder for use in a chained invocation
-
addAnnotationProcessorParams
public final AndroidLibraryDescriptionArg.Builder addAnnotationProcessorParams(String... elements)
Adds elements toannotationProcessorParams
list.- Parameters:
elements
- An array of annotationProcessorParams elements- Returns:
this
builder for use in a chained invocation
-
setAnnotationProcessorParams
public final AndroidLibraryDescriptionArg.Builder setAnnotationProcessorParams(Iterable<String> elements)
Sets or replaces all elements forannotationProcessorParams
list.- Parameters:
elements
- An iterable of annotationProcessorParams elements- Returns:
this
builder for use in a chained invocation
-
addAllAnnotationProcessorParams
public final AndroidLibraryDescriptionArg.Builder addAllAnnotationProcessorParams(Iterable<String> elements)
Adds elements toannotationProcessorParams
list.- Parameters:
elements
- An iterable of annotationProcessorParams elements- Returns:
this
builder for use in a chained invocation
-
addJavaPluginParams
public final AndroidLibraryDescriptionArg.Builder addJavaPluginParams(String element)
Adds one element tojavaPluginParams
list.- Parameters:
element
- A javaPluginParams element- Returns:
this
builder for use in a chained invocation
-
addJavaPluginParams
public final AndroidLibraryDescriptionArg.Builder addJavaPluginParams(String... elements)
Adds elements tojavaPluginParams
list.- Parameters:
elements
- An array of javaPluginParams elements- Returns:
this
builder for use in a chained invocation
-
setJavaPluginParams
public final AndroidLibraryDescriptionArg.Builder setJavaPluginParams(Iterable<String> elements)
Sets or replaces all elements forjavaPluginParams
list.- Parameters:
elements
- An iterable of javaPluginParams elements- Returns:
this
builder for use in a chained invocation
-
addAllJavaPluginParams
public final AndroidLibraryDescriptionArg.Builder addAllJavaPluginParams(Iterable<String> elements)
Adds elements tojavaPluginParams
list.- Parameters:
elements
- An iterable of javaPluginParams elements- Returns:
this
builder for use in a chained invocation
-
addAnnotationProcessors
public final AndroidLibraryDescriptionArg.Builder addAnnotationProcessors(String element)
Adds one element toannotationProcessors
set.- Parameters:
element
- A annotationProcessors element- Returns:
this
builder for use in a chained invocation
-
addAnnotationProcessors
public final AndroidLibraryDescriptionArg.Builder addAnnotationProcessors(String... elements)
Adds elements toannotationProcessors
set.- Parameters:
elements
- An array of annotationProcessors elements- Returns:
this
builder for use in a chained invocation
-
setAnnotationProcessors
public final AndroidLibraryDescriptionArg.Builder setAnnotationProcessors(Iterable<String> elements)
Sets or replaces all elements forannotationProcessors
set.- Parameters:
elements
- An iterable of annotationProcessors elements- Returns:
this
builder for use in a chained invocation
-
addAllAnnotationProcessors
public final AndroidLibraryDescriptionArg.Builder addAllAnnotationProcessors(Iterable<String> elements)
Adds elements toannotationProcessors
set.- Parameters:
elements
- An iterable of annotationProcessors elements- Returns:
this
builder for use in a chained invocation
-
setAnnotationProcessorOnly
public final AndroidLibraryDescriptionArg.Builder setAnnotationProcessorOnly(boolean annotationProcessorOnly)
Initializes the optional valueannotationProcessorOnly
to annotationProcessorOnly.- Parameters:
annotationProcessorOnly
- The value for annotationProcessorOnly- Returns:
this
builder for chained invocation
-
setAnnotationProcessorOnly
public final AndroidLibraryDescriptionArg.Builder setAnnotationProcessorOnly(Optional<Boolean> annotationProcessorOnly)
Initializes the optional valueannotationProcessorOnly
to annotationProcessorOnly.- Parameters:
annotationProcessorOnly
- The value for annotationProcessorOnly- Returns:
this
builder for use in a chained invocation
-
addPlugins
public final AndroidLibraryDescriptionArg.Builder addPlugins(BuildTarget element)
Adds one element toplugins
list.- Parameters:
element
- A plugins element- Returns:
this
builder for use in a chained invocation
-
addPlugins
public final AndroidLibraryDescriptionArg.Builder addPlugins(BuildTarget... elements)
Adds elements toplugins
list.- Parameters:
elements
- An array of plugins elements- Returns:
this
builder for use in a chained invocation
-
setPlugins
public final AndroidLibraryDescriptionArg.Builder setPlugins(Iterable<? extends BuildTarget> elements)
Sets or replaces all elements forplugins
list.- Parameters:
elements
- An iterable of plugins elements- Returns:
this
builder for use in a chained invocation
-
addAllPlugins
public final AndroidLibraryDescriptionArg.Builder addAllPlugins(Iterable<? extends BuildTarget> elements)
Adds elements toplugins
list.- Parameters:
elements
- An iterable of plugins elements- Returns:
this
builder for use in a chained invocation
-
setAbiGenerationMode
public final AndroidLibraryDescriptionArg.Builder setAbiGenerationMode(AbiGenerationMode abiGenerationMode)
Initializes the optional valueabiGenerationMode
to abiGenerationMode.- Parameters:
abiGenerationMode
- The value for abiGenerationMode- Returns:
this
builder for chained invocation
-
setAbiGenerationMode
public final AndroidLibraryDescriptionArg.Builder setAbiGenerationMode(Optional<? extends AbiGenerationMode> abiGenerationMode)
Initializes the optional valueabiGenerationMode
to abiGenerationMode.- Parameters:
abiGenerationMode
- The value for abiGenerationMode- Returns:
this
builder for use in a chained invocation
-
setCompileAgainst
public final AndroidLibraryDescriptionArg.Builder setCompileAgainst(CompileAgainstLibraryType compileAgainst)
Initializes the optional valuecompileAgainst
to compileAgainst.- Parameters:
compileAgainst
- The value for compileAgainst- Returns:
this
builder for chained invocation
-
setCompileAgainst
public final AndroidLibraryDescriptionArg.Builder setCompileAgainst(Optional<? extends CompileAgainstLibraryType> compileAgainst)
Initializes the optional valuecompileAgainst
to compileAgainst.- Parameters:
compileAgainst
- The value for compileAgainst- Returns:
this
builder for use in a chained invocation
-
setSourceAbiVerificationMode
public final AndroidLibraryDescriptionArg.Builder setSourceAbiVerificationMode(JavaBuckConfig.SourceAbiVerificationMode sourceAbiVerificationMode)
Initializes the optional valuesourceAbiVerificationMode
to sourceAbiVerificationMode.- Parameters:
sourceAbiVerificationMode
- The value for sourceAbiVerificationMode- Returns:
this
builder for chained invocation
-
setSourceAbiVerificationMode
public final AndroidLibraryDescriptionArg.Builder setSourceAbiVerificationMode(Optional<? extends JavaBuckConfig.SourceAbiVerificationMode> sourceAbiVerificationMode)
Initializes the optional valuesourceAbiVerificationMode
to sourceAbiVerificationMode.- Parameters:
sourceAbiVerificationMode
- The value for sourceAbiVerificationMode- Returns:
this
builder for use in a chained invocation
-
setOnUnusedDependencies
public final AndroidLibraryDescriptionArg.Builder setOnUnusedDependencies(JavaBuckConfig.UnusedDependenciesAction onUnusedDependencies)
Initializes the optional valueonUnusedDependencies
to onUnusedDependencies.- Parameters:
onUnusedDependencies
- The value for onUnusedDependencies- Returns:
this
builder for chained invocation
-
setOnUnusedDependencies
public final AndroidLibraryDescriptionArg.Builder setOnUnusedDependencies(Optional<? extends JavaBuckConfig.UnusedDependenciesAction> onUnusedDependencies)
Initializes the optional valueonUnusedDependencies
to onUnusedDependencies.- Parameters:
onUnusedDependencies
- The value for onUnusedDependencies- Returns:
this
builder for use in a chained invocation
-
setNeverMarkAsUnusedDependency
public final AndroidLibraryDescriptionArg.Builder setNeverMarkAsUnusedDependency(boolean neverMarkAsUnusedDependency)
Initializes the optional valueneverMarkAsUnusedDependency
to neverMarkAsUnusedDependency.- Parameters:
neverMarkAsUnusedDependency
- The value for neverMarkAsUnusedDependency- Returns:
this
builder for chained invocation
-
setNeverMarkAsUnusedDependency
public final AndroidLibraryDescriptionArg.Builder setNeverMarkAsUnusedDependency(Optional<Boolean> neverMarkAsUnusedDependency)
Initializes the optional valueneverMarkAsUnusedDependency
to neverMarkAsUnusedDependency.- Parameters:
neverMarkAsUnusedDependency
- The value for neverMarkAsUnusedDependency- Returns:
this
builder for use in a chained invocation
-
addLicenses
public final AndroidLibraryDescriptionArg.Builder addLicenses(SourcePath element)
Adds one element tolicenses
set.- Parameters:
element
- A licenses element- Returns:
this
builder for use in a chained invocation
-
addLicenses
public final AndroidLibraryDescriptionArg.Builder addLicenses(SourcePath... elements)
Adds elements tolicenses
set.- Parameters:
elements
- An array of licenses elements- Returns:
this
builder for use in a chained invocation
-
setLicenses
public final AndroidLibraryDescriptionArg.Builder setLicenses(Iterable<? extends SourcePath> elements)
Sets or replaces all elements forlicenses
set.- Parameters:
elements
- An iterable of licenses elements- Returns:
this
builder for use in a chained invocation
-
addAllLicenses
public final AndroidLibraryDescriptionArg.Builder addAllLicenses(Iterable<? extends SourcePath> elements)
Adds elements tolicenses
set.- Parameters:
elements
- An iterable of licenses elements- Returns:
this
builder for use in a chained invocation
-
addLabels
public final AndroidLibraryDescriptionArg.Builder addLabels(String element)
Adds one element tolabels
sortedSet.- Parameters:
element
- A labels element- Returns:
this
builder for use in a chained invocation
-
addLabels
public final AndroidLibraryDescriptionArg.Builder addLabels(String... elements)
Adds elements tolabels
sortedSet.- Parameters:
elements
- An array of labels elements- Returns:
this
builder for use in a chained invocation
-
setLabels
public final AndroidLibraryDescriptionArg.Builder setLabels(Iterable<String> elements)
Sets or replaces all elements forlabels
sortedSet.- Parameters:
elements
- An iterable of labels elements- Returns:
this
builder for use in a chained invocation
-
addAllLabels
public final AndroidLibraryDescriptionArg.Builder addAllLabels(Iterable<String> elements)
Adds elements tolabels
sortedSet.- Parameters:
elements
- An iterable of labels elements- Returns:
this
builder for use in a chained invocation
-
setDefaultTargetPlatform
public final AndroidLibraryDescriptionArg.Builder setDefaultTargetPlatform(UnconfiguredBuildTarget defaultTargetPlatform)
Initializes the optional valuedefaultTargetPlatform
to defaultTargetPlatform.- Parameters:
defaultTargetPlatform
- The value for defaultTargetPlatform- Returns:
this
builder for chained invocation
-
setDefaultTargetPlatform
public final AndroidLibraryDescriptionArg.Builder setDefaultTargetPlatform(Optional<? extends UnconfiguredBuildTarget> defaultTargetPlatform)
Initializes the optional valuedefaultTargetPlatform
to defaultTargetPlatform.- Parameters:
defaultTargetPlatform
- The value for defaultTargetPlatform- Returns:
this
builder for use in a chained invocation
-
addCompatibleWith
public final AndroidLibraryDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget element)
Adds one element tocompatibleWith
list.- Parameters:
element
- A compatibleWith element- Returns:
this
builder for use in a chained invocation
-
addCompatibleWith
public final AndroidLibraryDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget... elements)
Adds elements tocompatibleWith
list.- Parameters:
elements
- An array of compatibleWith elements- Returns:
this
builder for use in a chained invocation
-
setCompatibleWith
public final AndroidLibraryDescriptionArg.Builder setCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
Sets or replaces all elements forcompatibleWith
list.- Parameters:
elements
- An iterable of compatibleWith elements- Returns:
this
builder for use in a chained invocation
-
addAllCompatibleWith
public final AndroidLibraryDescriptionArg.Builder addAllCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
Adds elements tocompatibleWith
list.- Parameters:
elements
- An iterable of compatibleWith elements- Returns:
this
builder for use in a chained invocation
-
setName
public final AndroidLibraryDescriptionArg.Builder setName(String name)
Initializes the value for thename
attribute.- Parameters:
name
- The value for name- Returns:
this
builder for use in a chained invocation
-
setRequiredForSourceOnlyAbi
public final AndroidLibraryDescriptionArg.Builder setRequiredForSourceOnlyAbi(boolean requiredForSourceOnlyAbi)
Initializes the value for therequiredForSourceOnlyAbi
attribute.If not set, this attribute will have a default value as returned by the initializer of
requiredForSourceOnlyAbi
.- Parameters:
requiredForSourceOnlyAbi
- The value for requiredForSourceOnlyAbi- Returns:
this
builder for use in a chained invocation
-
addDeps
public final AndroidLibraryDescriptionArg.Builder addDeps(BuildTarget element)
Adds one element todeps
sortedSet.- Parameters:
element
- A deps element- Returns:
this
builder for use in a chained invocation
-
addDeps
public final AndroidLibraryDescriptionArg.Builder addDeps(BuildTarget... elements)
Adds elements todeps
sortedSet.- Parameters:
elements
- An array of deps elements- Returns:
this
builder for use in a chained invocation
-
setDeps
public final AndroidLibraryDescriptionArg.Builder setDeps(Iterable<? extends BuildTarget> elements)
Sets or replaces all elements fordeps
sortedSet.- Parameters:
elements
- An iterable of deps elements- Returns:
this
builder for use in a chained invocation
-
addAllDeps
public final AndroidLibraryDescriptionArg.Builder addAllDeps(Iterable<? extends BuildTarget> elements)
Adds elements todeps
sortedSet.- Parameters:
elements
- An iterable of deps elements- Returns:
this
builder for use in a chained invocation
-
addProvidedDeps
public final AndroidLibraryDescriptionArg.Builder addProvidedDeps(BuildTarget element)
Adds one element toprovidedDeps
sortedSet.- Parameters:
element
- A providedDeps element- Returns:
this
builder for use in a chained invocation
-
addProvidedDeps
public final AndroidLibraryDescriptionArg.Builder addProvidedDeps(BuildTarget... elements)
Adds elements toprovidedDeps
sortedSet.- Parameters:
elements
- An array of providedDeps elements- Returns:
this
builder for use in a chained invocation
-
setProvidedDeps
public final AndroidLibraryDescriptionArg.Builder setProvidedDeps(Iterable<? extends BuildTarget> elements)
Sets or replaces all elements forprovidedDeps
sortedSet.- Parameters:
elements
- An iterable of providedDeps elements- Returns:
this
builder for use in a chained invocation
-
addAllProvidedDeps
public final AndroidLibraryDescriptionArg.Builder addAllProvidedDeps(Iterable<? extends BuildTarget> elements)
Adds elements toprovidedDeps
sortedSet.- Parameters:
elements
- An iterable of providedDeps elements- Returns:
this
builder for use in a chained invocation
-
addExportedProvidedDeps
public final AndroidLibraryDescriptionArg.Builder addExportedProvidedDeps(BuildTarget element)
Adds one element toexportedProvidedDeps
sortedSet.- Parameters:
element
- A exportedProvidedDeps element- Returns:
this
builder for use in a chained invocation
-
addExportedProvidedDeps
public final AndroidLibraryDescriptionArg.Builder addExportedProvidedDeps(BuildTarget... elements)
Adds elements toexportedProvidedDeps
sortedSet.- Parameters:
elements
- An array of exportedProvidedDeps elements- Returns:
this
builder for use in a chained invocation
-
setExportedProvidedDeps
public final AndroidLibraryDescriptionArg.Builder setExportedProvidedDeps(Iterable<? extends BuildTarget> elements)
Sets or replaces all elements forexportedProvidedDeps
sortedSet.- Parameters:
elements
- An iterable of exportedProvidedDeps elements- Returns:
this
builder for use in a chained invocation
-
addAllExportedProvidedDeps
public final AndroidLibraryDescriptionArg.Builder addAllExportedProvidedDeps(Iterable<? extends BuildTarget> elements)
Adds elements toexportedProvidedDeps
sortedSet.- Parameters:
elements
- An iterable of exportedProvidedDeps elements- Returns:
this
builder for use in a chained invocation
-
addSrcs
public final AndroidLibraryDescriptionArg.Builder addSrcs(SourcePath element)
Adds one element tosrcs
sortedSet.- Parameters:
element
- A srcs element- Returns:
this
builder for use in a chained invocation
-
addSrcs
public final AndroidLibraryDescriptionArg.Builder addSrcs(SourcePath... elements)
Adds elements tosrcs
sortedSet.- Parameters:
elements
- An array of srcs elements- Returns:
this
builder for use in a chained invocation
-
setSrcs
public final AndroidLibraryDescriptionArg.Builder setSrcs(Iterable<? extends SourcePath> elements)
Sets or replaces all elements forsrcs
sortedSet.- Parameters:
elements
- An iterable of srcs elements- Returns:
this
builder for use in a chained invocation
-
addAllSrcs
public final AndroidLibraryDescriptionArg.Builder addAllSrcs(Iterable<? extends SourcePath> elements)
Adds elements tosrcs
sortedSet.- Parameters:
elements
- An iterable of srcs elements- Returns:
this
builder for use in a chained invocation
-
addTests
public final AndroidLibraryDescriptionArg.Builder addTests(BuildTarget element)
Adds one element totests
sortedSet.- Parameters:
element
- A tests element- Returns:
this
builder for use in a chained invocation
-
addTests
public final AndroidLibraryDescriptionArg.Builder addTests(BuildTarget... elements)
Adds elements totests
sortedSet.- Parameters:
elements
- An array of tests elements- Returns:
this
builder for use in a chained invocation
-
setTests
public final AndroidLibraryDescriptionArg.Builder setTests(Iterable<? extends BuildTarget> elements)
Sets or replaces all elements fortests
sortedSet.- Parameters:
elements
- An iterable of tests elements- Returns:
this
builder for use in a chained invocation
-
addAllTests
public final AndroidLibraryDescriptionArg.Builder addAllTests(Iterable<? extends BuildTarget> elements)
Adds elements totests
sortedSet.- Parameters:
elements
- An iterable of tests elements- Returns:
this
builder for use in a chained invocation
-
setLanguage
public final AndroidLibraryDescriptionArg.Builder setLanguage(AndroidLibraryDescription.JvmLanguage language)
Initializes the optional valuelanguage
to language.- Parameters:
language
- The value for language- Returns:
this
builder for chained invocation
-
setLanguage
public final AndroidLibraryDescriptionArg.Builder setLanguage(Optional<? extends AndroidLibraryDescription.JvmLanguage> language)
Initializes the optional valuelanguage
to language.- Parameters:
language
- The value for language- Returns:
this
builder for use in a chained invocation
-
addFreeCompilerArgs
public final AndroidLibraryDescriptionArg.Builder addFreeCompilerArgs(String element)
Adds one element tofreeCompilerArgs
list.- Parameters:
element
- A freeCompilerArgs element- Returns:
this
builder for use in a chained invocation
-
addFreeCompilerArgs
public final AndroidLibraryDescriptionArg.Builder addFreeCompilerArgs(String... elements)
Adds elements tofreeCompilerArgs
list.- Parameters:
elements
- An array of freeCompilerArgs elements- Returns:
this
builder for use in a chained invocation
-
setFreeCompilerArgs
public final AndroidLibraryDescriptionArg.Builder setFreeCompilerArgs(Iterable<String> elements)
Sets or replaces all elements forfreeCompilerArgs
list.- Parameters:
elements
- An iterable of freeCompilerArgs elements- Returns:
this
builder for use in a chained invocation
-
addAllFreeCompilerArgs
public final AndroidLibraryDescriptionArg.Builder addAllFreeCompilerArgs(Iterable<String> elements)
Adds elements tofreeCompilerArgs
list.- Parameters:
elements
- An iterable of freeCompilerArgs elements- Returns:
this
builder for use in a chained invocation
-
setAllWarningsAsErrors
public final AndroidLibraryDescriptionArg.Builder setAllWarningsAsErrors(boolean allWarningsAsErrors)
Initializes the value for theallWarningsAsErrors
attribute.If not set, this attribute will have a default value as returned by the initializer of
allWarningsAsErrors
.- Parameters:
allWarningsAsErrors
- The value for allWarningsAsErrors- Returns:
this
builder for use in a chained invocation
-
setSuppressWarnings
public final AndroidLibraryDescriptionArg.Builder setSuppressWarnings(boolean suppressWarnings)
Initializes the value for thesuppressWarnings
attribute.If not set, this attribute will have a default value as returned by the initializer of
suppressWarnings
.- Parameters:
suppressWarnings
- The value for suppressWarnings- Returns:
this
builder for use in a chained invocation
-
setVerbose
public final AndroidLibraryDescriptionArg.Builder setVerbose(boolean verbose)
Initializes the value for theverbose
attribute.If not set, this attribute will have a default value as returned by the initializer of
verbose
.- Parameters:
verbose
- The value for verbose- Returns:
this
builder for use in a chained invocation
-
setIncludeRuntime
public final AndroidLibraryDescriptionArg.Builder setIncludeRuntime(boolean includeRuntime)
Initializes the value for theincludeRuntime
attribute.If not set, this attribute will have a default value as returned by the initializer of
includeRuntime
.- Parameters:
includeRuntime
- The value for includeRuntime- Returns:
this
builder for use in a chained invocation
-
setJvmTarget
public final AndroidLibraryDescriptionArg.Builder setJvmTarget(String jvmTarget)
Initializes the value for thejvmTarget
attribute.If not set, this attribute will have a default value as returned by the initializer of
jvmTarget
.- Parameters:
jvmTarget
- The value for jvmTarget- Returns:
this
builder for use in a chained invocation
-
setJdkHome
public final AndroidLibraryDescriptionArg.Builder setJdkHome(String jdkHome)
Initializes the optional valuejdkHome
to jdkHome.- Parameters:
jdkHome
- The value for jdkHome- Returns:
this
builder for chained invocation
-
setJdkHome
public final AndroidLibraryDescriptionArg.Builder setJdkHome(Optional<String> jdkHome)
Initializes the optional valuejdkHome
to jdkHome.- Parameters:
jdkHome
- The value for jdkHome- Returns:
this
builder for use in a chained invocation
-
setNoJdk
public final AndroidLibraryDescriptionArg.Builder setNoJdk(boolean noJdk)
Initializes the value for thenoJdk
attribute.If not set, this attribute will have a default value as returned by the initializer of
noJdk
.- Parameters:
noJdk
- The value for noJdk- Returns:
this
builder for use in a chained invocation
-
setNoStdlib
public final AndroidLibraryDescriptionArg.Builder setNoStdlib(boolean noStdlib)
Initializes the value for thenoStdlib
attribute.If not set, this attribute will have a default value as returned by the initializer of
noStdlib
.- Parameters:
noStdlib
- The value for noStdlib- Returns:
this
builder for use in a chained invocation
-
setNoReflect
public final AndroidLibraryDescriptionArg.Builder setNoReflect(boolean noReflect)
Initializes the value for thenoReflect
attribute.If not set, this attribute will have a default value as returned by the initializer of
noReflect
.- Parameters:
noReflect
- The value for noReflect- Returns:
this
builder for use in a chained invocation
-
setJavaParameters
public final AndroidLibraryDescriptionArg.Builder setJavaParameters(boolean javaParameters)
Initializes the value for thejavaParameters
attribute.If not set, this attribute will have a default value as returned by the initializer of
javaParameters
.- Parameters:
javaParameters
- The value for javaParameters- Returns:
this
builder for use in a chained invocation
-
setApiVersion
public final AndroidLibraryDescriptionArg.Builder setApiVersion(String apiVersion)
Initializes the optional valueapiVersion
to apiVersion.- Parameters:
apiVersion
- The value for apiVersion- Returns:
this
builder for chained invocation
-
setApiVersion
public final AndroidLibraryDescriptionArg.Builder setApiVersion(Optional<String> apiVersion)
Initializes the optional valueapiVersion
to apiVersion.- Parameters:
apiVersion
- The value for apiVersion- Returns:
this
builder for use in a chained invocation
-
setLanguageVersion
public final AndroidLibraryDescriptionArg.Builder setLanguageVersion(String languageVersion)
Initializes the optional valuelanguageVersion
to languageVersion.- Parameters:
languageVersion
- The value for languageVersion- Returns:
this
builder for chained invocation
-
setLanguageVersion
public final AndroidLibraryDescriptionArg.Builder setLanguageVersion(Optional<String> languageVersion)
Initializes the optional valuelanguageVersion
to languageVersion.- Parameters:
languageVersion
- The value for languageVersion- Returns:
this
builder for use in a chained invocation
-
setAnnotationProcessingTool
public final AndroidLibraryDescriptionArg.Builder setAnnotationProcessingTool(KotlinLibraryDescription.AnnotationProcessingTool annotationProcessingTool)
Initializes the optional valueannotationProcessingTool
to annotationProcessingTool.- Parameters:
annotationProcessingTool
- The value for annotationProcessingTool- Returns:
this
builder for chained invocation
-
setAnnotationProcessingTool
public final AndroidLibraryDescriptionArg.Builder setAnnotationProcessingTool(Optional<? extends KotlinLibraryDescription.AnnotationProcessingTool> annotationProcessingTool)
Initializes the optional valueannotationProcessingTool
to annotationProcessingTool.- Parameters:
annotationProcessingTool
- The value for annotationProcessingTool- Returns:
this
builder for use in a chained invocation
-
addFriendPaths
public final AndroidLibraryDescriptionArg.Builder addFriendPaths(BuildTarget element)
Adds one element tofriendPaths
sortedSet.- Parameters:
element
- A friendPaths element- Returns:
this
builder for use in a chained invocation
-
addFriendPaths
public final AndroidLibraryDescriptionArg.Builder addFriendPaths(BuildTarget... elements)
Adds elements tofriendPaths
sortedSet.- Parameters:
elements
- An array of friendPaths elements- Returns:
this
builder for use in a chained invocation
-
setFriendPaths
public final AndroidLibraryDescriptionArg.Builder setFriendPaths(Iterable<? extends BuildTarget> elements)
Sets or replaces all elements forfriendPaths
sortedSet.- Parameters:
elements
- An iterable of friendPaths elements- Returns:
this
builder for use in a chained invocation
-
addAllFriendPaths
public final AndroidLibraryDescriptionArg.Builder addAllFriendPaths(Iterable<? extends BuildTarget> elements)
Adds elements tofriendPaths
sortedSet.- Parameters:
elements
- An iterable of friendPaths elements- Returns:
this
builder for use in a chained invocation
-
putKaptApOptions
public final AndroidLibraryDescriptionArg.Builder putKaptApOptions(String key, String value)
Put one entry to thekaptApOptions
map.- Parameters:
key
- The key in the kaptApOptions mapvalue
- The associated value in the kaptApOptions map- Returns:
this
builder for use in a chained invocation
-
putKaptApOptions
public final AndroidLibraryDescriptionArg.Builder putKaptApOptions(Map.Entry<String,? extends String> entry)
Put one entry to thekaptApOptions
map. Nulls are not permitted- Parameters:
entry
- The key and value entry- Returns:
this
builder for use in a chained invocation
-
setKaptApOptions
public final AndroidLibraryDescriptionArg.Builder setKaptApOptions(Map<String,? extends String> entries)
Sets or replaces all mappings from the specified map as entries for thekaptApOptions
map. Nulls are not permitted- Parameters:
entries
- The entries that will be added to the kaptApOptions map- Returns:
this
builder for use in a chained invocation
-
putAllKaptApOptions
public final AndroidLibraryDescriptionArg.Builder putAllKaptApOptions(Map<String,? extends String> entries)
Put all mappings from the specified map as entries tokaptApOptions
map. Nulls are not permitted- Parameters:
entries
- The entries that will be added to the kaptApOptions map- Returns:
this
builder for use in a chained invocation
-
addKotlincPlugins
public final AndroidLibraryDescriptionArg.Builder addKotlincPlugins(SourcePath element)
Adds one element tokotlincPlugins
list.- Parameters:
element
- A kotlincPlugins element- Returns:
this
builder for use in a chained invocation
-
addKotlincPlugins
public final AndroidLibraryDescriptionArg.Builder addKotlincPlugins(SourcePath... elements)
Adds elements tokotlincPlugins
list.- Parameters:
elements
- An array of kotlincPlugins elements- Returns:
this
builder for use in a chained invocation
-
setKotlincPlugins
public final AndroidLibraryDescriptionArg.Builder setKotlincPlugins(Iterable<? extends SourcePath> elements)
Sets or replaces all elements forkotlincPlugins
list.- Parameters:
elements
- An iterable of kotlincPlugins elements- Returns:
this
builder for use in a chained invocation
-
addAllKotlincPlugins
public final AndroidLibraryDescriptionArg.Builder addAllKotlincPlugins(Iterable<? extends SourcePath> elements)
Adds elements tokotlincPlugins
list.- Parameters:
elements
- An iterable of kotlincPlugins elements- Returns:
this
builder for use in a chained invocation
-
setDepsQuery
public final AndroidLibraryDescriptionArg.Builder setDepsQuery(Query depsQuery)
Initializes the optional valuedepsQuery
to depsQuery.- Parameters:
depsQuery
- The value for depsQuery- Returns:
this
builder for chained invocation
-
setDepsQuery
public final AndroidLibraryDescriptionArg.Builder setDepsQuery(Optional<? extends Query> depsQuery)
Initializes the optional valuedepsQuery
to depsQuery.- Parameters:
depsQuery
- The value for depsQuery- Returns:
this
builder for use in a chained invocation
-
setProvidedDepsQuery
public final AndroidLibraryDescriptionArg.Builder setProvidedDepsQuery(Query providedDepsQuery)
Initializes the optional valueprovidedDepsQuery
to providedDepsQuery.- Parameters:
providedDepsQuery
- The value for providedDepsQuery- Returns:
this
builder for chained invocation
-
setProvidedDepsQuery
public final AndroidLibraryDescriptionArg.Builder setProvidedDepsQuery(Optional<? extends Query> providedDepsQuery)
Initializes the optional valueprovidedDepsQuery
to providedDepsQuery.- Parameters:
providedDepsQuery
- The value for providedDepsQuery- Returns:
this
builder for use in a chained invocation
-
build
public AndroidLibraryDescriptionArg build()
Builds a newAndroidLibraryDescriptionArg
.- Returns:
- An immutable instance of AndroidLibraryDescriptionArg
- Throws:
IllegalStateException
- if any required attributes are missing
-
-