Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
SchedulerType.java
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// NO CHECKED-IN PROTOBUF GENCODE
3// source: ortools/pdlp/solvers.proto
4// Protobuf Java Version: 4.31.1
5
6package com.google.ortools.pdlp;
7
15@com.google.protobuf.Generated
16public enum SchedulerType
17 implements com.google.protobuf.ProtocolMessageEnum {
39 ;
40
41 static {
42 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
43 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
44 /* major= */ 4,
45 /* minor= */ 31,
46 /* patch= */ 1,
47 /* suffix= */ "",
48 SchedulerType.class.getName());
49 }
50
53 public static final int SCHEDULER_TYPE_UNSPECIFIED_VALUE = 0;
61 public static final int SCHEDULER_TYPE_GOOGLE_THREADPOOL_VALUE = 1;
70 public static final int SCHEDULER_TYPE_EIGEN_THREADPOOL_VALUE = 3;
71
72
73 public final int getNumber() {
74 return value;
75 }
76
82 @java.lang.Deprecated
83 public static SchedulerType valueOf(int value) {
84 return forNumber(value);
85 }
86
91 public static SchedulerType forNumber(int value) {
92 switch (value) {
93 case 0: return SCHEDULER_TYPE_UNSPECIFIED;
96 default: return null;
97 }
98 }
99
100 public static com.google.protobuf.Internal.EnumLiteMap<SchedulerType>
102 return internalValueMap;
103 }
104 private static final com.google.protobuf.Internal.EnumLiteMap<
105 SchedulerType> internalValueMap =
106 new com.google.protobuf.Internal.EnumLiteMap<SchedulerType>() {
107 public SchedulerType findValueByNumber(int number) {
108 return SchedulerType.forNumber(number);
109 }
110 };
111
112 public final com.google.protobuf.Descriptors.EnumValueDescriptor
114 return getDescriptor().getValues().get(ordinal());
115 }
116 public final com.google.protobuf.Descriptors.EnumDescriptor
118 return getDescriptor();
119 }
120 public static com.google.protobuf.Descriptors.EnumDescriptor
122 return com.google.ortools.pdlp.Solvers.getDescriptor().getEnumTypes().get(1);
123 }
124
125 private static final SchedulerType[] VALUES = values();
126
127 public static SchedulerType valueOf(
128 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
129 if (desc.getType() != getDescriptor()) {
130 throw new java.lang.IllegalArgumentException(
131 "EnumValueDescriptor is not for this type.");
132 }
133 return VALUES[desc.getIndex()];
134 }
135
136 private final int value;
137
138 private SchedulerType(int value) {
139 this.value = value;
140 }
141
142 // @@protoc_insertion_point(enum_scope:operations_research.pdlp.SchedulerType)
143}
144
static SchedulerType forNumber(int value)
static final int SCHEDULER_TYPE_EIGEN_THREADPOOL_VALUE
static final int SCHEDULER_TYPE_GOOGLE_THREADPOOL_VALUE
final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
static SchedulerType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
static SchedulerType valueOf(int value)
static com.google.protobuf.Internal.EnumLiteMap< SchedulerType > internalGetValueMap()