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