Class Build.FilesetEntry

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.devtools.build.lib.query2.proto.proto2api.Build.FilesetEntry
All Implemented Interfaces:
Build.FilesetEntryOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
Build

public static final class Build.FilesetEntry extends com.google.protobuf.GeneratedMessage implements Build.FilesetEntryOrBuilder
 Represents an entry attribute of a Fileset rule in a build file.
 
Protobuf type blaze_query.FilesetEntry
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Represents an entry attribute of a Fileset rule in a build file.
    static enum 
    Indicates what to do when a source file is actually a symlink.

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage

    com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage

    com.google.protobuf.AbstractMessage.BuilderParent

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessage

    alwaysUseFieldBuilders, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    The relative path within the fileset rule where files will be mapped.
    com.google.protobuf.ByteString
    The relative path within the fileset rule where files will be mapped.
    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.
    com.google.protobuf.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.
    int
    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.
    com.google.protobuf.ProtocolStringList
    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.
    getFile(int index)
    A list of file labels to include from the source directory.
    com.google.protobuf.ByteString
    getFileBytes(int index)
    A list of file labels to include from the source directory.
    int
    A list of file labels to include from the source directory.
    com.google.protobuf.ProtocolStringList
    A list of file labels to include from the source directory.
    boolean
    Whether the files= attribute was specified.
    com.google.protobuf.Parser<Build.FilesetEntry>
     
    int
     
    The label pointing to the source target where files are copied from.
    com.google.protobuf.ByteString
    The label pointing to the source target where files are copied from.
    The prefix to strip from the path of the files in this FilesetEntry.
    com.google.protobuf.ByteString
    The prefix to strip from the path of the files in this FilesetEntry.
    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.
    boolean
    The relative path within the fileset rule where files will be mapped.
    boolean
    Whether the files= attribute was specified.
    int
     
    boolean
    The label pointing to the source target where files are copied from.
    boolean
    The prefix to strip from the path of the files in this FilesetEntry.
    boolean
    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.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
     
     
    newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<Build.FilesetEntry>
     
     
    void
    writeTo(com.google.protobuf.CodedOutputStream output)
     

    Methods inherited from class com.google.protobuf.GeneratedMessage

    canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag

    Methods inherited from class com.google.protobuf.AbstractMessage

    findInitializationErrors, getInitializationErrorString, hashFields, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Field Details

    • SOURCE_FIELD_NUMBER

      public static final int SOURCE_FIELD_NUMBER
      See Also:
    • DESTINATION_DIRECTORY_FIELD_NUMBER

      public static final int DESTINATION_DIRECTORY_FIELD_NUMBER
      See Also:
    • FILES_PRESENT_FIELD_NUMBER

      public static final int FILES_PRESENT_FIELD_NUMBER
      See Also:
    • FILE_FIELD_NUMBER

      public static final int FILE_FIELD_NUMBER
      See Also:
    • EXCLUDE_FIELD_NUMBER

      public static final int EXCLUDE_FIELD_NUMBER
      See Also:
    • STRIP_PREFIX_FIELD_NUMBER

      public static final int STRIP_PREFIX_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • 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 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.
    • getSourceBytes

      public com.google.protobuf.ByteString getSourceBytes()
       The label pointing to the source target where files are copied from.
       
      required string source = 1;
      Specified by:
      getSourceBytes in interface Build.FilesetEntryOrBuilder
      Returns:
      The bytes for source.
    • 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 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 com.google.protobuf.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.
    • 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.
    • getFileList

      public com.google.protobuf.ProtocolStringList getFileList()
       A list of file labels to include from the source directory.
       
      repeated string file = 3;
      Specified by:
      getFileList in interface Build.FilesetEntryOrBuilder
      Returns:
      A list containing the file.
    • 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 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 com.google.protobuf.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.
    • getExcludeList

      public com.google.protobuf.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 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 com.google.protobuf.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.
    • 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.
    • 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 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 com.google.protobuf.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.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Build.FilesetEntry parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Build.FilesetEntry parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Build.FilesetEntry parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Build.FilesetEntry parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Build.FilesetEntry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Build.FilesetEntry parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Build.FilesetEntry parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Build.FilesetEntry parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Build.FilesetEntry parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Build.FilesetEntry parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Build.FilesetEntry parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Build.FilesetEntry parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public Build.FilesetEntry.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Build.FilesetEntry.Builder newBuilder()
    • newBuilder

      public static Build.FilesetEntry.Builder newBuilder(Build.FilesetEntry prototype)
    • toBuilder

      public Build.FilesetEntry.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Build.FilesetEntry.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static Build.FilesetEntry getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Build.FilesetEntry> parser()
    • getParserForType

      public com.google.protobuf.Parser<Build.FilesetEntry> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public Build.FilesetEntry getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder