Class Build.Rule.Builder

    • Method Detail

      • getDefaultInstanceForType

        public Build.Rule getDefaultInstanceForType()
        Description copied from interface: MessageLiteOrBuilder
        Get 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 the getDefaultInstance() method of generated message classes in that this method is an abstract method of the MessageLite interface whereas getDefaultInstance() is a static method of a specific class. They return the same thing.
        Specified by:
        getDefaultInstanceForType in interface MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface MessageOrBuilder
      • mergeFrom

        public Build.Rule.Builder mergeFrom​(Message other)
        Description copied from interface: Message.Builder
        Merge other into the message being built. other must have the exact same type as this (i.e. getDescriptorForType() == other.getDescriptorForType()).

        Merging occurs as follows. For each field:
        * For singular primitive fields, if the field is set in other, then other's value overwrites the value in this message.
        * For singular message fields, if the field is set in other, it is merged into the corresponding sub-message of this message using the same merging rules.
        * For repeated fields, the elements in other are 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::MergeFrom method in C++.

        Specified by:
        mergeFrom in interface Message.Builder
        Overrides:
        mergeFrom in class AbstractMessage.Builder<Build.Rule.Builder>
      • hasName

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

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

        public ByteString getNameBytes()
         The name of the rule (formatted as an absolute label, e.g. //foo/bar:baz).
         
        required string name = 1;
        Specified by:
        getNameBytes in interface Build.RuleOrBuilder
        Returns:
        The bytes for name.
      • setName

        public Build.Rule.Builder setName​(java.lang.String value)
         The name of the rule (formatted as an absolute label, e.g. //foo/bar:baz).
         
        required string name = 1;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public Build.Rule.Builder clearName()
         The name of the rule (formatted as an absolute label, e.g. //foo/bar:baz).
         
        required string name = 1;
        Returns:
        This builder for chaining.
      • setNameBytes

        public Build.Rule.Builder setNameBytes​(ByteString value)
         The name of the rule (formatted as an absolute label, e.g. //foo/bar:baz).
         
        required string name = 1;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • hasRuleClass

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

        public java.lang.String getRuleClass()
         The rule class (e.g., java_library)
         
        required string rule_class = 2;
        Specified by:
        getRuleClass in interface Build.RuleOrBuilder
        Returns:
        The ruleClass.
      • setRuleClass

        public Build.Rule.Builder setRuleClass​(java.lang.String value)
         The rule class (e.g., java_library)
         
        required string rule_class = 2;
        Parameters:
        value - The ruleClass to set.
        Returns:
        This builder for chaining.
      • clearRuleClass

        public Build.Rule.Builder clearRuleClass()
         The rule class (e.g., java_library)
         
        required string rule_class = 2;
        Returns:
        This builder for chaining.
      • setRuleClassBytes

        public Build.Rule.Builder setRuleClassBytes​(ByteString value)
         The rule class (e.g., java_library)
         
        required string rule_class = 2;
        Parameters:
        value - The bytes for ruleClass to set.
        Returns:
        This builder for chaining.
      • hasLocation

        public 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;
        Specified by:
        hasLocation in interface Build.RuleOrBuilder
        Returns:
        Whether the location field is set.
      • getLocation

        public 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;
        Specified by:
        getLocation in interface Build.RuleOrBuilder
        Returns:
        The location.
      • getLocationBytes

        public 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;
        Specified by:
        getLocationBytes in interface Build.RuleOrBuilder
        Returns:
        The bytes for location.
      • setLocation

        public Build.Rule.Builder setLocation​(java.lang.String value)
         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;
        Parameters:
        value - The location to set.
        Returns:
        This builder for chaining.
      • clearLocation

        public Build.Rule.Builder clearLocation()
         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:
        This builder for chaining.
      • setLocationBytes

        public Build.Rule.Builder setLocationBytes​(ByteString value)
         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;
        Parameters:
        value - The bytes for location to set.
        Returns:
        This builder for chaining.
      • getAttributeCount

        public int getAttributeCount()
         All of the attributes that describe the rule.
         
        repeated .blaze_query.Attribute attribute = 4;
        Specified by:
        getAttributeCount in interface Build.RuleOrBuilder
      • setAttribute

        public Build.Rule.Builder setAttribute​(int index,
                                               Build.Attribute value)
         All of the attributes that describe the rule.
         
        repeated .blaze_query.Attribute attribute = 4;
      • setAttribute

        public Build.Rule.Builder setAttribute​(int index,
                                               Build.Attribute.Builder builderForValue)
         All of the attributes that describe the rule.
         
        repeated .blaze_query.Attribute attribute = 4;
      • addAttribute

        public Build.Rule.Builder addAttribute​(Build.Attribute value)
         All of the attributes that describe the rule.
         
        repeated .blaze_query.Attribute attribute = 4;
      • addAttribute

        public Build.Rule.Builder addAttribute​(int index,
                                               Build.Attribute value)
         All of the attributes that describe the rule.
         
        repeated .blaze_query.Attribute attribute = 4;
      • addAttribute

        public Build.Rule.Builder addAttribute​(int index,
                                               Build.Attribute.Builder builderForValue)
         All of the attributes that describe the rule.
         
        repeated .blaze_query.Attribute attribute = 4;
      • addAllAttribute

        public Build.Rule.Builder addAllAttribute​(java.lang.Iterable<? extends Build.Attribute> values)
         All of the attributes that describe the rule.
         
        repeated .blaze_query.Attribute attribute = 4;
      • clearAttribute

        public Build.Rule.Builder clearAttribute()
         All of the attributes that describe the rule.
         
        repeated .blaze_query.Attribute attribute = 4;
      • removeAttribute

        public Build.Rule.Builder removeAttribute​(int index)
         All of the attributes that describe the rule.
         
        repeated .blaze_query.Attribute attribute = 4;
      • getAttributeBuilder

        public Build.Attribute.Builder getAttributeBuilder​(int index)
         All of the attributes that describe the rule.
         
        repeated .blaze_query.Attribute attribute = 4;
      • addAttributeBuilder

        public Build.Attribute.Builder addAttributeBuilder()
         All of the attributes that describe the rule.
         
        repeated .blaze_query.Attribute attribute = 4;
      • addAttributeBuilder

        public Build.Attribute.Builder addAttributeBuilder​(int index)
         All of the attributes that describe the rule.
         
        repeated .blaze_query.Attribute attribute = 4;
      • getAttributeBuilderList

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

        public ProtocolStringList getRuleInputList()
         All of the inputs to the rule (formatted as absolute labels). These are
         predecessors in the dependency graph.
         
        repeated string rule_input = 5;
        Specified by:
        getRuleInputList in interface Build.RuleOrBuilder
        Returns:
        A list containing the ruleInput.
      • getRuleInputCount

        public 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;
        Specified by:
        getRuleInputCount in interface Build.RuleOrBuilder
        Returns:
        The count of ruleInput.
      • getRuleInput

        public 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;
        Specified by:
        getRuleInput in interface Build.RuleOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The ruleInput at the given index.
      • getRuleInputBytes

        public 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;
        Specified by:
        getRuleInputBytes in interface Build.RuleOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the ruleInput at the given index.
      • setRuleInput

        public Build.Rule.Builder setRuleInput​(int index,
                                               java.lang.String value)
         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 to set the value at.
        value - The ruleInput to set.
        Returns:
        This builder for chaining.
      • addRuleInput

        public Build.Rule.Builder addRuleInput​(java.lang.String value)
         All of the inputs to the rule (formatted as absolute labels). These are
         predecessors in the dependency graph.
         
        repeated string rule_input = 5;
        Parameters:
        value - The ruleInput to add.
        Returns:
        This builder for chaining.
      • addAllRuleInput

        public Build.Rule.Builder addAllRuleInput​(java.lang.Iterable<java.lang.String> values)
         All of the inputs to the rule (formatted as absolute labels). These are
         predecessors in the dependency graph.
         
        repeated string rule_input = 5;
        Parameters:
        values - The ruleInput to add.
        Returns:
        This builder for chaining.
      • clearRuleInput

        public Build.Rule.Builder clearRuleInput()
         All of the inputs to the rule (formatted as absolute labels). These are
         predecessors in the dependency graph.
         
        repeated string rule_input = 5;
        Returns:
        This builder for chaining.
      • addRuleInputBytes

        public Build.Rule.Builder addRuleInputBytes​(ByteString value)
         All of the inputs to the rule (formatted as absolute labels). These are
         predecessors in the dependency graph.
         
        repeated string rule_input = 5;
        Parameters:
        value - The bytes of the ruleInput to add.
        Returns:
        This builder for chaining.
      • getRuleOutputList

        public ProtocolStringList getRuleOutputList()
         All of the outputs of the rule (formatted as absolute labels). These are
         successors in the dependency graph.
         
        repeated string rule_output = 6;
        Specified by:
        getRuleOutputList in interface Build.RuleOrBuilder
        Returns:
        A list containing the ruleOutput.
      • getRuleOutputCount

        public 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;
        Specified by:
        getRuleOutputCount in interface Build.RuleOrBuilder
        Returns:
        The count of ruleOutput.
      • getRuleOutput

        public 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;
        Specified by:
        getRuleOutput in interface Build.RuleOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The ruleOutput at the given index.
      • getRuleOutputBytes

        public 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;
        Specified by:
        getRuleOutputBytes in interface Build.RuleOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the ruleOutput at the given index.
      • setRuleOutput

        public Build.Rule.Builder setRuleOutput​(int index,
                                                java.lang.String value)
         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 to set the value at.
        value - The ruleOutput to set.
        Returns:
        This builder for chaining.
      • addRuleOutput

        public Build.Rule.Builder addRuleOutput​(java.lang.String value)
         All of the outputs of the rule (formatted as absolute labels). These are
         successors in the dependency graph.
         
        repeated string rule_output = 6;
        Parameters:
        value - The ruleOutput to add.
        Returns:
        This builder for chaining.
      • addAllRuleOutput

        public Build.Rule.Builder addAllRuleOutput​(java.lang.Iterable<java.lang.String> values)
         All of the outputs of the rule (formatted as absolute labels). These are
         successors in the dependency graph.
         
        repeated string rule_output = 6;
        Parameters:
        values - The ruleOutput to add.
        Returns:
        This builder for chaining.
      • clearRuleOutput

        public Build.Rule.Builder clearRuleOutput()
         All of the outputs of the rule (formatted as absolute labels). These are
         successors in the dependency graph.
         
        repeated string rule_output = 6;
        Returns:
        This builder for chaining.
      • addRuleOutputBytes

        public Build.Rule.Builder addRuleOutputBytes​(ByteString value)
         All of the outputs of the rule (formatted as absolute labels). These are
         successors in the dependency graph.
         
        repeated string rule_output = 6;
        Parameters:
        value - The bytes of the ruleOutput to add.
        Returns:
        This builder for chaining.
      • getDefaultSettingList

        public ProtocolStringList getDefaultSettingList()
         The set of all "features" inherited from the rule's package declaration.
         
        repeated string default_setting = 7;
        Specified by:
        getDefaultSettingList in interface Build.RuleOrBuilder
        Returns:
        A list containing the defaultSetting.
      • getDefaultSettingCount

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

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

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

        public Build.Rule.Builder setDefaultSetting​(int index,
                                                    java.lang.String value)
         The set of all "features" inherited from the rule's package declaration.
         
        repeated string default_setting = 7;
        Parameters:
        index - The index to set the value at.
        value - The defaultSetting to set.
        Returns:
        This builder for chaining.
      • addDefaultSetting

        public Build.Rule.Builder addDefaultSetting​(java.lang.String value)
         The set of all "features" inherited from the rule's package declaration.
         
        repeated string default_setting = 7;
        Parameters:
        value - The defaultSetting to add.
        Returns:
        This builder for chaining.
      • addAllDefaultSetting

        public Build.Rule.Builder addAllDefaultSetting​(java.lang.Iterable<java.lang.String> values)
         The set of all "features" inherited from the rule's package declaration.
         
        repeated string default_setting = 7;
        Parameters:
        values - The defaultSetting to add.
        Returns:
        This builder for chaining.
      • clearDefaultSetting

        public Build.Rule.Builder clearDefaultSetting()
         The set of all "features" inherited from the rule's package declaration.
         
        repeated string default_setting = 7;
        Returns:
        This builder for chaining.
      • addDefaultSettingBytes

        public Build.Rule.Builder addDefaultSettingBytes​(ByteString value)
         The set of all "features" inherited from the rule's package declaration.
         
        repeated string default_setting = 7;
        Parameters:
        value - The bytes of the defaultSetting to add.
        Returns:
        This builder for chaining.
      • hasDEPRECATEDPublicByDefault

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

        public boolean getDEPRECATEDPublicByDefault()
         The rule's class's public by default value.
         
        optional bool DEPRECATED_public_by_default = 9;
        Specified by:
        getDEPRECATEDPublicByDefault in interface Build.RuleOrBuilder
        Returns:
        The dEPRECATEDPublicByDefault.
      • setDEPRECATEDPublicByDefault

        public Build.Rule.Builder setDEPRECATEDPublicByDefault​(boolean value)
         The rule's class's public by default value.
         
        optional bool DEPRECATED_public_by_default = 9;
        Parameters:
        value - The dEPRECATEDPublicByDefault to set.
        Returns:
        This builder for chaining.
      • clearDEPRECATEDPublicByDefault

        public Build.Rule.Builder clearDEPRECATEDPublicByDefault()
         The rule's class's public by default value.
         
        optional bool DEPRECATED_public_by_default = 9;
        Returns:
        This builder for chaining.
      • hasDEPRECATEDIsSkylark

        public boolean hasDEPRECATEDIsSkylark()
        optional bool DEPRECATED_is_skylark = 10;
        Specified by:
        hasDEPRECATEDIsSkylark in interface Build.RuleOrBuilder
        Returns:
        Whether the dEPRECATEDIsSkylark field is set.
      • getDEPRECATEDIsSkylark

        public boolean getDEPRECATEDIsSkylark()
        optional bool DEPRECATED_is_skylark = 10;
        Specified by:
        getDEPRECATEDIsSkylark in interface Build.RuleOrBuilder
        Returns:
        The dEPRECATEDIsSkylark.
      • setDEPRECATEDIsSkylark

        public Build.Rule.Builder setDEPRECATEDIsSkylark​(boolean value)
        optional bool DEPRECATED_is_skylark = 10;
        Parameters:
        value - The dEPRECATEDIsSkylark to set.
        Returns:
        This builder for chaining.
      • clearDEPRECATEDIsSkylark

        public Build.Rule.Builder clearDEPRECATEDIsSkylark()
        optional bool DEPRECATED_is_skylark = 10;
        Returns:
        This builder for chaining.
      • hasSkylarkEnvironmentHashCode

        public 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;
        Specified by:
        hasSkylarkEnvironmentHashCode in interface Build.RuleOrBuilder
        Returns:
        Whether the skylarkEnvironmentHashCode field is set.
      • getSkylarkEnvironmentHashCode

        public 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;
        Specified by:
        getSkylarkEnvironmentHashCode in interface Build.RuleOrBuilder
        Returns:
        The skylarkEnvironmentHashCode.
      • getSkylarkEnvironmentHashCodeBytes

        public 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;
        Specified by:
        getSkylarkEnvironmentHashCodeBytes in interface Build.RuleOrBuilder
        Returns:
        The bytes for skylarkEnvironmentHashCode.
      • setSkylarkEnvironmentHashCode

        public Build.Rule.Builder setSkylarkEnvironmentHashCode​(java.lang.String value)
         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;
        Parameters:
        value - The skylarkEnvironmentHashCode to set.
        Returns:
        This builder for chaining.
      • clearSkylarkEnvironmentHashCode

        public Build.Rule.Builder clearSkylarkEnvironmentHashCode()
         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:
        This builder for chaining.
      • setSkylarkEnvironmentHashCodeBytes

        public Build.Rule.Builder setSkylarkEnvironmentHashCodeBytes​(ByteString value)
         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;
        Parameters:
        value - The bytes for skylarkEnvironmentHashCode to set.
        Returns:
        This builder for chaining.
      • getInstantiationStackList

        public ProtocolStringList 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;
        Specified by:
        getInstantiationStackList in interface Build.RuleOrBuilder
        Returns:
        A list containing the instantiationStack.
      • getInstantiationStackCount

        public 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;
        Specified by:
        getInstantiationStackCount in interface Build.RuleOrBuilder
        Returns:
        The count of instantiationStack.
      • getInstantiationStack

        public 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;
        Specified by:
        getInstantiationStack in interface Build.RuleOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The instantiationStack at the given index.
      • getInstantiationStackBytes

        public 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;
        Specified by:
        getInstantiationStackBytes in interface Build.RuleOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the instantiationStack at the given index.
      • setInstantiationStack

        public Build.Rule.Builder setInstantiationStack​(int index,
                                                        java.lang.String value)
         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 to set the value at.
        value - The instantiationStack to set.
        Returns:
        This builder for chaining.
      • addInstantiationStack

        public Build.Rule.Builder addInstantiationStack​(java.lang.String value)
         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:
        value - The instantiationStack to add.
        Returns:
        This builder for chaining.
      • addAllInstantiationStack

        public Build.Rule.Builder addAllInstantiationStack​(java.lang.Iterable<java.lang.String> values)
         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:
        values - The instantiationStack to add.
        Returns:
        This builder for chaining.
      • clearInstantiationStack

        public Build.Rule.Builder clearInstantiationStack()
         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:
        This builder for chaining.
      • addInstantiationStackBytes

        public Build.Rule.Builder addInstantiationStackBytes​(ByteString value)
         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:
        value - The bytes of the instantiationStack to add.
        Returns:
        This builder for chaining.
      • getDefinitionStackList

        public ProtocolStringList 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;
        Specified by:
        getDefinitionStackList in interface Build.RuleOrBuilder
        Returns:
        A list containing the definitionStack.
      • getDefinitionStackCount

        public 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;
        Specified by:
        getDefinitionStackCount in interface Build.RuleOrBuilder
        Returns:
        The count of definitionStack.
      • getDefinitionStack

        public 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;
        Specified by:
        getDefinitionStack in interface Build.RuleOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The definitionStack at the given index.
      • getDefinitionStackBytes

        public 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;
        Specified by:
        getDefinitionStackBytes in interface Build.RuleOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the definitionStack at the given index.
      • setDefinitionStack

        public Build.Rule.Builder setDefinitionStack​(int index,
                                                     java.lang.String value)
         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 to set the value at.
        value - The definitionStack to set.
        Returns:
        This builder for chaining.
      • addDefinitionStack

        public Build.Rule.Builder addDefinitionStack​(java.lang.String value)
         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:
        value - The definitionStack to add.
        Returns:
        This builder for chaining.
      • addAllDefinitionStack

        public Build.Rule.Builder addAllDefinitionStack​(java.lang.Iterable<java.lang.String> values)
         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:
        values - The definitionStack to add.
        Returns:
        This builder for chaining.
      • clearDefinitionStack

        public Build.Rule.Builder clearDefinitionStack()
         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:
        This builder for chaining.
      • addDefinitionStackBytes

        public Build.Rule.Builder addDefinitionStackBytes​(ByteString value)
         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:
        value - The bytes of the definitionStack to add.
        Returns:
        This builder for chaining.