Enum Class Commons.DefinitionSpec.Type
java.lang.Object
java.lang.Enum<Commons.DefinitionSpec.Type>
io.provenance.scope.contract.proto.Commons.DefinitionSpec.Type
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<Commons.DefinitionSpec.Type>,Constable
- Enclosing class:
- Commons.DefinitionSpec
public static enum Commons.DefinitionSpec.Type
extends Enum<Commons.DefinitionSpec.Type>
implements com.google.protobuf.ProtocolMessageEnum
Protobuf enum
io.provenance.scope.contract.DefinitionSpec.Type-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFACT = 2;FACT_LIST = 3;NO_DEF_TYPE = 0;PROPOSED = 1; -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intFACT_LIST = 3;static final intFACT = 2;static final intNO_DEF_TYPE = 0;static final intPROPOSED = 1; -
Method Summary
Modifier and TypeMethodDescriptionstatic Commons.DefinitionSpec.TypeforNumber(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<Commons.DefinitionSpec.Type>static Commons.DefinitionSpec.TypevalueOf(int value) Deprecated.static Commons.DefinitionSpec.TypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name.static Commons.DefinitionSpec.TypeReturns the enum constant of this class with the specified name.static Commons.DefinitionSpec.Type[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NO_DEF_TYPE
NO_DEF_TYPE = 0; -
PROPOSED
PROPOSED = 1; -
FACT
FACT = 2; -
FACT_LIST
FACT_LIST = 3; -
UNRECOGNIZED
-
-
Field Details
-
NO_DEF_TYPE_VALUE
public static final int NO_DEF_TYPE_VALUENO_DEF_TYPE = 0;- See Also:
-
PROPOSED_VALUE
public static final int PROPOSED_VALUEPROPOSED = 1;- See Also:
-
FACT_VALUE
public static final int FACT_VALUEFACT = 2;- See Also:
-
FACT_LIST_VALUE
public static final int FACT_LIST_VALUEFACT_LIST = 3;- 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<Commons.DefinitionSpec.Type> 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 Commons.DefinitionSpec.Type 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
-