@NotThreadSafe public static final class GoBinaryDescriptionArg.Builder extends Object
GoBinaryDescriptionArg
.
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 GoBinaryDescriptionArg.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 GoBinaryDescriptionArg.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 GoBinaryDescriptionArg.Builder from(HasGoLinkable instance)
com.facebook.buck.features.go.HasGoLinkable
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final GoBinaryDescriptionArg.Builder from(HasSrcs instance)
com.facebook.buck.core.description.arg.HasSrcs
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final GoBinaryDescriptionArg.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 GoBinaryDescriptionArg.Builder from(GoBinaryDescriptionArg instance)
GoBinaryDescriptionArg
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final GoBinaryDescriptionArg.Builder from(com.facebook.buck.features.go.GoBinaryDescription.AbstractGoBinaryDescriptionArg instance)
AbstractGoBinaryDescriptionArg
instance into builder.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final GoBinaryDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget element)
compatibleWith
list.element
- A compatibleWith elementthis
builder for use in a chained invocationpublic final GoBinaryDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget... elements)
compatibleWith
list.elements
- An array of compatibleWith elementsthis
builder for use in a chained invocationpublic final GoBinaryDescriptionArg.Builder setCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
compatibleWith
list.elements
- An iterable of compatibleWith elementsthis
builder for use in a chained invocationpublic final GoBinaryDescriptionArg.Builder addAllCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
compatibleWith
list.elements
- An iterable of compatibleWith elementsthis
builder for use in a chained invocationpublic final GoBinaryDescriptionArg.Builder setDefaultTargetPlatform(UnconfiguredBuildTarget defaultTargetPlatform)
defaultTargetPlatform
to defaultTargetPlatform.defaultTargetPlatform
- The value for defaultTargetPlatformthis
builder for chained invocationpublic final GoBinaryDescriptionArg.Builder setDefaultTargetPlatform(Optional<? extends UnconfiguredBuildTarget> defaultTargetPlatform)
defaultTargetPlatform
to defaultTargetPlatform.defaultTargetPlatform
- The value for defaultTargetPlatformthis
builder for use in a chained invocationpublic final GoBinaryDescriptionArg.Builder addLabels(String element)
labels
sortedSet.element
- A labels elementthis
builder for use in a chained invocationpublic final GoBinaryDescriptionArg.Builder addLabels(String... elements)
labels
sortedSet.elements
- An array of labels elementsthis
builder for use in a chained invocationpublic final GoBinaryDescriptionArg.Builder setLabels(Iterable<String> elements)
labels
sortedSet.elements
- An iterable of labels elementsthis
builder for use in a chained invocationpublic final GoBinaryDescriptionArg.Builder addAllLabels(Iterable<String> elements)
labels
sortedSet.elements
- An iterable of labels elementsthis
builder for use in a chained invocationpublic final GoBinaryDescriptionArg.Builder addLicenses(SourcePath element)
licenses
set.element
- A licenses elementthis
builder for use in a chained invocationpublic final GoBinaryDescriptionArg.Builder addLicenses(SourcePath... elements)
licenses
set.elements
- An array of licenses elementsthis
builder for use in a chained invocationpublic final GoBinaryDescriptionArg.Builder setLicenses(Iterable<? extends SourcePath> elements)
licenses
set.elements
- An iterable of licenses elementsthis
builder for use in a chained invocationpublic final GoBinaryDescriptionArg.Builder addAllLicenses(Iterable<? extends SourcePath> elements)
licenses
set.elements
- An iterable of licenses elementsthis
builder for use in a chained invocationpublic final GoBinaryDescriptionArg.Builder setName(String name)
name
attribute.name
- The value for namethis
builder for use in a chained invocationpublic final GoBinaryDescriptionArg.Builder addDeps(BuildTarget element)
deps
sortedSet.element
- A deps elementthis
builder for use in a chained invocationpublic final GoBinaryDescriptionArg.Builder addDeps(BuildTarget... elements)
deps
sortedSet.elements
- An array of deps elementsthis
builder for use in a chained invocationpublic final GoBinaryDescriptionArg.Builder setDeps(Iterable<? extends BuildTarget> elements)
deps
sortedSet.elements
- An iterable of deps elementsthis
builder for use in a chained invocationpublic final GoBinaryDescriptionArg.Builder addAllDeps(Iterable<? extends BuildTarget> elements)
deps
sortedSet.elements
- An iterable of deps elementsthis
builder for use in a chained invocationpublic final GoBinaryDescriptionArg.Builder addSrcs(SourcePath element)
srcs
sortedSet.element
- A srcs elementthis
builder for use in a chained invocationpublic final GoBinaryDescriptionArg.Builder addSrcs(SourcePath... elements)
srcs
sortedSet.elements
- An array of srcs elementsthis
builder for use in a chained invocationpublic final GoBinaryDescriptionArg.Builder setSrcs(Iterable<? extends SourcePath> elements)
srcs
sortedSet.elements
- An iterable of srcs elementsthis
builder for use in a chained invocationpublic final GoBinaryDescriptionArg.Builder addAllSrcs(Iterable<? extends SourcePath> elements)
srcs
sortedSet.elements
- An iterable of srcs elementsthis
builder for use in a chained invocationpublic final GoBinaryDescriptionArg.Builder setPlatform(Flavor platform)
platform
to platform.platform
- The value for platformthis
builder for chained invocationpublic final GoBinaryDescriptionArg.Builder setPlatform(Optional<? extends Flavor> platform)
platform
to platform.platform
- The value for platformthis
builder for use in a chained invocationpublic final GoBinaryDescriptionArg.Builder setLinkStyle(Linker.LinkableDepType linkStyle)
linkStyle
to linkStyle.linkStyle
- The value for linkStylethis
builder for chained invocationpublic final GoBinaryDescriptionArg.Builder setLinkStyle(Optional<? extends Linker.LinkableDepType> linkStyle)
linkStyle
to linkStyle.linkStyle
- The value for linkStylethis
builder for use in a chained invocationpublic final GoBinaryDescriptionArg.Builder setLinkMode(com.facebook.buck.features.go.GoLinkStep.LinkMode linkMode)
linkMode
to linkMode.linkMode
- The value for linkModethis
builder for chained invocationpublic final GoBinaryDescriptionArg.Builder setLinkMode(Optional<? extends com.facebook.buck.features.go.GoLinkStep.LinkMode> linkMode)
linkMode
to linkMode.linkMode
- The value for linkModethis
builder for use in a chained invocationpublic final GoBinaryDescriptionArg.Builder addCompilerFlags(String element)
compilerFlags
list.element
- A compilerFlags elementthis
builder for use in a chained invocationpublic final GoBinaryDescriptionArg.Builder addCompilerFlags(String... elements)
compilerFlags
list.elements
- An array of compilerFlags elementsthis
builder for use in a chained invocationpublic final GoBinaryDescriptionArg.Builder setCompilerFlags(Iterable<String> elements)
compilerFlags
list.elements
- An iterable of compilerFlags elementsthis
builder for use in a chained invocationpublic final GoBinaryDescriptionArg.Builder addAllCompilerFlags(Iterable<String> elements)
compilerFlags
list.elements
- An iterable of compilerFlags elementsthis
builder for use in a chained invocationpublic final GoBinaryDescriptionArg.Builder addAssemblerFlags(String element)
assemblerFlags
list.element
- A assemblerFlags elementthis
builder for use in a chained invocationpublic final GoBinaryDescriptionArg.Builder addAssemblerFlags(String... elements)
assemblerFlags
list.elements
- An array of assemblerFlags elementsthis
builder for use in a chained invocationpublic final GoBinaryDescriptionArg.Builder setAssemblerFlags(Iterable<String> elements)
assemblerFlags
list.elements
- An iterable of assemblerFlags elementsthis
builder for use in a chained invocationpublic final GoBinaryDescriptionArg.Builder addAllAssemblerFlags(Iterable<String> elements)
assemblerFlags
list.elements
- An iterable of assemblerFlags elementsthis
builder for use in a chained invocationpublic final GoBinaryDescriptionArg.Builder addLinkerFlags(String element)
linkerFlags
list.element
- A linkerFlags elementthis
builder for use in a chained invocationpublic final GoBinaryDescriptionArg.Builder addLinkerFlags(String... elements)
linkerFlags
list.elements
- An array of linkerFlags elementsthis
builder for use in a chained invocationpublic final GoBinaryDescriptionArg.Builder setLinkerFlags(Iterable<String> elements)
linkerFlags
list.elements
- An iterable of linkerFlags elementsthis
builder for use in a chained invocationpublic final GoBinaryDescriptionArg.Builder addAllLinkerFlags(Iterable<String> elements)
linkerFlags
list.elements
- An iterable of linkerFlags elementsthis
builder for use in a chained invocationpublic final GoBinaryDescriptionArg.Builder addExternalLinkerFlags(String element)
externalLinkerFlags
list.element
- A externalLinkerFlags elementthis
builder for use in a chained invocationpublic final GoBinaryDescriptionArg.Builder addExternalLinkerFlags(String... elements)
externalLinkerFlags
list.elements
- An array of externalLinkerFlags elementsthis
builder for use in a chained invocationpublic final GoBinaryDescriptionArg.Builder setExternalLinkerFlags(Iterable<String> elements)
externalLinkerFlags
list.elements
- An iterable of externalLinkerFlags elementsthis
builder for use in a chained invocationpublic final GoBinaryDescriptionArg.Builder addAllExternalLinkerFlags(Iterable<String> elements)
externalLinkerFlags
list.elements
- An iterable of externalLinkerFlags elementsthis
builder for use in a chained invocationpublic final GoBinaryDescriptionArg.Builder addResources(SourcePath element)
resources
sortedSet.element
- A resources elementthis
builder for use in a chained invocationpublic final GoBinaryDescriptionArg.Builder addResources(SourcePath... elements)
resources
sortedSet.elements
- An array of resources elementsthis
builder for use in a chained invocationpublic final GoBinaryDescriptionArg.Builder setResources(Iterable<? extends SourcePath> elements)
resources
sortedSet.elements
- An iterable of resources elementsthis
builder for use in a chained invocationpublic final GoBinaryDescriptionArg.Builder addAllResources(Iterable<? extends SourcePath> elements)
resources
sortedSet.elements
- An iterable of resources elementsthis
builder for use in a chained invocationpublic GoBinaryDescriptionArg build()
GoBinaryDescriptionArg
.IllegalStateException
- if any required attributes are missing