Enum MPSosConstraint.Type
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<MPSosConstraint.Type>,java.lang.constant.Constable
- Enclosing class:
MPSosConstraint
public static enum MPSosConstraint.Type
extends Enum<MPSosConstraint.Type>
implements com.google.protobuf.ProtocolMessageEnum
Protobuf enum
operations_research.MPSosConstraint.Type-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAt most one variable in `var_index` must be non-zero.At most two consecutive variables from `var_index` can be non-zero (i.e. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intAt most one variable in `var_index` must be non-zero.static final intAt most two consecutive variables from `var_index` can be non-zero (i.e. -
Method Summary
Modifier and TypeMethodDescriptionstatic MPSosConstraint.TypeforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<MPSosConstraint.Type> static MPSosConstraint.TypevalueOf(int value) Deprecated.static MPSosConstraint.TypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static MPSosConstraint.TypeReturns the enum constant of this type with the specified name.static MPSosConstraint.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SOS1_DEFAULT
At most one variable in `var_index` must be non-zero.
SOS1_DEFAULT = 0; -
SOS2
At most two consecutive variables from `var_index` can be non-zero (i.e. for some i, var_index[i] and var_index[i+1]). See https://en.wikipedia.org/wiki/Special_ordered_set#Types_of_SOS
SOS2 = 1;
-
-
Field Details
-
SOS1_DEFAULT_VALUE
public static final int SOS1_DEFAULT_VALUEAt most one variable in `var_index` must be non-zero.
SOS1_DEFAULT = 0;- See Also:
-
SOS2_VALUE
public static final int SOS2_VALUEAt most two consecutive variables from `var_index` can be non-zero (i.e. for some i, var_index[i] and var_index[i+1]). See https://en.wikipedia.org/wiki/Special_ordered_set#Types_of_SOS
SOS2 = 1;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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.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
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static MPSosConstraint.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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-