Class Build.FilesetEntry.Builder

    • Method Detail

      • getDefaultInstanceForType

        public Build.FilesetEntry getDefaultInstanceForType()
        Description copied from interface: MessageLiteOrBuilder
        Get an instance of the type with no fields set. Because no fields are set, all getters for singular fields will return default values and repeated fields will appear empty. This may or may not be a singleton. This differs from the getDefaultInstance() method of generated message classes in that this method is an abstract method of the MessageLite interface whereas getDefaultInstance() is a static method of a specific class. They return the same thing.
        Specified by:
        getDefaultInstanceForType in interface MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface MessageOrBuilder
      • mergeFrom

        public Build.FilesetEntry.Builder mergeFrom​(Message other)
        Description copied from interface: Message.Builder
        Merge other into the message being built. other must have the exact same type as this (i.e. getDescriptorForType() == other.getDescriptorForType()).

        Merging occurs as follows. For each field:
        * For singular primitive fields, if the field is set in other, then other's value overwrites the value in this message.
        * For singular message fields, if the field is set in other, it is merged into the corresponding sub-message of this message using the same merging rules.
        * For repeated fields, the elements in other are concatenated with the elements in this message.
        * For oneof groups, if the other message has one of the fields set, the group of this message is cleared and replaced by the field of the other message, so that the oneof constraint is preserved.

        This is equivalent to the Message::MergeFrom method in C++.

        Specified by:
        mergeFrom in interface Message.Builder
        Overrides:
        mergeFrom in class AbstractMessage.Builder<Build.FilesetEntry.Builder>
      • hasSource

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

        public java.lang.String getSource()
         The label pointing to the source target where files are copied from.
         
        required string source = 1;
        Specified by:
        getSource in interface Build.FilesetEntryOrBuilder
        Returns:
        The source.
      • setSource

        public Build.FilesetEntry.Builder setSource​(java.lang.String value)
         The label pointing to the source target where files are copied from.
         
        required string source = 1;
        Parameters:
        value - The source to set.
        Returns:
        This builder for chaining.
      • clearSource

        public Build.FilesetEntry.Builder clearSource()
         The label pointing to the source target where files are copied from.
         
        required string source = 1;
        Returns:
        This builder for chaining.
      • setSourceBytes

        public Build.FilesetEntry.Builder setSourceBytes​(ByteString value)
         The label pointing to the source target where files are copied from.
         
        required string source = 1;
        Parameters:
        value - The bytes for source to set.
        Returns:
        This builder for chaining.
      • hasDestinationDirectory

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

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

        public ByteString getDestinationDirectoryBytes()
         The relative path within the fileset rule where files will be mapped.
         
        required string destination_directory = 2;
        Specified by:
        getDestinationDirectoryBytes in interface Build.FilesetEntryOrBuilder
        Returns:
        The bytes for destinationDirectory.
      • setDestinationDirectory

        public Build.FilesetEntry.Builder setDestinationDirectory​(java.lang.String value)
         The relative path within the fileset rule where files will be mapped.
         
        required string destination_directory = 2;
        Parameters:
        value - The destinationDirectory to set.
        Returns:
        This builder for chaining.
      • clearDestinationDirectory

        public Build.FilesetEntry.Builder clearDestinationDirectory()
         The relative path within the fileset rule where files will be mapped.
         
        required string destination_directory = 2;
        Returns:
        This builder for chaining.
      • setDestinationDirectoryBytes

        public Build.FilesetEntry.Builder setDestinationDirectoryBytes​(ByteString value)
         The relative path within the fileset rule where files will be mapped.
         
        required string destination_directory = 2;
        Parameters:
        value - The bytes for destinationDirectory to set.
        Returns:
        This builder for chaining.
      • hasFilesPresent

        public 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;
        Specified by:
        hasFilesPresent in interface Build.FilesetEntryOrBuilder
        Returns:
        Whether the filesPresent field is set.
      • getFilesPresent

        public 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;
        Specified by:
        getFilesPresent in interface Build.FilesetEntryOrBuilder
        Returns:
        The filesPresent.
      • setFilesPresent

        public Build.FilesetEntry.Builder setFilesPresent​(boolean value)
         Whether the files= attribute was specified. This is necessary because
         no files= attribute and files=[] mean different things.
         
        optional bool files_present = 7;
        Parameters:
        value - The filesPresent to set.
        Returns:
        This builder for chaining.
      • clearFilesPresent

        public Build.FilesetEntry.Builder clearFilesPresent()
         Whether the files= attribute was specified. This is necessary because
         no files= attribute and files=[] mean different things.
         
        optional bool files_present = 7;
        Returns:
        This builder for chaining.
      • getFileCount

        public int getFileCount()
         A list of file labels to include from the source directory.
         
        repeated string file = 3;
        Specified by:
        getFileCount in interface Build.FilesetEntryOrBuilder
        Returns:
        The count of file.
      • getFile

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

        public ByteString getFileBytes​(int index)
         A list of file labels to include from the source directory.
         
        repeated string file = 3;
        Specified by:
        getFileBytes in interface Build.FilesetEntryOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the file at the given index.
      • setFile

        public Build.FilesetEntry.Builder setFile​(int index,
                                                  java.lang.String value)
         A list of file labels to include from the source directory.
         
        repeated string file = 3;
        Parameters:
        index - The index to set the value at.
        value - The file to set.
        Returns:
        This builder for chaining.
      • addFile

        public Build.FilesetEntry.Builder addFile​(java.lang.String value)
         A list of file labels to include from the source directory.
         
        repeated string file = 3;
        Parameters:
        value - The file to add.
        Returns:
        This builder for chaining.
      • addAllFile

        public Build.FilesetEntry.Builder addAllFile​(java.lang.Iterable<java.lang.String> values)
         A list of file labels to include from the source directory.
         
        repeated string file = 3;
        Parameters:
        values - The file to add.
        Returns:
        This builder for chaining.
      • clearFile

        public Build.FilesetEntry.Builder clearFile()
         A list of file labels to include from the source directory.
         
        repeated string file = 3;
        Returns:
        This builder for chaining.
      • addFileBytes

        public Build.FilesetEntry.Builder addFileBytes​(ByteString value)
         A list of file labels to include from the source directory.
         
        repeated string file = 3;
        Parameters:
        value - The bytes of the file to add.
        Returns:
        This builder for chaining.
      • getExcludeList

        public ProtocolStringList 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;
        Specified by:
        getExcludeList in interface Build.FilesetEntryOrBuilder
        Returns:
        A list containing the exclude.
      • getExcludeCount

        public 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;
        Specified by:
        getExcludeCount in interface Build.FilesetEntryOrBuilder
        Returns:
        The count of exclude.
      • getExclude

        public 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;
        Specified by:
        getExclude in interface Build.FilesetEntryOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The exclude at the given index.
      • getExcludeBytes

        public 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;
        Specified by:
        getExcludeBytes in interface Build.FilesetEntryOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the exclude at the given index.
      • setExclude

        public Build.FilesetEntry.Builder setExclude​(int index,
                                                     java.lang.String value)
         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 to set the value at.
        value - The exclude to set.
        Returns:
        This builder for chaining.
      • addExclude

        public Build.FilesetEntry.Builder addExclude​(java.lang.String value)
         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:
        value - The exclude to add.
        Returns:
        This builder for chaining.
      • addAllExclude

        public Build.FilesetEntry.Builder addAllExclude​(java.lang.Iterable<java.lang.String> values)
         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:
        values - The exclude to add.
        Returns:
        This builder for chaining.
      • clearExclude

        public Build.FilesetEntry.Builder clearExclude()
         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:
        This builder for chaining.
      • addExcludeBytes

        public Build.FilesetEntry.Builder addExcludeBytes​(ByteString value)
         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:
        value - The bytes of the exclude to add.
        Returns:
        This builder for chaining.
      • hasSymlinkBehavior

        public 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];
        Specified by:
        hasSymlinkBehavior in interface Build.FilesetEntryOrBuilder
        Returns:
        Whether the symlinkBehavior field is set.
      • getSymlinkBehavior

        public 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];
        Specified by:
        getSymlinkBehavior in interface Build.FilesetEntryOrBuilder
        Returns:
        The symlinkBehavior.
      • setSymlinkBehavior

        public Build.FilesetEntry.Builder setSymlinkBehavior​(Build.FilesetEntry.SymlinkBehavior value)
         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];
        Parameters:
        value - The symlinkBehavior to set.
        Returns:
        This builder for chaining.
      • clearSymlinkBehavior

        public Build.FilesetEntry.Builder clearSymlinkBehavior()
         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:
        This builder for chaining.
      • hasStripPrefix

        public 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;
        Specified by:
        hasStripPrefix in interface Build.FilesetEntryOrBuilder
        Returns:
        Whether the stripPrefix field is set.
      • getStripPrefix

        public 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;
        Specified by:
        getStripPrefix in interface Build.FilesetEntryOrBuilder
        Returns:
        The stripPrefix.
      • getStripPrefixBytes

        public 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;
        Specified by:
        getStripPrefixBytes in interface Build.FilesetEntryOrBuilder
        Returns:
        The bytes for stripPrefix.
      • setStripPrefix

        public Build.FilesetEntry.Builder setStripPrefix​(java.lang.String value)
         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;
        Parameters:
        value - The stripPrefix to set.
        Returns:
        This builder for chaining.
      • clearStripPrefix

        public Build.FilesetEntry.Builder clearStripPrefix()
         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:
        This builder for chaining.
      • setStripPrefixBytes

        public Build.FilesetEntry.Builder setStripPrefixBytes​(ByteString value)
         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;
        Parameters:
        value - The bytes for stripPrefix to set.
        Returns:
        This builder for chaining.