Class Build.FilesetEntry.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Build.FilesetEntry.Builder>
com.google.devtools.build.lib.query2.proto.proto2api.Build.FilesetEntry.Builder
- All Implemented Interfaces:
Build.FilesetEntryOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Build.FilesetEntry
public static final class Build.FilesetEntry.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Build.FilesetEntry.Builder>
implements Build.FilesetEntryOrBuilder
Represents an entry attribute of a Fileset rule in a build file.Protobuf type
blaze_query.FilesetEntry-
Method Summary
Modifier and TypeMethodDescriptionaddAllExclude(Iterable<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.addAllFile(Iterable<String> values) A list of file labels to include from the source directory.addExclude(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.addExcludeBytes(com.google.protobuf.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.A list of file labels to include from the source directory.addFileBytes(com.google.protobuf.ByteString value) A list of file labels to include from the source directory.build()clear()The relative path within the fileset rule where files will be mapped.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.A list of file labels to include from the source directory.Whether the files= attribute was specified.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.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.static final com.google.protobuf.Descriptors.Descriptorcom.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.The 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.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 booleanmergeFrom(Build.FilesetEntry other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setDestinationDirectory(String value) The relative path within the fileset rule where files will be mapped.setDestinationDirectoryBytes(com.google.protobuf.ByteString value) The relative path within the fileset rule where files will be mapped.setExclude(int index, 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.A list of file labels to include from the source directory.setFilesPresent(boolean value) Whether the files= attribute was specified.The label pointing to the source target where files are copied from.setSourceBytes(com.google.protobuf.ByteString value) The label pointing to the source target where files are copied from.setStripPrefix(String value) The prefix to strip from the path of the files in this FilesetEntry.setStripPrefixBytes(com.google.protobuf.ByteString value) 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.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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.Builder<Build.FilesetEntry.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Build.FilesetEntry.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Build.FilesetEntry.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Build.FilesetEntry.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Build.FilesetEntry.Builder>
-
mergeFrom
public Build.FilesetEntry.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Build.FilesetEntry.Builder>- Throws:
IOException
-
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.
-
setSource
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
The label pointing to the source target where files are copied from.
required string source = 1;- Returns:
- This builder for chaining.
-
setSourceBytes
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:
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.
-
setDestinationDirectory
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
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(com.google.protobuf.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:
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.
-
setFilesPresent
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
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.
-
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.
-
setFile
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
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
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
A list of file labels to include from the source directory.
repeated string file = 3;- Returns:
- This builder for chaining.
-
addFileBytes
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 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.
-
setExclude
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
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
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
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
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:
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.
-
setSymlinkBehavior
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
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:
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.
-
setStripPrefix
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
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
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.
-