Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
PolishingPhaseType.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
11 implements com.google.protobuf.ProtocolMessageEnum {
24 ;
25
26 static {
27 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
28 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
29 /* major= */ 4,
30 /* minor= */ 26,
31 /* patch= */ 1,
32 /* suffix= */ "",
33 PolishingPhaseType.class.getName());
34 }
38 public static final int POLISHING_PHASE_TYPE_UNSPECIFIED_VALUE = 0;
42 public static final int POLISHING_PHASE_TYPE_PRIMAL_FEASIBILITY_VALUE = 1;
46 public static final int POLISHING_PHASE_TYPE_DUAL_FEASIBILITY_VALUE = 2;
47
48
49 public final int getNumber() {
50 return value;
51 }
52
58 @java.lang.Deprecated
59 public static PolishingPhaseType valueOf(int value) {
60 return forNumber(value);
61 }
62
67 public static PolishingPhaseType forNumber(int value) {
68 switch (value) {
69 case 0: return POLISHING_PHASE_TYPE_UNSPECIFIED;
70 case 1: return POLISHING_PHASE_TYPE_PRIMAL_FEASIBILITY;
71 case 2: return POLISHING_PHASE_TYPE_DUAL_FEASIBILITY;
72 default: return null;
73 }
74 }
75
76 public static com.google.protobuf.Internal.EnumLiteMap<PolishingPhaseType>
78 return internalValueMap;
79 }
80 private static final com.google.protobuf.Internal.EnumLiteMap<
81 PolishingPhaseType> internalValueMap =
82 new com.google.protobuf.Internal.EnumLiteMap<PolishingPhaseType>() {
83 public PolishingPhaseType findValueByNumber(int number) {
84 return PolishingPhaseType.forNumber(number);
85 }
86 };
87
88 public final com.google.protobuf.Descriptors.EnumValueDescriptor
90 return getDescriptor().getValues().get(ordinal());
91 }
92 public final com.google.protobuf.Descriptors.EnumDescriptor
94 return getDescriptor();
95 }
96 public static final com.google.protobuf.Descriptors.EnumDescriptor
98 return com.google.ortools.pdlp.SolveLogOuterClass.getDescriptor().getEnumTypes().get(3);
99 }
100
101 private static final PolishingPhaseType[] VALUES = values();
102
104 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
105 if (desc.getType() != getDescriptor()) {
106 throw new java.lang.IllegalArgumentException(
107 "EnumValueDescriptor is not for this type.");
108 }
109 return VALUES[desc.getIndex()];
110 }
111
112 private final int value;
113
114 private PolishingPhaseType(int value) {
115 this.value = value;
116 }
117
118 // @@protoc_insertion_point(enum_scope:operations_research.pdlp.PolishingPhaseType)
119}
120
static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
static PolishingPhaseType valueOf(int value)
final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
static com.google.protobuf.Internal.EnumLiteMap< PolishingPhaseType > internalGetValueMap()
static PolishingPhaseType forNumber(int value)
final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
static PolishingPhaseType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)