Enum Build.Attribute.Discriminator
- java.lang.Object
-
- java.lang.Enum<Build.Attribute.Discriminator>
-
- com.google.devtools.build.lib.query2.proto.proto2api.Build.Attribute.Discriminator
-
- All Implemented Interfaces:
Internal.EnumLite,ProtocolMessageEnum,java.io.Serializable,java.lang.Comparable<Build.Attribute.Discriminator>
- Enclosing class:
- Build.Attribute
public static enum Build.Attribute.Discriminator extends java.lang.Enum<Build.Attribute.Discriminator> implements ProtocolMessageEnum
Indicates the type of attribute.
Protobuf enumblaze_query.Attribute.Discriminator
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOOLEANint, bool and string valueDEPRECATED_STRING_DICT_UNARYDEPRECATED_STRING_DICT_UNARY = 17;DISTRIBUTION_SETstring_list_value - order is unimportantFILESET_ENTRY_LISTfileset_list_valueINTEGERint_valueINTEGER_LISTint_list_valueLABELstring_valueLABEL_DICT_UNARYlabel_dict_unary_valueLABEL_KEYED_STRING_DICTlabel_keyed_string_dictLABEL_LISTstring_list_valueLABEL_LIST_DICTlabel_list_dict_valueLICENSElicenseOUTPUTstring_valueOUTPUT_LISTstring_list_valueSELECTOR_LISTselector_listSTRINGstring_valueSTRING_DICTstring_dict_valueSTRING_LISTstring_list_valueSTRING_LIST_DICTstring_list_dict_valueTRISTATEtristate, int and string valueUNKNOWNunknown type, use only for build extensions
-
Field Summary
Fields Modifier and Type Field Description static intBOOLEAN_VALUEint, bool and string valuestatic intDEPRECATED_STRING_DICT_UNARY_VALUEDEPRECATED_STRING_DICT_UNARY = 17;static intDISTRIBUTION_SET_VALUEstring_list_value - order is unimportantstatic intFILESET_ENTRY_LIST_VALUEfileset_list_valuestatic intINTEGER_LIST_VALUEint_list_valuestatic intINTEGER_VALUEint_valuestatic intLABEL_DICT_UNARY_VALUElabel_dict_unary_valuestatic intLABEL_KEYED_STRING_DICT_VALUElabel_keyed_string_dictstatic intLABEL_LIST_DICT_VALUElabel_list_dict_valuestatic intLABEL_LIST_VALUEstring_list_valuestatic intLABEL_VALUEstring_valuestatic intLICENSE_VALUElicensestatic intOUTPUT_LIST_VALUEstring_list_valuestatic intOUTPUT_VALUEstring_valuestatic intSELECTOR_LIST_VALUEselector_liststatic intSTRING_DICT_VALUEstring_dict_valuestatic intSTRING_LIST_DICT_VALUEstring_list_dict_valuestatic intSTRING_LIST_VALUEstring_list_valuestatic intSTRING_VALUEstring_valuestatic intTRISTATE_VALUEtristate, int and string valuestatic intUNKNOWN_VALUEunknown type, use only for build extensions
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Build.Attribute.DiscriminatorforNumber(int value)static Descriptors.EnumDescriptorgetDescriptor()Descriptors.EnumDescriptorgetDescriptorForType()Return the enum type's descriptor, which contains information about each defined value, etc.intgetNumber()Return the value's numeric value as defined in the .proto file.Descriptors.EnumValueDescriptorgetValueDescriptor()Return the value's descriptor, which contains information such as value name, number, and type.static Internal.EnumLiteMap<Build.Attribute.Discriminator>internalGetValueMap()static Build.Attribute.DiscriminatorvalueOf(int value)Deprecated.static Build.Attribute.DiscriminatorvalueOf(Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static Build.Attribute.DiscriminatorvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Build.Attribute.Discriminator[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INTEGER
public static final Build.Attribute.Discriminator INTEGER
int_value
INTEGER = 1;
-
STRING
public static final Build.Attribute.Discriminator STRING
string_value
STRING = 2;
-
LABEL
public static final Build.Attribute.Discriminator LABEL
string_value
LABEL = 3;
-
OUTPUT
public static final Build.Attribute.Discriminator OUTPUT
string_value
OUTPUT = 4;
-
STRING_LIST
public static final Build.Attribute.Discriminator STRING_LIST
string_list_value
STRING_LIST = 5;
-
LABEL_LIST
public static final Build.Attribute.Discriminator LABEL_LIST
string_list_value
LABEL_LIST = 6;
-
OUTPUT_LIST
public static final Build.Attribute.Discriminator OUTPUT_LIST
string_list_value
OUTPUT_LIST = 7;
-
DISTRIBUTION_SET
public static final Build.Attribute.Discriminator DISTRIBUTION_SET
string_list_value - order is unimportant
DISTRIBUTION_SET = 8;
-
LICENSE
public static final Build.Attribute.Discriminator LICENSE
license
LICENSE = 9;
-
STRING_DICT
public static final Build.Attribute.Discriminator STRING_DICT
string_dict_value
STRING_DICT = 10;
-
FILESET_ENTRY_LIST
public static final Build.Attribute.Discriminator FILESET_ENTRY_LIST
fileset_list_value
FILESET_ENTRY_LIST = 11;
-
LABEL_LIST_DICT
public static final Build.Attribute.Discriminator LABEL_LIST_DICT
label_list_dict_value
LABEL_LIST_DICT = 12;
-
STRING_LIST_DICT
public static final Build.Attribute.Discriminator STRING_LIST_DICT
string_list_dict_value
STRING_LIST_DICT = 13;
-
BOOLEAN
public static final Build.Attribute.Discriminator BOOLEAN
int, bool and string value
BOOLEAN = 14;
-
TRISTATE
public static final Build.Attribute.Discriminator TRISTATE
tristate, int and string value
TRISTATE = 15;
-
INTEGER_LIST
public static final Build.Attribute.Discriminator INTEGER_LIST
int_list_value
INTEGER_LIST = 16;
-
UNKNOWN
public static final Build.Attribute.Discriminator UNKNOWN
unknown type, use only for build extensions
UNKNOWN = 18;
-
LABEL_DICT_UNARY
public static final Build.Attribute.Discriminator LABEL_DICT_UNARY
label_dict_unary_value
LABEL_DICT_UNARY = 19;
-
SELECTOR_LIST
public static final Build.Attribute.Discriminator SELECTOR_LIST
selector_list
SELECTOR_LIST = 20;
-
LABEL_KEYED_STRING_DICT
public static final Build.Attribute.Discriminator LABEL_KEYED_STRING_DICT
label_keyed_string_dict
LABEL_KEYED_STRING_DICT = 21;
-
DEPRECATED_STRING_DICT_UNARY
public static final Build.Attribute.Discriminator DEPRECATED_STRING_DICT_UNARY
DEPRECATED_STRING_DICT_UNARY = 17;
-
-
Field Detail
-
INTEGER_VALUE
public static final int INTEGER_VALUE
int_value
INTEGER = 1;- See Also:
- Constant Field Values
-
STRING_VALUE
public static final int STRING_VALUE
string_value
STRING = 2;- See Also:
- Constant Field Values
-
LABEL_VALUE
public static final int LABEL_VALUE
string_value
LABEL = 3;- See Also:
- Constant Field Values
-
OUTPUT_VALUE
public static final int OUTPUT_VALUE
string_value
OUTPUT = 4;- See Also:
- Constant Field Values
-
STRING_LIST_VALUE
public static final int STRING_LIST_VALUE
string_list_value
STRING_LIST = 5;- See Also:
- Constant Field Values
-
LABEL_LIST_VALUE
public static final int LABEL_LIST_VALUE
string_list_value
LABEL_LIST = 6;- See Also:
- Constant Field Values
-
OUTPUT_LIST_VALUE
public static final int OUTPUT_LIST_VALUE
string_list_value
OUTPUT_LIST = 7;- See Also:
- Constant Field Values
-
DISTRIBUTION_SET_VALUE
public static final int DISTRIBUTION_SET_VALUE
string_list_value - order is unimportant
DISTRIBUTION_SET = 8;- See Also:
- Constant Field Values
-
LICENSE_VALUE
public static final int LICENSE_VALUE
license
LICENSE = 9;- See Also:
- Constant Field Values
-
STRING_DICT_VALUE
public static final int STRING_DICT_VALUE
string_dict_value
STRING_DICT = 10;- See Also:
- Constant Field Values
-
FILESET_ENTRY_LIST_VALUE
public static final int FILESET_ENTRY_LIST_VALUE
fileset_list_value
FILESET_ENTRY_LIST = 11;- See Also:
- Constant Field Values
-
LABEL_LIST_DICT_VALUE
public static final int LABEL_LIST_DICT_VALUE
label_list_dict_value
LABEL_LIST_DICT = 12;- See Also:
- Constant Field Values
-
STRING_LIST_DICT_VALUE
public static final int STRING_LIST_DICT_VALUE
string_list_dict_value
STRING_LIST_DICT = 13;- See Also:
- Constant Field Values
-
BOOLEAN_VALUE
public static final int BOOLEAN_VALUE
int, bool and string value
BOOLEAN = 14;- See Also:
- Constant Field Values
-
TRISTATE_VALUE
public static final int TRISTATE_VALUE
tristate, int and string value
TRISTATE = 15;- See Also:
- Constant Field Values
-
INTEGER_LIST_VALUE
public static final int INTEGER_LIST_VALUE
int_list_value
INTEGER_LIST = 16;- See Also:
- Constant Field Values
-
UNKNOWN_VALUE
public static final int UNKNOWN_VALUE
unknown type, use only for build extensions
UNKNOWN = 18;- See Also:
- Constant Field Values
-
LABEL_DICT_UNARY_VALUE
public static final int LABEL_DICT_UNARY_VALUE
label_dict_unary_value
LABEL_DICT_UNARY = 19;- See Also:
- Constant Field Values
-
SELECTOR_LIST_VALUE
public static final int SELECTOR_LIST_VALUE
selector_list
SELECTOR_LIST = 20;- See Also:
- Constant Field Values
-
LABEL_KEYED_STRING_DICT_VALUE
public static final int LABEL_KEYED_STRING_DICT_VALUE
label_keyed_string_dict
LABEL_KEYED_STRING_DICT = 21;- See Also:
- Constant Field Values
-
DEPRECATED_STRING_DICT_UNARY_VALUE
public static final int DEPRECATED_STRING_DICT_UNARY_VALUE
DEPRECATED_STRING_DICT_UNARY = 17;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static Build.Attribute.Discriminator[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Build.Attribute.Discriminator c : Build.Attribute.Discriminator.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Build.Attribute.Discriminator valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getNumber
public final int getNumber()
Description copied from interface:ProtocolMessageEnumReturn the value's numeric value as defined in the .proto file.- Specified by:
getNumberin interfaceInternal.EnumLite- Specified by:
getNumberin interfaceProtocolMessageEnum
-
valueOf
@Deprecated public static Build.Attribute.Discriminator valueOf(int value)
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
forNumber
public static Build.Attribute.Discriminator 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 Internal.EnumLiteMap<Build.Attribute.Discriminator> internalGetValueMap()
-
getValueDescriptor
public final Descriptors.EnumValueDescriptor getValueDescriptor()
Description copied from interface:ProtocolMessageEnumReturn the value's descriptor, which contains information such as value name, number, and type.- Specified by:
getValueDescriptorin interfaceProtocolMessageEnum
-
getDescriptorForType
public final Descriptors.EnumDescriptor getDescriptorForType()
Description copied from interface:ProtocolMessageEnumReturn the enum type's descriptor, which contains information about each defined value, etc.- Specified by:
getDescriptorForTypein interfaceProtocolMessageEnum
-
getDescriptor
public static final Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static Build.Attribute.Discriminator valueOf(Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-