Package org.sonar.python.types.protobuf
Enum SymbolsProtos.TypeKind
- java.lang.Object
-
- java.lang.Enum<SymbolsProtos.TypeKind>
-
- org.sonar.python.types.protobuf.SymbolsProtos.TypeKind
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<SymbolsProtos.TypeKind>
- Enclosing class:
- SymbolsProtos
public static enum SymbolsProtos.TypeKind extends Enum<SymbolsProtos.TypeKind> implements com.google.protobuf.ProtocolMessageEnum
Protobuf enumprotoblog.TypeKind
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANYANY = 5;CALLABLECALLABLE = 8;INSTANCEINSTANCE = 0;LITERALLITERAL = 9;NONENONE = 6;TUPLETUPLE = 3;TYPETYPE = 2;TYPE_ALIASTYPE_ALIAS = 7;TYPE_VARTYPE_VAR = 4;TYPED_DICTTYPED_DICT = 12;UNBOUNDUNBOUND = 11;UNINHABITEDUNINHABITED = 10;UNIONUNION = 1;UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intANY_VALUEANY = 5;static intCALLABLE_VALUECALLABLE = 8;static intINSTANCE_VALUEINSTANCE = 0;static intLITERAL_VALUELITERAL = 9;static intNONE_VALUENONE = 6;static intTUPLE_VALUETUPLE = 3;static intTYPE_ALIAS_VALUETYPE_ALIAS = 7;static intTYPE_VALUETYPE = 2;static intTYPE_VAR_VALUETYPE_VAR = 4;static intTYPED_DICT_VALUETYPED_DICT = 12;static intUNBOUND_VALUEUNBOUND = 11;static intUNINHABITED_VALUEUNINHABITED = 10;static intUNION_VALUEUNION = 1;
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static SymbolsProtos.TypeKindforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<SymbolsProtos.TypeKind>internalGetValueMap()static SymbolsProtos.TypeKindvalueOf(int value)Deprecated.static SymbolsProtos.TypeKindvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static SymbolsProtos.TypeKindvalueOf(String name)Returns the enum constant of this type with the specified name.static SymbolsProtos.TypeKind[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final SymbolsProtos.TypeKind INSTANCE
INSTANCE = 0;
-
UNION
public static final SymbolsProtos.TypeKind UNION
UNION = 1;
-
TYPE
public static final SymbolsProtos.TypeKind TYPE
TYPE = 2;
-
TUPLE
public static final SymbolsProtos.TypeKind TUPLE
TUPLE = 3;
-
TYPE_VAR
public static final SymbolsProtos.TypeKind TYPE_VAR
TYPE_VAR = 4;
-
ANY
public static final SymbolsProtos.TypeKind ANY
ANY = 5;
-
NONE
public static final SymbolsProtos.TypeKind NONE
NONE = 6;
-
TYPE_ALIAS
public static final SymbolsProtos.TypeKind TYPE_ALIAS
TYPE_ALIAS = 7;
-
CALLABLE
public static final SymbolsProtos.TypeKind CALLABLE
CALLABLE = 8;
-
LITERAL
public static final SymbolsProtos.TypeKind LITERAL
LITERAL = 9;
-
UNINHABITED
public static final SymbolsProtos.TypeKind UNINHABITED
UNINHABITED = 10;
-
UNBOUND
public static final SymbolsProtos.TypeKind UNBOUND
UNBOUND = 11;
-
TYPED_DICT
public static final SymbolsProtos.TypeKind TYPED_DICT
TYPED_DICT = 12;
-
UNRECOGNIZED
public static final SymbolsProtos.TypeKind UNRECOGNIZED
-
-
Field Detail
-
INSTANCE_VALUE
public static final int INSTANCE_VALUE
INSTANCE = 0;- See Also:
- Constant Field Values
-
UNION_VALUE
public static final int UNION_VALUE
UNION = 1;- See Also:
- Constant Field Values
-
TYPE_VALUE
public static final int TYPE_VALUE
TYPE = 2;- See Also:
- Constant Field Values
-
TUPLE_VALUE
public static final int TUPLE_VALUE
TUPLE = 3;- See Also:
- Constant Field Values
-
TYPE_VAR_VALUE
public static final int TYPE_VAR_VALUE
TYPE_VAR = 4;- See Also:
- Constant Field Values
-
ANY_VALUE
public static final int ANY_VALUE
ANY = 5;- See Also:
- Constant Field Values
-
NONE_VALUE
public static final int NONE_VALUE
NONE = 6;- See Also:
- Constant Field Values
-
TYPE_ALIAS_VALUE
public static final int TYPE_ALIAS_VALUE
TYPE_ALIAS = 7;- See Also:
- Constant Field Values
-
CALLABLE_VALUE
public static final int CALLABLE_VALUE
CALLABLE = 8;- See Also:
- Constant Field Values
-
LITERAL_VALUE
public static final int LITERAL_VALUE
LITERAL = 9;- See Also:
- Constant Field Values
-
UNINHABITED_VALUE
public static final int UNINHABITED_VALUE
UNINHABITED = 10;- See Also:
- Constant Field Values
-
UNBOUND_VALUE
public static final int UNBOUND_VALUE
UNBOUND = 11;- See Also:
- Constant Field Values
-
TYPED_DICT_VALUE
public static final int TYPED_DICT_VALUE
TYPED_DICT = 12;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static SymbolsProtos.TypeKind[] 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 (SymbolsProtos.TypeKind c : SymbolsProtos.TypeKind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SymbolsProtos.TypeKind valueOf(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:
IllegalArgumentException- if this enum type 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 public static SymbolsProtos.TypeKind 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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
public static SymbolsProtos.TypeKind 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<SymbolsProtos.TypeKind> 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 SymbolsProtos.TypeKind valueOf(com.google.protobuf.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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-