Class StardocOutputProtos.RuleInfo
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfo
- All Implemented Interfaces:
StardocOutputProtos.RuleInfoOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- StardocOutputProtos
public static final class StardocOutputProtos.RuleInfo
extends com.google.protobuf.GeneratedMessage
implements StardocOutputProtos.RuleInfoOrBuilder
Representation of a Starlark rule definition.Protobuf type
stardoc_output.RuleInfo- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classRepresentation of a Starlark rule definition.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 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 TypeMethodDescriptionbooleanThe list of providers that the rule's implementation must return.The list of providers that the rule's implementation must return.getAttribute(int index) The attributes of the rule.intThe attributes of the rule.The attributes of the rule.getAttributeOrBuilder(int index) The attributes of the rule.List<? extends StardocOutputProtos.AttributeInfoOrBuilder>The attributes of the rule.static StardocOutputProtos.RuleInfostatic final com.google.protobuf.Descriptors.DescriptorThe documentation string of the rule.com.google.protobuf.ByteStringThe documentation string of the rule.booleanTrue if this is an executable rule.The module where and the name under which the rule was originally declared.The module where and the name under which the rule was originally declared.com.google.protobuf.Parser<StardocOutputProtos.RuleInfo>In Stardoc and starlark_doc_extract output, this is the name under which the rule is made accessible to a user of this module, including any structs it is nested in, for example "foo.foo_library".com.google.protobuf.ByteStringIn Stardoc and starlark_doc_extract output, this is the name under which the rule is made accessible to a user of this module, including any structs it is nested in, for example "foo.foo_library".intbooleangetTest()True if this is a test rule.booleanThe list of providers that the rule's implementation must return.inthashCode()booleanThe module where and the name under which the rule was originally declared.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(StardocOutputProtos.RuleInfo prototype) protected StardocOutputProtos.RuleInfo.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static StardocOutputProtos.RuleInfoparseDelimitedFrom(InputStream input) static StardocOutputProtos.RuleInfoparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static StardocOutputProtos.RuleInfoparseFrom(byte[] data) static StardocOutputProtos.RuleInfoparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static StardocOutputProtos.RuleInfoparseFrom(com.google.protobuf.ByteString data) static StardocOutputProtos.RuleInfoparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static StardocOutputProtos.RuleInfoparseFrom(com.google.protobuf.CodedInputStream input) static StardocOutputProtos.RuleInfoparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static StardocOutputProtos.RuleInfoparseFrom(InputStream input) static StardocOutputProtos.RuleInfoparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static StardocOutputProtos.RuleInfoparseFrom(ByteBuffer data) static StardocOutputProtos.RuleInfoparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<StardocOutputProtos.RuleInfo>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
-
RULE_NAME_FIELD_NUMBER
public static final int RULE_NAME_FIELD_NUMBER- See Also:
-
DOC_STRING_FIELD_NUMBER
public static final int DOC_STRING_FIELD_NUMBER- See Also:
-
ATTRIBUTE_FIELD_NUMBER
public static final int ATTRIBUTE_FIELD_NUMBER- See Also:
-
ORIGIN_KEY_FIELD_NUMBER
public static final int ORIGIN_KEY_FIELD_NUMBER- See Also:
-
ADVERTISED_PROVIDERS_FIELD_NUMBER
public static final int ADVERTISED_PROVIDERS_FIELD_NUMBER- See Also:
-
TEST_FIELD_NUMBER
public static final int TEST_FIELD_NUMBER- See Also:
-
EXECUTABLE_FIELD_NUMBER
public static final int EXECUTABLE_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
-
getRuleName
In Stardoc and starlark_doc_extract output, this is the name under which the rule is made accessible to a user of this module, including any structs it is nested in, for example "foo.foo_library". In query output, this is the name under which the rule was defined (which might be a private symbol prefixed with "_").
string rule_name = 1;- Specified by:
getRuleNamein interfaceStardocOutputProtos.RuleInfoOrBuilder- Returns:
- The ruleName.
-
getRuleNameBytes
public com.google.protobuf.ByteString getRuleNameBytes()In Stardoc and starlark_doc_extract output, this is the name under which the rule is made accessible to a user of this module, including any structs it is nested in, for example "foo.foo_library". In query output, this is the name under which the rule was defined (which might be a private symbol prefixed with "_").
string rule_name = 1;- Specified by:
getRuleNameBytesin interfaceStardocOutputProtos.RuleInfoOrBuilder- Returns:
- The bytes for ruleName.
-
getDocString
The documentation string of the rule.
string doc_string = 2;- Specified by:
getDocStringin interfaceStardocOutputProtos.RuleInfoOrBuilder- Returns:
- The docString.
-
getDocStringBytes
public com.google.protobuf.ByteString getDocStringBytes()The documentation string of the rule.
string doc_string = 2;- Specified by:
getDocStringBytesin interfaceStardocOutputProtos.RuleInfoOrBuilder- Returns:
- The bytes for docString.
-
getAttributeList
The attributes of the rule.
repeated .stardoc_output.AttributeInfo attribute = 3;- Specified by:
getAttributeListin interfaceStardocOutputProtos.RuleInfoOrBuilder
-
getAttributeOrBuilderList
The attributes of the rule.
repeated .stardoc_output.AttributeInfo attribute = 3;- Specified by:
getAttributeOrBuilderListin interfaceStardocOutputProtos.RuleInfoOrBuilder
-
getAttributeCount
public int getAttributeCount()The attributes of the rule.
repeated .stardoc_output.AttributeInfo attribute = 3;- Specified by:
getAttributeCountin interfaceStardocOutputProtos.RuleInfoOrBuilder
-
getAttribute
The attributes of the rule.
repeated .stardoc_output.AttributeInfo attribute = 3;- Specified by:
getAttributein interfaceStardocOutputProtos.RuleInfoOrBuilder
-
getAttributeOrBuilder
The attributes of the rule.
repeated .stardoc_output.AttributeInfo attribute = 3;- Specified by:
getAttributeOrBuilderin interfaceStardocOutputProtos.RuleInfoOrBuilder
-
hasOriginKey
public boolean hasOriginKey()The module where and the name under which the rule was originally declared.
.stardoc_output.OriginKey origin_key = 4;- Specified by:
hasOriginKeyin interfaceStardocOutputProtos.RuleInfoOrBuilder- Returns:
- Whether the originKey field is set.
-
getOriginKey
The module where and the name under which the rule was originally declared.
.stardoc_output.OriginKey origin_key = 4;- Specified by:
getOriginKeyin interfaceStardocOutputProtos.RuleInfoOrBuilder- Returns:
- The originKey.
-
getOriginKeyOrBuilder
The module where and the name under which the rule was originally declared.
.stardoc_output.OriginKey origin_key = 4;- Specified by:
getOriginKeyOrBuilderin interfaceStardocOutputProtos.RuleInfoOrBuilder
-
hasAdvertisedProviders
public boolean hasAdvertisedProviders()The list of providers that the rule's implementation must return. Unset if the rule lists no advertised providers.
.stardoc_output.ProviderNameGroup advertised_providers = 5;- Specified by:
hasAdvertisedProvidersin interfaceStardocOutputProtos.RuleInfoOrBuilder- Returns:
- Whether the advertisedProviders field is set.
-
getAdvertisedProviders
The list of providers that the rule's implementation must return. Unset if the rule lists no advertised providers.
.stardoc_output.ProviderNameGroup advertised_providers = 5;- Specified by:
getAdvertisedProvidersin interfaceStardocOutputProtos.RuleInfoOrBuilder- Returns:
- The advertisedProviders.
-
getAdvertisedProvidersOrBuilder
The list of providers that the rule's implementation must return. Unset if the rule lists no advertised providers.
.stardoc_output.ProviderNameGroup advertised_providers = 5;- Specified by:
getAdvertisedProvidersOrBuilderin interfaceStardocOutputProtos.RuleInfoOrBuilder
-
getTest
public boolean getTest()True if this is a test rule.
bool test = 6;- Specified by:
getTestin interfaceStardocOutputProtos.RuleInfoOrBuilder- Returns:
- The test.
-
getExecutable
public boolean getExecutable()True if this is an executable rule. Note: if test is true, executable is also true (test rules are implicitly executable).
bool executable = 7;- Specified by:
getExecutablein interfaceStardocOutputProtos.RuleInfoOrBuilder- Returns:
- The executable.
-
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 StardocOutputProtos.RuleInfo parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static StardocOutputProtos.RuleInfo parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static StardocOutputProtos.RuleInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static StardocOutputProtos.RuleInfo parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static StardocOutputProtos.RuleInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static StardocOutputProtos.RuleInfo parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static StardocOutputProtos.RuleInfo parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static StardocOutputProtos.RuleInfo parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static StardocOutputProtos.RuleInfo parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static StardocOutputProtos.RuleInfo 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
public static StardocOutputProtos.RuleInfo.Builder newBuilder(StardocOutputProtos.RuleInfo prototype) -
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected StardocOutputProtos.RuleInfo.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
-