Class CxxPythonExtensionDescriptionArg.Builder
- java.lang.Object
-
- com.facebook.buck.features.python.CxxPythonExtensionDescriptionArg.Builder
-
- Enclosing class:
- CxxPythonExtensionDescriptionArg
@NotThreadSafe public static final class CxxPythonExtensionDescriptionArg.Builder extends Object
Builds instances of typeCxxPythonExtensionDescriptionArg
. 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 CxxPythonExtensionDescriptionArg.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 CxxPythonExtensionDescriptionArg.Builder from(CxxConstructorArg instance)
Fill a builder with attribute values from the providedcom.facebook.buck.cxx.CxxConstructorArg
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
from
public final CxxPythonExtensionDescriptionArg.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 CxxPythonExtensionDescriptionArg.Builder from(CxxPythonExtensionDescriptionArg instance)
Fill a builder with attribute values from the providedCxxPythonExtensionDescriptionArg
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
from
public final CxxPythonExtensionDescriptionArg.Builder from(com.facebook.buck.features.python.CxxPythonExtensionDescription.AbstractCxxPythonExtensionDescriptionArg instance)
Copy abstract value typeAbstractCxxPythonExtensionDescriptionArg
instance into builder.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
from
public final CxxPythonExtensionDescriptionArg.Builder from(HasDefaultPlatform instance)
Fill a builder with attribute values from the providedcom.facebook.buck.core.description.arg.HasDefaultPlatform
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
from
public final CxxPythonExtensionDescriptionArg.Builder from(HasSystemFrameworkAndLibraries instance)
Fill a builder with attribute values from the providedcom.facebook.buck.cxx.toolchain.HasSystemFrameworkAndLibraries
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
from
public final CxxPythonExtensionDescriptionArg.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 CxxPythonExtensionDescriptionArg.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
-
setBaseModule
public final CxxPythonExtensionDescriptionArg.Builder setBaseModule(String baseModule)
Initializes the optional valuebaseModule
to baseModule.- Parameters:
baseModule
- The value for baseModule- Returns:
this
builder for chained invocation
-
setBaseModule
public final CxxPythonExtensionDescriptionArg.Builder setBaseModule(Optional<String> baseModule)
Initializes the optional valuebaseModule
to baseModule.- Parameters:
baseModule
- The value for baseModule- Returns:
this
builder for use in a chained invocation
-
setModuleName
public final CxxPythonExtensionDescriptionArg.Builder setModuleName(String moduleName)
Initializes the optional valuemoduleName
to moduleName.- Parameters:
moduleName
- The value for moduleName- Returns:
this
builder for chained invocation
-
setModuleName
public final CxxPythonExtensionDescriptionArg.Builder setModuleName(Optional<String> moduleName)
Initializes the optional valuemoduleName
to moduleName.- Parameters:
moduleName
- The value for moduleName- Returns:
this
builder for use in a chained invocation
-
addCompilerFlags
public final CxxPythonExtensionDescriptionArg.Builder addCompilerFlags(StringWithMacros element)
Adds one element tocompilerFlags
list.- Parameters:
element
- A compilerFlags element- Returns:
this
builder for use in a chained invocation
-
addCompilerFlags
public final CxxPythonExtensionDescriptionArg.Builder addCompilerFlags(StringWithMacros... elements)
Adds elements tocompilerFlags
list.- Parameters:
elements
- An array of compilerFlags elements- Returns:
this
builder for use in a chained invocation
-
setCompilerFlags
public final CxxPythonExtensionDescriptionArg.Builder setCompilerFlags(Iterable<? extends StringWithMacros> elements)
Sets or replaces all elements forcompilerFlags
list.- Parameters:
elements
- An iterable of compilerFlags elements- Returns:
this
builder for use in a chained invocation
-
addAllCompilerFlags
public final CxxPythonExtensionDescriptionArg.Builder addAllCompilerFlags(Iterable<? extends StringWithMacros> elements)
Adds elements tocompilerFlags
list.- Parameters:
elements
- An iterable of compilerFlags elements- Returns:
this
builder for use in a chained invocation
-
setCxxRuntimeType
public final CxxPythonExtensionDescriptionArg.Builder setCxxRuntimeType(Linker.CxxRuntimeType cxxRuntimeType)
Initializes the optional valuecxxRuntimeType
to cxxRuntimeType.- Parameters:
cxxRuntimeType
- The value for cxxRuntimeType- Returns:
this
builder for chained invocation
-
setCxxRuntimeType
public final CxxPythonExtensionDescriptionArg.Builder setCxxRuntimeType(Optional<? extends Linker.CxxRuntimeType> cxxRuntimeType)
Initializes the optional valuecxxRuntimeType
to cxxRuntimeType.- Parameters:
cxxRuntimeType
- The value for cxxRuntimeType- Returns:
this
builder for use in a chained invocation
-
putDefaults
public final CxxPythonExtensionDescriptionArg.Builder putDefaults(String key, Flavor value)
Put one entry to thedefaults
map.- Parameters:
key
- The key in the defaults mapvalue
- The associated value in the defaults map- Returns:
this
builder for use in a chained invocation
-
putDefaults
public final CxxPythonExtensionDescriptionArg.Builder putDefaults(Map.Entry<String,? extends Flavor> entry)
Put one entry to thedefaults
map. Nulls are not permitted- Parameters:
entry
- The key and value entry- Returns:
this
builder for use in a chained invocation
-
setDefaults
public final CxxPythonExtensionDescriptionArg.Builder setDefaults(Map<String,? extends Flavor> entries)
Sets or replaces all mappings from the specified map as entries for thedefaults
map. Nulls are not permitted- Parameters:
entries
- The entries that will be added to the defaults map- Returns:
this
builder for use in a chained invocation
-
putAllDefaults
public final CxxPythonExtensionDescriptionArg.Builder putAllDefaults(Map<String,? extends Flavor> entries)
Put all mappings from the specified map as entries todefaults
map. Nulls are not permitted- Parameters:
entries
- The entries that will be added to the defaults map- Returns:
this
builder for use in a chained invocation
-
setExecutableName
public final CxxPythonExtensionDescriptionArg.Builder setExecutableName(String executableName)
Initializes the optional valueexecutableName
to executableName.- Parameters:
executableName
- The value for executableName- Returns:
this
builder for chained invocation
-
setExecutableName
public final CxxPythonExtensionDescriptionArg.Builder setExecutableName(Optional<String> executableName)
Initializes the optional valueexecutableName
to executableName.- Parameters:
executableName
- The value for executableName- Returns:
this
builder for use in a chained invocation
-
setHeaderNamespace
public final CxxPythonExtensionDescriptionArg.Builder setHeaderNamespace(String headerNamespace)
Initializes the optional valueheaderNamespace
to headerNamespace.- Parameters:
headerNamespace
- The value for headerNamespace- Returns:
this
builder for chained invocation
-
setHeaderNamespace
public final CxxPythonExtensionDescriptionArg.Builder setHeaderNamespace(Optional<String> headerNamespace)
Initializes the optional valueheaderNamespace
to headerNamespace.- Parameters:
headerNamespace
- The value for headerNamespace- Returns:
this
builder for use in a chained invocation
-
setHeaders
public final CxxPythonExtensionDescriptionArg.Builder setHeaders(SourceSortedSet headers)
Initializes the value for theheaders
attribute.If not set, this attribute will have a default value as returned by the initializer of
headers
.- Parameters:
headers
- The value for headers- Returns:
this
builder for use in a chained invocation
-
setIncludeDirectories
public final CxxPythonExtensionDescriptionArg.Builder setIncludeDirectories(com.google.common.collect.ImmutableSortedSet<String> includeDirectories)
Initializes the value for theincludeDirectories
attribute.If not set, this attribute will have a default value as returned by the initializer of
includeDirectories
.- Parameters:
includeDirectories
- The value for includeDirectories- Returns:
this
builder for use in a chained invocation
-
putLangCompilerFlags
public final CxxPythonExtensionDescriptionArg.Builder putLangCompilerFlags(CxxSource.Type key, com.google.common.collect.ImmutableList<StringWithMacros> value)
Put one entry to thelangCompilerFlags
map.- Parameters:
key
- The key in the langCompilerFlags mapvalue
- The associated value in the langCompilerFlags map- Returns:
this
builder for use in a chained invocation
-
putLangCompilerFlags
public final CxxPythonExtensionDescriptionArg.Builder putLangCompilerFlags(Map.Entry<CxxSource.Type,? extends com.google.common.collect.ImmutableList<StringWithMacros>> entry)
Put one entry to thelangCompilerFlags
map. Nulls are not permitted- Parameters:
entry
- The key and value entry- Returns:
this
builder for use in a chained invocation
-
setLangCompilerFlags
public final CxxPythonExtensionDescriptionArg.Builder setLangCompilerFlags(Map<CxxSource.Type,? extends com.google.common.collect.ImmutableList<StringWithMacros>> entries)
Sets or replaces all mappings from the specified map as entries for thelangCompilerFlags
map. Nulls are not permitted- Parameters:
entries
- The entries that will be added to the langCompilerFlags map- Returns:
this
builder for use in a chained invocation
-
putAllLangCompilerFlags
public final CxxPythonExtensionDescriptionArg.Builder putAllLangCompilerFlags(Map<CxxSource.Type,? extends com.google.common.collect.ImmutableList<StringWithMacros>> entries)
Put all mappings from the specified map as entries tolangCompilerFlags
map. Nulls are not permitted- Parameters:
entries
- The entries that will be added to the langCompilerFlags map- Returns:
this
builder for use in a chained invocation
-
putLangPlatformCompilerFlags
public final CxxPythonExtensionDescriptionArg.Builder putLangPlatformCompilerFlags(CxxSource.Type key, PatternMatchedCollection<com.google.common.collect.ImmutableList<StringWithMacros>> value)
Put one entry to thelangPlatformCompilerFlags
map.- Parameters:
key
- The key in the langPlatformCompilerFlags mapvalue
- The associated value in the langPlatformCompilerFlags map- Returns:
this
builder for use in a chained invocation
-
putLangPlatformCompilerFlags
public final CxxPythonExtensionDescriptionArg.Builder putLangPlatformCompilerFlags(Map.Entry<CxxSource.Type,? extends PatternMatchedCollection<com.google.common.collect.ImmutableList<StringWithMacros>>> entry)
Put one entry to thelangPlatformCompilerFlags
map. Nulls are not permitted- Parameters:
entry
- The key and value entry- Returns:
this
builder for use in a chained invocation
-
setLangPlatformCompilerFlags
public final CxxPythonExtensionDescriptionArg.Builder setLangPlatformCompilerFlags(Map<CxxSource.Type,? extends PatternMatchedCollection<com.google.common.collect.ImmutableList<StringWithMacros>>> entries)
Sets or replaces all mappings from the specified map as entries for thelangPlatformCompilerFlags
map. Nulls are not permitted- Parameters:
entries
- The entries that will be added to the langPlatformCompilerFlags map- Returns:
this
builder for use in a chained invocation
-
putAllLangPlatformCompilerFlags
public final CxxPythonExtensionDescriptionArg.Builder putAllLangPlatformCompilerFlags(Map<CxxSource.Type,? extends PatternMatchedCollection<com.google.common.collect.ImmutableList<StringWithMacros>>> entries)
Put all mappings from the specified map as entries tolangPlatformCompilerFlags
map. Nulls are not permitted- Parameters:
entries
- The entries that will be added to the langPlatformCompilerFlags map- Returns:
this
builder for use in a chained invocation
-
putLangPlatformPreprocessorFlags
public final CxxPythonExtensionDescriptionArg.Builder putLangPlatformPreprocessorFlags(CxxSource.Type key, PatternMatchedCollection<com.google.common.collect.ImmutableList<StringWithMacros>> value)
Put one entry to thelangPlatformPreprocessorFlags
map.- Parameters:
key
- The key in the langPlatformPreprocessorFlags mapvalue
- The associated value in the langPlatformPreprocessorFlags map- Returns:
this
builder for use in a chained invocation
-
putLangPlatformPreprocessorFlags
public final CxxPythonExtensionDescriptionArg.Builder putLangPlatformPreprocessorFlags(Map.Entry<CxxSource.Type,? extends PatternMatchedCollection<com.google.common.collect.ImmutableList<StringWithMacros>>> entry)
Put one entry to thelangPlatformPreprocessorFlags
map. Nulls are not permitted- Parameters:
entry
- The key and value entry- Returns:
this
builder for use in a chained invocation
-
setLangPlatformPreprocessorFlags
public final CxxPythonExtensionDescriptionArg.Builder setLangPlatformPreprocessorFlags(Map<CxxSource.Type,? extends PatternMatchedCollection<com.google.common.collect.ImmutableList<StringWithMacros>>> entries)
Sets or replaces all mappings from the specified map as entries for thelangPlatformPreprocessorFlags
map. Nulls are not permitted- Parameters:
entries
- The entries that will be added to the langPlatformPreprocessorFlags map- Returns:
this
builder for use in a chained invocation
-
putAllLangPlatformPreprocessorFlags
public final CxxPythonExtensionDescriptionArg.Builder putAllLangPlatformPreprocessorFlags(Map<CxxSource.Type,? extends PatternMatchedCollection<com.google.common.collect.ImmutableList<StringWithMacros>>> entries)
Put all mappings from the specified map as entries tolangPlatformPreprocessorFlags
map. Nulls are not permitted- Parameters:
entries
- The entries that will be added to the langPlatformPreprocessorFlags map- Returns:
this
builder for use in a chained invocation
-
putLangPreprocessorFlags
public final CxxPythonExtensionDescriptionArg.Builder putLangPreprocessorFlags(CxxSource.Type key, com.google.common.collect.ImmutableList<StringWithMacros> value)
Put one entry to thelangPreprocessorFlags
map.- Parameters:
key
- The key in the langPreprocessorFlags mapvalue
- The associated value in the langPreprocessorFlags map- Returns:
this
builder for use in a chained invocation
-
putLangPreprocessorFlags
public final CxxPythonExtensionDescriptionArg.Builder putLangPreprocessorFlags(Map.Entry<CxxSource.Type,? extends com.google.common.collect.ImmutableList<StringWithMacros>> entry)
Put one entry to thelangPreprocessorFlags
map. Nulls are not permitted- Parameters:
entry
- The key and value entry- Returns:
this
builder for use in a chained invocation
-
setLangPreprocessorFlags
public final CxxPythonExtensionDescriptionArg.Builder setLangPreprocessorFlags(Map<CxxSource.Type,? extends com.google.common.collect.ImmutableList<StringWithMacros>> entries)
Sets or replaces all mappings from the specified map as entries for thelangPreprocessorFlags
map. Nulls are not permitted- Parameters:
entries
- The entries that will be added to the langPreprocessorFlags map- Returns:
this
builder for use in a chained invocation
-
putAllLangPreprocessorFlags
public final CxxPythonExtensionDescriptionArg.Builder putAllLangPreprocessorFlags(Map<CxxSource.Type,? extends com.google.common.collect.ImmutableList<StringWithMacros>> entries)
Put all mappings from the specified map as entries tolangPreprocessorFlags
map. Nulls are not permitted- Parameters:
entries
- The entries that will be added to the langPreprocessorFlags map- Returns:
this
builder for use in a chained invocation
-
addLinkerExtraOutputs
public final CxxPythonExtensionDescriptionArg.Builder addLinkerExtraOutputs(String element)
Adds one element tolinkerExtraOutputs
list.- Parameters:
element
- A linkerExtraOutputs element- Returns:
this
builder for use in a chained invocation
-
addLinkerExtraOutputs
public final CxxPythonExtensionDescriptionArg.Builder addLinkerExtraOutputs(String... elements)
Adds elements tolinkerExtraOutputs
list.- Parameters:
elements
- An array of linkerExtraOutputs elements- Returns:
this
builder for use in a chained invocation
-
setLinkerExtraOutputs
public final CxxPythonExtensionDescriptionArg.Builder setLinkerExtraOutputs(Iterable<String> elements)
Sets or replaces all elements forlinkerExtraOutputs
list.- Parameters:
elements
- An iterable of linkerExtraOutputs elements- Returns:
this
builder for use in a chained invocation
-
addAllLinkerExtraOutputs
public final CxxPythonExtensionDescriptionArg.Builder addAllLinkerExtraOutputs(Iterable<String> elements)
Adds elements tolinkerExtraOutputs
list.- Parameters:
elements
- An iterable of linkerExtraOutputs elements- Returns:
this
builder for use in a chained invocation
-
addLinkerFlags
public final CxxPythonExtensionDescriptionArg.Builder addLinkerFlags(StringWithMacros element)
Adds one element tolinkerFlags
list.- Parameters:
element
- A linkerFlags element- Returns:
this
builder for use in a chained invocation
-
addLinkerFlags
public final CxxPythonExtensionDescriptionArg.Builder addLinkerFlags(StringWithMacros... elements)
Adds elements tolinkerFlags
list.- Parameters:
elements
- An array of linkerFlags elements- Returns:
this
builder for use in a chained invocation
-
setLinkerFlags
public final CxxPythonExtensionDescriptionArg.Builder setLinkerFlags(Iterable<? extends StringWithMacros> elements)
Sets or replaces all elements forlinkerFlags
list.- Parameters:
elements
- An iterable of linkerFlags elements- Returns:
this
builder for use in a chained invocation
-
addAllLinkerFlags
public final CxxPythonExtensionDescriptionArg.Builder addAllLinkerFlags(Iterable<? extends StringWithMacros> elements)
Adds elements tolinkerFlags
list.- Parameters:
elements
- An iterable of linkerFlags elements- Returns:
this
builder for use in a chained invocation
-
setPlatformCompilerFlags
public final CxxPythonExtensionDescriptionArg.Builder setPlatformCompilerFlags(PatternMatchedCollection<com.google.common.collect.ImmutableList<StringWithMacros>> platformCompilerFlags)
Initializes the value for theplatformCompilerFlags
attribute.If not set, this attribute will have a default value as returned by the initializer of
platformCompilerFlags
.- Parameters:
platformCompilerFlags
- The value for platformCompilerFlags- Returns:
this
builder for use in a chained invocation
-
setPlatformDeps
public final CxxPythonExtensionDescriptionArg.Builder setPlatformDeps(PatternMatchedCollection<com.google.common.collect.ImmutableSortedSet<BuildTarget>> platformDeps)
Initializes the value for theplatformDeps
attribute.If not set, this attribute will have a default value as returned by the initializer of
platformDeps
.- Parameters:
platformDeps
- The value for platformDeps- Returns:
this
builder for use in a chained invocation
-
setPlatformHeaders
public final CxxPythonExtensionDescriptionArg.Builder setPlatformHeaders(PatternMatchedCollection<SourceSortedSet> platformHeaders)
Initializes the value for theplatformHeaders
attribute.If not set, this attribute will have a default value as returned by the initializer of
platformHeaders
.- Parameters:
platformHeaders
- The value for platformHeaders- Returns:
this
builder for use in a chained invocation
-
setPlatformLinkerFlags
public final CxxPythonExtensionDescriptionArg.Builder setPlatformLinkerFlags(PatternMatchedCollection<com.google.common.collect.ImmutableList<StringWithMacros>> platformLinkerFlags)
Initializes the value for theplatformLinkerFlags
attribute.If not set, this attribute will have a default value as returned by the initializer of
platformLinkerFlags
.- Parameters:
platformLinkerFlags
- The value for platformLinkerFlags- Returns:
this
builder for use in a chained invocation
-
setPlatformPreprocessorFlags
public final CxxPythonExtensionDescriptionArg.Builder setPlatformPreprocessorFlags(PatternMatchedCollection<com.google.common.collect.ImmutableList<StringWithMacros>> platformPreprocessorFlags)
Initializes the value for theplatformPreprocessorFlags
attribute.If not set, this attribute will have a default value as returned by the initializer of
platformPreprocessorFlags
.- Parameters:
platformPreprocessorFlags
- The value for platformPreprocessorFlags- Returns:
this
builder for use in a chained invocation
-
setPlatformSrcs
public final CxxPythonExtensionDescriptionArg.Builder setPlatformSrcs(PatternMatchedCollection<com.google.common.collect.ImmutableSortedSet<SourceWithFlags>> platformSrcs)
Initializes the value for theplatformSrcs
attribute.If not set, this attribute will have a default value as returned by the initializer of
platformSrcs
.- Parameters:
platformSrcs
- The value for platformSrcs- Returns:
this
builder for use in a chained invocation
-
addPostLinkerFlags
public final CxxPythonExtensionDescriptionArg.Builder addPostLinkerFlags(StringWithMacros element)
Adds one element topostLinkerFlags
list.- Parameters:
element
- A postLinkerFlags element- Returns:
this
builder for use in a chained invocation
-
addPostLinkerFlags
public final CxxPythonExtensionDescriptionArg.Builder addPostLinkerFlags(StringWithMacros... elements)
Adds elements topostLinkerFlags
list.- Parameters:
elements
- An array of postLinkerFlags elements- Returns:
this
builder for use in a chained invocation
-
setPostLinkerFlags
public final CxxPythonExtensionDescriptionArg.Builder setPostLinkerFlags(Iterable<? extends StringWithMacros> elements)
Sets or replaces all elements forpostLinkerFlags
list.- Parameters:
elements
- An iterable of postLinkerFlags elements- Returns:
this
builder for use in a chained invocation
-
addAllPostLinkerFlags
public final CxxPythonExtensionDescriptionArg.Builder addAllPostLinkerFlags(Iterable<? extends StringWithMacros> elements)
Adds elements topostLinkerFlags
list.- Parameters:
elements
- An iterable of postLinkerFlags elements- Returns:
this
builder for use in a chained invocation
-
setPostPlatformLinkerFlags
public final CxxPythonExtensionDescriptionArg.Builder setPostPlatformLinkerFlags(PatternMatchedCollection<com.google.common.collect.ImmutableList<StringWithMacros>> postPlatformLinkerFlags)
Initializes the value for thepostPlatformLinkerFlags
attribute.If not set, this attribute will have a default value as returned by the initializer of
postPlatformLinkerFlags
.- Parameters:
postPlatformLinkerFlags
- The value for postPlatformLinkerFlags- Returns:
this
builder for use in a chained invocation
-
setPrecompiledHeader
public final CxxPythonExtensionDescriptionArg.Builder setPrecompiledHeader(SourcePath precompiledHeader)
Initializes the optional valueprecompiledHeader
to precompiledHeader.- Parameters:
precompiledHeader
- The value for precompiledHeader- Returns:
this
builder for chained invocation
-
setPrecompiledHeader
public final CxxPythonExtensionDescriptionArg.Builder setPrecompiledHeader(Optional<? extends SourcePath> precompiledHeader)
Initializes the optional valueprecompiledHeader
to precompiledHeader.- Parameters:
precompiledHeader
- The value for precompiledHeader- Returns:
this
builder for use in a chained invocation
-
setPrefixHeader
public final CxxPythonExtensionDescriptionArg.Builder setPrefixHeader(SourcePath prefixHeader)
Initializes the optional valueprefixHeader
to prefixHeader.- Parameters:
prefixHeader
- The value for prefixHeader- Returns:
this
builder for chained invocation
-
setPrefixHeader
public final CxxPythonExtensionDescriptionArg.Builder setPrefixHeader(Optional<? extends SourcePath> prefixHeader)
Initializes the optional valueprefixHeader
to prefixHeader.- Parameters:
prefixHeader
- The value for prefixHeader- Returns:
this
builder for use in a chained invocation
-
addPreprocessorFlags
public final CxxPythonExtensionDescriptionArg.Builder addPreprocessorFlags(StringWithMacros element)
Adds one element topreprocessorFlags
list.- Parameters:
element
- A preprocessorFlags element- Returns:
this
builder for use in a chained invocation
-
addPreprocessorFlags
public final CxxPythonExtensionDescriptionArg.Builder addPreprocessorFlags(StringWithMacros... elements)
Adds elements topreprocessorFlags
list.- Parameters:
elements
- An array of preprocessorFlags elements- Returns:
this
builder for use in a chained invocation
-
setPreprocessorFlags
public final CxxPythonExtensionDescriptionArg.Builder setPreprocessorFlags(Iterable<? extends StringWithMacros> elements)
Sets or replaces all elements forpreprocessorFlags
list.- Parameters:
elements
- An iterable of preprocessorFlags elements- Returns:
this
builder for use in a chained invocation
-
addAllPreprocessorFlags
public final CxxPythonExtensionDescriptionArg.Builder addAllPreprocessorFlags(Iterable<? extends StringWithMacros> elements)
Adds elements topreprocessorFlags
list.- Parameters:
elements
- An iterable of preprocessorFlags elements- Returns:
this
builder for use in a chained invocation
-
setRawHeaders
public final CxxPythonExtensionDescriptionArg.Builder setRawHeaders(com.google.common.collect.ImmutableSortedSet<SourcePath> rawHeaders)
Initializes the value for therawHeaders
attribute.If not set, this attribute will have a default value as returned by the initializer of
rawHeaders
.- Parameters:
rawHeaders
- The value for rawHeaders- Returns:
this
builder for use in a chained invocation
-
addSrcs
public final CxxPythonExtensionDescriptionArg.Builder addSrcs(SourceWithFlags element)
Adds one element tosrcs
sortedSet.- Parameters:
element
- A srcs element- Returns:
this
builder for use in a chained invocation
-
addSrcs
public final CxxPythonExtensionDescriptionArg.Builder addSrcs(SourceWithFlags... elements)
Adds elements tosrcs
sortedSet.- Parameters:
elements
- An array of srcs elements- Returns:
this
builder for use in a chained invocation
-
setSrcs
public final CxxPythonExtensionDescriptionArg.Builder setSrcs(Iterable<? extends SourceWithFlags> 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 CxxPythonExtensionDescriptionArg.Builder addAllSrcs(Iterable<? extends SourceWithFlags> elements)
Adds elements tosrcs
sortedSet.- Parameters:
elements
- An iterable of srcs elements- Returns:
this
builder for use in a chained invocation
-
addCompatibleWith
public final CxxPythonExtensionDescriptionArg.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 CxxPythonExtensionDescriptionArg.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 CxxPythonExtensionDescriptionArg.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 CxxPythonExtensionDescriptionArg.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
-
setDefaultTargetPlatform
public final CxxPythonExtensionDescriptionArg.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 CxxPythonExtensionDescriptionArg.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
-
addLabels
public final CxxPythonExtensionDescriptionArg.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 CxxPythonExtensionDescriptionArg.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 CxxPythonExtensionDescriptionArg.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 CxxPythonExtensionDescriptionArg.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
-
addLicenses
public final CxxPythonExtensionDescriptionArg.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 CxxPythonExtensionDescriptionArg.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 CxxPythonExtensionDescriptionArg.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 CxxPythonExtensionDescriptionArg.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
-
setName
public final CxxPythonExtensionDescriptionArg.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
-
addDeps
public final CxxPythonExtensionDescriptionArg.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 CxxPythonExtensionDescriptionArg.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 CxxPythonExtensionDescriptionArg.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 CxxPythonExtensionDescriptionArg.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
-
setDefaultPlatform
public final CxxPythonExtensionDescriptionArg.Builder setDefaultPlatform(Flavor defaultPlatform)
Initializes the optional valuedefaultPlatform
to defaultPlatform.- Parameters:
defaultPlatform
- The value for defaultPlatform- Returns:
this
builder for chained invocation
-
setDefaultPlatform
public final CxxPythonExtensionDescriptionArg.Builder setDefaultPlatform(Optional<? extends Flavor> defaultPlatform)
Initializes the optional valuedefaultPlatform
to defaultPlatform.- Parameters:
defaultPlatform
- The value for defaultPlatform- Returns:
this
builder for use in a chained invocation
-
addTests
public final CxxPythonExtensionDescriptionArg.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 CxxPythonExtensionDescriptionArg.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 CxxPythonExtensionDescriptionArg.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 CxxPythonExtensionDescriptionArg.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
-
addFrameworks
public final CxxPythonExtensionDescriptionArg.Builder addFrameworks(FrameworkPath element)
Adds one element toframeworks
sortedSet.- Parameters:
element
- A frameworks element- Returns:
this
builder for use in a chained invocation
-
addFrameworks
public final CxxPythonExtensionDescriptionArg.Builder addFrameworks(FrameworkPath... elements)
Adds elements toframeworks
sortedSet.- Parameters:
elements
- An array of frameworks elements- Returns:
this
builder for use in a chained invocation
-
setFrameworks
public final CxxPythonExtensionDescriptionArg.Builder setFrameworks(Iterable<? extends FrameworkPath> elements)
Sets or replaces all elements forframeworks
sortedSet.- Parameters:
elements
- An iterable of frameworks elements- Returns:
this
builder for use in a chained invocation
-
addAllFrameworks
public final CxxPythonExtensionDescriptionArg.Builder addAllFrameworks(Iterable<? extends FrameworkPath> elements)
Adds elements toframeworks
sortedSet.- Parameters:
elements
- An iterable of frameworks elements- Returns:
this
builder for use in a chained invocation
-
addLibraries
public final CxxPythonExtensionDescriptionArg.Builder addLibraries(FrameworkPath element)
Adds one element tolibraries
sortedSet.- Parameters:
element
- A libraries element- Returns:
this
builder for use in a chained invocation
-
addLibraries
public final CxxPythonExtensionDescriptionArg.Builder addLibraries(FrameworkPath... elements)
Adds elements tolibraries
sortedSet.- Parameters:
elements
- An array of libraries elements- Returns:
this
builder for use in a chained invocation
-
setLibraries
public final CxxPythonExtensionDescriptionArg.Builder setLibraries(Iterable<? extends FrameworkPath> elements)
Sets or replaces all elements forlibraries
sortedSet.- Parameters:
elements
- An iterable of libraries elements- Returns:
this
builder for use in a chained invocation
-
addAllLibraries
public final CxxPythonExtensionDescriptionArg.Builder addAllLibraries(Iterable<? extends FrameworkPath> elements)
Adds elements tolibraries
sortedSet.- Parameters:
elements
- An iterable of libraries elements- Returns:
this
builder for use in a chained invocation
-
build
public CxxPythonExtensionDescriptionArg build()
Builds a newCxxPythonExtensionDescriptionArg
.- Returns:
- An immutable instance of CxxPythonExtensionDescriptionArg
- Throws:
IllegalStateException
- if any required attributes are missing
-
-