Class Build.Rule
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.devtools.build.lib.query2.proto.proto2api.Build.Rule
- All Implemented Interfaces:
Build.RuleOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- Build
public static final class Build.Rule
extends com.google.protobuf.GeneratedMessage
implements Build.RuleOrBuilder
A rule instance (e.g., cc_library foo, java_binary bar).Protobuf type
blaze_query.Rule- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA rule instance (e.g., cc_library foo, java_binary bar).Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleangetAttribute(int index) All of the attributes that describe the rule.intAll of the attributes that describe the rule.All of the attributes that describe the rule.getAttributeOrBuilder(int index) All of the attributes that describe the rule.List<? extends Build.AttributeOrBuilder>All of the attributes that describe the rule.getConfiguredRuleInput(int index) repeated .blaze_query.ConfiguredRuleInput configured_rule_input = 15;intrepeated .blaze_query.ConfiguredRuleInput configured_rule_input = 15;repeated .blaze_query.ConfiguredRuleInput configured_rule_input = 15;getConfiguredRuleInputOrBuilder(int index) repeated .blaze_query.ConfiguredRuleInput configured_rule_input = 15;List<? extends Build.ConfiguredRuleInputOrBuilder>repeated .blaze_query.ConfiguredRuleInput configured_rule_input = 15;static Build.RulegetDefaultSetting(int index) The set of all "features" inherited from the rule's package declaration.com.google.protobuf.ByteStringgetDefaultSettingBytes(int index) The set of all "features" inherited from the rule's package declaration.intThe set of all "features" inherited from the rule's package declaration.com.google.protobuf.ProtocolStringListThe set of all "features" inherited from the rule's package declaration.getDefinitionStack(int index) The Starlark call stack for the definition of the rule class of this particular rule instance.com.google.protobuf.ByteStringgetDefinitionStackBytes(int index) The Starlark call stack for the definition of the rule class of this particular rule instance.intThe Starlark call stack for the definition of the rule class of this particular rule instance.com.google.protobuf.ProtocolStringListThe Starlark call stack for the definition of the rule class of this particular rule instance.booleanoptional bool DEPRECATED_is_skylark = 10;booleanThe rule's class's public by default value.static final com.google.protobuf.Descriptors.DescriptorgetInstantiationStack(int index) The Starlark call stack at the moment the rule was instantiated.com.google.protobuf.ByteStringgetInstantiationStackBytes(int index) The Starlark call stack at the moment the rule was instantiated.intThe Starlark call stack at the moment the rule was instantiated.com.google.protobuf.ProtocolStringListThe Starlark call stack at the moment the rule was instantiated.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.com.google.protobuf.ByteStringThe 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.getName()The name of the rule (formatted as an absolute label, e.g.com.google.protobuf.ByteStringThe name of the rule (formatted as an absolute label, e.g.com.google.protobuf.Parser<Build.Rule>The rule class name (e.g., java_library).com.google.protobuf.ByteStringThe rule class name (e.g., java_library).Stardoc-format rule class API definition for this rule.Stardoc-format rule class API definition for this rule.A key uniquely identifying the rule's rule class.com.google.protobuf.ByteStringA key uniquely identifying the rule's rule class.getRuleInput(int index) All of the inputs to the rule (formatted as absolute labels).com.google.protobuf.ByteStringgetRuleInputBytes(int index) All of the inputs to the rule (formatted as absolute labels).intAll of the inputs to the rule (formatted as absolute labels).com.google.protobuf.ProtocolStringListAll of the inputs to the rule (formatted as absolute labels).getRuleOutput(int index) All of the outputs of the rule (formatted as absolute labels).com.google.protobuf.ByteStringgetRuleOutputBytes(int index) All of the outputs of the rule (formatted as absolute labels).intAll of the outputs of the rule (formatted as absolute labels).com.google.protobuf.ProtocolStringListAll of the outputs of the rule (formatted as absolute labels).intHash encapsulating the behavior of this Starlark rule.com.google.protobuf.ByteStringHash encapsulating the behavior of this Starlark rule.booleanoptional bool DEPRECATED_is_skylark = 10;booleanThe rule's class's public by default value.inthashCode()booleanThe 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.booleanThe rule class name (e.g., java_library).booleanStardoc-format rule class API definition for this rule.booleanA key uniquely identifying the rule's rule class.booleanHash encapsulating the behavior of this Starlark rule.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic Build.Rule.Builderstatic Build.Rule.BuildernewBuilder(Build.Rule prototype) protected Build.Rule.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static Build.RuleparseDelimitedFrom(InputStream input) static Build.RuleparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Build.RuleparseFrom(byte[] data) static Build.RuleparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Build.RuleparseFrom(com.google.protobuf.ByteString data) static Build.RuleparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Build.RuleparseFrom(com.google.protobuf.CodedInputStream input) static Build.RuleparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Build.RuleparseFrom(InputStream input) static Build.RuleparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Build.RuleparseFrom(ByteBuffer data) static Build.RuleparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Build.Rule>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
RULE_CLASS_FIELD_NUMBER
public static final int RULE_CLASS_FIELD_NUMBER- See Also:
-
LOCATION_FIELD_NUMBER
public static final int LOCATION_FIELD_NUMBER- See Also:
-
ATTRIBUTE_FIELD_NUMBER
public static final int ATTRIBUTE_FIELD_NUMBER- See Also:
-
RULE_INPUT_FIELD_NUMBER
public static final int RULE_INPUT_FIELD_NUMBER- See Also:
-
CONFIGURED_RULE_INPUT_FIELD_NUMBER
public static final int CONFIGURED_RULE_INPUT_FIELD_NUMBER- See Also:
-
RULE_OUTPUT_FIELD_NUMBER
public static final int RULE_OUTPUT_FIELD_NUMBER- See Also:
-
DEFAULT_SETTING_FIELD_NUMBER
public static final int DEFAULT_SETTING_FIELD_NUMBER- See Also:
-
DEPRECATED_PUBLIC_BY_DEFAULT_FIELD_NUMBER
public static final int DEPRECATED_PUBLIC_BY_DEFAULT_FIELD_NUMBER- See Also:
-
DEPRECATED_IS_SKYLARK_FIELD_NUMBER
public static final int DEPRECATED_IS_SKYLARK_FIELD_NUMBER- See Also:
-
SKYLARK_ENVIRONMENT_HASH_CODE_FIELD_NUMBER
public static final int SKYLARK_ENVIRONMENT_HASH_CODE_FIELD_NUMBER- See Also:
-
INSTANTIATION_STACK_FIELD_NUMBER
public static final int INSTANTIATION_STACK_FIELD_NUMBER- See Also:
-
DEFINITION_STACK_FIELD_NUMBER
public static final int DEFINITION_STACK_FIELD_NUMBER- See Also:
-
RULE_CLASS_KEY_FIELD_NUMBER
public static final int RULE_CLASS_KEY_FIELD_NUMBER- See Also:
-
RULE_CLASS_INFO_FIELD_NUMBER
public static final int RULE_CLASS_INFO_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
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
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 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:
getNameBytesin interfaceBuild.RuleOrBuilder- Returns:
- The bytes for name.
-
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:
hasRuleClassin interfaceBuild.RuleOrBuilder- Returns:
- Whether the ruleClass field is set.
-
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:
getRuleClassin interfaceBuild.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:
getRuleClassBytesin interfaceBuild.RuleOrBuilder- Returns:
- The bytes for ruleClass.
-
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:
hasLocationin interfaceBuild.RuleOrBuilder- Returns:
- Whether the location field is set.
-
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:
getLocationin interfaceBuild.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:
getLocationBytesin interfaceBuild.RuleOrBuilder- Returns:
- The bytes for location.
-
getAttributeList
All of the attributes that describe the rule.
repeated .blaze_query.Attribute attribute = 4;- Specified by:
getAttributeListin interfaceBuild.RuleOrBuilder
-
getAttributeOrBuilderList
All of the attributes that describe the rule.
repeated .blaze_query.Attribute attribute = 4;- Specified by:
getAttributeOrBuilderListin 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
All of the attributes that describe the rule.
repeated .blaze_query.Attribute attribute = 4;- Specified by:
getAttributein interfaceBuild.RuleOrBuilder
-
getAttributeOrBuilder
All of the attributes that describe the rule.
repeated .blaze_query.Attribute attribute = 4;- Specified by:
getAttributeOrBuilderin interfaceBuild.RuleOrBuilder
-
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:
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
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 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:
getRuleInputBytesin interfaceBuild.RuleOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the ruleInput at the given index.
-
getConfiguredRuleInputList
repeated .blaze_query.ConfiguredRuleInput configured_rule_input = 15;- Specified by:
getConfiguredRuleInputListin interfaceBuild.RuleOrBuilder
-
getConfiguredRuleInputOrBuilderList
repeated .blaze_query.ConfiguredRuleInput configured_rule_input = 15;- Specified by:
getConfiguredRuleInputOrBuilderListin interfaceBuild.RuleOrBuilder
-
getConfiguredRuleInputCount
public int getConfiguredRuleInputCount()repeated .blaze_query.ConfiguredRuleInput configured_rule_input = 15;- Specified by:
getConfiguredRuleInputCountin interfaceBuild.RuleOrBuilder
-
getConfiguredRuleInput
repeated .blaze_query.ConfiguredRuleInput configured_rule_input = 15;- Specified by:
getConfiguredRuleInputin interfaceBuild.RuleOrBuilder
-
getConfiguredRuleInputOrBuilder
repeated .blaze_query.ConfiguredRuleInput configured_rule_input = 15;- Specified by:
getConfiguredRuleInputOrBuilderin interfaceBuild.RuleOrBuilder
-
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:
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
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 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:
getRuleOutputBytesin interfaceBuild.RuleOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the ruleOutput at the given index.
-
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:
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
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 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:
getDefaultSettingBytesin interfaceBuild.RuleOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the defaultSetting at the given index.
-
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.
-
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.
-
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
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 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:
getSkylarkEnvironmentHashCodeBytesin interfaceBuild.RuleOrBuilder- Returns:
- The bytes for skylarkEnvironmentHashCode.
-
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:
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
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 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:
getInstantiationStackBytesin interfaceBuild.RuleOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the instantiationStack at the given index.
-
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:
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
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 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:
getDefinitionStackBytesin interfaceBuild.RuleOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the definitionStack at the given index.
-
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:
hasRuleClassKeyin interfaceBuild.RuleOrBuilder- Returns:
- Whether the ruleClassKey field is set.
-
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:
getRuleClassKeyin interfaceBuild.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:
getRuleClassKeyBytesin interfaceBuild.RuleOrBuilder- Returns:
- The bytes for ruleClassKey.
-
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:
hasRuleClassInfoin interfaceBuild.RuleOrBuilder- Returns:
- Whether the ruleClassInfo field is set.
-
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:
getRuleClassInfoin interfaceBuild.RuleOrBuilder- Returns:
- The ruleClassInfo.
-
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:
getRuleClassInfoOrBuilderin interfaceBuild.RuleOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Build.Rule parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Build.Rule parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Build.Rule parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Build.Rule parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Build.Rule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Build.Rule parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Build.Rule parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Build.Rule parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Build.Rule parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Build.Rule.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-