Google OR-Tools v9.12
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.29.3
5
6package com.google.ortools.pdlp;
7
15public enum RestartChoice
16 implements com.google.protobuf.ProtocolMessageEnum {
49 ;
50
51 static {
52 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
53 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
54 /* major= */ 4,
55 /* minor= */ 29,
56 /* patch= */ 3,
57 /* suffix= */ "",
58 RestartChoice.class.getName());
59 }
60
63 public static final int RESTART_CHOICE_UNSPECIFIED_VALUE = 0;
71 public static final int RESTART_CHOICE_NO_RESTART_VALUE = 1;
91 public static final int RESTART_CHOICE_RESTART_TO_AVERAGE_VALUE = 3;
92
93
94 public final int getNumber() {
95 return value;
96 }
97
103 @java.lang.Deprecated
104 public static RestartChoice valueOf(int value) {
105 return forNumber(value);
106 }
107
112 public static RestartChoice forNumber(int value) {
113 switch (value) {
114 case 0: return RESTART_CHOICE_UNSPECIFIED;
115 case 1: return RESTART_CHOICE_NO_RESTART;
118 default: return null;
119 }
120 }
121
122 public static com.google.protobuf.Internal.EnumLiteMap<RestartChoice>
124 return internalValueMap;
125 }
126 private static final com.google.protobuf.Internal.EnumLiteMap<
127 RestartChoice> internalValueMap =
128 new com.google.protobuf.Internal.EnumLiteMap<RestartChoice>() {
129 public RestartChoice findValueByNumber(int number) {
130 return RestartChoice.forNumber(number);
131 }
132 };
133
134 public final com.google.protobuf.Descriptors.EnumValueDescriptor
136 return getDescriptor().getValues().get(ordinal());
137 }
138 public final com.google.protobuf.Descriptors.EnumDescriptor
140 return getDescriptor();
141 }
142 public static final com.google.protobuf.Descriptors.EnumDescriptor
144 return com.google.ortools.pdlp.SolveLogOuterClass.getDescriptor().getEnumTypes().get(0);
145 }
146
147 private static final RestartChoice[] VALUES = values();
148
149 public static RestartChoice valueOf(
150 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
151 if (desc.getType() != getDescriptor()) {
152 throw new java.lang.IllegalArgumentException(
153 "EnumValueDescriptor is not for this type.");
154 }
155 return VALUES[desc.getIndex()];
156 }
157
158 private final int value;
159
160 private RestartChoice(int value) {
161 this.value = value;
162 }
163
164 // @@protoc_insertion_point(enum_scope:operations_research.pdlp.RestartChoice)
165}
166
static final int RESTART_CHOICE_RESTART_TO_AVERAGE_VALUE
static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
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 RestartChoice forNumber(int value)