Class Build.Rule.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Build.Rule.Builder>
com.google.devtools.build.lib.query2.proto.proto2api.Build.Rule.Builder
All Implemented Interfaces:
Build.RuleOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Build.Rule

public static final class Build.Rule.Builder extends com.google.protobuf.GeneratedMessage.Builder<Build.Rule.Builder> implements Build.RuleOrBuilder
 A rule instance (e.g., cc_library foo, java_binary bar).
 
Protobuf type blaze_query.Rule
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Build.Rule.Builder>
    • clear

      public Build.Rule.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Build.Rule.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Build.Rule.Builder>
    • getDefaultInstanceForType

      public Build.Rule getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Build.Rule build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Build.Rule buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Build.Rule.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Build.Rule.Builder>
    • mergeFrom

      public Build.Rule.Builder mergeFrom(Build.Rule other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Build.Rule.Builder>
    • mergeFrom

      public Build.Rule.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Build.Rule.Builder>
      Throws:
      IOException
    • 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 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 com.google.protobuf.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(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(com.google.protobuf.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 name (e.g., java_library).
      
       Note that the rule class name may not uniquely identify a rule class, since
       two different .bzl files may define different rule classes with the same
       name. To uniquely identify the rule class, see rule_class_key field below.
       
      required string rule_class = 2;
      Specified by:
      hasRuleClass in interface Build.RuleOrBuilder
      Returns:
      Whether the ruleClass field is set.
    • getRuleClass

      public String getRuleClass()
       The rule class name (e.g., java_library).
      
       Note that the rule class name may not uniquely identify a rule class, since
       two different .bzl files may define different rule classes with the same
       name. To uniquely identify the rule class, see rule_class_key field below.
       
      required string rule_class = 2;
      Specified by:
      getRuleClass in interface Build.RuleOrBuilder
      Returns:
      The ruleClass.
    • getRuleClassBytes

      public com.google.protobuf.ByteString getRuleClassBytes()
       The rule class name (e.g., java_library).
      
       Note that the rule class name may not uniquely identify a rule class, since
       two different .bzl files may define different rule classes with the same
       name. To uniquely identify the rule class, see rule_class_key field below.
       
      required string rule_class = 2;
      Specified by:
      getRuleClassBytes in interface Build.RuleOrBuilder
      Returns:
      The bytes for ruleClass.
    • setRuleClass

      public Build.Rule.Builder setRuleClass(String value)
       The rule class name (e.g., java_library).
      
       Note that the rule class name may not uniquely identify a rule class, since
       two different .bzl files may define different rule classes with the same
       name. To uniquely identify the rule class, see rule_class_key field below.
       
      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 name (e.g., java_library).
      
       Note that the rule class name may not uniquely identify a rule class, since
       two different .bzl files may define different rule classes with the same
       name. To uniquely identify the rule class, see rule_class_key field below.
       
      required string rule_class = 2;
      Returns:
      This builder for chaining.
    • setRuleClassBytes

      public Build.Rule.Builder setRuleClassBytes(com.google.protobuf.ByteString value)
       The rule class name (e.g., java_library).
      
       Note that the rule class name may not uniquely identify a rule class, since
       two different .bzl files may define different rule classes with the same
       name. To uniquely identify the rule class, see rule_class_key field below.
       
      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://bazel.build/rules/macros#macro-creation
       
      optional string location = 3;
      Specified by:
      hasLocation in interface Build.RuleOrBuilder
      Returns:
      Whether the location field is set.
    • getLocation

      public 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://bazel.build/rules/macros#macro-creation
       
      optional string location = 3;
      Specified by:
      getLocation in interface Build.RuleOrBuilder
      Returns:
      The location.
    • getLocationBytes

      public com.google.protobuf.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://bazel.build/rules/macros#macro-creation
       
      optional string location = 3;
      Specified by:
      getLocationBytes in interface Build.RuleOrBuilder
      Returns:
      The bytes for location.
    • setLocation

      public Build.Rule.Builder setLocation(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://bazel.build/rules/macros#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://bazel.build/rules/macros#macro-creation
       
      optional string location = 3;
      Returns:
      This builder for chaining.
    • setLocationBytes

      public Build.Rule.Builder setLocationBytes(com.google.protobuf.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://bazel.build/rules/macros#macro-creation
       
      optional string location = 3;
      Parameters:
      value - The bytes for location to set.
      Returns:
      This builder for chaining.
    • getAttributeList

      public List<Build.Attribute> getAttributeList()
       All of the attributes that describe the rule.
       
      repeated .blaze_query.Attribute attribute = 4;
      Specified by:
      getAttributeList in interface Build.RuleOrBuilder
    • 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
    • getAttribute

      public Build.Attribute getAttribute(int index)
       All of the attributes that describe the rule.
       
      repeated .blaze_query.Attribute attribute = 4;
      Specified by:
      getAttribute 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(Build.Attribute.Builder builderForValue)
       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(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;
    • getAttributeOrBuilder

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

      public List<? extends Build.AttributeOrBuilder> getAttributeOrBuilderList()
       All of the attributes that describe the rule.
       
      repeated .blaze_query.Attribute attribute = 4;
      Specified by:
      getAttributeOrBuilderList in interface Build.RuleOrBuilder
    • 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 List<Build.Attribute.Builder> getAttributeBuilderList()
       All of the attributes that describe the rule.
       
      repeated .blaze_query.Attribute attribute = 4;
    • getRuleInputList

      public com.google.protobuf.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 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 com.google.protobuf.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, 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(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(Iterable<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(com.google.protobuf.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.
    • getConfiguredRuleInputList

      public List<Build.ConfiguredRuleInput> getConfiguredRuleInputList()
      repeated .blaze_query.ConfiguredRuleInput configured_rule_input = 15;
      Specified by:
      getConfiguredRuleInputList in interface Build.RuleOrBuilder
    • getConfiguredRuleInputCount

      public int getConfiguredRuleInputCount()
      repeated .blaze_query.ConfiguredRuleInput configured_rule_input = 15;
      Specified by:
      getConfiguredRuleInputCount in interface Build.RuleOrBuilder
    • getConfiguredRuleInput

      public Build.ConfiguredRuleInput getConfiguredRuleInput(int index)
      repeated .blaze_query.ConfiguredRuleInput configured_rule_input = 15;
      Specified by:
      getConfiguredRuleInput in interface Build.RuleOrBuilder
    • setConfiguredRuleInput

      public Build.Rule.Builder setConfiguredRuleInput(int index, Build.ConfiguredRuleInput value)
      repeated .blaze_query.ConfiguredRuleInput configured_rule_input = 15;
    • setConfiguredRuleInput

      public Build.Rule.Builder setConfiguredRuleInput(int index, Build.ConfiguredRuleInput.Builder builderForValue)
      repeated .blaze_query.ConfiguredRuleInput configured_rule_input = 15;
    • addConfiguredRuleInput

      public Build.Rule.Builder addConfiguredRuleInput(Build.ConfiguredRuleInput value)
      repeated .blaze_query.ConfiguredRuleInput configured_rule_input = 15;
    • addConfiguredRuleInput

      public Build.Rule.Builder addConfiguredRuleInput(int index, Build.ConfiguredRuleInput value)
      repeated .blaze_query.ConfiguredRuleInput configured_rule_input = 15;
    • addConfiguredRuleInput

      public Build.Rule.Builder addConfiguredRuleInput(Build.ConfiguredRuleInput.Builder builderForValue)
      repeated .blaze_query.ConfiguredRuleInput configured_rule_input = 15;
    • addConfiguredRuleInput

      public Build.Rule.Builder addConfiguredRuleInput(int index, Build.ConfiguredRuleInput.Builder builderForValue)
      repeated .blaze_query.ConfiguredRuleInput configured_rule_input = 15;
    • addAllConfiguredRuleInput

      public Build.Rule.Builder addAllConfiguredRuleInput(Iterable<? extends Build.ConfiguredRuleInput> values)
      repeated .blaze_query.ConfiguredRuleInput configured_rule_input = 15;
    • clearConfiguredRuleInput

      public Build.Rule.Builder clearConfiguredRuleInput()
      repeated .blaze_query.ConfiguredRuleInput configured_rule_input = 15;
    • removeConfiguredRuleInput

      public Build.Rule.Builder removeConfiguredRuleInput(int index)
      repeated .blaze_query.ConfiguredRuleInput configured_rule_input = 15;
    • getConfiguredRuleInputBuilder

      public Build.ConfiguredRuleInput.Builder getConfiguredRuleInputBuilder(int index)
      repeated .blaze_query.ConfiguredRuleInput configured_rule_input = 15;
    • getConfiguredRuleInputOrBuilder

      public Build.ConfiguredRuleInputOrBuilder getConfiguredRuleInputOrBuilder(int index)
      repeated .blaze_query.ConfiguredRuleInput configured_rule_input = 15;
      Specified by:
      getConfiguredRuleInputOrBuilder in interface Build.RuleOrBuilder
    • getConfiguredRuleInputOrBuilderList

      public List<? extends Build.ConfiguredRuleInputOrBuilder> getConfiguredRuleInputOrBuilderList()
      repeated .blaze_query.ConfiguredRuleInput configured_rule_input = 15;
      Specified by:
      getConfiguredRuleInputOrBuilderList in interface Build.RuleOrBuilder
    • addConfiguredRuleInputBuilder

      public Build.ConfiguredRuleInput.Builder addConfiguredRuleInputBuilder()
      repeated .blaze_query.ConfiguredRuleInput configured_rule_input = 15;
    • addConfiguredRuleInputBuilder

      public Build.ConfiguredRuleInput.Builder addConfiguredRuleInputBuilder(int index)
      repeated .blaze_query.ConfiguredRuleInput configured_rule_input = 15;
    • getConfiguredRuleInputBuilderList

      public List<Build.ConfiguredRuleInput.Builder> getConfiguredRuleInputBuilderList()
      repeated .blaze_query.ConfiguredRuleInput configured_rule_input = 15;
    • getRuleOutputList

      public com.google.protobuf.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 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 com.google.protobuf.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, 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(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(Iterable<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(com.google.protobuf.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 com.google.protobuf.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 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 com.google.protobuf.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, 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(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(Iterable<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(com.google.protobuf.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 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 com.google.protobuf.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(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(com.google.protobuf.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 com.google.protobuf.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 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 com.google.protobuf.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, 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(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(Iterable<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(com.google.protobuf.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 com.google.protobuf.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 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 com.google.protobuf.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, 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(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(Iterable<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(com.google.protobuf.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.
    • hasRuleClassKey

      public boolean hasRuleClassKey()
       A key uniquely identifying the rule's rule class. Stable between repeated
       blaze query invocations (assuming that there are no changes to Starlark
       files and the same blaze binary is invoked with the same options).
      
       Requires --proto:rule_classes=true
       
      optional string rule_class_key = 16;
      Specified by:
      hasRuleClassKey in interface Build.RuleOrBuilder
      Returns:
      Whether the ruleClassKey field is set.
    • getRuleClassKey

      public String getRuleClassKey()
       A key uniquely identifying the rule's rule class. Stable between repeated
       blaze query invocations (assuming that there are no changes to Starlark
       files and the same blaze binary is invoked with the same options).
      
       Requires --proto:rule_classes=true
       
      optional string rule_class_key = 16;
      Specified by:
      getRuleClassKey in interface Build.RuleOrBuilder
      Returns:
      The ruleClassKey.
    • getRuleClassKeyBytes

      public com.google.protobuf.ByteString getRuleClassKeyBytes()
       A key uniquely identifying the rule's rule class. Stable between repeated
       blaze query invocations (assuming that there are no changes to Starlark
       files and the same blaze binary is invoked with the same options).
      
       Requires --proto:rule_classes=true
       
      optional string rule_class_key = 16;
      Specified by:
      getRuleClassKeyBytes in interface Build.RuleOrBuilder
      Returns:
      The bytes for ruleClassKey.
    • setRuleClassKey

      public Build.Rule.Builder setRuleClassKey(String value)
       A key uniquely identifying the rule's rule class. Stable between repeated
       blaze query invocations (assuming that there are no changes to Starlark
       files and the same blaze binary is invoked with the same options).
      
       Requires --proto:rule_classes=true
       
      optional string rule_class_key = 16;
      Parameters:
      value - The ruleClassKey to set.
      Returns:
      This builder for chaining.
    • clearRuleClassKey

      public Build.Rule.Builder clearRuleClassKey()
       A key uniquely identifying the rule's rule class. Stable between repeated
       blaze query invocations (assuming that there are no changes to Starlark
       files and the same blaze binary is invoked with the same options).
      
       Requires --proto:rule_classes=true
       
      optional string rule_class_key = 16;
      Returns:
      This builder for chaining.
    • setRuleClassKeyBytes

      public Build.Rule.Builder setRuleClassKeyBytes(com.google.protobuf.ByteString value)
       A key uniquely identifying the rule's rule class. Stable between repeated
       blaze query invocations (assuming that there are no changes to Starlark
       files and the same blaze binary is invoked with the same options).
      
       Requires --proto:rule_classes=true
       
      optional string rule_class_key = 16;
      Parameters:
      value - The bytes for ruleClassKey to set.
      Returns:
      This builder for chaining.
    • hasRuleClassInfo

      public boolean hasRuleClassInfo()
       Stardoc-format rule class API definition for this rule. Includes both
       Starlark-defined and native (including inherited) attributes; does not
       include hidden or explicitly undocumented attributes.
      
       Populated only for the first rule in the stream with a given
       rule_class_key.
      
       Requires --proto:rule_classes=true
       
      optional .stardoc_output.RuleInfo rule_class_info = 17;
      Specified by:
      hasRuleClassInfo in interface Build.RuleOrBuilder
      Returns:
      Whether the ruleClassInfo field is set.
    • getRuleClassInfo

      public StardocOutputProtos.RuleInfo getRuleClassInfo()
       Stardoc-format rule class API definition for this rule. Includes both
       Starlark-defined and native (including inherited) attributes; does not
       include hidden or explicitly undocumented attributes.
      
       Populated only for the first rule in the stream with a given
       rule_class_key.
      
       Requires --proto:rule_classes=true
       
      optional .stardoc_output.RuleInfo rule_class_info = 17;
      Specified by:
      getRuleClassInfo in interface Build.RuleOrBuilder
      Returns:
      The ruleClassInfo.
    • setRuleClassInfo

      public Build.Rule.Builder setRuleClassInfo(StardocOutputProtos.RuleInfo value)
       Stardoc-format rule class API definition for this rule. Includes both
       Starlark-defined and native (including inherited) attributes; does not
       include hidden or explicitly undocumented attributes.
      
       Populated only for the first rule in the stream with a given
       rule_class_key.
      
       Requires --proto:rule_classes=true
       
      optional .stardoc_output.RuleInfo rule_class_info = 17;
    • setRuleClassInfo

      public Build.Rule.Builder setRuleClassInfo(StardocOutputProtos.RuleInfo.Builder builderForValue)
       Stardoc-format rule class API definition for this rule. Includes both
       Starlark-defined and native (including inherited) attributes; does not
       include hidden or explicitly undocumented attributes.
      
       Populated only for the first rule in the stream with a given
       rule_class_key.
      
       Requires --proto:rule_classes=true
       
      optional .stardoc_output.RuleInfo rule_class_info = 17;
    • mergeRuleClassInfo

      public Build.Rule.Builder mergeRuleClassInfo(StardocOutputProtos.RuleInfo value)
       Stardoc-format rule class API definition for this rule. Includes both
       Starlark-defined and native (including inherited) attributes; does not
       include hidden or explicitly undocumented attributes.
      
       Populated only for the first rule in the stream with a given
       rule_class_key.
      
       Requires --proto:rule_classes=true
       
      optional .stardoc_output.RuleInfo rule_class_info = 17;
    • clearRuleClassInfo

      public Build.Rule.Builder clearRuleClassInfo()
       Stardoc-format rule class API definition for this rule. Includes both
       Starlark-defined and native (including inherited) attributes; does not
       include hidden or explicitly undocumented attributes.
      
       Populated only for the first rule in the stream with a given
       rule_class_key.
      
       Requires --proto:rule_classes=true
       
      optional .stardoc_output.RuleInfo rule_class_info = 17;
    • getRuleClassInfoBuilder

      public StardocOutputProtos.RuleInfo.Builder getRuleClassInfoBuilder()
       Stardoc-format rule class API definition for this rule. Includes both
       Starlark-defined and native (including inherited) attributes; does not
       include hidden or explicitly undocumented attributes.
      
       Populated only for the first rule in the stream with a given
       rule_class_key.
      
       Requires --proto:rule_classes=true
       
      optional .stardoc_output.RuleInfo rule_class_info = 17;
    • getRuleClassInfoOrBuilder

      public StardocOutputProtos.RuleInfoOrBuilder getRuleClassInfoOrBuilder()
       Stardoc-format rule class API definition for this rule. Includes both
       Starlark-defined and native (including inherited) attributes; does not
       include hidden or explicitly undocumented attributes.
      
       Populated only for the first rule in the stream with a given
       rule_class_key.
      
       Requires --proto:rule_classes=true
       
      optional .stardoc_output.RuleInfo rule_class_info = 17;
      Specified by:
      getRuleClassInfoOrBuilder in interface Build.RuleOrBuilder