4 package com.google.ortools.util;
20 implements
com.
google.protobuf.ProtocolMessageEnum {
39 public static final int BOOL_UNSPECIFIED_VALUE = 0;
43 public static final int BOOL_FALSE_VALUE = 2;
47 public static final int BOOL_TRUE_VALUE = 3;
51 if (
this == UNRECOGNIZED) {
52 throw new java.lang.IllegalArgumentException(
53 "Can't get the number of an unknown enum value.");
63 return forNumber(value);
68 case 0:
return BOOL_UNSPECIFIED;
69 case 2:
return BOOL_FALSE;
70 case 3:
return BOOL_TRUE;
77 return internalValueMap;
79 private static final com.
google.protobuf.Internal.EnumLiteMap<
87 public final com.
google.protobuf.Descriptors.EnumValueDescriptor
89 return getDescriptor().getValues().get(ordinal());
91 public final com.
google.protobuf.Descriptors.EnumDescriptor
93 return getDescriptor();
95 public static final com.
google.protobuf.Descriptors.EnumDescriptor
103 com.
google.protobuf.Descriptors.EnumValueDescriptor desc) {
104 if (desc.getType() != getDescriptor()) {
105 throw new java.lang.IllegalArgumentException(
106 "EnumValueDescriptor is not for this type.");
108 if (desc.getIndex() == -1) {
111 return VALUES[desc.getIndex()];
114 private final int value;