Class StardocOutputProtos.AttributeInfo
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo
- All Implemented Interfaces:
StardocOutputProtos.AttributeInfoOrBuilder,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.AttributeInfo
extends com.google.protobuf.GeneratedMessage
implements StardocOutputProtos.AttributeInfoOrBuilder
Representation of a Starlark rule, repository rule, or module extension tag attribute definition, comprised of an attribute name, and a schema defined by a call to one of the 'attr' module methods enumerated at https://bazel.build/rules/lib/attrProtobuf type
stardoc_output.AttributeInfo- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classRepresentation of a Starlark rule, repository rule, or module extension tag attribute definition, comprised of an attribute name, and a schema defined by a call to one of the 'attr' module methods enumerated at https://bazel.build/rules/lib/attrNested 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 string representation of the default value of this attribute.com.google.protobuf.ByteStringThe string representation of the default value of this attribute.static final com.google.protobuf.Descriptors.DescriptorThe documentation string of the attribute, supplied via the 'doc' parameter to the schema-creation call.com.google.protobuf.ByteStringThe documentation string of the attribute, supplied via the 'doc' parameter to the schema-creation call.booleanIf true, all targets of the rule must specify a value for this attribute.getName()The name of the attribute.com.google.protobuf.ByteStringThe name of the attribute.booleanIf true, the attribute is non-configurable.com.google.protobuf.Parser<StardocOutputProtos.AttributeInfo>getProviderNameGroup(int index) The target(s) in this attribute must define all the providers of at least one of the ProviderNameGroups in this list.intThe target(s) in this attribute must define all the providers of at least one of the ProviderNameGroups in this list.The target(s) in this attribute must define all the providers of at least one of the ProviderNameGroups in this list.getProviderNameGroupOrBuilder(int index) The target(s) in this attribute must define all the providers of at least one of the ProviderNameGroups in this list.The target(s) in this attribute must define all the providers of at least one of the ProviderNameGroups in this list.intgetType()The type of the attribute, defined generally by which function is invoked in the attr module.intThe type of the attribute, defined generally by which function is invoked in the attr module.inthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(StardocOutputProtos.AttributeInfo prototype) newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) parseDelimitedFrom(InputStream input) parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(byte[] data) parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.ByteString data) parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.CodedInputStream input) parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(InputStream input) parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(ByteBuffer data) parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<StardocOutputProtos.AttributeInfo>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:
-
DOC_STRING_FIELD_NUMBER
public static final int DOC_STRING_FIELD_NUMBER- See Also:
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER- See Also:
-
MANDATORY_FIELD_NUMBER
public static final int MANDATORY_FIELD_NUMBER- See Also:
-
PROVIDER_NAME_GROUP_FIELD_NUMBER
public static final int PROVIDER_NAME_GROUP_FIELD_NUMBER- See Also:
-
DEFAULT_VALUE_FIELD_NUMBER
public static final int DEFAULT_VALUE_FIELD_NUMBER- See Also:
-
NONCONFIGURABLE_FIELD_NUMBER
public static final int NONCONFIGURABLE_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
-
getName
The name of the attribute.
string name = 1;- Specified by:
getNamein interfaceStardocOutputProtos.AttributeInfoOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The name of the attribute.
string name = 1;- Specified by:
getNameBytesin interfaceStardocOutputProtos.AttributeInfoOrBuilder- Returns:
- The bytes for name.
-
getDocString
The documentation string of the attribute, supplied via the 'doc' parameter to the schema-creation call.
string doc_string = 2;- Specified by:
getDocStringin interfaceStardocOutputProtos.AttributeInfoOrBuilder- Returns:
- The docString.
-
getDocStringBytes
public com.google.protobuf.ByteString getDocStringBytes()The documentation string of the attribute, supplied via the 'doc' parameter to the schema-creation call.
string doc_string = 2;- Specified by:
getDocStringBytesin interfaceStardocOutputProtos.AttributeInfoOrBuilder- Returns:
- The bytes for docString.
-
getTypeValue
public int getTypeValue()The type of the attribute, defined generally by which function is invoked in the attr module.
.stardoc_output.AttributeType type = 3;- Specified by:
getTypeValuein interfaceStardocOutputProtos.AttributeInfoOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
getType
The type of the attribute, defined generally by which function is invoked in the attr module.
.stardoc_output.AttributeType type = 3;- Specified by:
getTypein interfaceStardocOutputProtos.AttributeInfoOrBuilder- Returns:
- The type.
-
getMandatory
public boolean getMandatory()If true, all targets of the rule must specify a value for this attribute.
bool mandatory = 4;- Specified by:
getMandatoryin interfaceStardocOutputProtos.AttributeInfoOrBuilder- Returns:
- The mandatory.
-
getProviderNameGroupList
The target(s) in this attribute must define all the providers of at least one of the ProviderNameGroups in this list. If the Attribute Type is not a label, a label list, or a label-keyed string dictionary, the field will be left empty. For attributes of a repository rule or a module extension tag, this attribute is meaningless and may be ignored. TODO(b/290788853): ensure this field is always empty for attributes of a repository rule or a module extension tag.
repeated .stardoc_output.ProviderNameGroup provider_name_group = 5;- Specified by:
getProviderNameGroupListin interfaceStardocOutputProtos.AttributeInfoOrBuilder
-
getProviderNameGroupOrBuilderList
public List<? extends StardocOutputProtos.ProviderNameGroupOrBuilder> getProviderNameGroupOrBuilderList()The target(s) in this attribute must define all the providers of at least one of the ProviderNameGroups in this list. If the Attribute Type is not a label, a label list, or a label-keyed string dictionary, the field will be left empty. For attributes of a repository rule or a module extension tag, this attribute is meaningless and may be ignored. TODO(b/290788853): ensure this field is always empty for attributes of a repository rule or a module extension tag.
repeated .stardoc_output.ProviderNameGroup provider_name_group = 5;- Specified by:
getProviderNameGroupOrBuilderListin interfaceStardocOutputProtos.AttributeInfoOrBuilder
-
getProviderNameGroupCount
public int getProviderNameGroupCount()The target(s) in this attribute must define all the providers of at least one of the ProviderNameGroups in this list. If the Attribute Type is not a label, a label list, or a label-keyed string dictionary, the field will be left empty. For attributes of a repository rule or a module extension tag, this attribute is meaningless and may be ignored. TODO(b/290788853): ensure this field is always empty for attributes of a repository rule or a module extension tag.
repeated .stardoc_output.ProviderNameGroup provider_name_group = 5;- Specified by:
getProviderNameGroupCountin interfaceStardocOutputProtos.AttributeInfoOrBuilder
-
getProviderNameGroup
The target(s) in this attribute must define all the providers of at least one of the ProviderNameGroups in this list. If the Attribute Type is not a label, a label list, or a label-keyed string dictionary, the field will be left empty. For attributes of a repository rule or a module extension tag, this attribute is meaningless and may be ignored. TODO(b/290788853): ensure this field is always empty for attributes of a repository rule or a module extension tag.
repeated .stardoc_output.ProviderNameGroup provider_name_group = 5;- Specified by:
getProviderNameGroupin interfaceStardocOutputProtos.AttributeInfoOrBuilder
-
getProviderNameGroupOrBuilder
The target(s) in this attribute must define all the providers of at least one of the ProviderNameGroups in this list. If the Attribute Type is not a label, a label list, or a label-keyed string dictionary, the field will be left empty. For attributes of a repository rule or a module extension tag, this attribute is meaningless and may be ignored. TODO(b/290788853): ensure this field is always empty for attributes of a repository rule or a module extension tag.
repeated .stardoc_output.ProviderNameGroup provider_name_group = 5;- Specified by:
getProviderNameGroupOrBuilderin interfaceStardocOutputProtos.AttributeInfoOrBuilder
-
getDefaultValue
The string representation of the default value of this attribute.
string default_value = 6;- Specified by:
getDefaultValuein interfaceStardocOutputProtos.AttributeInfoOrBuilder- Returns:
- The defaultValue.
-
getDefaultValueBytes
public com.google.protobuf.ByteString getDefaultValueBytes()The string representation of the default value of this attribute.
string default_value = 6;- Specified by:
getDefaultValueBytesin interfaceStardocOutputProtos.AttributeInfoOrBuilder- Returns:
- The bytes for defaultValue.
-
getNonconfigurable
public boolean getNonconfigurable()If true, the attribute is non-configurable.
bool nonconfigurable = 7;- Specified by:
getNonconfigurablein interfaceStardocOutputProtos.AttributeInfoOrBuilder- Returns:
- The nonconfigurable.
-
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.AttributeInfo parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static StardocOutputProtos.AttributeInfo parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static StardocOutputProtos.AttributeInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static StardocOutputProtos.AttributeInfo 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.AttributeInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static StardocOutputProtos.AttributeInfo 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.AttributeInfo parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static StardocOutputProtos.AttributeInfo parseDelimitedFrom(InputStream input) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static StardocOutputProtos.AttributeInfo parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static StardocOutputProtos.AttributeInfo parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static StardocOutputProtos.AttributeInfo 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.AttributeInfo.Builder newBuilder(StardocOutputProtos.AttributeInfo prototype) -
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected StardocOutputProtos.AttributeInfo.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
-