Interface Build.SourceFileOrBuilder
-
- All Superinterfaces:
MessageLiteOrBuilder,MessageOrBuilder
- All Known Implementing Classes:
Build.SourceFile,Build.SourceFile.Builder
- Enclosing class:
- Build
public static interface Build.SourceFileOrBuilder extends MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.java.util.List<java.lang.String>getFeatureList()The package-level features enabled for this package.Build.LicensegetLicense()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.java.util.List<java.lang.String>getPackageGroupList()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.java.util.List<java.lang.String>getSubincludeList()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)java.util.List<java.lang.String>getVisibilityLabelList()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.-
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasName
boolean hasName()
The name of the source file (a label).
required string name = 1;- Returns:
- Whether the name field is set.
-
getName
java.lang.String getName()
The name of the source file (a label).
required string name = 1;- Returns:
- The name.
-
getNameBytes
ByteString getNameBytes()
The name of the source file (a label).
required string name = 1;- Returns:
- The bytes for name.
-
hasLocation
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;- Returns:
- Whether the location field is set.
-
getLocation
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;- Returns:
- The location.
-
getLocationBytes
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;- Returns:
- The bytes for location.
-
getSubincludeList
java.util.List<java.lang.String> 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;- Returns:
- A list containing the subinclude.
-
getSubincludeCount
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;- Returns:
- The count of subinclude.
-
getSubinclude
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;- Parameters:
index- The index of the element to return.- Returns:
- The subinclude at the given index.
-
getSubincludeBytes
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;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the subinclude at the given index.
-
getPackageGroupList
java.util.List<java.lang.String> getPackageGroupList()
Labels of package groups that are mentioned in the visibility declaration for this source file.
repeated string package_group = 4;- Returns:
- A list containing the packageGroup.
-
getPackageGroupCount
int getPackageGroupCount()
Labels of package groups that are mentioned in the visibility declaration for this source file.
repeated string package_group = 4;- Returns:
- The count of packageGroup.
-
getPackageGroup
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;- Parameters:
index- The index of the element to return.- Returns:
- The packageGroup at the given index.
-
getPackageGroupBytes
ByteString getPackageGroupBytes(int index)
Labels of package groups that are mentioned in the visibility declaration for this source file.
repeated string package_group = 4;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the packageGroup at the given index.
-
getVisibilityLabelList
java.util.List<java.lang.String> getVisibilityLabelList()
Labels mentioned in the visibility declaration (including :__pkg__ and //visibility: ones)
repeated string visibility_label = 5;- Returns:
- A list containing the visibilityLabel.
-
getVisibilityLabelCount
int getVisibilityLabelCount()
Labels mentioned in the visibility declaration (including :__pkg__ and //visibility: ones)
repeated string visibility_label = 5;- Returns:
- The count of visibilityLabel.
-
getVisibilityLabel
java.lang.String getVisibilityLabel(int index)
Labels mentioned in the visibility declaration (including :__pkg__ and //visibility: ones)
repeated string visibility_label = 5;- Parameters:
index- The index of the element to return.- Returns:
- The visibilityLabel at the given index.
-
getVisibilityLabelBytes
ByteString getVisibilityLabelBytes(int index)
Labels mentioned in the visibility declaration (including :__pkg__ and //visibility: ones)
repeated string visibility_label = 5;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the visibilityLabel at the given index.
-
getFeatureList
java.util.List<java.lang.String> getFeatureList()
The package-level features enabled for this package. Only present if the SourceFile represents a BUILD file.
repeated string feature = 6;- Returns:
- A list containing the feature.
-
getFeatureCount
int getFeatureCount()
The package-level features enabled for this package. Only present if the SourceFile represents a BUILD file.
repeated string feature = 6;- Returns:
- The count of feature.
-
getFeature
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;- Parameters:
index- The index of the element to return.- Returns:
- The feature at the given index.
-
getFeatureBytes
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;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the feature at the given index.
-
hasLicense
boolean hasLicense()
License attribute for the file.
optional .blaze_query.License license = 8;- Returns:
- Whether the license field is set.
-
getLicense
Build.License getLicense()
License attribute for the file.
optional .blaze_query.License license = 8;- Returns:
- The license.
-
getLicenseOrBuilder
Build.LicenseOrBuilder getLicenseOrBuilder()
License attribute for the file.
optional .blaze_query.License license = 8;
-
hasPackageContainsErrors
boolean hasPackageContainsErrors()
True if the package contains an error. Only present if the SourceFile represents a BUILD file.
optional bool package_contains_errors = 9;- Returns:
- Whether the packageContainsErrors field is set.
-
getPackageContainsErrors
boolean getPackageContainsErrors()
True if the package contains an error. Only present if the SourceFile represents a BUILD file.
optional bool package_contains_errors = 9;- Returns:
- The packageContainsErrors.
-
-