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 ClassesModifier and TypeClassDescriptionstatic final classRepresents an entry attribute of a Fileset rule in a build file.static enumIndicates 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.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic Build.FilesetEntrystatic final com.google.protobuf.Descriptors.DescriptorThe relative path within the fileset rule where files will be mapped.com.google.protobuf.ByteStringThe 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.ByteStringgetExcludeBytes(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.intIf 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.ProtocolStringListIf 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.ByteStringgetFileBytes(int index) A list of file labels to include from the source directory.intA list of file labels to include from the source directory.com.google.protobuf.ProtocolStringListA list of file labels to include from the source directory.booleanWhether the files= attribute was specified.com.google.protobuf.Parser<Build.FilesetEntry>intThe label pointing to the source target where files are copied from.com.google.protobuf.ByteStringThe 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.ByteStringThe 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.booleanThe relative path within the fileset rule where files will be mapped.booleanWhether the files= attribute was specified.inthashCode()booleanThe label pointing to the source target where files are copied from.booleanThe prefix to strip from the path of the files in this FilesetEntry.booleanThis 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.FieldAccessorTablefinal booleanstatic Build.FilesetEntry.Builderstatic Build.FilesetEntry.BuildernewBuilder(Build.FilesetEntry prototype) protected Build.FilesetEntry.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static Build.FilesetEntryparseDelimitedFrom(InputStream input) static Build.FilesetEntryparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Build.FilesetEntryparseFrom(byte[] data) static Build.FilesetEntryparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Build.FilesetEntryparseFrom(com.google.protobuf.ByteString data) static Build.FilesetEntryparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Build.FilesetEntryparseFrom(com.google.protobuf.CodedInputStream input) static Build.FilesetEntryparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Build.FilesetEntryparseFrom(InputStream input) static Build.FilesetEntryparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Build.FilesetEntryparseFrom(ByteBuffer data) static Build.FilesetEntryparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Build.FilesetEntry>parser()voidwriteTo(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, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods 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:
-
SYMLINK_BEHAVIOR_FIELD_NUMBER
public static final int SYMLINK_BEHAVIOR_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:
internalGetFieldAccessorTablein classcom.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:
hasSourcein interfaceBuild.FilesetEntryOrBuilder- Returns:
- Whether the source field is set.
-
getSource
The label pointing to the source target where files are copied from.
required string source = 1;- Specified by:
getSourcein interfaceBuild.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:
getSourceBytesin interfaceBuild.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:
hasDestinationDirectoryin interfaceBuild.FilesetEntryOrBuilder- Returns:
- Whether the destinationDirectory field is set.
-
getDestinationDirectory
The relative path within the fileset rule where files will be mapped.
required string destination_directory = 2;- Specified by:
getDestinationDirectoryin interfaceBuild.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:
getDestinationDirectoryBytesin interfaceBuild.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:
hasFilesPresentin interfaceBuild.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:
getFilesPresentin interfaceBuild.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:
getFileListin interfaceBuild.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:
getFileCountin interfaceBuild.FilesetEntryOrBuilder- Returns:
- The count of file.
-
getFile
A list of file labels to include from the source directory.
repeated string file = 3;- Specified by:
getFilein interfaceBuild.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:
getFileBytesin interfaceBuild.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:
getExcludeListin interfaceBuild.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:
getExcludeCountin interfaceBuild.FilesetEntryOrBuilder- Returns:
- The count of exclude.
-
getExclude
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:
getExcludein interfaceBuild.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:
getExcludeBytesin interfaceBuild.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:
hasSymlinkBehaviorin interfaceBuild.FilesetEntryOrBuilder- Returns:
- Whether the symlinkBehavior field is set.
-
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:
getSymlinkBehaviorin interfaceBuild.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:
hasStripPrefixin interfaceBuild.FilesetEntryOrBuilder- Returns:
- Whether the stripPrefix field is set.
-
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:
getStripPrefixin interfaceBuild.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:
getStripPrefixBytesin interfaceBuild.FilesetEntryOrBuilder- Returns:
- The bytes for stripPrefix.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.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
- Throws:
IOException
-
parseFrom
public static Build.FilesetEntry parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- 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
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Build.FilesetEntry.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-