22 implements com.google.protobuf.ProtocolMessageEnum {
39 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
40 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
50 public static final int BOOL_UNSPECIFIED_VALUE = 0;
54 public static final int BOOL_FALSE_VALUE = 2;
58 public static final int BOOL_TRUE_VALUE = 3;
62 if (
this == UNRECOGNIZED) {
63 throw new java.lang.IllegalArgumentException(
64 "Can't get the number of an unknown enum value.");
76 return forNumber(value);
85 case 0:
return BOOL_UNSPECIFIED;
86 case 2:
return BOOL_FALSE;
87 case 3:
return BOOL_TRUE;
94 return internalValueMap;
96 private static final com.google.protobuf.Internal.EnumLiteMap<
104 public final com.google.protobuf.Descriptors.EnumValueDescriptor
106 if (
this == UNRECOGNIZED) {
107 throw new java.lang.IllegalStateException(
108 "Can't get the descriptor of an unrecognized enum value.");
110 return getDescriptor().getValues().get(ordinal());
112 public final com.google.protobuf.Descriptors.EnumDescriptor
114 return getDescriptor();
116 public static final com.google.protobuf.Descriptors.EnumDescriptor
118 return com.google.ortools.util.OptionalBooleanOuterClass.getDescriptor().getEnumTypes().get(0);
124 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
125 if (desc.getType() != getDescriptor()) {
126 throw new java.lang.IllegalArgumentException(
127 "EnumValueDescriptor is not for this type.");
129 if (desc.getIndex() == -1) {
132 return VALUES[desc.getIndex()];
135 private final int value;