Interface Build.RuleOrBuilder

    • Method Detail

      • hasName

        boolean hasName()
         The name of the rule (formatted as an absolute label, e.g. //foo/bar:baz).
         
        required string name = 1;
        Returns:
        Whether the name field is set.
      • getName

        java.lang.String getName()
         The name of the rule (formatted as an absolute label, e.g. //foo/bar:baz).
         
        required string name = 1;
        Returns:
        The name.
      • getNameBytes

        ByteString getNameBytes()
         The name of the rule (formatted as an absolute label, e.g. //foo/bar:baz).
         
        required string name = 1;
        Returns:
        The bytes for name.
      • hasRuleClass

        boolean hasRuleClass()
         The rule class (e.g., java_library)
         
        required string rule_class = 2;
        Returns:
        Whether the ruleClass field is set.
      • getRuleClass

        java.lang.String getRuleClass()
         The rule class (e.g., java_library)
         
        required string rule_class = 2;
        Returns:
        The ruleClass.
      • getRuleClassBytes

        ByteString getRuleClassBytes()
         The rule class (e.g., java_library)
         
        required string rule_class = 2;
        Returns:
        The bytes for ruleClass.
      • hasLocation

        boolean hasLocation()
         The BUILD file and line number of the location (formatted as
         <absolute_path>:<line_number>:<column_number>) in the rule's package's
         BUILD file where the rule instance was instantiated. The line number will
         be that of a rule invocation or macro call (that in turn invoked a
         rule). See
         https://docs.bazel.build/versions/main/skylark/macros.html#macro-creation
         
        optional string location = 3;
        Returns:
        Whether the location field is set.
      • getLocation

        java.lang.String getLocation()
         The BUILD file and line number of the location (formatted as
         <absolute_path>:<line_number>:<column_number>) in the rule's package's
         BUILD file where the rule instance was instantiated. The line number will
         be that of a rule invocation or macro call (that in turn invoked a
         rule). See
         https://docs.bazel.build/versions/main/skylark/macros.html#macro-creation
         
        optional string location = 3;
        Returns:
        The location.
      • getLocationBytes

        ByteString getLocationBytes()
         The BUILD file and line number of the location (formatted as
         <absolute_path>:<line_number>:<column_number>) in the rule's package's
         BUILD file where the rule instance was instantiated. The line number will
         be that of a rule invocation or macro call (that in turn invoked a
         rule). See
         https://docs.bazel.build/versions/main/skylark/macros.html#macro-creation
         
        optional string location = 3;
        Returns:
        The bytes for location.
      • getAttributeList

        java.util.List<Build.Attribute> getAttributeList()
         All of the attributes that describe the rule.
         
        repeated .blaze_query.Attribute attribute = 4;
      • getAttribute

        Build.Attribute getAttribute​(int index)
         All of the attributes that describe the rule.
         
        repeated .blaze_query.Attribute attribute = 4;
      • getAttributeCount

        int getAttributeCount()
         All of the attributes that describe the rule.
         
        repeated .blaze_query.Attribute attribute = 4;
      • getAttributeOrBuilderList

        java.util.List<? extends Build.AttributeOrBuilder> getAttributeOrBuilderList()
         All of the attributes that describe the rule.
         
        repeated .blaze_query.Attribute attribute = 4;
      • getAttributeOrBuilder

        Build.AttributeOrBuilder getAttributeOrBuilder​(int index)
         All of the attributes that describe the rule.
         
        repeated .blaze_query.Attribute attribute = 4;
      • getRuleInputList

        java.util.List<java.lang.String> getRuleInputList()
         All of the inputs to the rule (formatted as absolute labels). These are
         predecessors in the dependency graph.
         
        repeated string rule_input = 5;
        Returns:
        A list containing the ruleInput.
      • getRuleInputCount

        int getRuleInputCount()
         All of the inputs to the rule (formatted as absolute labels). These are
         predecessors in the dependency graph.
         
        repeated string rule_input = 5;
        Returns:
        The count of ruleInput.
      • getRuleInput

        java.lang.String getRuleInput​(int index)
         All of the inputs to the rule (formatted as absolute labels). These are
         predecessors in the dependency graph.
         
        repeated string rule_input = 5;
        Parameters:
        index - The index of the element to return.
        Returns:
        The ruleInput at the given index.
      • getRuleInputBytes

        ByteString getRuleInputBytes​(int index)
         All of the inputs to the rule (formatted as absolute labels). These are
         predecessors in the dependency graph.
         
        repeated string rule_input = 5;
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the ruleInput at the given index.
      • getRuleOutputList

        java.util.List<java.lang.String> getRuleOutputList()
         All of the outputs of the rule (formatted as absolute labels). These are
         successors in the dependency graph.
         
        repeated string rule_output = 6;
        Returns:
        A list containing the ruleOutput.
      • getRuleOutputCount

        int getRuleOutputCount()
         All of the outputs of the rule (formatted as absolute labels). These are
         successors in the dependency graph.
         
        repeated string rule_output = 6;
        Returns:
        The count of ruleOutput.
      • getRuleOutput

        java.lang.String getRuleOutput​(int index)
         All of the outputs of the rule (formatted as absolute labels). These are
         successors in the dependency graph.
         
        repeated string rule_output = 6;
        Parameters:
        index - The index of the element to return.
        Returns:
        The ruleOutput at the given index.
      • getRuleOutputBytes

        ByteString getRuleOutputBytes​(int index)
         All of the outputs of the rule (formatted as absolute labels). These are
         successors in the dependency graph.
         
        repeated string rule_output = 6;
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the ruleOutput at the given index.
      • getDefaultSettingList

        java.util.List<java.lang.String> getDefaultSettingList()
         The set of all "features" inherited from the rule's package declaration.
         
        repeated string default_setting = 7;
        Returns:
        A list containing the defaultSetting.
      • getDefaultSettingCount

        int getDefaultSettingCount()
         The set of all "features" inherited from the rule's package declaration.
         
        repeated string default_setting = 7;
        Returns:
        The count of defaultSetting.
      • getDefaultSetting

        java.lang.String getDefaultSetting​(int index)
         The set of all "features" inherited from the rule's package declaration.
         
        repeated string default_setting = 7;
        Parameters:
        index - The index of the element to return.
        Returns:
        The defaultSetting at the given index.
      • getDefaultSettingBytes

        ByteString getDefaultSettingBytes​(int index)
         The set of all "features" inherited from the rule's package declaration.
         
        repeated string default_setting = 7;
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the defaultSetting at the given index.
      • hasDEPRECATEDPublicByDefault

        boolean hasDEPRECATEDPublicByDefault()
         The rule's class's public by default value.
         
        optional bool DEPRECATED_public_by_default = 9;
        Returns:
        Whether the dEPRECATEDPublicByDefault field is set.
      • getDEPRECATEDPublicByDefault

        boolean getDEPRECATEDPublicByDefault()
         The rule's class's public by default value.
         
        optional bool DEPRECATED_public_by_default = 9;
        Returns:
        The dEPRECATEDPublicByDefault.
      • hasDEPRECATEDIsSkylark

        boolean hasDEPRECATEDIsSkylark()
        optional bool DEPRECATED_is_skylark = 10;
        Returns:
        Whether the dEPRECATEDIsSkylark field is set.
      • getDEPRECATEDIsSkylark

        boolean getDEPRECATEDIsSkylark()
        optional bool DEPRECATED_is_skylark = 10;
        Returns:
        The dEPRECATEDIsSkylark.
      • hasSkylarkEnvironmentHashCode

        boolean hasSkylarkEnvironmentHashCode()
         Hash encapsulating the behavior of this Starlark rule. Any change to this
         rule's definition that could change its behavior will be reflected here.
         
        optional string skylark_environment_hash_code = 12;
        Returns:
        Whether the skylarkEnvironmentHashCode field is set.
      • getSkylarkEnvironmentHashCode

        java.lang.String getSkylarkEnvironmentHashCode()
         Hash encapsulating the behavior of this Starlark rule. Any change to this
         rule's definition that could change its behavior will be reflected here.
         
        optional string skylark_environment_hash_code = 12;
        Returns:
        The skylarkEnvironmentHashCode.
      • getSkylarkEnvironmentHashCodeBytes

        ByteString getSkylarkEnvironmentHashCodeBytes()
         Hash encapsulating the behavior of this Starlark rule. Any change to this
         rule's definition that could change its behavior will be reflected here.
         
        optional string skylark_environment_hash_code = 12;
        Returns:
        The bytes for skylarkEnvironmentHashCode.
      • getInstantiationStackList

        java.util.List<java.lang.String> getInstantiationStackList()
         The Starlark call stack at the moment the rule was instantiated.
         Each entry has the form "file:line:col: function".
         The outermost stack frame ("<toplevel>", the BUILD file) appears first;
         the frame for the rule function itself is omitted.
         The file name may be relative to package's source root directory.
         Requires --proto:instantiation_stack=true.
         
        repeated string instantiation_stack = 13;
        Returns:
        A list containing the instantiationStack.
      • getInstantiationStackCount

        int getInstantiationStackCount()
         The Starlark call stack at the moment the rule was instantiated.
         Each entry has the form "file:line:col: function".
         The outermost stack frame ("<toplevel>", the BUILD file) appears first;
         the frame for the rule function itself is omitted.
         The file name may be relative to package's source root directory.
         Requires --proto:instantiation_stack=true.
         
        repeated string instantiation_stack = 13;
        Returns:
        The count of instantiationStack.
      • getInstantiationStack

        java.lang.String getInstantiationStack​(int index)
         The Starlark call stack at the moment the rule was instantiated.
         Each entry has the form "file:line:col: function".
         The outermost stack frame ("<toplevel>", the BUILD file) appears first;
         the frame for the rule function itself is omitted.
         The file name may be relative to package's source root directory.
         Requires --proto:instantiation_stack=true.
         
        repeated string instantiation_stack = 13;
        Parameters:
        index - The index of the element to return.
        Returns:
        The instantiationStack at the given index.
      • getInstantiationStackBytes

        ByteString getInstantiationStackBytes​(int index)
         The Starlark call stack at the moment the rule was instantiated.
         Each entry has the form "file:line:col: function".
         The outermost stack frame ("<toplevel>", the BUILD file) appears first;
         the frame for the rule function itself is omitted.
         The file name may be relative to package's source root directory.
         Requires --proto:instantiation_stack=true.
         
        repeated string instantiation_stack = 13;
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the instantiationStack at the given index.
      • getDefinitionStackList

        java.util.List<java.lang.String> getDefinitionStackList()
         The Starlark call stack for the definition of the rule class of this
         particular rule instance. If empty, either populating the field was not
         enabled on the command line with the --proto:definition_stack flag or the
         rule is a native one.
         
        repeated string definition_stack = 14;
        Returns:
        A list containing the definitionStack.
      • getDefinitionStackCount

        int getDefinitionStackCount()
         The Starlark call stack for the definition of the rule class of this
         particular rule instance. If empty, either populating the field was not
         enabled on the command line with the --proto:definition_stack flag or the
         rule is a native one.
         
        repeated string definition_stack = 14;
        Returns:
        The count of definitionStack.
      • getDefinitionStack

        java.lang.String getDefinitionStack​(int index)
         The Starlark call stack for the definition of the rule class of this
         particular rule instance. If empty, either populating the field was not
         enabled on the command line with the --proto:definition_stack flag or the
         rule is a native one.
         
        repeated string definition_stack = 14;
        Parameters:
        index - The index of the element to return.
        Returns:
        The definitionStack at the given index.
      • getDefinitionStackBytes

        ByteString getDefinitionStackBytes​(int index)
         The Starlark call stack for the definition of the rule class of this
         particular rule instance. If empty, either populating the field was not
         enabled on the command line with the --proto:definition_stack flag or the
         rule is a native one.
         
        repeated string definition_stack = 14;
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the definitionStack at the given index.