Package com.facebook.buck.shell
Class WorkerToolDescriptionArg
- java.lang.Object
-
- com.facebook.buck.shell.WorkerToolDescriptionArg
-
- All Implemented Interfaces:
BuildRuleArg
,ConstructorArg
,DataTransferObject
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class WorkerToolDescriptionArg extends Object
Immutable implementation ofWorkerToolDescription.AbstractWorkerToolDescriptionArg
.Use the builder to create immutable instances:
WorkerToolDescriptionArg.builder()
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WorkerToolDescriptionArg.Builder
Builds instances of typeWorkerToolDescriptionArg
.
-
Field Summary
-
Fields inherited from interface com.facebook.buck.core.description.arg.BuildRuleArg
DEFAULT_TARGET_PLATFORM_PARAM_NAME
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WorkerToolDescriptionArg.Builder
builder()
Creates a builder forWorkerToolDescriptionArg
.boolean
equals(Object another)
This instance is equal to all instances ofWorkerToolDescriptionArg
that have equal attribute values.Either<StringWithMacros,com.google.common.collect.ImmutableList<StringWithMacros>>
getArgs()
com.google.common.collect.ImmutableList<UnconfiguredBuildTarget>
getCompatibleWith()
A list ofconfig_setting
a target is compatible with.Optional<UnconfiguredBuildTarget>
getDefaultTargetPlatform()
The name of build target default "new" platform: it is used when a platform is not specified either globally or in a target which used this target as a dependency.com.google.common.collect.ImmutableMap<String,StringWithMacros>
getEnv()
Optional<BuildTarget>
getExe()
com.google.common.collect.ImmutableSortedSet<String>
getLabels()
com.google.common.collect.ImmutableSet<SourcePath>
getLicenses()
Optional<Integer>
getMaxWorkers()
Optional<Integer>
getMaxWorkersPerThreadPercent()
String
getName()
Each rule has a nameOptional<Boolean>
getPersistent()
Optional<Boolean>
getSoloAsync()
int
hashCode()
Computes a hash code from attributes:env
,args
,exe
,maxWorkers
,maxWorkersPerThreadPercent
,persistent
,soloAsync
,licenses
,labels
,defaultTargetPlatform
,compatibleWith
,name
.String
toString()
Prints the immutable valueWorkerToolDescriptionArg
with attribute values.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.facebook.buck.core.description.arg.BuildRuleArg
labelsContainsAnyOf
-
-
-
-
Method Detail
-
getEnv
public com.google.common.collect.ImmutableMap<String,StringWithMacros> getEnv()
- Returns:
- The value of the
env
attribute
-
getArgs
public Either<StringWithMacros,com.google.common.collect.ImmutableList<StringWithMacros>> getArgs()
- Returns:
- The value of the
args
attribute
-
getExe
public Optional<BuildTarget> getExe()
- Returns:
- The value of the
exe
attribute
-
getMaxWorkers
public Optional<Integer> getMaxWorkers()
- Returns:
- The value of the
maxWorkers
attribute
-
getMaxWorkersPerThreadPercent
public Optional<Integer> getMaxWorkersPerThreadPercent()
- Returns:
- The value of the
maxWorkersPerThreadPercent
attribute
-
getPersistent
public Optional<Boolean> getPersistent()
- Returns:
- The value of the
persistent
attribute
-
getLicenses
public com.google.common.collect.ImmutableSet<SourcePath> getLicenses()
- Specified by:
getLicenses
in interfaceBuildRuleArg
- Returns:
- The value of the
licenses
attribute
-
getLabels
public com.google.common.collect.ImmutableSortedSet<String> getLabels()
- Specified by:
getLabels
in interfaceBuildRuleArg
- Returns:
- The value of the
labels
attribute
-
getDefaultTargetPlatform
public Optional<UnconfiguredBuildTarget> getDefaultTargetPlatform()
The name of build target default "new" platform: it is used when a platform is not specified either globally or in a target which used this target as a dependency.The value is a build target, but we specify it as string, because this function is not actually called, but the attr is fetched by name from the raw (unconfigured) target node.
- Specified by:
getDefaultTargetPlatform
in interfaceBuildRuleArg
-
getCompatibleWith
public com.google.common.collect.ImmutableList<UnconfiguredBuildTarget> getCompatibleWith()
A list ofconfig_setting
a target is compatible with.- Specified by:
getCompatibleWith
in interfaceBuildRuleArg
-
getName
public String getName()
Each rule has a name- Specified by:
getName
in interfaceConstructorArg
-
equals
public boolean equals(@Nullable Object another)
This instance is equal to all instances ofWorkerToolDescriptionArg
that have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:env
,args
,exe
,maxWorkers
,maxWorkersPerThreadPercent
,persistent
,soloAsync
,licenses
,labels
,defaultTargetPlatform
,compatibleWith
,name
.
-
toString
public String toString()
Prints the immutable valueWorkerToolDescriptionArg
with attribute values.
-
builder
public static WorkerToolDescriptionArg.Builder builder()
Creates a builder forWorkerToolDescriptionArg
.- Returns:
- A new WorkerToolDescriptionArg builder
-
-