Interface Build.FilesetEntryOrBuilder

    • Method Detail

      • hasSource

        boolean hasSource()
         The label pointing to the source target where files are copied from.
         
        required string source = 1;
        Returns:
        Whether the source field is set.
      • getSource

        java.lang.String getSource()
         The label pointing to the source target where files are copied from.
         
        required string source = 1;
        Returns:
        The source.
      • getSourceBytes

        ByteString getSourceBytes()
         The label pointing to the source target where files are copied from.
         
        required string source = 1;
        Returns:
        The bytes for source.
      • hasDestinationDirectory

        boolean hasDestinationDirectory()
         The relative path within the fileset rule where files will be mapped.
         
        required string destination_directory = 2;
        Returns:
        Whether the destinationDirectory field is set.
      • getDestinationDirectory

        java.lang.String getDestinationDirectory()
         The relative path within the fileset rule where files will be mapped.
         
        required string destination_directory = 2;
        Returns:
        The destinationDirectory.
      • getDestinationDirectoryBytes

        ByteString getDestinationDirectoryBytes()
         The relative path within the fileset rule where files will be mapped.
         
        required string destination_directory = 2;
        Returns:
        The bytes for destinationDirectory.
      • hasFilesPresent

        boolean hasFilesPresent()
         Whether the files= attribute was specified. This is necessary because
         no files= attribute and files=[] mean different things.
         
        optional bool files_present = 7;
        Returns:
        Whether the filesPresent field is set.
      • getFilesPresent

        boolean getFilesPresent()
         Whether the files= attribute was specified. This is necessary because
         no files= attribute and files=[] mean different things.
         
        optional bool files_present = 7;
        Returns:
        The filesPresent.
      • getFileList

        java.util.List<java.lang.String> getFileList()
         A list of file labels to include from the source directory.
         
        repeated string file = 3;
        Returns:
        A list containing the file.
      • getFileCount

        int getFileCount()
         A list of file labels to include from the source directory.
         
        repeated string file = 3;
        Returns:
        The count of file.
      • getFile

        java.lang.String getFile​(int index)
         A list of file labels to include from the source directory.
         
        repeated string file = 3;
        Parameters:
        index - The index of the element to return.
        Returns:
        The file at the given index.
      • getFileBytes

        ByteString getFileBytes​(int index)
         A list of file labels to include from the source directory.
         
        repeated string file = 3;
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the file at the given index.
      • getExcludeList

        java.util.List<java.lang.String> getExcludeList()
         If this is a fileset entry representing files within the rule
         package, this lists relative paths to files that should be excluded from
         the set.  This cannot contain values if 'file' also has values.
         
        repeated string exclude = 4;
        Returns:
        A list containing the exclude.
      • getExcludeCount

        int getExcludeCount()
         If this is a fileset entry representing files within the rule
         package, this lists relative paths to files that should be excluded from
         the set.  This cannot contain values if 'file' also has values.
         
        repeated string exclude = 4;
        Returns:
        The count of exclude.
      • getExclude

        java.lang.String getExclude​(int index)
         If this is a fileset entry representing files within the rule
         package, this lists relative paths to files that should be excluded from
         the set.  This cannot contain values if 'file' also has values.
         
        repeated string exclude = 4;
        Parameters:
        index - The index of the element to return.
        Returns:
        The exclude at the given index.
      • getExcludeBytes

        ByteString getExcludeBytes​(int index)
         If this is a fileset entry representing files within the rule
         package, this lists relative paths to files that should be excluded from
         the set.  This cannot contain values if 'file' also has values.
         
        repeated string exclude = 4;
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the exclude at the given index.
      • hasSymlinkBehavior

        boolean hasSymlinkBehavior()
         This field is optional because there will be some time when the new
         PB is used by tools depending on blaze query, but the new blaze version
         is not yet released.
         TODO(bazel-team): Make this field required once a version of Blaze is
         released that outputs this field.
         
        optional .blaze_query.FilesetEntry.SymlinkBehavior symlink_behavior = 5 [default = COPY];
        Returns:
        Whether the symlinkBehavior field is set.
      • getSymlinkBehavior

        Build.FilesetEntry.SymlinkBehavior getSymlinkBehavior()
         This field is optional because there will be some time when the new
         PB is used by tools depending on blaze query, but the new blaze version
         is not yet released.
         TODO(bazel-team): Make this field required once a version of Blaze is
         released that outputs this field.
         
        optional .blaze_query.FilesetEntry.SymlinkBehavior symlink_behavior = 5 [default = COPY];
        Returns:
        The symlinkBehavior.
      • hasStripPrefix

        boolean hasStripPrefix()
         The prefix to strip from the path of the files in this FilesetEntry. Note
         that no value and the empty string as the value mean different things here.
         
        optional string strip_prefix = 6;
        Returns:
        Whether the stripPrefix field is set.
      • getStripPrefix

        java.lang.String getStripPrefix()
         The prefix to strip from the path of the files in this FilesetEntry. Note
         that no value and the empty string as the value mean different things here.
         
        optional string strip_prefix = 6;
        Returns:
        The stripPrefix.
      • getStripPrefixBytes

        ByteString getStripPrefixBytes()
         The prefix to strip from the path of the files in this FilesetEntry. Note
         that no value and the empty string as the value mean different things here.
         
        optional string strip_prefix = 6;
        Returns:
        The bytes for stripPrefix.