Interface Build.SourceFileOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
Build.SourceFile, Build.SourceFile.Builder
Enclosing class:
Build

public static interface Build.SourceFileOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    getFeature(int index)
    The package-level features enabled for this package.
    com.google.protobuf.ByteString
    getFeatureBytes(int index)
    The package-level features enabled for this package.
    int
    The package-level features enabled for this package.
    The package-level features enabled for this package.
    License attribute for the file.
    License attribute for the file.
    The location of the source file.
    com.google.protobuf.ByteString
    The location of the source file.
    The name of the source file (a label).
    com.google.protobuf.ByteString
    The name of the source file (a label).
    boolean
    True if the package contains an error.
    getPackageGroup(int index)
    Labels of package groups that are mentioned in the visibility declaration for this source file.
    com.google.protobuf.ByteString
    Labels of package groups that are mentioned in the visibility declaration for this source file.
    int
    Labels of package groups that are mentioned in the visibility declaration for this source file.
    Labels of package groups that are mentioned in the visibility declaration for this source file.
    getSubinclude(int index)
    Labels of .bzl (Starlark) files that are transitively loaded in this BUILD file.
    com.google.protobuf.ByteString
    getSubincludeBytes(int index)
    Labels of .bzl (Starlark) files that are transitively loaded in this BUILD file.
    int
    Labels of .bzl (Starlark) files that are transitively loaded in this BUILD file.
    Labels of .bzl (Starlark) files that are transitively loaded in this BUILD file.
    getVisibilityLabel(int index)
    Labels mentioned in the visibility declaration (including :__pkg__ and //visibility: ones)
    com.google.protobuf.ByteString
    Labels mentioned in the visibility declaration (including :__pkg__ and //visibility: ones)
    int
    Labels mentioned in the visibility declaration (including :__pkg__ and //visibility: ones)
    Labels mentioned in the visibility declaration (including :__pkg__ and //visibility: ones)
    boolean
    License attribute for the file.
    boolean
    The location of the source file.
    boolean
    The name of the source file (a label).
    boolean
    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 Details

    • hasName

      boolean hasName()
       The name of the source file (a label).
       
      required string name = 1;
      Returns:
      Whether the name field is set.
    • getName

      String getName()
       The name of the source file (a label).
       
      required string name = 1;
      Returns:
      The name.
    • getNameBytes

      com.google.protobuf.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

      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

      com.google.protobuf.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

      List<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

      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

      com.google.protobuf.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

      List<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

      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

      com.google.protobuf.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

      List<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

      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

      com.google.protobuf.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

      List<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

      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

      com.google.protobuf.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.