Enum 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,java.io.Serializable,java.lang.Comparable<Commons.DefinitionSpec.Type>
- Enclosing class:
- Commons.DefinitionSpec
public static enum Commons.DefinitionSpec.Type extends java.lang.Enum<Commons.DefinitionSpec.Type> implements com.google.protobuf.ProtocolMessageEnum
Protobuf enumio.provenance.scope.contract.DefinitionSpec.Type
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FACTFACT = 2;FACT_LISTFACT_LIST = 3;NO_DEF_TYPENO_DEF_TYPE = 0;PROPOSEDPROPOSED = 1;UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intFACT_LIST_VALUEFACT_LIST = 3;static intFACT_VALUEFACT = 2;static intNO_DEF_TYPE_VALUENO_DEF_TYPE = 0;static intPROPOSED_VALUEPROPOSED = 1;
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Commons.DefinitionSpec.TypeforNumber(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<Commons.DefinitionSpec.Type>internalGetValueMap()static Commons.DefinitionSpec.TypevalueOf(int value)Deprecated.static Commons.DefinitionSpec.TypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static Commons.DefinitionSpec.TypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Commons.DefinitionSpec.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NO_DEF_TYPE
public static final Commons.DefinitionSpec.Type NO_DEF_TYPE
NO_DEF_TYPE = 0;
-
PROPOSED
public static final Commons.DefinitionSpec.Type PROPOSED
PROPOSED = 1;
-
FACT
public static final Commons.DefinitionSpec.Type FACT
FACT = 2;
-
FACT_LIST
public static final Commons.DefinitionSpec.Type FACT_LIST
FACT_LIST = 3;
-
UNRECOGNIZED
public static final Commons.DefinitionSpec.Type UNRECOGNIZED
-
-
Field Detail
-
NO_DEF_TYPE_VALUE
public static final int NO_DEF_TYPE_VALUE
NO_DEF_TYPE = 0;- See Also:
- Constant Field Values
-
PROPOSED_VALUE
public static final int PROPOSED_VALUE
PROPOSED = 1;- See Also:
- Constant Field Values
-
FACT_VALUE
public static final int FACT_VALUE
FACT = 2;- See Also:
- Constant Field Values
-
FACT_LIST_VALUE
public static final int FACT_LIST_VALUE
FACT_LIST = 3;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static Commons.DefinitionSpec.Type[] 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 (Commons.DefinitionSpec.Type c : Commons.DefinitionSpec.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Commons.DefinitionSpec.Type 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()
- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static Commons.DefinitionSpec.Type 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 Commons.DefinitionSpec.Type 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<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 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
-
-