Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
RestartChoice.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/solve_log.proto
4// Protobuf Java Version: 4.31.1
5
6package com.google.ortools.pdlp;
7
15@com.google.protobuf.Generated
16public enum RestartChoice
17 implements com.google.protobuf.ProtocolMessageEnum {
50 ;
51
52 static {
53 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
54 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
55 /* major= */ 4,
56 /* minor= */ 31,
57 /* patch= */ 1,
58 /* suffix= */ "",
59 RestartChoice.class.getName());
60 }
61
64 public static final int RESTART_CHOICE_UNSPECIFIED_VALUE = 0;
72 public static final int RESTART_CHOICE_NO_RESTART_VALUE = 1;
92 public static final int RESTART_CHOICE_RESTART_TO_AVERAGE_VALUE = 3;
93
94
95 public final int getNumber() {
96 return value;
97 }
98
104 @java.lang.Deprecated
105 public static RestartChoice valueOf(int value) {
106 return forNumber(value);
107 }
108
113 public static RestartChoice forNumber(int value) {
114 switch (value) {
115 case 0: return RESTART_CHOICE_UNSPECIFIED;
116 case 1: return RESTART_CHOICE_NO_RESTART;
119 default: return null;
120 }
121 }
122
123 public static com.google.protobuf.Internal.EnumLiteMap<RestartChoice>
125 return internalValueMap;
126 }
127 private static final com.google.protobuf.Internal.EnumLiteMap<
128 RestartChoice> internalValueMap =
129 new com.google.protobuf.Internal.EnumLiteMap<RestartChoice>() {
130 public RestartChoice findValueByNumber(int number) {
131 return RestartChoice.forNumber(number);
132 }
133 };
134
135 public final com.google.protobuf.Descriptors.EnumValueDescriptor
137 return getDescriptor().getValues().get(ordinal());
138 }
139 public final com.google.protobuf.Descriptors.EnumDescriptor
141 return getDescriptor();
142 }
143 public static com.google.protobuf.Descriptors.EnumDescriptor
145 return com.google.ortools.pdlp.SolveLogOuterClass.getDescriptor().getEnumTypes().get(0);
146 }
147
148 private static final RestartChoice[] VALUES = values();
149
150 public static RestartChoice valueOf(
151 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
152 if (desc.getType() != getDescriptor()) {
153 throw new java.lang.IllegalArgumentException(
154 "EnumValueDescriptor is not for this type.");
155 }
156 return VALUES[desc.getIndex()];
157 }
158
159 private final int value;
160
161 private RestartChoice(int value) {
162 this.value = value;
163 }
164
165 // @@protoc_insertion_point(enum_scope:operations_research.pdlp.RestartChoice)
166}
167
static final int RESTART_CHOICE_RESTART_TO_AVERAGE_VALUE
final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
static RestartChoice valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
static final int RESTART_CHOICE_WEIGHTED_AVERAGE_RESET_VALUE
static com.google.protobuf.Internal.EnumLiteMap< RestartChoice > internalGetValueMap()
static RestartChoice valueOf(int value)
static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
static RestartChoice forNumber(int value)