Class Build.Rule.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Build.Rule.Builder>
-
- com.google.devtools.build.lib.query2.proto.proto2api.Build.Rule.Builder
-
- All Implemented Interfaces:
Build.RuleOrBuilder,Message.Builder,MessageLite.Builder,MessageLiteOrBuilder,MessageOrBuilder,java.lang.Cloneable
- Enclosing class:
- Build.Rule
public static final class Build.Rule.Builder extends GeneratedMessageV3.Builder<Build.Rule.Builder> implements Build.RuleOrBuilder
A rule instance (e.g., cc_library foo, java_binary bar).
Protobuf typeblaze_query.Rule
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Build.Rule.BuilderaddAllAttribute(java.lang.Iterable<? extends Build.Attribute> values)All of the attributes that describe the rule.Build.Rule.BuilderaddAllDefaultSetting(java.lang.Iterable<java.lang.String> values)The set of all "features" inherited from the rule's package declaration.Build.Rule.BuilderaddAllDefinitionStack(java.lang.Iterable<java.lang.String> values)The Starlark call stack for the definition of the rule class of this particular rule instance.Build.Rule.BuilderaddAllInstantiationStack(java.lang.Iterable<java.lang.String> values)The Starlark call stack at the moment the rule was instantiated.Build.Rule.BuilderaddAllRuleInput(java.lang.Iterable<java.lang.String> values)All of the inputs to the rule (formatted as absolute labels).Build.Rule.BuilderaddAllRuleOutput(java.lang.Iterable<java.lang.String> values)All of the outputs of the rule (formatted as absolute labels).Build.Rule.BuilderaddAttribute(int index, Build.Attribute value)All of the attributes that describe the rule.Build.Rule.BuilderaddAttribute(int index, Build.Attribute.Builder builderForValue)All of the attributes that describe the rule.Build.Rule.BuilderaddAttribute(Build.Attribute value)All of the attributes that describe the rule.Build.Rule.BuilderaddAttribute(Build.Attribute.Builder builderForValue)All of the attributes that describe the rule.Build.Attribute.BuilderaddAttributeBuilder()All of the attributes that describe the rule.Build.Attribute.BuilderaddAttributeBuilder(int index)All of the attributes that describe the rule.Build.Rule.BuilderaddDefaultSetting(java.lang.String value)The set of all "features" inherited from the rule's package declaration.Build.Rule.BuilderaddDefaultSettingBytes(ByteString value)The set of all "features" inherited from the rule's package declaration.Build.Rule.BuilderaddDefinitionStack(java.lang.String value)The Starlark call stack for the definition of the rule class of this particular rule instance.Build.Rule.BuilderaddDefinitionStackBytes(ByteString value)The Starlark call stack for the definition of the rule class of this particular rule instance.Build.Rule.BuilderaddInstantiationStack(java.lang.String value)The Starlark call stack at the moment the rule was instantiated.Build.Rule.BuilderaddInstantiationStackBytes(ByteString value)The Starlark call stack at the moment the rule was instantiated.Build.Rule.BuilderaddRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)LikesetRepeatedField, but appends the value as a new element.Build.Rule.BuilderaddRuleInput(java.lang.String value)All of the inputs to the rule (formatted as absolute labels).Build.Rule.BuilderaddRuleInputBytes(ByteString value)All of the inputs to the rule (formatted as absolute labels).Build.Rule.BuilderaddRuleOutput(java.lang.String value)All of the outputs of the rule (formatted as absolute labels).Build.Rule.BuilderaddRuleOutputBytes(ByteString value)All of the outputs of the rule (formatted as absolute labels).Build.Rulebuild()Constructs the message based on the state of the Builder.Build.RulebuildPartial()LikeMessageLite.Builder.build(), but does not throw an exception if the message is missing required fields.Build.Rule.Builderclear()Called by the initialization and clear code paths to allow subclasses to reset any of their builtin fields back to the initial values.Build.Rule.BuilderclearAttribute()All of the attributes that describe the rule.Build.Rule.BuilderclearDefaultSetting()The set of all "features" inherited from the rule's package declaration.Build.Rule.BuilderclearDefinitionStack()The Starlark call stack for the definition of the rule class of this particular rule instance.Build.Rule.BuilderclearDEPRECATEDIsSkylark()optional bool DEPRECATED_is_skylark = 10;Build.Rule.BuilderclearDEPRECATEDPublicByDefault()The rule's class's public by default value.Build.Rule.BuilderclearField(Descriptors.FieldDescriptor field)Clears the field.Build.Rule.BuilderclearInstantiationStack()The Starlark call stack at the moment the rule was instantiated.Build.Rule.BuilderclearLocation()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.Build.Rule.BuilderclearName()The name of the rule (formatted as an absolute label, e.g.Build.Rule.BuilderclearOneof(Descriptors.OneofDescriptor oneof)TODO(jieluo): Clear it when all subclasses have implemented this method.Build.Rule.BuilderclearRuleClass()The rule class (e.g., java_library)Build.Rule.BuilderclearRuleInput()All of the inputs to the rule (formatted as absolute labels).Build.Rule.BuilderclearRuleOutput()All of the outputs of the rule (formatted as absolute labels).Build.Rule.BuilderclearSkylarkEnvironmentHashCode()Hash encapsulating the behavior of this Starlark rule.Build.Rule.Builderclone()Clones the Builder.Build.AttributegetAttribute(int index)All of the attributes that describe the rule.Build.Attribute.BuildergetAttributeBuilder(int index)All of the attributes that describe the rule.java.util.List<Build.Attribute.Builder>getAttributeBuilderList()All of the attributes that describe the rule.intgetAttributeCount()All of the attributes that describe the rule.java.util.List<Build.Attribute>getAttributeList()All of the attributes that describe the rule.Build.AttributeOrBuildergetAttributeOrBuilder(int index)All of the attributes that describe the rule.java.util.List<? extends Build.AttributeOrBuilder>getAttributeOrBuilderList()All of the attributes that describe the rule.Build.RulegetDefaultInstanceForType()Get an instance of the type with no fields set.java.lang.StringgetDefaultSetting(int index)The set of all "features" inherited from the rule's package declaration.ByteStringgetDefaultSettingBytes(int index)The set of all "features" inherited from the rule's package declaration.intgetDefaultSettingCount()The set of all "features" inherited from the rule's package declaration.ProtocolStringListgetDefaultSettingList()The set of all "features" inherited from the rule's package declaration.java.lang.StringgetDefinitionStack(int index)The Starlark call stack for the definition of the rule class of this particular rule instance.ByteStringgetDefinitionStackBytes(int index)The Starlark call stack for the definition of the rule class of this particular rule instance.intgetDefinitionStackCount()The Starlark call stack for the definition of the rule class of this particular rule instance.ProtocolStringListgetDefinitionStackList()The Starlark call stack for the definition of the rule class of this particular rule instance.booleangetDEPRECATEDIsSkylark()optional bool DEPRECATED_is_skylark = 10;booleangetDEPRECATEDPublicByDefault()The rule's class's public by default value.static Descriptors.DescriptorgetDescriptor()Descriptors.DescriptorgetDescriptorForType()Get the message's type's descriptor.java.lang.StringgetInstantiationStack(int index)The Starlark call stack at the moment the rule was instantiated.ByteStringgetInstantiationStackBytes(int index)The Starlark call stack at the moment the rule was instantiated.intgetInstantiationStackCount()The Starlark call stack at the moment the rule was instantiated.ProtocolStringListgetInstantiationStackList()The Starlark call stack at the moment the rule was instantiated.java.lang.StringgetLocation()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.ByteStringgetLocationBytes()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.java.lang.StringgetName()The name of the rule (formatted as an absolute label, e.g.ByteStringgetNameBytes()The name of the rule (formatted as an absolute label, e.g.java.lang.StringgetRuleClass()The rule class (e.g., java_library)ByteStringgetRuleClassBytes()The rule class (e.g., java_library)java.lang.StringgetRuleInput(int index)All of the inputs to the rule (formatted as absolute labels).ByteStringgetRuleInputBytes(int index)All of the inputs to the rule (formatted as absolute labels).intgetRuleInputCount()All of the inputs to the rule (formatted as absolute labels).ProtocolStringListgetRuleInputList()All of the inputs to the rule (formatted as absolute labels).java.lang.StringgetRuleOutput(int index)All of the outputs of the rule (formatted as absolute labels).ByteStringgetRuleOutputBytes(int index)All of the outputs of the rule (formatted as absolute labels).intgetRuleOutputCount()All of the outputs of the rule (formatted as absolute labels).ProtocolStringListgetRuleOutputList()All of the outputs of the rule (formatted as absolute labels).java.lang.StringgetSkylarkEnvironmentHashCode()Hash encapsulating the behavior of this Starlark rule.ByteStringgetSkylarkEnvironmentHashCodeBytes()Hash encapsulating the behavior of this Starlark rule.booleanhasDEPRECATEDIsSkylark()optional bool DEPRECATED_is_skylark = 10;booleanhasDEPRECATEDPublicByDefault()The rule's class's public by default value.booleanhasLocation()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.booleanhasName()The name of the rule (formatted as an absolute label, e.g.booleanhasRuleClass()The rule class (e.g., java_library)booleanhasSkylarkEnvironmentHashCode()Hash encapsulating the behavior of this Starlark rule.protected GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()Get the FieldAccessorTable for this type.booleanisInitialized()Returns true if all required fields in the message and all embedded messages are set, false otherwise.Build.Rule.BuildermergeFrom(Build.Rule other)Build.Rule.BuildermergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)LikeMessageLite.Builder.mergeFrom(CodedInputStream), but also parses extensions.Build.Rule.BuildermergeFrom(Message other)Mergeotherinto the message being built.Build.Rule.BuildermergeUnknownFields(UnknownFieldSet unknownFields)Merge some unknown fields into theUnknownFieldSetfor this message.Build.Rule.BuilderremoveAttribute(int index)All of the attributes that describe the rule.Build.Rule.BuildersetAttribute(int index, Build.Attribute value)All of the attributes that describe the rule.Build.Rule.BuildersetAttribute(int index, Build.Attribute.Builder builderForValue)All of the attributes that describe the rule.Build.Rule.BuildersetDefaultSetting(int index, java.lang.String value)The set of all "features" inherited from the rule's package declaration.Build.Rule.BuildersetDefinitionStack(int index, java.lang.String value)The Starlark call stack for the definition of the rule class of this particular rule instance.Build.Rule.BuildersetDEPRECATEDIsSkylark(boolean value)optional bool DEPRECATED_is_skylark = 10;Build.Rule.BuildersetDEPRECATEDPublicByDefault(boolean value)The rule's class's public by default value.Build.Rule.BuildersetField(Descriptors.FieldDescriptor field, java.lang.Object value)Sets a field to the given value.Build.Rule.BuildersetInstantiationStack(int index, java.lang.String value)The Starlark call stack at the moment the rule was instantiated.Build.Rule.BuildersetLocation(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.Build.Rule.BuildersetLocationBytes(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.Build.Rule.BuildersetName(java.lang.String value)The name of the rule (formatted as an absolute label, e.g.Build.Rule.BuildersetNameBytes(ByteString value)The name of the rule (formatted as an absolute label, e.g.Build.Rule.BuildersetRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)Sets an element of a repeated field to the given value.Build.Rule.BuildersetRuleClass(java.lang.String value)The rule class (e.g., java_library)Build.Rule.BuildersetRuleClassBytes(ByteString value)The rule class (e.g., java_library)Build.Rule.BuildersetRuleInput(int index, java.lang.String value)All of the inputs to the rule (formatted as absolute labels).Build.Rule.BuildersetRuleOutput(int index, java.lang.String value)All of the outputs of the rule (formatted as absolute labels).Build.Rule.BuildersetSkylarkEnvironmentHashCode(java.lang.String value)Hash encapsulating the behavior of this Starlark rule.Build.Rule.BuildersetSkylarkEnvironmentHashCodeBytes(ByteString value)Hash encapsulating the behavior of this Starlark rule.Build.Rule.BuildersetUnknownFields(UnknownFieldSet unknownFields)Set theUnknownFieldSetfor this message.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getDescriptor
public static final Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Description copied from class:GeneratedMessageV3.BuilderGet the FieldAccessorTable for this type. We can't have the message class pass this in to the constructor because of bootstrapping trouble with DescriptorProtos.- Specified by:
internalGetFieldAccessorTablein classGeneratedMessageV3.Builder<Build.Rule.Builder>
-
clear
public Build.Rule.Builder clear()
Description copied from class:GeneratedMessageV3.BuilderCalled by the initialization and clear code paths to allow subclasses to reset any of their builtin fields back to the initial values.- Specified by:
clearin interfaceMessage.Builder- Specified by:
clearin interfaceMessageLite.Builder- Overrides:
clearin classGeneratedMessageV3.Builder<Build.Rule.Builder>
-
getDescriptorForType
public Descriptors.Descriptor getDescriptorForType()
Description copied from interface:Message.BuilderGet the message's type's descriptor. SeeMessageOrBuilder.getDescriptorForType().- Specified by:
getDescriptorForTypein interfaceMessage.Builder- Specified by:
getDescriptorForTypein interfaceMessageOrBuilder- Overrides:
getDescriptorForTypein classGeneratedMessageV3.Builder<Build.Rule.Builder>
-
getDefaultInstanceForType
public Build.Rule getDefaultInstanceForType()
Description copied from interface:MessageLiteOrBuilderGet 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 thegetDefaultInstance()method of generated message classes in that this method is an abstract method of theMessageLiteinterface whereasgetDefaultInstance()is a static method of a specific class. They return the same thing.- Specified by:
getDefaultInstanceForTypein interfaceMessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceMessageOrBuilder
-
build
public Build.Rule build()
Description copied from interface:MessageLite.BuilderConstructs the message based on the state of the Builder. Subsequent changes to the Builder will not affect the returned message.- Specified by:
buildin interfaceMessage.Builder- Specified by:
buildin interfaceMessageLite.Builder
-
buildPartial
public Build.Rule buildPartial()
Description copied from interface:MessageLite.BuilderLikeMessageLite.Builder.build(), but does not throw an exception if the message is missing required fields. Instead, a partial message is returned. Subsequent changes to the Builder will not affect the returned message.- Specified by:
buildPartialin interfaceMessage.Builder- Specified by:
buildPartialin interfaceMessageLite.Builder
-
clone
public Build.Rule.Builder clone()
Description copied from interface:MessageLite.BuilderClones the Builder.- Specified by:
clonein interfaceMessage.Builder- Specified by:
clonein interfaceMessageLite.Builder- Overrides:
clonein classGeneratedMessageV3.Builder<Build.Rule.Builder>- See Also:
Object.clone()
-
setField
public Build.Rule.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
Description copied from interface:Message.BuilderSets a field to the given value. The value must be of the correct type for this field, i.e. the same type thatMessageOrBuilder.getField(Descriptors.FieldDescriptor)would return.- Specified by:
setFieldin interfaceMessage.Builder- Overrides:
setFieldin classGeneratedMessageV3.Builder<Build.Rule.Builder>
-
clearField
public Build.Rule.Builder clearField(Descriptors.FieldDescriptor field)
Description copied from interface:Message.BuilderClears the field. This is exactly equivalent to calling the generated "clear" accessor method corresponding to the field.- Specified by:
clearFieldin interfaceMessage.Builder- Overrides:
clearFieldin classGeneratedMessageV3.Builder<Build.Rule.Builder>
-
clearOneof
public Build.Rule.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Description copied from class:AbstractMessage.BuilderTODO(jieluo): Clear it when all subclasses have implemented this method.- Specified by:
clearOneofin interfaceMessage.Builder- Overrides:
clearOneofin classGeneratedMessageV3.Builder<Build.Rule.Builder>
-
setRepeatedField
public Build.Rule.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
Description copied from interface:Message.BuilderSets an element of a repeated field to the given value. The value must be of the correct type for this field, i.e. the same type thatMessageOrBuilder.getRepeatedField(Descriptors.FieldDescriptor,int)would return.- Specified by:
setRepeatedFieldin interfaceMessage.Builder- Overrides:
setRepeatedFieldin classGeneratedMessageV3.Builder<Build.Rule.Builder>
-
addRepeatedField
public Build.Rule.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
Description copied from interface:Message.BuilderLikesetRepeatedField, but appends the value as a new element.- Specified by:
addRepeatedFieldin interfaceMessage.Builder- Overrides:
addRepeatedFieldin classGeneratedMessageV3.Builder<Build.Rule.Builder>
-
mergeFrom
public Build.Rule.Builder mergeFrom(Message other)
Description copied from interface:Message.BuilderMergeotherinto the message being built.othermust have the exact same type asthis(i.e.getDescriptorForType() == other.getDescriptorForType()).Merging occurs as follows. For each field:
* For singular primitive fields, if the field is set inother, thenother's value overwrites the value in this message.
* For singular message fields, if the field is set inother, it is merged into the corresponding sub-message of this message using the same merging rules.
* For repeated fields, the elements inotherare 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::MergeFrommethod in C++.- Specified by:
mergeFromin interfaceMessage.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<Build.Rule.Builder>
-
mergeFrom
public Build.Rule.Builder mergeFrom(Build.Rule other)
-
isInitialized
public final boolean isInitialized()
Description copied from interface:MessageLiteOrBuilderReturns true if all required fields in the message and all embedded messages are set, false otherwise.- Specified by:
isInitializedin interfaceMessageLiteOrBuilder- Overrides:
isInitializedin classGeneratedMessageV3.Builder<Build.Rule.Builder>
-
mergeFrom
public Build.Rule.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
Description copied from interface:MessageLite.BuilderLikeMessageLite.Builder.mergeFrom(CodedInputStream), but also parses extensions. The extensions that you want to be able to parse must be registered inextensionRegistry. Extensions not in the registry will be treated as unknown fields.- Specified by:
mergeFromin interfaceMessage.Builder- Specified by:
mergeFromin interfaceMessageLite.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<Build.Rule.Builder>- Throws:
java.io.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:
hasNamein interfaceBuild.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:
getNamein interfaceBuild.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:
getNameBytesin interfaceBuild.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:
hasRuleClassin interfaceBuild.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:
getRuleClassin interfaceBuild.RuleOrBuilder- Returns:
- The ruleClass.
-
getRuleClassBytes
public ByteString getRuleClassBytes()
The rule class (e.g., java_library)
required string rule_class = 2;- Specified by:
getRuleClassBytesin interfaceBuild.RuleOrBuilder- Returns:
- The bytes for 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:
hasLocationin interfaceBuild.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:
getLocationin interfaceBuild.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:
getLocationBytesin interfaceBuild.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.
-
getAttributeList
public java.util.List<Build.Attribute> getAttributeList()
All of the attributes that describe the rule.
repeated .blaze_query.Attribute attribute = 4;- Specified by:
getAttributeListin interfaceBuild.RuleOrBuilder
-
getAttributeCount
public int getAttributeCount()
All of the attributes that describe the rule.
repeated .blaze_query.Attribute attribute = 4;- Specified by:
getAttributeCountin interfaceBuild.RuleOrBuilder
-
getAttribute
public Build.Attribute getAttribute(int index)
All of the attributes that describe the rule.
repeated .blaze_query.Attribute attribute = 4;- Specified by:
getAttributein interfaceBuild.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(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;
-
getAttributeOrBuilder
public Build.AttributeOrBuilder getAttributeOrBuilder(int index)
All of the attributes that describe the rule.
repeated .blaze_query.Attribute attribute = 4;- Specified by:
getAttributeOrBuilderin interfaceBuild.RuleOrBuilder
-
getAttributeOrBuilderList
public java.util.List<? extends Build.AttributeOrBuilder> getAttributeOrBuilderList()
All of the attributes that describe the rule.
repeated .blaze_query.Attribute attribute = 4;- Specified by:
getAttributeOrBuilderListin interfaceBuild.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 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:
getRuleInputListin interfaceBuild.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:
getRuleInputCountin interfaceBuild.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:
getRuleInputin interfaceBuild.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:
getRuleInputBytesin interfaceBuild.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:
getRuleOutputListin interfaceBuild.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:
getRuleOutputCountin interfaceBuild.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:
getRuleOutputin interfaceBuild.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:
getRuleOutputBytesin interfaceBuild.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:
getDefaultSettingListin interfaceBuild.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:
getDefaultSettingCountin interfaceBuild.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:
getDefaultSettingin interfaceBuild.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:
getDefaultSettingBytesin interfaceBuild.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:
hasDEPRECATEDPublicByDefaultin interfaceBuild.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:
getDEPRECATEDPublicByDefaultin interfaceBuild.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:
hasDEPRECATEDIsSkylarkin interfaceBuild.RuleOrBuilder- Returns:
- Whether the dEPRECATEDIsSkylark field is set.
-
getDEPRECATEDIsSkylark
public boolean getDEPRECATEDIsSkylark()
optional bool DEPRECATED_is_skylark = 10;- Specified by:
getDEPRECATEDIsSkylarkin interfaceBuild.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:
hasSkylarkEnvironmentHashCodein interfaceBuild.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:
getSkylarkEnvironmentHashCodein interfaceBuild.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:
getSkylarkEnvironmentHashCodeBytesin interfaceBuild.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:
getInstantiationStackListin interfaceBuild.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:
getInstantiationStackCountin interfaceBuild.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:
getInstantiationStackin interfaceBuild.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:
getInstantiationStackBytesin interfaceBuild.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:
getDefinitionStackListin interfaceBuild.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:
getDefinitionStackCountin interfaceBuild.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:
getDefinitionStackin interfaceBuild.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:
getDefinitionStackBytesin interfaceBuild.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.
-
setUnknownFields
public final Build.Rule.Builder setUnknownFields(UnknownFieldSet unknownFields)
Description copied from interface:Message.BuilderSet theUnknownFieldSetfor this message.- Specified by:
setUnknownFieldsin interfaceMessage.Builder- Overrides:
setUnknownFieldsin classGeneratedMessageV3.Builder<Build.Rule.Builder>
-
mergeUnknownFields
public final Build.Rule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Description copied from interface:Message.BuilderMerge some unknown fields into theUnknownFieldSetfor this message.- Specified by:
mergeUnknownFieldsin interfaceMessage.Builder- Overrides:
mergeUnknownFieldsin classGeneratedMessageV3.Builder<Build.Rule.Builder>
-
-