Class GenAidlDescriptionArg.Builder

  • Enclosing class:
    GenAidlDescriptionArg

    @NotThreadSafe
    public static final class GenAidlDescriptionArg.Builder
    extends Object
    Builds instances of type GenAidlDescriptionArg. 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.

    • Method Detail

      • from

        public final GenAidlDescriptionArg.Builder from​(GenAidlDescriptionArg instance)
        Fill a builder with attribute values from the provided GenAidlDescriptionArg instance.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • from

        public final GenAidlDescriptionArg.Builder from​(com.facebook.buck.android.GenAidlDescription.AbstractGenAidlDescriptionArg instance)
        Copy abstract value type AbstractGenAidlDescriptionArg instance into builder.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • from

        public final GenAidlDescriptionArg.Builder from​(HasDeclaredDeps instance)
        Fill a builder with attribute values from the provided com.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 GenAidlDescriptionArg.Builder from​(BuildRuleArg instance)
        Fill a builder with attribute values from the provided com.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 GenAidlDescriptionArg.Builder from​(ConstructorArg instance)
        Fill a builder with attribute values from the provided com.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
      • setAidl

        public final GenAidlDescriptionArg.Builder setAidl​(SourcePath aidl)
        Initializes the value for the aidl attribute.
        Parameters:
        aidl - The value for aidl
        Returns:
        this builder for use in a chained invocation
      • setImportPath

        public final GenAidlDescriptionArg.Builder setImportPath​(String importPath)
        Initializes the value for the importPath attribute.
        Parameters:
        importPath - The value for importPath
        Returns:
        this builder for use in a chained invocation
      • setAidlSrcs

        public final GenAidlDescriptionArg.Builder setAidlSrcs​(com.google.common.collect.ImmutableSortedSet<SourcePath> aidlSrcs)
        Initializes the value for the aidlSrcs attribute.

        If not set, this attribute will have a default value as returned by the initializer of aidlSrcs.

        Parameters:
        aidlSrcs - The value for aidlSrcs
        Returns:
        this builder for use in a chained invocation
      • addLicenses

        public final GenAidlDescriptionArg.Builder addLicenses​(SourcePath... elements)
        Adds elements to licenses set.
        Parameters:
        elements - An array of licenses elements
        Returns:
        this builder for use in a chained invocation
      • addLabels

        public final GenAidlDescriptionArg.Builder addLabels​(String element)
        Adds one element to labels sortedSet.
        Parameters:
        element - A labels element
        Returns:
        this builder for use in a chained invocation
      • addLabels

        public final GenAidlDescriptionArg.Builder addLabels​(String... elements)
        Adds elements to labels sortedSet.
        Parameters:
        elements - An array of labels elements
        Returns:
        this builder for use in a chained invocation
      • setLabels

        public final GenAidlDescriptionArg.Builder setLabels​(Iterable<String> elements)
        Sets or replaces all elements for labels sortedSet.
        Parameters:
        elements - An iterable of labels elements
        Returns:
        this builder for use in a chained invocation
      • addAllLabels

        public final GenAidlDescriptionArg.Builder addAllLabels​(Iterable<String> elements)
        Adds elements to labels sortedSet.
        Parameters:
        elements - An iterable of labels elements
        Returns:
        this builder for use in a chained invocation
      • setName

        public final GenAidlDescriptionArg.Builder setName​(String name)
        Initializes the value for the name attribute.
        Parameters:
        name - The value for name
        Returns:
        this builder for use in a chained invocation
      • addDeps

        public final GenAidlDescriptionArg.Builder addDeps​(BuildTarget... elements)
        Adds elements to deps sortedSet.
        Parameters:
        elements - An array of deps elements
        Returns:
        this builder for use in a chained invocation
      • setDeps

        public final GenAidlDescriptionArg.Builder setDeps​(Iterable<? extends BuildTarget> elements)
        Sets or replaces all elements for deps sortedSet.
        Parameters:
        elements - An iterable of deps elements
        Returns:
        this builder for use in a chained invocation