Package org.sonar.python.types.protobuf
Enum Class SymbolsProtos.TypeKind
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<SymbolsProtos.TypeKind>,Constable
- Enclosing class:
SymbolsProtos
public static enum SymbolsProtos.TypeKind
extends Enum<SymbolsProtos.TypeKind>
implements com.google.protobuf.ProtocolMessageEnum
Protobuf enum
protoblog.TypeKind-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionANY = 5;CALLABLE = 8;INSTANCE = 0;LITERAL = 9;NONE = 6;TUPLE = 3;TYPE = 2;TYPE_ALIAS = 7;TYPE_VAR = 4;TYPED_DICT = 12;UNBOUND = 11;UNINHABITED = 10;UNION = 1; -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intANY = 5;static final intCALLABLE = 8;static final intINSTANCE = 0;static final intLITERAL = 9;static final intNONE = 6;static final intTUPLE = 3;static final intTYPE_ALIAS = 7;static final intTYPE = 2;static final intTYPE_VAR = 4;static final intTYPED_DICT = 12;static final intUNBOUND = 11;static final intUNINHABITED = 10;static final intUNION = 1; -
Method Summary
Modifier and TypeMethodDescriptionstatic SymbolsProtos.TypeKindforNumber(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<SymbolsProtos.TypeKind> static SymbolsProtos.TypeKindvalueOf(int value) Deprecated.static SymbolsProtos.TypeKindvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name.static SymbolsProtos.TypeKindReturns the enum constant of this class with the specified name.static SymbolsProtos.TypeKind[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
INSTANCE = 0; -
UNION
UNION = 1; -
TYPE
TYPE = 2; -
TUPLE
TUPLE = 3; -
TYPE_VAR
TYPE_VAR = 4; -
ANY
ANY = 5; -
NONE
NONE = 6; -
TYPE_ALIAS
TYPE_ALIAS = 7; -
CALLABLE
CALLABLE = 8; -
LITERAL
LITERAL = 9; -
UNINHABITED
UNINHABITED = 10; -
UNBOUND
UNBOUND = 11; -
TYPED_DICT
TYPED_DICT = 12; -
UNRECOGNIZED
-
-
Field Details
-
INSTANCE_VALUE
public static final int INSTANCE_VALUEINSTANCE = 0;- See Also:
-
UNION_VALUE
public static final int UNION_VALUEUNION = 1;- See Also:
-
TYPE_VALUE
public static final int TYPE_VALUETYPE = 2;- See Also:
-
TUPLE_VALUE
public static final int TUPLE_VALUETUPLE = 3;- See Also:
-
TYPE_VAR_VALUE
public static final int TYPE_VAR_VALUETYPE_VAR = 4;- See Also:
-
ANY_VALUE
public static final int ANY_VALUEANY = 5;- See Also:
-
NONE_VALUE
public static final int NONE_VALUENONE = 6;- See Also:
-
TYPE_ALIAS_VALUE
public static final int TYPE_ALIAS_VALUETYPE_ALIAS = 7;- See Also:
-
CALLABLE_VALUE
public static final int CALLABLE_VALUECALLABLE = 8;- See Also:
-
LITERAL_VALUE
public static final int LITERAL_VALUELITERAL = 9;- See Also:
-
UNINHABITED_VALUE
public static final int UNINHABITED_VALUEUNINHABITED = 10;- See Also:
-
UNBOUND_VALUE
public static final int UNBOUND_VALUEUNBOUND = 11;- See Also:
-
TYPED_DICT_VALUE
public static final int TYPED_DICT_VALUETYPED_DICT = 12;- 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<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 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
-