Class Build.SourceFile.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Build.SourceFile.Builder>
-
- com.google.devtools.build.lib.query2.proto.proto2api.Build.SourceFile.Builder
-
- All Implemented Interfaces:
Build.SourceFileOrBuilder,Message.Builder,MessageLite.Builder,MessageLiteOrBuilder,MessageOrBuilder,java.lang.Cloneable
- Enclosing class:
- Build.SourceFile
public static final class Build.SourceFile.Builder extends GeneratedMessageV3.Builder<Build.SourceFile.Builder> implements Build.SourceFileOrBuilder
A file that is an input into the build system. Next-Id: 10
Protobuf typeblaze_query.SourceFile
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Build.SourceFile.BuilderaddAllFeature(java.lang.Iterable<java.lang.String> values)The package-level features enabled for this package.Build.SourceFile.BuilderaddAllPackageGroup(java.lang.Iterable<java.lang.String> values)Labels of package groups that are mentioned in the visibility declaration for this source file.Build.SourceFile.BuilderaddAllSubinclude(java.lang.Iterable<java.lang.String> values)Labels of .bzl (Starlark) files that are transitively loaded in this BUILD file.Build.SourceFile.BuilderaddAllVisibilityLabel(java.lang.Iterable<java.lang.String> values)Labels mentioned in the visibility declaration (including :__pkg__ and //visibility: ones)Build.SourceFile.BuilderaddFeature(java.lang.String value)The package-level features enabled for this package.Build.SourceFile.BuilderaddFeatureBytes(ByteString value)The package-level features enabled for this package.Build.SourceFile.BuilderaddPackageGroup(java.lang.String value)Labels of package groups that are mentioned in the visibility declaration for this source file.Build.SourceFile.BuilderaddPackageGroupBytes(ByteString value)Labels of package groups that are mentioned in the visibility declaration for this source file.Build.SourceFile.BuilderaddRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)LikesetRepeatedField, but appends the value as a new element.Build.SourceFile.BuilderaddSubinclude(java.lang.String value)Labels of .bzl (Starlark) files that are transitively loaded in this BUILD file.Build.SourceFile.BuilderaddSubincludeBytes(ByteString value)Labels of .bzl (Starlark) files that are transitively loaded in this BUILD file.Build.SourceFile.BuilderaddVisibilityLabel(java.lang.String value)Labels mentioned in the visibility declaration (including :__pkg__ and //visibility: ones)Build.SourceFile.BuilderaddVisibilityLabelBytes(ByteString value)Labels mentioned in the visibility declaration (including :__pkg__ and //visibility: ones)Build.SourceFilebuild()Constructs the message based on the state of the Builder.Build.SourceFilebuildPartial()LikeMessageLite.Builder.build(), but does not throw an exception if the message is missing required fields.Build.SourceFile.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.SourceFile.BuilderclearFeature()The package-level features enabled for this package.Build.SourceFile.BuilderclearField(Descriptors.FieldDescriptor field)Clears the field.Build.SourceFile.BuilderclearLicense()License attribute for the file.Build.SourceFile.BuilderclearLocation()The location of the source file.Build.SourceFile.BuilderclearName()The name of the source file (a label).Build.SourceFile.BuilderclearOneof(Descriptors.OneofDescriptor oneof)TODO(jieluo): Clear it when all subclasses have implemented this method.Build.SourceFile.BuilderclearPackageContainsErrors()True if the package contains an error.Build.SourceFile.BuilderclearPackageGroup()Labels of package groups that are mentioned in the visibility declaration for this source file.Build.SourceFile.BuilderclearSubinclude()Labels of .bzl (Starlark) files that are transitively loaded in this BUILD file.Build.SourceFile.BuilderclearVisibilityLabel()Labels mentioned in the visibility declaration (including :__pkg__ and //visibility: ones)Build.SourceFile.Builderclone()Clones the Builder.Build.SourceFilegetDefaultInstanceForType()Get an instance of the type with no fields set.static Descriptors.DescriptorgetDescriptor()Descriptors.DescriptorgetDescriptorForType()Get the message's type's descriptor.java.lang.StringgetFeature(int index)The package-level features enabled for this package.ByteStringgetFeatureBytes(int index)The package-level features enabled for this package.intgetFeatureCount()The package-level features enabled for this package.ProtocolStringListgetFeatureList()The package-level features enabled for this package.Build.LicensegetLicense()License attribute for the file.Build.License.BuildergetLicenseBuilder()License attribute for the file.Build.LicenseOrBuildergetLicenseOrBuilder()License attribute for the file.java.lang.StringgetLocation()The location of the source file.ByteStringgetLocationBytes()The location of the source file.java.lang.StringgetName()The name of the source file (a label).ByteStringgetNameBytes()The name of the source file (a label).booleangetPackageContainsErrors()True if the package contains an error.java.lang.StringgetPackageGroup(int index)Labels of package groups that are mentioned in the visibility declaration for this source file.ByteStringgetPackageGroupBytes(int index)Labels of package groups that are mentioned in the visibility declaration for this source file.intgetPackageGroupCount()Labels of package groups that are mentioned in the visibility declaration for this source file.ProtocolStringListgetPackageGroupList()Labels of package groups that are mentioned in the visibility declaration for this source file.java.lang.StringgetSubinclude(int index)Labels of .bzl (Starlark) files that are transitively loaded in this BUILD file.ByteStringgetSubincludeBytes(int index)Labels of .bzl (Starlark) files that are transitively loaded in this BUILD file.intgetSubincludeCount()Labels of .bzl (Starlark) files that are transitively loaded in this BUILD file.ProtocolStringListgetSubincludeList()Labels of .bzl (Starlark) files that are transitively loaded in this BUILD file.java.lang.StringgetVisibilityLabel(int index)Labels mentioned in the visibility declaration (including :__pkg__ and //visibility: ones)ByteStringgetVisibilityLabelBytes(int index)Labels mentioned in the visibility declaration (including :__pkg__ and //visibility: ones)intgetVisibilityLabelCount()Labels mentioned in the visibility declaration (including :__pkg__ and //visibility: ones)ProtocolStringListgetVisibilityLabelList()Labels mentioned in the visibility declaration (including :__pkg__ and //visibility: ones)booleanhasLicense()License attribute for the file.booleanhasLocation()The location of the source file.booleanhasName()The name of the source file (a label).booleanhasPackageContainsErrors()True if the package contains an error.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.SourceFile.BuildermergeFrom(Build.SourceFile other)Build.SourceFile.BuildermergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)LikeMessageLite.Builder.mergeFrom(CodedInputStream), but also parses extensions.Build.SourceFile.BuildermergeFrom(Message other)Mergeotherinto the message being built.Build.SourceFile.BuildermergeLicense(Build.License value)License attribute for the file.Build.SourceFile.BuildermergeUnknownFields(UnknownFieldSet unknownFields)Merge some unknown fields into theUnknownFieldSetfor this message.Build.SourceFile.BuildersetFeature(int index, java.lang.String value)The package-level features enabled for this package.Build.SourceFile.BuildersetField(Descriptors.FieldDescriptor field, java.lang.Object value)Sets a field to the given value.Build.SourceFile.BuildersetLicense(Build.License value)License attribute for the file.Build.SourceFile.BuildersetLicense(Build.License.Builder builderForValue)License attribute for the file.Build.SourceFile.BuildersetLocation(java.lang.String value)The location of the source file.Build.SourceFile.BuildersetLocationBytes(ByteString value)The location of the source file.Build.SourceFile.BuildersetName(java.lang.String value)The name of the source file (a label).Build.SourceFile.BuildersetNameBytes(ByteString value)The name of the source file (a label).Build.SourceFile.BuildersetPackageContainsErrors(boolean value)True if the package contains an error.Build.SourceFile.BuildersetPackageGroup(int index, java.lang.String value)Labels of package groups that are mentioned in the visibility declaration for this source file.Build.SourceFile.BuildersetRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)Sets an element of a repeated field to the given value.Build.SourceFile.BuildersetSubinclude(int index, java.lang.String value)Labels of .bzl (Starlark) files that are transitively loaded in this BUILD file.Build.SourceFile.BuildersetUnknownFields(UnknownFieldSet unknownFields)Set theUnknownFieldSetfor this message.Build.SourceFile.BuildersetVisibilityLabel(int index, java.lang.String value)Labels mentioned in the visibility declaration (including :__pkg__ and //visibility: ones)-
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.SourceFile.Builder>
-
clear
public Build.SourceFile.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.SourceFile.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.SourceFile.Builder>
-
getDefaultInstanceForType
public Build.SourceFile 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.SourceFile 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.SourceFile 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.SourceFile.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.SourceFile.Builder>- See Also:
Object.clone()
-
setField
public Build.SourceFile.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.SourceFile.Builder>
-
clearField
public Build.SourceFile.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.SourceFile.Builder>
-
clearOneof
public Build.SourceFile.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.SourceFile.Builder>
-
setRepeatedField
public Build.SourceFile.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.SourceFile.Builder>
-
addRepeatedField
public Build.SourceFile.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.SourceFile.Builder>
-
mergeFrom
public Build.SourceFile.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.SourceFile.Builder>
-
mergeFrom
public Build.SourceFile.Builder mergeFrom(Build.SourceFile 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.SourceFile.Builder>
-
mergeFrom
public Build.SourceFile.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.SourceFile.Builder>- Throws:
java.io.IOException
-
hasName
public boolean hasName()
The name of the source file (a label).
required string name = 1;- Specified by:
hasNamein interfaceBuild.SourceFileOrBuilder- Returns:
- Whether the name field is set.
-
getName
public java.lang.String getName()
The name of the source file (a label).
required string name = 1;- Specified by:
getNamein interfaceBuild.SourceFileOrBuilder- Returns:
- The name.
-
getNameBytes
public ByteString getNameBytes()
The name of the source file (a label).
required string name = 1;- Specified by:
getNameBytesin interfaceBuild.SourceFileOrBuilder- Returns:
- The bytes for name.
-
setName
public Build.SourceFile.Builder setName(java.lang.String value)
The name of the source file (a label).
required string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public Build.SourceFile.Builder clearName()
The name of the source file (a label).
required string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
public Build.SourceFile.Builder setNameBytes(ByteString value)
The name of the source file (a label).
required string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasLocation
public boolean hasLocation()
The location of the source file. This is a path with a line number and a column number not a label in the build system.
optional string location = 2;- Specified by:
hasLocationin interfaceBuild.SourceFileOrBuilder- Returns:
- Whether the location field is set.
-
getLocation
public java.lang.String getLocation()
The location of the source file. This is a path with a line number and a column number not a label in the build system.
optional string location = 2;- Specified by:
getLocationin interfaceBuild.SourceFileOrBuilder- Returns:
- The location.
-
getLocationBytes
public ByteString getLocationBytes()
The location of the source file. This is a path with a line number and a column number not a label in the build system.
optional string location = 2;- Specified by:
getLocationBytesin interfaceBuild.SourceFileOrBuilder- Returns:
- The bytes for location.
-
setLocation
public Build.SourceFile.Builder setLocation(java.lang.String value)
The location of the source file. This is a path with a line number and a column number not a label in the build system.
optional string location = 2;- Parameters:
value- The location to set.- Returns:
- This builder for chaining.
-
clearLocation
public Build.SourceFile.Builder clearLocation()
The location of the source file. This is a path with a line number and a column number not a label in the build system.
optional string location = 2;- Returns:
- This builder for chaining.
-
setLocationBytes
public Build.SourceFile.Builder setLocationBytes(ByteString value)
The location of the source file. This is a path with a line number and a column number not a label in the build system.
optional string location = 2;- Parameters:
value- The bytes for location to set.- Returns:
- This builder for chaining.
-
getSubincludeList
public ProtocolStringList getSubincludeList()
Labels of .bzl (Starlark) files that are transitively loaded in this BUILD file. This is present only when the SourceFile represents a BUILD file that loaded .bzl files. TODO(bazel-team): Rename this field.
repeated string subinclude = 3;- Specified by:
getSubincludeListin interfaceBuild.SourceFileOrBuilder- Returns:
- A list containing the subinclude.
-
getSubincludeCount
public int getSubincludeCount()
Labels of .bzl (Starlark) files that are transitively loaded in this BUILD file. This is present only when the SourceFile represents a BUILD file that loaded .bzl files. TODO(bazel-team): Rename this field.
repeated string subinclude = 3;- Specified by:
getSubincludeCountin interfaceBuild.SourceFileOrBuilder- Returns:
- The count of subinclude.
-
getSubinclude
public java.lang.String getSubinclude(int index)
Labels of .bzl (Starlark) files that are transitively loaded in this BUILD file. This is present only when the SourceFile represents a BUILD file that loaded .bzl files. TODO(bazel-team): Rename this field.
repeated string subinclude = 3;- Specified by:
getSubincludein interfaceBuild.SourceFileOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The subinclude at the given index.
-
getSubincludeBytes
public ByteString getSubincludeBytes(int index)
Labels of .bzl (Starlark) files that are transitively loaded in this BUILD file. This is present only when the SourceFile represents a BUILD file that loaded .bzl files. TODO(bazel-team): Rename this field.
repeated string subinclude = 3;- Specified by:
getSubincludeBytesin interfaceBuild.SourceFileOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the subinclude at the given index.
-
setSubinclude
public Build.SourceFile.Builder setSubinclude(int index, java.lang.String value)
Labels of .bzl (Starlark) files that are transitively loaded in this BUILD file. This is present only when the SourceFile represents a BUILD file that loaded .bzl files. TODO(bazel-team): Rename this field.
repeated string subinclude = 3;- Parameters:
index- The index to set the value at.value- The subinclude to set.- Returns:
- This builder for chaining.
-
addSubinclude
public Build.SourceFile.Builder addSubinclude(java.lang.String value)
Labels of .bzl (Starlark) files that are transitively loaded in this BUILD file. This is present only when the SourceFile represents a BUILD file that loaded .bzl files. TODO(bazel-team): Rename this field.
repeated string subinclude = 3;- Parameters:
value- The subinclude to add.- Returns:
- This builder for chaining.
-
addAllSubinclude
public Build.SourceFile.Builder addAllSubinclude(java.lang.Iterable<java.lang.String> values)
Labels of .bzl (Starlark) files that are transitively loaded in this BUILD file. This is present only when the SourceFile represents a BUILD file that loaded .bzl files. TODO(bazel-team): Rename this field.
repeated string subinclude = 3;- Parameters:
values- The subinclude to add.- Returns:
- This builder for chaining.
-
clearSubinclude
public Build.SourceFile.Builder clearSubinclude()
Labels of .bzl (Starlark) files that are transitively loaded in this BUILD file. This is present only when the SourceFile represents a BUILD file that loaded .bzl files. TODO(bazel-team): Rename this field.
repeated string subinclude = 3;- Returns:
- This builder for chaining.
-
addSubincludeBytes
public Build.SourceFile.Builder addSubincludeBytes(ByteString value)
Labels of .bzl (Starlark) files that are transitively loaded in this BUILD file. This is present only when the SourceFile represents a BUILD file that loaded .bzl files. TODO(bazel-team): Rename this field.
repeated string subinclude = 3;- Parameters:
value- The bytes of the subinclude to add.- Returns:
- This builder for chaining.
-
getPackageGroupList
public ProtocolStringList getPackageGroupList()
Labels of package groups that are mentioned in the visibility declaration for this source file.
repeated string package_group = 4;- Specified by:
getPackageGroupListin interfaceBuild.SourceFileOrBuilder- Returns:
- A list containing the packageGroup.
-
getPackageGroupCount
public int getPackageGroupCount()
Labels of package groups that are mentioned in the visibility declaration for this source file.
repeated string package_group = 4;- Specified by:
getPackageGroupCountin interfaceBuild.SourceFileOrBuilder- Returns:
- The count of packageGroup.
-
getPackageGroup
public java.lang.String getPackageGroup(int index)
Labels of package groups that are mentioned in the visibility declaration for this source file.
repeated string package_group = 4;- Specified by:
getPackageGroupin interfaceBuild.SourceFileOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The packageGroup at the given index.
-
getPackageGroupBytes
public ByteString getPackageGroupBytes(int index)
Labels of package groups that are mentioned in the visibility declaration for this source file.
repeated string package_group = 4;- Specified by:
getPackageGroupBytesin interfaceBuild.SourceFileOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the packageGroup at the given index.
-
setPackageGroup
public Build.SourceFile.Builder setPackageGroup(int index, java.lang.String value)
Labels of package groups that are mentioned in the visibility declaration for this source file.
repeated string package_group = 4;- Parameters:
index- The index to set the value at.value- The packageGroup to set.- Returns:
- This builder for chaining.
-
addPackageGroup
public Build.SourceFile.Builder addPackageGroup(java.lang.String value)
Labels of package groups that are mentioned in the visibility declaration for this source file.
repeated string package_group = 4;- Parameters:
value- The packageGroup to add.- Returns:
- This builder for chaining.
-
addAllPackageGroup
public Build.SourceFile.Builder addAllPackageGroup(java.lang.Iterable<java.lang.String> values)
Labels of package groups that are mentioned in the visibility declaration for this source file.
repeated string package_group = 4;- Parameters:
values- The packageGroup to add.- Returns:
- This builder for chaining.
-
clearPackageGroup
public Build.SourceFile.Builder clearPackageGroup()
Labels of package groups that are mentioned in the visibility declaration for this source file.
repeated string package_group = 4;- Returns:
- This builder for chaining.
-
addPackageGroupBytes
public Build.SourceFile.Builder addPackageGroupBytes(ByteString value)
Labels of package groups that are mentioned in the visibility declaration for this source file.
repeated string package_group = 4;- Parameters:
value- The bytes of the packageGroup to add.- Returns:
- This builder for chaining.
-
getVisibilityLabelList
public ProtocolStringList getVisibilityLabelList()
Labels mentioned in the visibility declaration (including :__pkg__ and //visibility: ones)
repeated string visibility_label = 5;- Specified by:
getVisibilityLabelListin interfaceBuild.SourceFileOrBuilder- Returns:
- A list containing the visibilityLabel.
-
getVisibilityLabelCount
public int getVisibilityLabelCount()
Labels mentioned in the visibility declaration (including :__pkg__ and //visibility: ones)
repeated string visibility_label = 5;- Specified by:
getVisibilityLabelCountin interfaceBuild.SourceFileOrBuilder- Returns:
- The count of visibilityLabel.
-
getVisibilityLabel
public java.lang.String getVisibilityLabel(int index)
Labels mentioned in the visibility declaration (including :__pkg__ and //visibility: ones)
repeated string visibility_label = 5;- Specified by:
getVisibilityLabelin interfaceBuild.SourceFileOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The visibilityLabel at the given index.
-
getVisibilityLabelBytes
public ByteString getVisibilityLabelBytes(int index)
Labels mentioned in the visibility declaration (including :__pkg__ and //visibility: ones)
repeated string visibility_label = 5;- Specified by:
getVisibilityLabelBytesin interfaceBuild.SourceFileOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the visibilityLabel at the given index.
-
setVisibilityLabel
public Build.SourceFile.Builder setVisibilityLabel(int index, java.lang.String value)
Labels mentioned in the visibility declaration (including :__pkg__ and //visibility: ones)
repeated string visibility_label = 5;- Parameters:
index- The index to set the value at.value- The visibilityLabel to set.- Returns:
- This builder for chaining.
-
addVisibilityLabel
public Build.SourceFile.Builder addVisibilityLabel(java.lang.String value)
Labels mentioned in the visibility declaration (including :__pkg__ and //visibility: ones)
repeated string visibility_label = 5;- Parameters:
value- The visibilityLabel to add.- Returns:
- This builder for chaining.
-
addAllVisibilityLabel
public Build.SourceFile.Builder addAllVisibilityLabel(java.lang.Iterable<java.lang.String> values)
Labels mentioned in the visibility declaration (including :__pkg__ and //visibility: ones)
repeated string visibility_label = 5;- Parameters:
values- The visibilityLabel to add.- Returns:
- This builder for chaining.
-
clearVisibilityLabel
public Build.SourceFile.Builder clearVisibilityLabel()
Labels mentioned in the visibility declaration (including :__pkg__ and //visibility: ones)
repeated string visibility_label = 5;- Returns:
- This builder for chaining.
-
addVisibilityLabelBytes
public Build.SourceFile.Builder addVisibilityLabelBytes(ByteString value)
Labels mentioned in the visibility declaration (including :__pkg__ and //visibility: ones)
repeated string visibility_label = 5;- Parameters:
value- The bytes of the visibilityLabel to add.- Returns:
- This builder for chaining.
-
getFeatureList
public ProtocolStringList getFeatureList()
The package-level features enabled for this package. Only present if the SourceFile represents a BUILD file.
repeated string feature = 6;- Specified by:
getFeatureListin interfaceBuild.SourceFileOrBuilder- Returns:
- A list containing the feature.
-
getFeatureCount
public int getFeatureCount()
The package-level features enabled for this package. Only present if the SourceFile represents a BUILD file.
repeated string feature = 6;- Specified by:
getFeatureCountin interfaceBuild.SourceFileOrBuilder- Returns:
- The count of feature.
-
getFeature
public java.lang.String getFeature(int index)
The package-level features enabled for this package. Only present if the SourceFile represents a BUILD file.
repeated string feature = 6;- Specified by:
getFeaturein interfaceBuild.SourceFileOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The feature at the given index.
-
getFeatureBytes
public ByteString getFeatureBytes(int index)
The package-level features enabled for this package. Only present if the SourceFile represents a BUILD file.
repeated string feature = 6;- Specified by:
getFeatureBytesin interfaceBuild.SourceFileOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the feature at the given index.
-
setFeature
public Build.SourceFile.Builder setFeature(int index, java.lang.String value)
The package-level features enabled for this package. Only present if the SourceFile represents a BUILD file.
repeated string feature = 6;- Parameters:
index- The index to set the value at.value- The feature to set.- Returns:
- This builder for chaining.
-
addFeature
public Build.SourceFile.Builder addFeature(java.lang.String value)
The package-level features enabled for this package. Only present if the SourceFile represents a BUILD file.
repeated string feature = 6;- Parameters:
value- The feature to add.- Returns:
- This builder for chaining.
-
addAllFeature
public Build.SourceFile.Builder addAllFeature(java.lang.Iterable<java.lang.String> values)
The package-level features enabled for this package. Only present if the SourceFile represents a BUILD file.
repeated string feature = 6;- Parameters:
values- The feature to add.- Returns:
- This builder for chaining.
-
clearFeature
public Build.SourceFile.Builder clearFeature()
The package-level features enabled for this package. Only present if the SourceFile represents a BUILD file.
repeated string feature = 6;- Returns:
- This builder for chaining.
-
addFeatureBytes
public Build.SourceFile.Builder addFeatureBytes(ByteString value)
The package-level features enabled for this package. Only present if the SourceFile represents a BUILD file.
repeated string feature = 6;- Parameters:
value- The bytes of the feature to add.- Returns:
- This builder for chaining.
-
hasLicense
public boolean hasLicense()
License attribute for the file.
optional .blaze_query.License license = 8;- Specified by:
hasLicensein interfaceBuild.SourceFileOrBuilder- Returns:
- Whether the license field is set.
-
getLicense
public Build.License getLicense()
License attribute for the file.
optional .blaze_query.License license = 8;- Specified by:
getLicensein interfaceBuild.SourceFileOrBuilder- Returns:
- The license.
-
setLicense
public Build.SourceFile.Builder setLicense(Build.License value)
License attribute for the file.
optional .blaze_query.License license = 8;
-
setLicense
public Build.SourceFile.Builder setLicense(Build.License.Builder builderForValue)
License attribute for the file.
optional .blaze_query.License license = 8;
-
mergeLicense
public Build.SourceFile.Builder mergeLicense(Build.License value)
License attribute for the file.
optional .blaze_query.License license = 8;
-
clearLicense
public Build.SourceFile.Builder clearLicense()
License attribute for the file.
optional .blaze_query.License license = 8;
-
getLicenseBuilder
public Build.License.Builder getLicenseBuilder()
License attribute for the file.
optional .blaze_query.License license = 8;
-
getLicenseOrBuilder
public Build.LicenseOrBuilder getLicenseOrBuilder()
License attribute for the file.
optional .blaze_query.License license = 8;- Specified by:
getLicenseOrBuilderin interfaceBuild.SourceFileOrBuilder
-
hasPackageContainsErrors
public boolean hasPackageContainsErrors()
True if the package contains an error. Only present if the SourceFile represents a BUILD file.
optional bool package_contains_errors = 9;- Specified by:
hasPackageContainsErrorsin interfaceBuild.SourceFileOrBuilder- Returns:
- Whether the packageContainsErrors field is set.
-
getPackageContainsErrors
public boolean getPackageContainsErrors()
True if the package contains an error. Only present if the SourceFile represents a BUILD file.
optional bool package_contains_errors = 9;- Specified by:
getPackageContainsErrorsin interfaceBuild.SourceFileOrBuilder- Returns:
- The packageContainsErrors.
-
setPackageContainsErrors
public Build.SourceFile.Builder setPackageContainsErrors(boolean value)
True if the package contains an error. Only present if the SourceFile represents a BUILD file.
optional bool package_contains_errors = 9;- Parameters:
value- The packageContainsErrors to set.- Returns:
- This builder for chaining.
-
clearPackageContainsErrors
public Build.SourceFile.Builder clearPackageContainsErrors()
True if the package contains an error. Only present if the SourceFile represents a BUILD file.
optional bool package_contains_errors = 9;- Returns:
- This builder for chaining.
-
setUnknownFields
public final Build.SourceFile.Builder setUnknownFields(UnknownFieldSet unknownFields)
Description copied from interface:Message.BuilderSet theUnknownFieldSetfor this message.- Specified by:
setUnknownFieldsin interfaceMessage.Builder- Overrides:
setUnknownFieldsin classGeneratedMessageV3.Builder<Build.SourceFile.Builder>
-
mergeUnknownFields
public final Build.SourceFile.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.SourceFile.Builder>
-
-