22 implements com.google.protobuf.ProtocolMessageEnum {
41 public static final int BOOL_UNSPECIFIED_VALUE = 0;
45 public static final int BOOL_FALSE_VALUE = 2;
49 public static final int BOOL_TRUE_VALUE = 3;
53 if (
this == UNRECOGNIZED) {
54 throw new java.lang.IllegalArgumentException(
55 "Can't get the number of an unknown enum value.");
67 return forNumber(value);
76 case 0:
return BOOL_UNSPECIFIED;
77 case 2:
return BOOL_FALSE;
78 case 3:
return BOOL_TRUE;
85 return internalValueMap;
87 private static final com.google.protobuf.Internal.EnumLiteMap<
95 public final com.google.protobuf.Descriptors.EnumValueDescriptor
97 if (
this == UNRECOGNIZED) {
98 throw new java.lang.IllegalStateException(
99 "Can't get the descriptor of an unrecognized enum value.");
101 return getDescriptor().getValues().get(ordinal());
103 public final com.google.protobuf.Descriptors.EnumDescriptor
105 return getDescriptor();
107 public static final com.google.protobuf.Descriptors.EnumDescriptor
109 return com.google.ortools.util.OptionalBooleanOuterClass.getDescriptor().getEnumTypes().get(0);
115 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
116 if (desc.getType() != getDescriptor()) {
117 throw new java.lang.IllegalArgumentException(
118 "EnumValueDescriptor is not for this type.");
120 if (desc.getIndex() == -1) {
123 return VALUES[desc.getIndex()];
126 private final int value;