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
  • Enum Constant Details

  • Field Details

    • UNKNOWN_VALUE

      public static final int UNKNOWN_VALUE
      UNKNOWN = 0;
      See Also:
    • NAME_VALUE

      public static final int NAME_VALUE
       A 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_VALUE
      INT = 2;
      See Also:
    • LABEL_VALUE

      public static final int LABEL_VALUE
      LABEL = 3;
      See Also:
    • STRING_VALUE

      public static final int STRING_VALUE
      STRING = 4;
      See Also:
    • STRING_LIST_VALUE

      public static final int STRING_LIST_VALUE
      STRING_LIST = 5;
      See Also:
    • INT_LIST_VALUE

      public static final int INT_LIST_VALUE
      INT_LIST = 6;
      See Also:
    • LABEL_LIST_VALUE

      public static final int LABEL_LIST_VALUE
      LABEL_LIST = 7;
      See Also:
    • BOOLEAN_VALUE

      public static final int BOOLEAN_VALUE
      BOOLEAN = 8;
      See Also:
    • LABEL_STRING_DICT_VALUE

      public static final int LABEL_STRING_DICT_VALUE
      LABEL_STRING_DICT = 9;
      See Also:
    • STRING_DICT_VALUE

      public static final int STRING_DICT_VALUE
      STRING_DICT = 10;
      See Also:
    • STRING_LIST_DICT_VALUE

      public static final int STRING_LIST_DICT_VALUE
      STRING_LIST_DICT = 11;
      See Also:
    • OUTPUT_VALUE

      public static final int OUTPUT_VALUE
      OUTPUT = 12;
      See Also:
    • OUTPUT_LIST_VALUE

      public static final int OUTPUT_LIST_VALUE
      OUTPUT_LIST = 13;
      See Also:
    • LABEL_DICT_UNARY_VALUE

      public static final int LABEL_DICT_UNARY_VALUE
      LABEL_DICT_UNARY = 14;
      See Also:
  • Method Details

    • values

      public static StardocOutputProtos.AttributeType[] 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

      public static StardocOutputProtos.AttributeType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static StardocOutputProtos.AttributeType valueOf(int value)
      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 name
      NullPointerException - if the argument is null
    • forNumber

      public static StardocOutputProtos.AttributeType forNumber(int value)
      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:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.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 name
      NullPointerException - if the argument is null