Class Build.Rule
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.devtools.build.lib.query2.proto.proto2api.Build.Rule
-
- All Implemented Interfaces:
Build.RuleOrBuilder,Message,MessageLite,MessageLiteOrBuilder,MessageOrBuilder,java.io.Serializable
- Enclosing class:
- Build
public static final class Build.Rule extends GeneratedMessageV3 implements Build.RuleOrBuilder
A rule instance (e.g., cc_library foo, java_binary bar).
Protobuf typeblaze_query.Rule- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBuild.Rule.BuilderA rule instance (e.g., cc_library foo, java_binary bar).-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameter
-
Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
AbstractMessageLite.InternalOneOfEnum
-
-
Field Summary
Fields Modifier and Type Field Description static intATTRIBUTE_FIELD_NUMBERstatic intDEFAULT_SETTING_FIELD_NUMBERstatic intDEFINITION_STACK_FIELD_NUMBERstatic intDEPRECATED_IS_SKYLARK_FIELD_NUMBERstatic intDEPRECATED_PUBLIC_BY_DEFAULT_FIELD_NUMBERstatic intINSTANTIATION_STACK_FIELD_NUMBERstatic intLOCATION_FIELD_NUMBERstatic intNAME_FIELD_NUMBERstatic Parser<Build.Rule>PARSERDeprecated.static intRULE_CLASS_FIELD_NUMBERstatic intRULE_INPUT_FIELD_NUMBERstatic intRULE_OUTPUT_FIELD_NUMBERstatic intSKYLARK_ENVIRONMENT_HASH_CODE_FIELD_NUMBER-
Fields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFields
-
Fields inherited from class com.google.protobuf.AbstractMessage
memoizedSize
-
Fields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)Compares the specified object with this message for equality.Build.AttributegetAttribute(int index)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.static Build.RulegetDefaultInstance()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()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.Parser<Build.Rule>getParserForType()Gets the parser for a message of the same type as this message.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).intgetSerializedSize()Get the number of bytes required to encode this message.java.lang.StringgetSkylarkEnvironmentHashCode()Hash encapsulating the behavior of this Starlark rule.ByteStringgetSkylarkEnvironmentHashCodeBytes()Hash encapsulating the behavior of this Starlark rule.UnknownFieldSetgetUnknownFields()Get theUnknownFieldSetfor this message.booleanhasDEPRECATEDIsSkylark()optional bool DEPRECATED_is_skylark = 10;booleanhasDEPRECATEDPublicByDefault()The rule's class's public by default value.inthashCode()Returns the hash code value for this message.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.static Build.Rule.BuildernewBuilder()static Build.Rule.BuildernewBuilder(Build.Rule prototype)Build.Rule.BuildernewBuilderForType()Constructs a new builder for a message of the same type as this message.protected Build.Rule.BuildernewBuilderForType(GeneratedMessageV3.BuilderParent parent)TODO(xiaofeng): remove this together with GeneratedMessageV3.BuilderParent.protected java.lang.ObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameter unused)Creates a new instance of this message type.static Build.RuleparseDelimitedFrom(java.io.InputStream input)static Build.RuleparseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry)static Build.RuleparseFrom(byte[] data)static Build.RuleparseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)static Build.RuleparseFrom(ByteString data)static Build.RuleparseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)static Build.RuleparseFrom(CodedInputStream input)static Build.RuleparseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)static Build.RuleparseFrom(java.io.InputStream input)static Build.RuleparseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry)static Build.RuleparseFrom(java.nio.ByteBuffer data)static Build.RuleparseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry)static Parser<Build.Rule>parser()Build.Rule.BuildertoBuilder()Constructs a builder initialized with the current message.voidwriteTo(CodedOutputStream output)Serializes the message and writes it tooutput.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
-
-
-
-
Field Detail
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RULE_CLASS_FIELD_NUMBER
public static final int RULE_CLASS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LOCATION_FIELD_NUMBER
public static final int LOCATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ATTRIBUTE_FIELD_NUMBER
public static final int ATTRIBUTE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RULE_INPUT_FIELD_NUMBER
public static final int RULE_INPUT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RULE_OUTPUT_FIELD_NUMBER
public static final int RULE_OUTPUT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DEFAULT_SETTING_FIELD_NUMBER
public static final int DEFAULT_SETTING_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DEPRECATED_PUBLIC_BY_DEFAULT_FIELD_NUMBER
public static final int DEPRECATED_PUBLIC_BY_DEFAULT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DEPRECATED_IS_SKYLARK_FIELD_NUMBER
public static final int DEPRECATED_IS_SKYLARK_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SKYLARK_ENVIRONMENT_HASH_CODE_FIELD_NUMBER
public static final int SKYLARK_ENVIRONMENT_HASH_CODE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INSTANTIATION_STACK_FIELD_NUMBER
public static final int INSTANTIATION_STACK_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DEFINITION_STACK_FIELD_NUMBER
public static final int DEFINITION_STACK_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PARSER
@Deprecated public static final Parser<Build.Rule> PARSER
Deprecated.
-
-
Method Detail
-
newInstance
protected java.lang.Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Description copied from class:GeneratedMessageV3Creates a new instance of this message type. Overridden in the generated code.- Overrides:
newInstancein classGeneratedMessageV3
-
getUnknownFields
public final UnknownFieldSet getUnknownFields()
Description copied from interface:MessageOrBuilderGet theUnknownFieldSetfor this message.- Specified by:
getUnknownFieldsin interfaceMessageOrBuilder- Overrides:
getUnknownFieldsin classGeneratedMessageV3
-
getDescriptor
public static final Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Description copied from class:GeneratedMessageV3Get 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
-
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.
-
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.
-
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.
-
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
-
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
-
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
-
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
-
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.
-
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.
-
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.
-
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
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.
-
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.
-
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.
-
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
-
writeTo
public void writeTo(CodedOutputStream output) throws java.io.IOException
Description copied from interface:MessageLiteSerializes the message and writes it tooutput. This does not flush or close the stream.- Specified by:
writeToin interfaceMessageLite- Overrides:
writeToin classGeneratedMessageV3- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
Description copied from interface:MessageLiteGet the number of bytes required to encode this message. The result is only computed on the first call and memoized after that. If this message requires more than Integer.MAX_VALUE bytes to encode, the return value will be smaller than the actual number of bytes required and might be negative.- Specified by:
getSerializedSizein interfaceMessageLite- Overrides:
getSerializedSizein classGeneratedMessageV3
-
equals
public boolean equals(java.lang.Object obj)
Description copied from interface:MessageCompares the specified object with this message for equality. Returnstrueif the given object is a message of the same type (as defined bygetDescriptorForType()) and has identical values for all of its fields. Subclasses must implement this; inheritingObject.equals()is incorrect.- Specified by:
equalsin interfaceMessage- Overrides:
equalsin classAbstractMessage- Parameters:
obj- object to be compared for equality with this message- Returns:
trueif the specified object is equal to this message
-
hashCode
public int hashCode()
Description copied from interface:MessageReturns the hash code value for this message. The hash code of a message should mix the message's type (object identity of the descriptor) with its contents (known and unknown field values). Subclasses must implement this; inheritingObject.hashCode()is incorrect.- Specified by:
hashCodein interfaceMessage- Overrides:
hashCodein classAbstractMessage- Returns:
- the hash code value for this message
- See Also:
Map.hashCode()
-
parseFrom
public static Build.Rule parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static Build.Rule parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static Build.Rule parseFrom(ByteString data) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static Build.Rule parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static Build.Rule parseFrom(byte[] data) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static Build.Rule parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static Build.Rule parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Build.Rule parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Build.Rule parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Build.Rule parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Build.Rule parseFrom(CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Build.Rule parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public Build.Rule.Builder newBuilderForType()
Description copied from interface:MessageLiteConstructs a new builder for a message of the same type as this message.- Specified by:
newBuilderForTypein interfaceMessage- Specified by:
newBuilderForTypein interfaceMessageLite
-
newBuilder
public static Build.Rule.Builder newBuilder()
-
newBuilder
public static Build.Rule.Builder newBuilder(Build.Rule prototype)
-
toBuilder
public Build.Rule.Builder toBuilder()
Description copied from interface:MessageLiteConstructs a builder initialized with the current message. Use this to derive a new message from the current one.- Specified by:
toBuilderin interfaceMessage- Specified by:
toBuilderin interfaceMessageLite
-
newBuilderForType
protected Build.Rule.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Description copied from class:GeneratedMessageV3TODO(xiaofeng): remove this together with GeneratedMessageV3.BuilderParent.- Specified by:
newBuilderForTypein classGeneratedMessageV3
-
getDefaultInstance
public static Build.Rule getDefaultInstance()
-
parser
public static Parser<Build.Rule> parser()
-
getParserForType
public Parser<Build.Rule> getParserForType()
Description copied from interface:MessageLiteGets the parser for a message of the same type as this message.- Specified by:
getParserForTypein interfaceMessage- Specified by:
getParserForTypein interfaceMessageLite- Overrides:
getParserForTypein classGeneratedMessageV3
-
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
-
-