Class Build.FilesetEntry.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Build.FilesetEntry.Builder>
-
- com.google.devtools.build.lib.query2.proto.proto2api.Build.FilesetEntry.Builder
-
- All Implemented Interfaces:
Build.FilesetEntryOrBuilder,Message.Builder,MessageLite.Builder,MessageLiteOrBuilder,MessageOrBuilder,java.lang.Cloneable
- Enclosing class:
- Build.FilesetEntry
public static final class Build.FilesetEntry.Builder extends GeneratedMessageV3.Builder<Build.FilesetEntry.Builder> implements Build.FilesetEntryOrBuilder
Represents an entry attribute of a Fileset rule in a build file.
Protobuf typeblaze_query.FilesetEntry
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Build.FilesetEntry.BuilderaddAllExclude(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.Build.FilesetEntry.BuilderaddAllFile(java.lang.Iterable<java.lang.String> values)A list of file labels to include from the source directory.Build.FilesetEntry.BuilderaddExclude(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.Build.FilesetEntry.BuilderaddExcludeBytes(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.Build.FilesetEntry.BuilderaddFile(java.lang.String value)A list of file labels to include from the source directory.Build.FilesetEntry.BuilderaddFileBytes(ByteString value)A list of file labels to include from the source directory.Build.FilesetEntry.BuilderaddRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)LikesetRepeatedField, but appends the value as a new element.Build.FilesetEntrybuild()Constructs the message based on the state of the Builder.Build.FilesetEntrybuildPartial()LikeMessageLite.Builder.build(), but does not throw an exception if the message is missing required fields.Build.FilesetEntry.Builderclear()Called by the initialization and clear code paths to allow subclasses to reset any of their builtin fields back to the initial values.Build.FilesetEntry.BuilderclearDestinationDirectory()The relative path within the fileset rule where files will be mapped.Build.FilesetEntry.BuilderclearExclude()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.Build.FilesetEntry.BuilderclearField(Descriptors.FieldDescriptor field)Clears the field.Build.FilesetEntry.BuilderclearFile()A list of file labels to include from the source directory.Build.FilesetEntry.BuilderclearFilesPresent()Whether the files= attribute was specified.Build.FilesetEntry.BuilderclearOneof(Descriptors.OneofDescriptor oneof)TODO(jieluo): Clear it when all subclasses have implemented this method.Build.FilesetEntry.BuilderclearSource()The label pointing to the source target where files are copied from.Build.FilesetEntry.BuilderclearStripPrefix()The prefix to strip from the path of the files in this FilesetEntry.Build.FilesetEntry.BuilderclearSymlinkBehavior()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.Build.FilesetEntry.Builderclone()Clones the Builder.Build.FilesetEntrygetDefaultInstanceForType()Get an instance of the type with no fields set.static Descriptors.DescriptorgetDescriptor()Descriptors.DescriptorgetDescriptorForType()Get the message's type's descriptor.java.lang.StringgetDestinationDirectory()The relative path within the fileset rule where files will be mapped.ByteStringgetDestinationDirectoryBytes()The relative path within the fileset rule where files will be mapped.java.lang.StringgetExclude(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.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.intgetExcludeCount()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.ProtocolStringListgetExcludeList()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.java.lang.StringgetFile(int index)A list of file labels to include from the source directory.ByteStringgetFileBytes(int index)A list of file labels to include from the source directory.intgetFileCount()A list of file labels to include from the source directory.ProtocolStringListgetFileList()A list of file labels to include from the source directory.booleangetFilesPresent()Whether the files= attribute was specified.java.lang.StringgetSource()The label pointing to the source target where files are copied from.ByteStringgetSourceBytes()The label pointing to the source target where files are copied from.java.lang.StringgetStripPrefix()The prefix to strip from the path of the files in this FilesetEntry.ByteStringgetStripPrefixBytes()The prefix to strip from the path of the files in this FilesetEntry.Build.FilesetEntry.SymlinkBehaviorgetSymlinkBehavior()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.booleanhasDestinationDirectory()The relative path within the fileset rule where files will be mapped.booleanhasFilesPresent()Whether the files= attribute was specified.booleanhasSource()The label pointing to the source target where files are copied from.booleanhasStripPrefix()The prefix to strip from the path of the files in this FilesetEntry.booleanhasSymlinkBehavior()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 GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()Get the FieldAccessorTable for this type.booleanisInitialized()Returns true if all required fields in the message and all embedded messages are set, false otherwise.Build.FilesetEntry.BuildermergeFrom(Build.FilesetEntry other)Build.FilesetEntry.BuildermergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)LikeMessageLite.Builder.mergeFrom(CodedInputStream), but also parses extensions.Build.FilesetEntry.BuildermergeFrom(Message other)Mergeotherinto the message being built.Build.FilesetEntry.BuildermergeUnknownFields(UnknownFieldSet unknownFields)Merge some unknown fields into theUnknownFieldSetfor this message.Build.FilesetEntry.BuildersetDestinationDirectory(java.lang.String value)The relative path within the fileset rule where files will be mapped.Build.FilesetEntry.BuildersetDestinationDirectoryBytes(ByteString value)The relative path within the fileset rule where files will be mapped.Build.FilesetEntry.BuildersetExclude(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.Build.FilesetEntry.BuildersetField(Descriptors.FieldDescriptor field, java.lang.Object value)Sets a field to the given value.Build.FilesetEntry.BuildersetFile(int index, java.lang.String value)A list of file labels to include from the source directory.Build.FilesetEntry.BuildersetFilesPresent(boolean value)Whether the files= attribute was specified.Build.FilesetEntry.BuildersetRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)Sets an element of a repeated field to the given value.Build.FilesetEntry.BuildersetSource(java.lang.String value)The label pointing to the source target where files are copied from.Build.FilesetEntry.BuildersetSourceBytes(ByteString value)The label pointing to the source target where files are copied from.Build.FilesetEntry.BuildersetStripPrefix(java.lang.String value)The prefix to strip from the path of the files in this FilesetEntry.Build.FilesetEntry.BuildersetStripPrefixBytes(ByteString value)The prefix to strip from the path of the files in this FilesetEntry.Build.FilesetEntry.BuildersetSymlinkBehavior(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.Build.FilesetEntry.BuildersetUnknownFields(UnknownFieldSet unknownFields)Set theUnknownFieldSetfor this message.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getDescriptor
public static final Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Description copied from class:GeneratedMessageV3.BuilderGet the FieldAccessorTable for this type. We can't have the message class pass this in to the constructor because of bootstrapping trouble with DescriptorProtos.- Specified by:
internalGetFieldAccessorTablein classGeneratedMessageV3.Builder<Build.FilesetEntry.Builder>
-
clear
public Build.FilesetEntry.Builder clear()
Description copied from class:GeneratedMessageV3.BuilderCalled by the initialization and clear code paths to allow subclasses to reset any of their builtin fields back to the initial values.- Specified by:
clearin interfaceMessage.Builder- Specified by:
clearin interfaceMessageLite.Builder- Overrides:
clearin classGeneratedMessageV3.Builder<Build.FilesetEntry.Builder>
-
getDescriptorForType
public Descriptors.Descriptor getDescriptorForType()
Description copied from interface:Message.BuilderGet the message's type's descriptor. SeeMessageOrBuilder.getDescriptorForType().- Specified by:
getDescriptorForTypein interfaceMessage.Builder- Specified by:
getDescriptorForTypein interfaceMessageOrBuilder- Overrides:
getDescriptorForTypein classGeneratedMessageV3.Builder<Build.FilesetEntry.Builder>
-
getDefaultInstanceForType
public Build.FilesetEntry getDefaultInstanceForType()
Description copied from interface:MessageLiteOrBuilderGet 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 thegetDefaultInstance()method of generated message classes in that this method is an abstract method of theMessageLiteinterface whereasgetDefaultInstance()is a static method of a specific class. They return the same thing.- Specified by:
getDefaultInstanceForTypein interfaceMessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceMessageOrBuilder
-
build
public Build.FilesetEntry build()
Description copied from interface:MessageLite.BuilderConstructs the message based on the state of the Builder. Subsequent changes to the Builder will not affect the returned message.- Specified by:
buildin interfaceMessage.Builder- Specified by:
buildin interfaceMessageLite.Builder
-
buildPartial
public Build.FilesetEntry buildPartial()
Description copied from interface:MessageLite.BuilderLikeMessageLite.Builder.build(), but does not throw an exception if the message is missing required fields. Instead, a partial message is returned. Subsequent changes to the Builder will not affect the returned message.- Specified by:
buildPartialin interfaceMessage.Builder- Specified by:
buildPartialin interfaceMessageLite.Builder
-
clone
public Build.FilesetEntry.Builder clone()
Description copied from interface:MessageLite.BuilderClones the Builder.- Specified by:
clonein interfaceMessage.Builder- Specified by:
clonein interfaceMessageLite.Builder- Overrides:
clonein classGeneratedMessageV3.Builder<Build.FilesetEntry.Builder>- See Also:
Object.clone()
-
setField
public Build.FilesetEntry.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
Description copied from interface:Message.BuilderSets a field to the given value. The value must be of the correct type for this field, i.e. the same type thatMessageOrBuilder.getField(Descriptors.FieldDescriptor)would return.- Specified by:
setFieldin interfaceMessage.Builder- Overrides:
setFieldin classGeneratedMessageV3.Builder<Build.FilesetEntry.Builder>
-
clearField
public Build.FilesetEntry.Builder clearField(Descriptors.FieldDescriptor field)
Description copied from interface:Message.BuilderClears the field. This is exactly equivalent to calling the generated "clear" accessor method corresponding to the field.- Specified by:
clearFieldin interfaceMessage.Builder- Overrides:
clearFieldin classGeneratedMessageV3.Builder<Build.FilesetEntry.Builder>
-
clearOneof
public Build.FilesetEntry.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Description copied from class:AbstractMessage.BuilderTODO(jieluo): Clear it when all subclasses have implemented this method.- Specified by:
clearOneofin interfaceMessage.Builder- Overrides:
clearOneofin classGeneratedMessageV3.Builder<Build.FilesetEntry.Builder>
-
setRepeatedField
public Build.FilesetEntry.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
Description copied from interface:Message.BuilderSets an element of a repeated field to the given value. The value must be of the correct type for this field, i.e. the same type thatMessageOrBuilder.getRepeatedField(Descriptors.FieldDescriptor,int)would return.- Specified by:
setRepeatedFieldin interfaceMessage.Builder- Overrides:
setRepeatedFieldin classGeneratedMessageV3.Builder<Build.FilesetEntry.Builder>
-
addRepeatedField
public Build.FilesetEntry.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
Description copied from interface:Message.BuilderLikesetRepeatedField, but appends the value as a new element.- Specified by:
addRepeatedFieldin interfaceMessage.Builder- Overrides:
addRepeatedFieldin classGeneratedMessageV3.Builder<Build.FilesetEntry.Builder>
-
mergeFrom
public Build.FilesetEntry.Builder mergeFrom(Message other)
Description copied from interface:Message.BuilderMergeotherinto the message being built.othermust have the exact same type asthis(i.e.getDescriptorForType() == other.getDescriptorForType()).Merging occurs as follows. For each field:
* For singular primitive fields, if the field is set inother, thenother's value overwrites the value in this message.
* For singular message fields, if the field is set inother, it is merged into the corresponding sub-message of this message using the same merging rules.
* For repeated fields, the elements inotherare 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::MergeFrommethod in C++.- Specified by:
mergeFromin interfaceMessage.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<Build.FilesetEntry.Builder>
-
mergeFrom
public Build.FilesetEntry.Builder mergeFrom(Build.FilesetEntry other)
-
isInitialized
public final boolean isInitialized()
Description copied from interface:MessageLiteOrBuilderReturns true if all required fields in the message and all embedded messages are set, false otherwise.- Specified by:
isInitializedin interfaceMessageLiteOrBuilder- Overrides:
isInitializedin classGeneratedMessageV3.Builder<Build.FilesetEntry.Builder>
-
mergeFrom
public Build.FilesetEntry.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
Description copied from interface:MessageLite.BuilderLikeMessageLite.Builder.mergeFrom(CodedInputStream), but also parses extensions. The extensions that you want to be able to parse must be registered inextensionRegistry. Extensions not in the registry will be treated as unknown fields.- Specified by:
mergeFromin interfaceMessage.Builder- Specified by:
mergeFromin interfaceMessageLite.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<Build.FilesetEntry.Builder>- Throws:
java.io.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
public java.lang.String 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 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
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:
hasDestinationDirectoryin interfaceBuild.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:
getDestinationDirectoryin interfaceBuild.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:
getDestinationDirectoryBytesin interfaceBuild.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:
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
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.
-
getFileList
public 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
public java.lang.String getFile(int index)
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 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
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:
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
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:
getExcludein interfaceBuild.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:
getExcludeBytesin interfaceBuild.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:
hasSymlinkBehaviorin interfaceBuild.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:
getSymlinkBehaviorin interfaceBuild.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:
hasStripPrefixin interfaceBuild.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:
getStripPrefixin interfaceBuild.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:
getStripPrefixBytesin interfaceBuild.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.
-
setUnknownFields
public final Build.FilesetEntry.Builder setUnknownFields(UnknownFieldSet unknownFields)
Description copied from interface:Message.BuilderSet theUnknownFieldSetfor this message.- Specified by:
setUnknownFieldsin interfaceMessage.Builder- Overrides:
setUnknownFieldsin classGeneratedMessageV3.Builder<Build.FilesetEntry.Builder>
-
mergeUnknownFields
public final Build.FilesetEntry.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Description copied from interface:Message.BuilderMerge some unknown fields into theUnknownFieldSetfor this message.- Specified by:
mergeUnknownFieldsin interfaceMessage.Builder- Overrides:
mergeUnknownFieldsin classGeneratedMessageV3.Builder<Build.FilesetEntry.Builder>
-
-