Interface Build.SourceFileOrBuilder

    • 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.