Enum Class StardocOutputProtos.AttributeType
java.lang.Object
java.lang.Enum<StardocOutputProtos.AttributeType>
com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeType
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<StardocOutputProtos.AttributeType>,Constable
- Enclosing class:
- StardocOutputProtos
public static enum StardocOutputProtos.AttributeType
extends Enum<StardocOutputProtos.AttributeType>
implements com.google.protobuf.ProtocolMessageEnum
Representation of a Starlark rule attribute type. These generally have a one-to-one correspondence with functions defined at https://bazel.build/rules/lib/attr.Protobuf enum
stardoc_output.AttributeType-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBOOLEAN = 8;INT = 2;INT_LIST = 6;LABEL = 3;LABEL_DICT_UNARY = 14;LABEL_LIST = 7;LABEL_STRING_DICT = 9;A special case of STRING; all rules have exactly one implicit attribute "name" of type NAME.OUTPUT = 12;OUTPUT_LIST = 13;STRING = 4;STRING_DICT = 10;STRING_LIST = 5;STRING_LIST_DICT = 11;UNKNOWN = 0; -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intBOOLEAN = 8;static final intINT_LIST = 6;static final intINT = 2;static final intLABEL_DICT_UNARY = 14;static final intLABEL_LIST = 7;static final intLABEL_STRING_DICT = 9;static final intLABEL = 3;static final intA special case of STRING; all rules have exactly one implicit attribute "name" of type NAME.static final intOUTPUT_LIST = 13;static final intOUTPUT = 12;static final intSTRING_DICT = 10;static final intSTRING_LIST_DICT = 11;static final intSTRING_LIST = 5;static final intSTRING = 4;static final intUNKNOWN = 0; -
Method Summary
Modifier and TypeMethodDescriptionforNumber(int value) static final com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<StardocOutputProtos.AttributeType>valueOf(int value) Deprecated.valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name.Returns the enum constant of this class with the specified name.static StardocOutputProtos.AttributeType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
UNKNOWN = 0; -
NAME
A special case of STRING; all rules have exactly one implicit attribute "name" of type NAME.
NAME = 1; -
INT
INT = 2; -
LABEL
LABEL = 3; -
STRING
STRING = 4; -
STRING_LIST
STRING_LIST = 5; -
INT_LIST
INT_LIST = 6; -
LABEL_LIST
LABEL_LIST = 7; -
BOOLEAN
BOOLEAN = 8; -
LABEL_STRING_DICT
LABEL_STRING_DICT = 9; -
STRING_DICT
STRING_DICT = 10; -
STRING_LIST_DICT
STRING_LIST_DICT = 11; -
OUTPUT
OUTPUT = 12; -
OUTPUT_LIST
OUTPUT_LIST = 13; -
LABEL_DICT_UNARY
LABEL_DICT_UNARY = 14; -
UNRECOGNIZED
-
-
Field Details
-
UNKNOWN_VALUE
public static final int UNKNOWN_VALUEUNKNOWN = 0;- See Also:
-
NAME_VALUE
public static final int NAME_VALUEA special case of STRING; all rules have exactly one implicit attribute "name" of type NAME.
NAME = 1;- See Also:
-
INT_VALUE
public static final int INT_VALUEINT = 2;- See Also:
-
LABEL_VALUE
public static final int LABEL_VALUELABEL = 3;- See Also:
-
STRING_VALUE
public static final int STRING_VALUESTRING = 4;- See Also:
-
STRING_LIST_VALUE
public static final int STRING_LIST_VALUESTRING_LIST = 5;- See Also:
-
INT_LIST_VALUE
public static final int INT_LIST_VALUEINT_LIST = 6;- See Also:
-
LABEL_LIST_VALUE
public static final int LABEL_LIST_VALUELABEL_LIST = 7;- See Also:
-
BOOLEAN_VALUE
public static final int BOOLEAN_VALUEBOOLEAN = 8;- See Also:
-
LABEL_STRING_DICT_VALUE
public static final int LABEL_STRING_DICT_VALUELABEL_STRING_DICT = 9;- See Also:
-
STRING_DICT_VALUE
public static final int STRING_DICT_VALUESTRING_DICT = 10;- See Also:
-
STRING_LIST_DICT_VALUE
public static final int STRING_LIST_DICT_VALUESTRING_LIST_DICT = 11;- See Also:
-
OUTPUT_VALUE
public static final int OUTPUT_VALUEOUTPUT = 12;- See Also:
-
OUTPUT_LIST_VALUE
public static final int OUTPUT_LIST_VALUEOUTPUT_LIST = 13;- See Also:
-
LABEL_DICT_UNARY_VALUE
public static final int LABEL_DICT_UNARY_VALUELABEL_DICT_UNARY = 14;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<StardocOutputProtos.AttributeType> internalGetValueMap() -
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static StardocOutputProtos.AttributeType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-