@NotThreadSafe public static final class CxxTestDescriptionArg.Builder extends Object
CxxTestDescriptionArg
.
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 CxxTestDescriptionArg.Builder from(CxxTestDescriptionArg instance)
CxxTestDescriptionArg
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder from(com.facebook.buck.cxx.CxxTestDescription.AbstractCxxTestDescriptionArg instance)
AbstractCxxTestDescriptionArg
instance into builder.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.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 CxxTestDescriptionArg.Builder from(HasTestTimeout instance)
com.facebook.buck.core.description.arg.HasTestTimeout
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder from(CxxConstructorArg instance)
com.facebook.buck.cxx.CxxConstructorArg
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder from(CxxBinaryDescription.CommonArg instance)
com.facebook.buck.cxx.CxxBinaryDescription.CommonArg
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder from(HasDepsQuery instance)
com.facebook.buck.core.description.arg.HasDepsQuery
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder from(HasDefaultPlatform instance)
com.facebook.buck.core.description.arg.HasDefaultPlatform
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder from(HasSystemFrameworkAndLibraries instance)
com.facebook.buck.cxx.toolchain.HasSystemFrameworkAndLibraries
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.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 CxxTestDescriptionArg.Builder from(LinkableCxxConstructorArg instance)
com.facebook.buck.cxx.LinkableCxxConstructorArg
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder from(HasVersionUniverse instance)
com.facebook.buck.versions.HasVersionUniverse
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.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 CxxTestDescriptionArg.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 CxxTestDescriptionArg.Builder from(HasContacts instance)
com.facebook.buck.core.description.arg.HasContacts
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder setFramework(com.facebook.buck.cxx.CxxTestType framework)
framework
to framework.framework
- The value for frameworkthis
builder for chained invocationpublic final CxxTestDescriptionArg.Builder setFramework(Optional<? extends com.facebook.buck.cxx.CxxTestType> framework)
framework
to framework.framework
- The value for frameworkthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder putEnv(String key, StringWithMacros value)
env
map.key
- The key in the env mapvalue
- The associated value in the env mapthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder putEnv(Map.Entry<String,? extends StringWithMacros> entry)
env
map. Nulls are not permittedentry
- The key and value entrythis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder setEnv(Map<String,? extends StringWithMacros> entries)
env
map. Nulls are not permittedentries
- The entries that will be added to the env mapthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder putAllEnv(Map<String,? extends StringWithMacros> entries)
env
map. Nulls are not permittedentries
- The entries that will be added to the env mapthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder addArgs(StringWithMacros element)
args
list.element
- A args elementthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder addArgs(StringWithMacros... elements)
args
list.elements
- An array of args elementsthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder setArgs(Iterable<? extends StringWithMacros> elements)
args
list.elements
- An iterable of args elementsthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder addAllArgs(Iterable<? extends StringWithMacros> elements)
args
list.elements
- An iterable of args elementsthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder setRunTestSeparately(boolean runTestSeparately)
runTestSeparately
to runTestSeparately.runTestSeparately
- The value for runTestSeparatelythis
builder for chained invocationpublic final CxxTestDescriptionArg.Builder setRunTestSeparately(Optional<Boolean> runTestSeparately)
runTestSeparately
to runTestSeparately.runTestSeparately
- The value for runTestSeparatelythis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder setUseDefaultTestMain(boolean useDefaultTestMain)
useDefaultTestMain
to useDefaultTestMain.useDefaultTestMain
- The value for useDefaultTestMainthis
builder for chained invocationpublic final CxxTestDescriptionArg.Builder setUseDefaultTestMain(Optional<Boolean> useDefaultTestMain)
useDefaultTestMain
to useDefaultTestMain.useDefaultTestMain
- The value for useDefaultTestMainthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder addResources(Path element)
resources
sortedSet.element
- A resources elementthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder addResources(Path... elements)
resources
sortedSet.elements
- An array of resources elementsthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder setResources(Iterable<? extends Path> elements)
resources
sortedSet.elements
- An iterable of resources elementsthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder addAllResources(Iterable<? extends Path> elements)
resources
sortedSet.elements
- An iterable of resources elementsthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder addAdditionalCoverageTargets(SourcePath element)
additionalCoverageTargets
set.element
- A additionalCoverageTargets elementthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder addAdditionalCoverageTargets(SourcePath... elements)
additionalCoverageTargets
set.elements
- An array of additionalCoverageTargets elementsthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder setAdditionalCoverageTargets(Iterable<? extends SourcePath> elements)
additionalCoverageTargets
set.elements
- An iterable of additionalCoverageTargets elementsthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder addAllAdditionalCoverageTargets(Iterable<? extends SourcePath> elements)
additionalCoverageTargets
set.elements
- An iterable of additionalCoverageTargets elementsthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder setLinkDepsQueryWhole(boolean linkDepsQueryWhole)
linkDepsQueryWhole
attribute.
If not set, this attribute will have a default value as returned by the initializer of linkDepsQueryWhole
.
linkDepsQueryWhole
- The value for linkDepsQueryWholethis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder setLinkStyle(Linker.LinkableDepType linkStyle)
linkStyle
to linkStyle.linkStyle
- The value for linkStylethis
builder for chained invocationpublic final CxxTestDescriptionArg.Builder setLinkStyle(Optional<? extends Linker.LinkableDepType> linkStyle)
linkStyle
to linkStyle.linkStyle
- The value for linkStylethis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder setLinkGroupMap(com.google.common.collect.ImmutableList<CxxLinkGroupMapping> linkGroupMap)
linkGroupMap
to linkGroupMap.linkGroupMap
- The value for linkGroupMapthis
builder for chained invocationpublic final CxxTestDescriptionArg.Builder setLinkGroupMap(Optional<? extends com.google.common.collect.ImmutableList<CxxLinkGroupMapping>> linkGroupMap)
linkGroupMap
to linkGroupMap.linkGroupMap
- The value for linkGroupMapthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder setLinkGroup(String linkGroup)
linkGroup
to linkGroup.linkGroup
- The value for linkGroupthis
builder for chained invocationpublic final CxxTestDescriptionArg.Builder setLinkGroup(Optional<String> linkGroup)
linkGroup
to linkGroup.linkGroup
- The value for linkGroupthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder setThinLto(boolean thinLto)
thinLto
attribute.
If not set, this attribute will have a default value as returned by the initializer of thinLto
.
thinLto
- The value for thinLtothis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder setFatLto(boolean fatLto)
fatLto
attribute.
If not set, this attribute will have a default value as returned by the initializer of fatLto
.
fatLto
- The value for fatLtothis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder addSrcs(SourceWithFlags element)
srcs
sortedSet.element
- A srcs elementthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder addSrcs(SourceWithFlags... elements)
srcs
sortedSet.elements
- An array of srcs elementsthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder setSrcs(Iterable<? extends SourceWithFlags> elements)
srcs
sortedSet.elements
- An iterable of srcs elementsthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder addAllSrcs(Iterable<? extends SourceWithFlags> elements)
srcs
sortedSet.elements
- An iterable of srcs elementsthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder setPlatformSrcs(PatternMatchedCollection<com.google.common.collect.ImmutableSortedSet<SourceWithFlags>> platformSrcs)
platformSrcs
attribute.
If not set, this attribute will have a default value as returned by the initializer of platformSrcs
.
platformSrcs
- The value for platformSrcsthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder setHeaders(SourceSortedSet headers)
headers
attribute.
If not set, this attribute will have a default value as returned by the initializer of headers
.
headers
- The value for headersthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder setRawHeaders(com.google.common.collect.ImmutableSortedSet<SourcePath> rawHeaders)
rawHeaders
attribute.
If not set, this attribute will have a default value as returned by the initializer of rawHeaders
.
rawHeaders
- The value for rawHeadersthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder setIncludeDirectories(com.google.common.collect.ImmutableSortedSet<String> includeDirectories)
includeDirectories
attribute.
If not set, this attribute will have a default value as returned by the initializer of includeDirectories
.
includeDirectories
- The value for includeDirectoriesthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder setPlatformHeaders(PatternMatchedCollection<SourceSortedSet> platformHeaders)
platformHeaders
attribute.
If not set, this attribute will have a default value as returned by the initializer of platformHeaders
.
platformHeaders
- The value for platformHeadersthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder setPrefixHeader(SourcePath prefixHeader)
prefixHeader
to prefixHeader.prefixHeader
- The value for prefixHeaderthis
builder for chained invocationpublic final CxxTestDescriptionArg.Builder setPrefixHeader(Optional<? extends SourcePath> prefixHeader)
prefixHeader
to prefixHeader.prefixHeader
- The value for prefixHeaderthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder setPrecompiledHeader(SourcePath precompiledHeader)
precompiledHeader
to precompiledHeader.precompiledHeader
- The value for precompiledHeaderthis
builder for chained invocationpublic final CxxTestDescriptionArg.Builder setPrecompiledHeader(Optional<? extends SourcePath> precompiledHeader)
precompiledHeader
to precompiledHeader.precompiledHeader
- The value for precompiledHeaderthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder addCompilerFlags(StringWithMacros element)
compilerFlags
list.element
- A compilerFlags elementthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder addCompilerFlags(StringWithMacros... elements)
compilerFlags
list.elements
- An array of compilerFlags elementsthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder setCompilerFlags(Iterable<? extends StringWithMacros> elements)
compilerFlags
list.elements
- An iterable of compilerFlags elementsthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder addAllCompilerFlags(Iterable<? extends StringWithMacros> elements)
compilerFlags
list.elements
- An iterable of compilerFlags elementsthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder putLangCompilerFlags(CxxSource.Type key, com.google.common.collect.ImmutableList<StringWithMacros> value)
langCompilerFlags
map.key
- The key in the langCompilerFlags mapvalue
- The associated value in the langCompilerFlags mapthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder putLangCompilerFlags(Map.Entry<CxxSource.Type,? extends com.google.common.collect.ImmutableList<StringWithMacros>> entry)
langCompilerFlags
map. Nulls are not permittedentry
- The key and value entrythis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder setLangCompilerFlags(Map<CxxSource.Type,? extends com.google.common.collect.ImmutableList<StringWithMacros>> entries)
langCompilerFlags
map. Nulls are not permittedentries
- The entries that will be added to the langCompilerFlags mapthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder putAllLangCompilerFlags(Map<CxxSource.Type,? extends com.google.common.collect.ImmutableList<StringWithMacros>> entries)
langCompilerFlags
map. Nulls are not permittedentries
- The entries that will be added to the langCompilerFlags mapthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder putLangPlatformCompilerFlags(CxxSource.Type key, PatternMatchedCollection<com.google.common.collect.ImmutableList<StringWithMacros>> value)
langPlatformCompilerFlags
map.key
- The key in the langPlatformCompilerFlags mapvalue
- The associated value in the langPlatformCompilerFlags mapthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder putLangPlatformCompilerFlags(Map.Entry<CxxSource.Type,? extends PatternMatchedCollection<com.google.common.collect.ImmutableList<StringWithMacros>>> entry)
langPlatformCompilerFlags
map. Nulls are not permittedentry
- The key and value entrythis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder setLangPlatformCompilerFlags(Map<CxxSource.Type,? extends PatternMatchedCollection<com.google.common.collect.ImmutableList<StringWithMacros>>> entries)
langPlatformCompilerFlags
map. Nulls are not permittedentries
- The entries that will be added to the langPlatformCompilerFlags mapthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder putAllLangPlatformCompilerFlags(Map<CxxSource.Type,? extends PatternMatchedCollection<com.google.common.collect.ImmutableList<StringWithMacros>>> entries)
langPlatformCompilerFlags
map. Nulls are not permittedentries
- The entries that will be added to the langPlatformCompilerFlags mapthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder setPlatformCompilerFlags(PatternMatchedCollection<com.google.common.collect.ImmutableList<StringWithMacros>> platformCompilerFlags)
platformCompilerFlags
attribute.
If not set, this attribute will have a default value as returned by the initializer of platformCompilerFlags
.
platformCompilerFlags
- The value for platformCompilerFlagsthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder addPreprocessorFlags(StringWithMacros element)
preprocessorFlags
list.element
- A preprocessorFlags elementthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder addPreprocessorFlags(StringWithMacros... elements)
preprocessorFlags
list.elements
- An array of preprocessorFlags elementsthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder setPreprocessorFlags(Iterable<? extends StringWithMacros> elements)
preprocessorFlags
list.elements
- An iterable of preprocessorFlags elementsthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder addAllPreprocessorFlags(Iterable<? extends StringWithMacros> elements)
preprocessorFlags
list.elements
- An iterable of preprocessorFlags elementsthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder setPlatformPreprocessorFlags(PatternMatchedCollection<com.google.common.collect.ImmutableList<StringWithMacros>> platformPreprocessorFlags)
platformPreprocessorFlags
attribute.
If not set, this attribute will have a default value as returned by the initializer of platformPreprocessorFlags
.
platformPreprocessorFlags
- The value for platformPreprocessorFlagsthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder putLangPreprocessorFlags(CxxSource.Type key, com.google.common.collect.ImmutableList<StringWithMacros> value)
langPreprocessorFlags
map.key
- The key in the langPreprocessorFlags mapvalue
- The associated value in the langPreprocessorFlags mapthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder putLangPreprocessorFlags(Map.Entry<CxxSource.Type,? extends com.google.common.collect.ImmutableList<StringWithMacros>> entry)
langPreprocessorFlags
map. Nulls are not permittedentry
- The key and value entrythis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder setLangPreprocessorFlags(Map<CxxSource.Type,? extends com.google.common.collect.ImmutableList<StringWithMacros>> entries)
langPreprocessorFlags
map. Nulls are not permittedentries
- The entries that will be added to the langPreprocessorFlags mapthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder putAllLangPreprocessorFlags(Map<CxxSource.Type,? extends com.google.common.collect.ImmutableList<StringWithMacros>> entries)
langPreprocessorFlags
map. Nulls are not permittedentries
- The entries that will be added to the langPreprocessorFlags mapthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder putLangPlatformPreprocessorFlags(CxxSource.Type key, PatternMatchedCollection<com.google.common.collect.ImmutableList<StringWithMacros>> value)
langPlatformPreprocessorFlags
map.key
- The key in the langPlatformPreprocessorFlags mapvalue
- The associated value in the langPlatformPreprocessorFlags mapthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder putLangPlatformPreprocessorFlags(Map.Entry<CxxSource.Type,? extends PatternMatchedCollection<com.google.common.collect.ImmutableList<StringWithMacros>>> entry)
langPlatformPreprocessorFlags
map. Nulls are not permittedentry
- The key and value entrythis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder setLangPlatformPreprocessorFlags(Map<CxxSource.Type,? extends PatternMatchedCollection<com.google.common.collect.ImmutableList<StringWithMacros>>> entries)
langPlatformPreprocessorFlags
map. Nulls are not permittedentries
- The entries that will be added to the langPlatformPreprocessorFlags mapthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder putAllLangPlatformPreprocessorFlags(Map<CxxSource.Type,? extends PatternMatchedCollection<com.google.common.collect.ImmutableList<StringWithMacros>>> entries)
langPlatformPreprocessorFlags
map. Nulls are not permittedentries
- The entries that will be added to the langPlatformPreprocessorFlags mapthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder addLinkerFlags(StringWithMacros element)
linkerFlags
list.element
- A linkerFlags elementthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder addLinkerFlags(StringWithMacros... elements)
linkerFlags
list.elements
- An array of linkerFlags elementsthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder setLinkerFlags(Iterable<? extends StringWithMacros> elements)
linkerFlags
list.elements
- An iterable of linkerFlags elementsthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder addAllLinkerFlags(Iterable<? extends StringWithMacros> elements)
linkerFlags
list.elements
- An iterable of linkerFlags elementsthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder addPostLinkerFlags(StringWithMacros element)
postLinkerFlags
list.element
- A postLinkerFlags elementthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder addPostLinkerFlags(StringWithMacros... elements)
postLinkerFlags
list.elements
- An array of postLinkerFlags elementsthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder setPostLinkerFlags(Iterable<? extends StringWithMacros> elements)
postLinkerFlags
list.elements
- An iterable of postLinkerFlags elementsthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder addAllPostLinkerFlags(Iterable<? extends StringWithMacros> elements)
postLinkerFlags
list.elements
- An iterable of postLinkerFlags elementsthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder addLinkerExtraOutputs(String element)
linkerExtraOutputs
list.element
- A linkerExtraOutputs elementthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder addLinkerExtraOutputs(String... elements)
linkerExtraOutputs
list.elements
- An array of linkerExtraOutputs elementsthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder setLinkerExtraOutputs(Iterable<String> elements)
linkerExtraOutputs
list.elements
- An iterable of linkerExtraOutputs elementsthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder addAllLinkerExtraOutputs(Iterable<String> elements)
linkerExtraOutputs
list.elements
- An iterable of linkerExtraOutputs elementsthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder setPlatformLinkerFlags(PatternMatchedCollection<com.google.common.collect.ImmutableList<StringWithMacros>> platformLinkerFlags)
platformLinkerFlags
attribute.
If not set, this attribute will have a default value as returned by the initializer of platformLinkerFlags
.
platformLinkerFlags
- The value for platformLinkerFlagsthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder setExecutableName(String executableName)
executableName
to executableName.executableName
- The value for executableNamethis
builder for chained invocationpublic final CxxTestDescriptionArg.Builder setExecutableName(Optional<String> executableName)
executableName
to executableName.executableName
- The value for executableNamethis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder setPostPlatformLinkerFlags(PatternMatchedCollection<com.google.common.collect.ImmutableList<StringWithMacros>> postPlatformLinkerFlags)
postPlatformLinkerFlags
attribute.
If not set, this attribute will have a default value as returned by the initializer of postPlatformLinkerFlags
.
postPlatformLinkerFlags
- The value for postPlatformLinkerFlagsthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder setPlatformDeps(PatternMatchedCollection<com.google.common.collect.ImmutableSortedSet<BuildTarget>> platformDeps)
platformDeps
attribute.
If not set, this attribute will have a default value as returned by the initializer of platformDeps
.
platformDeps
- The value for platformDepsthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder setHeaderNamespace(String headerNamespace)
headerNamespace
to headerNamespace.headerNamespace
- The value for headerNamespacethis
builder for chained invocationpublic final CxxTestDescriptionArg.Builder setHeaderNamespace(Optional<String> headerNamespace)
headerNamespace
to headerNamespace.headerNamespace
- The value for headerNamespacethis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder setCxxRuntimeType(Linker.CxxRuntimeType cxxRuntimeType)
cxxRuntimeType
to cxxRuntimeType.cxxRuntimeType
- The value for cxxRuntimeTypethis
builder for chained invocationpublic final CxxTestDescriptionArg.Builder setCxxRuntimeType(Optional<? extends Linker.CxxRuntimeType> cxxRuntimeType)
cxxRuntimeType
to cxxRuntimeType.cxxRuntimeType
- The value for cxxRuntimeTypethis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder putDefaults(String key, Flavor value)
defaults
map.key
- The key in the defaults mapvalue
- The associated value in the defaults mapthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder putDefaults(Map.Entry<String,? extends Flavor> entry)
defaults
map. Nulls are not permittedentry
- The key and value entrythis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder setDefaults(Map<String,? extends Flavor> entries)
defaults
map. Nulls are not permittedentries
- The entries that will be added to the defaults mapthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder putAllDefaults(Map<String,? extends Flavor> entries)
defaults
map. Nulls are not permittedentries
- The entries that will be added to the defaults mapthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder addLicenses(SourcePath element)
licenses
set.element
- A licenses elementthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder addLicenses(SourcePath... elements)
licenses
set.elements
- An array of licenses elementsthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder setLicenses(Iterable<? extends SourcePath> elements)
licenses
set.elements
- An iterable of licenses elementsthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder addAllLicenses(Iterable<? extends SourcePath> elements)
licenses
set.elements
- An iterable of licenses elementsthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder addLabels(String element)
labels
sortedSet.element
- A labels elementthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder addLabels(String... elements)
labels
sortedSet.elements
- An array of labels elementsthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder setLabels(Iterable<String> elements)
labels
sortedSet.elements
- An iterable of labels elementsthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder addAllLabels(Iterable<String> elements)
labels
sortedSet.elements
- An iterable of labels elementsthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder setDefaultTargetPlatform(UnconfiguredBuildTarget defaultTargetPlatform)
defaultTargetPlatform
to defaultTargetPlatform.defaultTargetPlatform
- The value for defaultTargetPlatformthis
builder for chained invocationpublic final CxxTestDescriptionArg.Builder setDefaultTargetPlatform(Optional<? extends UnconfiguredBuildTarget> defaultTargetPlatform)
defaultTargetPlatform
to defaultTargetPlatform.defaultTargetPlatform
- The value for defaultTargetPlatformthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget element)
compatibleWith
list.element
- A compatibleWith elementthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget... elements)
compatibleWith
list.elements
- An array of compatibleWith elementsthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder setCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
compatibleWith
list.elements
- An iterable of compatibleWith elementsthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder addAllCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
compatibleWith
list.elements
- An iterable of compatibleWith elementsthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder setName(String name)
name
attribute.name
- The value for namethis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder addDeps(BuildTarget element)
deps
sortedSet.element
- A deps elementthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder addDeps(BuildTarget... elements)
deps
sortedSet.elements
- An array of deps elementsthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder setDeps(Iterable<? extends BuildTarget> elements)
deps
sortedSet.elements
- An iterable of deps elementsthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder addAllDeps(Iterable<? extends BuildTarget> elements)
deps
sortedSet.elements
- An iterable of deps elementsthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder setDefaultPlatform(Flavor defaultPlatform)
defaultPlatform
to defaultPlatform.defaultPlatform
- The value for defaultPlatformthis
builder for chained invocationpublic final CxxTestDescriptionArg.Builder setDefaultPlatform(Optional<? extends Flavor> defaultPlatform)
defaultPlatform
to defaultPlatform.defaultPlatform
- The value for defaultPlatformthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder addTests(BuildTarget element)
tests
sortedSet.element
- A tests elementthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder addTests(BuildTarget... elements)
tests
sortedSet.elements
- An array of tests elementsthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder setTests(Iterable<? extends BuildTarget> elements)
tests
sortedSet.elements
- An iterable of tests elementsthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder addAllTests(Iterable<? extends BuildTarget> elements)
tests
sortedSet.elements
- An iterable of tests elementsthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder addFrameworks(FrameworkPath element)
frameworks
sortedSet.element
- A frameworks elementthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder addFrameworks(FrameworkPath... elements)
frameworks
sortedSet.elements
- An array of frameworks elementsthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder setFrameworks(Iterable<? extends FrameworkPath> elements)
frameworks
sortedSet.elements
- An iterable of frameworks elementsthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder addAllFrameworks(Iterable<? extends FrameworkPath> elements)
frameworks
sortedSet.elements
- An iterable of frameworks elementsthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder addLibraries(FrameworkPath element)
libraries
sortedSet.element
- A libraries elementthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder addLibraries(FrameworkPath... elements)
libraries
sortedSet.elements
- An array of libraries elementsthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder setLibraries(Iterable<? extends FrameworkPath> elements)
libraries
sortedSet.elements
- An iterable of libraries elementsthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder addAllLibraries(Iterable<? extends FrameworkPath> elements)
libraries
sortedSet.elements
- An iterable of libraries elementsthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder setVersionUniverse(String versionUniverse)
versionUniverse
to versionUniverse.versionUniverse
- The value for versionUniversethis
builder for chained invocationpublic final CxxTestDescriptionArg.Builder setVersionUniverse(Optional<String> versionUniverse)
versionUniverse
to versionUniverse.versionUniverse
- The value for versionUniversethis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder setDepsQuery(Query depsQuery)
depsQuery
to depsQuery.depsQuery
- The value for depsQuerythis
builder for chained invocationpublic final CxxTestDescriptionArg.Builder setDepsQuery(Optional<? extends Query> depsQuery)
depsQuery
to depsQuery.depsQuery
- The value for depsQuerythis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder addContacts(String element)
contacts
sortedSet.element
- A contacts elementthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder addContacts(String... elements)
contacts
sortedSet.elements
- An array of contacts elementsthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder setContacts(Iterable<String> elements)
contacts
sortedSet.elements
- An iterable of contacts elementsthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder addAllContacts(Iterable<String> elements)
contacts
sortedSet.elements
- An iterable of contacts elementsthis
builder for use in a chained invocationpublic final CxxTestDescriptionArg.Builder setTestRuleTimeoutMs(long testRuleTimeoutMs)
testRuleTimeoutMs
to testRuleTimeoutMs.testRuleTimeoutMs
- The value for testRuleTimeoutMsthis
builder for chained invocationpublic final CxxTestDescriptionArg.Builder setTestRuleTimeoutMs(Optional<Long> testRuleTimeoutMs)
testRuleTimeoutMs
to testRuleTimeoutMs.testRuleTimeoutMs
- The value for testRuleTimeoutMsthis
builder for use in a chained invocationpublic CxxTestDescriptionArg build()
CxxTestDescriptionArg
.IllegalStateException
- if any required attributes are missing